@arkyn/types 1.3.30 → 1.3.32
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/DrawerProps.d.ts +12 -0
- package/dist/components/DrawerProps.d.ts.map +1 -0
- package/dist/components/DrawerProps.js +1 -0
- package/dist/hooks/Drawer.d.ts +17 -0
- package/dist/hooks/Drawer.d.ts.map +1 -0
- package/dist/hooks/Drawer.js +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
- package/src/components/DrawerProps.ts +15 -0
- package/src/hooks/Drawer.ts +20 -0
- package/src/index.ts +5 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
type BaseDrawerProps = HTMLAttributes<HTMLElement>;
|
|
3
|
+
type DrawerContainerProps = BaseDrawerProps & {
|
|
4
|
+
isVisibled: boolean;
|
|
5
|
+
makeInvisible: () => void;
|
|
6
|
+
orientation?: "left" | "right";
|
|
7
|
+
};
|
|
8
|
+
type DrawerHeaderProps = BaseDrawerProps & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type { DrawerContainerProps, DrawerHeaderProps };
|
|
12
|
+
//# sourceMappingURL=DrawerProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerProps.d.ts","sourceRoot":"","sources":["../../src/components/DrawerProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,eAAe,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEnD,KAAK,oBAAoB,GAAG,eAAe,GAAG;IAC5C,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAChC,CAAC;AAEF,KAAK,iBAAiB,GAAG,eAAe,GAAG;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type DrawerContextProps = {
|
|
3
|
+
drawerIsOpen(key: string): boolean;
|
|
4
|
+
drawerData(key: string): any;
|
|
5
|
+
openDrawer(key: string, data?: any): void;
|
|
6
|
+
closeDrawer(key: string): void;
|
|
7
|
+
};
|
|
8
|
+
type OpenedDrawers = {
|
|
9
|
+
key: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
}[];
|
|
12
|
+
type DrawerProviderProps = {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
enableDrawerAutomation?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type { DrawerContextProps, OpenedDrawers, DrawerProviderProps };
|
|
17
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +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;IACxB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAC7B,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1C,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./api/config/InboxFlowDTO";
|
|
2
|
+
export * from "./api/config/RedisDTO";
|
|
3
|
+
export * from "./api/config/ResponseDTO";
|
|
1
4
|
export * from "./api/DeleteDTO";
|
|
2
5
|
export * from "./api/GetDTO";
|
|
3
6
|
export * from "./api/InstanceConstructorProps";
|
|
@@ -5,14 +8,12 @@ export * from "./api/MonitoringErrorsDTO";
|
|
|
5
8
|
export * from "./api/PatchDTO";
|
|
6
9
|
export * from "./api/PostDTO";
|
|
7
10
|
export * from "./api/PutDTO";
|
|
8
|
-
export * from "./api/config/InboxFlowDTO";
|
|
9
|
-
export * from "./api/config/RedisDTO";
|
|
10
|
-
export * from "./api/config/ResponseDTO";
|
|
11
11
|
export * from "./components/BadgeProps";
|
|
12
12
|
export * from "./components/BreadcrumbProps";
|
|
13
13
|
export * from "./components/ButtonProps";
|
|
14
14
|
export * from "./components/CheckboxProps";
|
|
15
15
|
export * from "./components/DividerProps";
|
|
16
|
+
export * from "./components/DrawerProps";
|
|
16
17
|
export * from "./components/FormProps";
|
|
17
18
|
export * from "./components/IconButtonProps";
|
|
18
19
|
export * from "./components/InputProps";
|
|
@@ -20,6 +21,7 @@ export * from "./components/ModalProps";
|
|
|
20
21
|
export * from "./components/SelectProps";
|
|
21
22
|
export * from "./components/SkeletonProps";
|
|
22
23
|
export * from "./components/TooltipProps";
|
|
24
|
+
export * from "./hooks/Drawer";
|
|
23
25
|
export * from "./hooks/Modal";
|
|
24
26
|
export * from "./hooks/Toast";
|
|
25
27
|
export * from "./server/formParseProps";
|
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,
|
|
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;AAG1C,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
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// Api
|
|
2
|
+
export * from "./api/config/InboxFlowDTO";
|
|
3
|
+
export * from "./api/config/RedisDTO";
|
|
4
|
+
export * from "./api/config/ResponseDTO";
|
|
2
5
|
export * from "./api/DeleteDTO";
|
|
3
6
|
export * from "./api/GetDTO";
|
|
4
7
|
export * from "./api/InstanceConstructorProps";
|
|
@@ -6,15 +9,13 @@ export * from "./api/MonitoringErrorsDTO";
|
|
|
6
9
|
export * from "./api/PatchDTO";
|
|
7
10
|
export * from "./api/PostDTO";
|
|
8
11
|
export * from "./api/PutDTO";
|
|
9
|
-
export * from "./api/config/InboxFlowDTO";
|
|
10
|
-
export * from "./api/config/RedisDTO";
|
|
11
|
-
export * from "./api/config/ResponseDTO";
|
|
12
12
|
// Components
|
|
13
13
|
export * from "./components/BadgeProps";
|
|
14
14
|
export * from "./components/BreadcrumbProps";
|
|
15
15
|
export * from "./components/ButtonProps";
|
|
16
16
|
export * from "./components/CheckboxProps";
|
|
17
17
|
export * from "./components/DividerProps";
|
|
18
|
+
export * from "./components/DrawerProps";
|
|
18
19
|
export * from "./components/FormProps";
|
|
19
20
|
export * from "./components/IconButtonProps";
|
|
20
21
|
export * from "./components/InputProps";
|
|
@@ -23,6 +24,7 @@ export * from "./components/SelectProps";
|
|
|
23
24
|
export * from "./components/SkeletonProps";
|
|
24
25
|
export * from "./components/TooltipProps";
|
|
25
26
|
// Hooks
|
|
27
|
+
export * from "./hooks/Drawer";
|
|
26
28
|
export * from "./hooks/Modal";
|
|
27
29
|
export * from "./hooks/Toast";
|
|
28
30
|
// Server
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
|
|
3
|
+
type BaseDrawerProps = HTMLAttributes<HTMLElement>;
|
|
4
|
+
|
|
5
|
+
type DrawerContainerProps = BaseDrawerProps & {
|
|
6
|
+
isVisibled: boolean;
|
|
7
|
+
makeInvisible: () => void;
|
|
8
|
+
orientation?: "left" | "right";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
type DrawerHeaderProps = BaseDrawerProps & {
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type { DrawerContainerProps, DrawerHeaderProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
type DrawerContextProps = {
|
|
4
|
+
drawerIsOpen(key: string): boolean;
|
|
5
|
+
drawerData(key: string): any;
|
|
6
|
+
openDrawer(key: string, data?: any): void;
|
|
7
|
+
closeDrawer(key: string): void;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type OpenedDrawers = {
|
|
11
|
+
key: string;
|
|
12
|
+
data?: any;
|
|
13
|
+
}[];
|
|
14
|
+
|
|
15
|
+
type DrawerProviderProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
enableDrawerAutomation?: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type { DrawerContextProps, OpenedDrawers, DrawerProviderProps };
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// Api
|
|
2
|
+
export * from "./api/config/InboxFlowDTO";
|
|
3
|
+
export * from "./api/config/RedisDTO";
|
|
4
|
+
export * from "./api/config/ResponseDTO";
|
|
2
5
|
export * from "./api/DeleteDTO";
|
|
3
6
|
export * from "./api/GetDTO";
|
|
4
7
|
export * from "./api/InstanceConstructorProps";
|
|
@@ -6,9 +9,6 @@ export * from "./api/MonitoringErrorsDTO";
|
|
|
6
9
|
export * from "./api/PatchDTO";
|
|
7
10
|
export * from "./api/PostDTO";
|
|
8
11
|
export * from "./api/PutDTO";
|
|
9
|
-
export * from "./api/config/InboxFlowDTO";
|
|
10
|
-
export * from "./api/config/RedisDTO";
|
|
11
|
-
export * from "./api/config/ResponseDTO";
|
|
12
12
|
|
|
13
13
|
// Components
|
|
14
14
|
export * from "./components/BadgeProps";
|
|
@@ -16,6 +16,7 @@ export * from "./components/BreadcrumbProps";
|
|
|
16
16
|
export * from "./components/ButtonProps";
|
|
17
17
|
export * from "./components/CheckboxProps";
|
|
18
18
|
export * from "./components/DividerProps";
|
|
19
|
+
export * from "./components/DrawerProps";
|
|
19
20
|
export * from "./components/FormProps";
|
|
20
21
|
export * from "./components/IconButtonProps";
|
|
21
22
|
export * from "./components/InputProps";
|
|
@@ -25,6 +26,7 @@ export * from "./components/SkeletonProps";
|
|
|
25
26
|
export * from "./components/TooltipProps";
|
|
26
27
|
|
|
27
28
|
// Hooks
|
|
29
|
+
export * from "./hooks/Drawer";
|
|
28
30
|
export * from "./hooks/Modal";
|
|
29
31
|
export * from "./hooks/Toast";
|
|
30
32
|
|