@xsolla/xui-store-badge 0.74.0 → 0.76.0
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/native/index.js.flow +49 -0
- package/package.json +3 -3
- package/web/index.js.flow +49 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for index
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { HTMLAttributes } from "react";
|
|
9
|
+
declare type StoreType = "google-play" | "app-gallery" | "app-store";
|
|
10
|
+
declare type StoreBadgePalette = "dark" | "light";
|
|
11
|
+
declare type StoreProps = {
|
|
12
|
+
width?: number,
|
|
13
|
+
height?: number,
|
|
14
|
+
palette: StoreBadgePalette,
|
|
15
|
+
...
|
|
16
|
+
} & HTMLAttributes<SVGSVGElement>;
|
|
17
|
+
declare interface StoreBadgeProps {
|
|
18
|
+
/**
|
|
19
|
+
* Parameter with type store. 'google-play', 'app-gallery' or 'app-store'
|
|
20
|
+
*/
|
|
21
|
+
type?: StoreType;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Parameter with palette: 'dark' - black background, 'light' - white background
|
|
25
|
+
*/
|
|
26
|
+
palette: StoreBadgePalette;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Parameter with function for click
|
|
30
|
+
*/
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Test ID for testing
|
|
35
|
+
*/
|
|
36
|
+
"data-testid"?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Additional className
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: any;
|
|
43
|
+
}
|
|
44
|
+
declare var StoreBadge: React.ForwardRefExoticComponent<{
|
|
45
|
+
...StoreBadgeProps,
|
|
46
|
+
...React.RefAttributes<any>,
|
|
47
|
+
}>;
|
|
48
|
+
export type { StoreBadgePalette, StoreBadgeProps, StoreProps, StoreType };
|
|
49
|
+
declare export { StoreBadge };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-store-badge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-core": "0.
|
|
14
|
-
"@xsolla/xui-primitives-core": "0.
|
|
13
|
+
"@xsolla/xui-core": "0.76.0",
|
|
14
|
+
"@xsolla/xui-primitives-core": "0.76.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": ">=16.8.0",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for index
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { HTMLAttributes } from "react";
|
|
9
|
+
declare type StoreType = "google-play" | "app-gallery" | "app-store";
|
|
10
|
+
declare type StoreBadgePalette = "dark" | "light";
|
|
11
|
+
declare type StoreProps = {
|
|
12
|
+
width?: number,
|
|
13
|
+
height?: number,
|
|
14
|
+
palette: StoreBadgePalette,
|
|
15
|
+
...
|
|
16
|
+
} & HTMLAttributes<SVGSVGElement>;
|
|
17
|
+
declare interface StoreBadgeProps {
|
|
18
|
+
/**
|
|
19
|
+
* Parameter with type store. 'google-play', 'app-gallery' or 'app-store'
|
|
20
|
+
*/
|
|
21
|
+
type?: StoreType;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Parameter with palette: 'dark' - black background, 'light' - white background
|
|
25
|
+
*/
|
|
26
|
+
palette: StoreBadgePalette;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Parameter with function for click
|
|
30
|
+
*/
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Test ID for testing
|
|
35
|
+
*/
|
|
36
|
+
"data-testid"?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Additional className
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: any;
|
|
43
|
+
}
|
|
44
|
+
declare var StoreBadge: React.ForwardRefExoticComponent<{
|
|
45
|
+
...StoreBadgeProps,
|
|
46
|
+
...React.RefAttributes<any>,
|
|
47
|
+
}>;
|
|
48
|
+
export type { StoreBadgePalette, StoreBadgeProps, StoreProps, StoreType };
|
|
49
|
+
declare export { StoreBadge };
|