@impulse-ui-native/toolkit 1.0.3 → 1.0.4
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.cjs.js.map +1 -1
- package/dist/index.d.mts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +12 -12
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Core foundation\r\nexport * from \"@impulse-ui-native/core\";\r\nexport * from \"@impulse-ui-native/theme\";\r\n\r\n// Layout & containers\r\nexport * from \"@impulse-ui-native/layer-manager\";\r\nexport * from \"@impulse-ui-native/safe-area-view\";\r\n\r\n// Components\r\nexport * from \"@impulse-ui-native/button\";\r\nexport * from \"@impulse-ui-native/flyout\";\r\nexport * from \"@impulse-ui-native/icon\";\r\nexport * from \"@impulse-ui-native/input\";\r\nexport * from \"@impulse-ui-native/tag\";\r\n\r\n// Utilities\r\nexport * from \"@impulse-ui-native/echo\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,0BAAc,oCADd;AAEA,0BAAc,qCAFd;AAKA,0BAAc,6CALd;AAMA,0BAAc,8CANd;AASA,0BAAc,sCATd;AAUA,0BAAc,sCAVd;AAWA,0BAAc,oCAXd;AAYA,0BAAc,qCAZd;AAaA,0BAAc,mCAbd;AAgBA,0BAAc,oCAhBd;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Core foundation\r\nexport * from \"@impulse-ui-native/core\";\r\nexport * from \"@impulse-ui-native/theme\";\r\n\r\n// Layout & containers\r\nexport * from \"@impulse-ui-native/layer-manager\";\r\nexport * from \"@impulse-ui-native/safe-area-view\";\r\n\r\n// Components\r\nexport * from \"@impulse-ui-native/button\";\r\nexport * from \"@impulse-ui-native/flyout\";\r\nexport * from \"@impulse-ui-native/icon\";\r\nexport * from \"@impulse-ui-native/input\";\r\nexport * from \"@impulse-ui-native/tag\";\r\n\r\n// Utilities\r\nexport * from \"@impulse-ui-native/echo\";\r\n\r\n// Types\r\nexport * from \"@impulse-ui-native/layer-manager-types\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,0BAAc,oCADd;AAEA,0BAAc,qCAFd;AAKA,0BAAc,6CALd;AAMA,0BAAc,8CANd;AASA,0BAAc,sCATd;AAUA,0BAAc,sCAVd;AAWA,0BAAc,oCAXd;AAYA,0BAAc,qCAZd;AAaA,0BAAc,mCAbd;AAgBA,0BAAc,oCAhBd;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,3 +8,47 @@ export * from '@impulse-ui-native/icon';
|
|
|
8
8
|
export * from '@impulse-ui-native/input';
|
|
9
9
|
export * from '@impulse-ui-native/tag';
|
|
10
10
|
export * from '@impulse-ui-native/echo';
|
|
11
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
12
|
+
|
|
13
|
+
interface BaseRegistrationProps<Props extends object = {}> {
|
|
14
|
+
id: string;
|
|
15
|
+
title?: RegistrationTitle<Props>;
|
|
16
|
+
Content: ComponentType<Props>;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onCloseFinished?: () => void;
|
|
19
|
+
onOpen?: () => void;
|
|
20
|
+
onOpenFinished?: () => void;
|
|
21
|
+
}
|
|
22
|
+
type RegistrationTitle<Props extends object = {}> = string | ((props: Props) => string | undefined);
|
|
23
|
+
|
|
24
|
+
type FlyoutKey = string;
|
|
25
|
+
type FlyoutOpenProps<Props extends object = {}> = {
|
|
26
|
+
title?: string;
|
|
27
|
+
placement?: "top" | "bottom";
|
|
28
|
+
} & Props;
|
|
29
|
+
|
|
30
|
+
interface LayerComponentBaseProps {
|
|
31
|
+
id: string;
|
|
32
|
+
layer: number;
|
|
33
|
+
open?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
Content?: ComponentType<any>;
|
|
36
|
+
onClose?: (id: string) => void;
|
|
37
|
+
onCloseFinished?: (id: string) => void;
|
|
38
|
+
onOpen?: (id: string) => void;
|
|
39
|
+
onOpenFinished?: (id: string) => void;
|
|
40
|
+
}
|
|
41
|
+
interface Layer<Props extends object = {}> {
|
|
42
|
+
id: string;
|
|
43
|
+
props: Props;
|
|
44
|
+
layerProps: BaseRegistrationProps<Props>;
|
|
45
|
+
Component: ComponentType<PropsWithChildren<LayerComponentBaseProps & Props>>;
|
|
46
|
+
}
|
|
47
|
+
interface OpenLayerParams<Props extends object = {}> {
|
|
48
|
+
id: string;
|
|
49
|
+
props: Props;
|
|
50
|
+
registrationProps: BaseRegistrationProps<Props>;
|
|
51
|
+
Component: ComponentType<LayerComponentBaseProps>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type { BaseRegistrationProps, FlyoutKey, FlyoutOpenProps, Layer, LayerComponentBaseProps, OpenLayerParams, RegistrationTitle };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,3 +8,47 @@ export * from '@impulse-ui-native/icon';
|
|
|
8
8
|
export * from '@impulse-ui-native/input';
|
|
9
9
|
export * from '@impulse-ui-native/tag';
|
|
10
10
|
export * from '@impulse-ui-native/echo';
|
|
11
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
12
|
+
|
|
13
|
+
interface BaseRegistrationProps<Props extends object = {}> {
|
|
14
|
+
id: string;
|
|
15
|
+
title?: RegistrationTitle<Props>;
|
|
16
|
+
Content: ComponentType<Props>;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onCloseFinished?: () => void;
|
|
19
|
+
onOpen?: () => void;
|
|
20
|
+
onOpenFinished?: () => void;
|
|
21
|
+
}
|
|
22
|
+
type RegistrationTitle<Props extends object = {}> = string | ((props: Props) => string | undefined);
|
|
23
|
+
|
|
24
|
+
type FlyoutKey = string;
|
|
25
|
+
type FlyoutOpenProps<Props extends object = {}> = {
|
|
26
|
+
title?: string;
|
|
27
|
+
placement?: "top" | "bottom";
|
|
28
|
+
} & Props;
|
|
29
|
+
|
|
30
|
+
interface LayerComponentBaseProps {
|
|
31
|
+
id: string;
|
|
32
|
+
layer: number;
|
|
33
|
+
open?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
Content?: ComponentType<any>;
|
|
36
|
+
onClose?: (id: string) => void;
|
|
37
|
+
onCloseFinished?: (id: string) => void;
|
|
38
|
+
onOpen?: (id: string) => void;
|
|
39
|
+
onOpenFinished?: (id: string) => void;
|
|
40
|
+
}
|
|
41
|
+
interface Layer<Props extends object = {}> {
|
|
42
|
+
id: string;
|
|
43
|
+
props: Props;
|
|
44
|
+
layerProps: BaseRegistrationProps<Props>;
|
|
45
|
+
Component: ComponentType<PropsWithChildren<LayerComponentBaseProps & Props>>;
|
|
46
|
+
}
|
|
47
|
+
interface OpenLayerParams<Props extends object = {}> {
|
|
48
|
+
id: string;
|
|
49
|
+
props: Props;
|
|
50
|
+
registrationProps: BaseRegistrationProps<Props>;
|
|
51
|
+
Component: ComponentType<LayerComponentBaseProps>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type { BaseRegistrationProps, FlyoutKey, FlyoutOpenProps, Layer, LayerComponentBaseProps, OpenLayerParams, RegistrationTitle };
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Core foundation\r\nexport * from \"@impulse-ui-native/core\";\r\nexport * from \"@impulse-ui-native/theme\";\r\n\r\n// Layout & containers\r\nexport * from \"@impulse-ui-native/layer-manager\";\r\nexport * from \"@impulse-ui-native/safe-area-view\";\r\n\r\n// Components\r\nexport * from \"@impulse-ui-native/button\";\r\nexport * from \"@impulse-ui-native/flyout\";\r\nexport * from \"@impulse-ui-native/icon\";\r\nexport * from \"@impulse-ui-native/input\";\r\nexport * from \"@impulse-ui-native/tag\";\r\n\r\n// Utilities\r\nexport * from \"@impulse-ui-native/echo\";\r\n"],"mappings":";AACA,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Core foundation\r\nexport * from \"@impulse-ui-native/core\";\r\nexport * from \"@impulse-ui-native/theme\";\r\n\r\n// Layout & containers\r\nexport * from \"@impulse-ui-native/layer-manager\";\r\nexport * from \"@impulse-ui-native/safe-area-view\";\r\n\r\n// Components\r\nexport * from \"@impulse-ui-native/button\";\r\nexport * from \"@impulse-ui-native/flyout\";\r\nexport * from \"@impulse-ui-native/icon\";\r\nexport * from \"@impulse-ui-native/input\";\r\nexport * from \"@impulse-ui-native/tag\";\r\n\r\n// Utilities\r\nexport * from \"@impulse-ui-native/echo\";\r\n\r\n// Types\r\nexport * from \"@impulse-ui-native/layer-manager-types\";\r\n"],"mappings":";AACA,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/toolkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@impulse-ui-native/
|
|
25
|
-
"@impulse-ui-native/
|
|
26
|
-
"@impulse-ui-native/
|
|
27
|
-
"@impulse-ui-native/
|
|
28
|
-
"@impulse-ui-native/
|
|
29
|
-
"@impulse-ui-native/
|
|
30
|
-
"@impulse-ui-native/
|
|
31
|
-
"@impulse-ui-native/
|
|
32
|
-
"@impulse-ui-native/
|
|
33
|
-
"@impulse-ui-native/theme": "1.0.
|
|
24
|
+
"@impulse-ui-native/button": "1.0.4",
|
|
25
|
+
"@impulse-ui-native/icon": "1.0.4",
|
|
26
|
+
"@impulse-ui-native/flyout": "1.0.4",
|
|
27
|
+
"@impulse-ui-native/echo": "1.0.4",
|
|
28
|
+
"@impulse-ui-native/input": "1.0.4",
|
|
29
|
+
"@impulse-ui-native/core": "1.0.4",
|
|
30
|
+
"@impulse-ui-native/tag": "1.0.4",
|
|
31
|
+
"@impulse-ui-native/layer-manager": "1.0.4",
|
|
32
|
+
"@impulse-ui-native/safe-area-view": "1.0.4",
|
|
33
|
+
"@impulse-ui-native/theme": "1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@impulse-ui-native/layer-manager-types": "1.0.
|
|
36
|
+
"@impulse-ui-native/layer-manager-types": "1.0.4"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18",
|