@xsolla/xui-game-card 0.119.0 → 0.121.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-game-card",
3
- "version": "0.119.0",
3
+ "version": "0.121.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "test:coverage": "vitest run --coverage"
15
15
  },
16
16
  "dependencies": {
17
- "@xsolla/xui-core": "0.119.0",
18
- "@xsolla/xui-primitives-core": "0.119.0"
17
+ "@xsolla/xui-core": "0.121.0",
18
+ "@xsolla/xui-primitives-core": "0.121.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": ">=16.8.0",
@@ -1,84 +0,0 @@
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 from "react";
9
- declare type GameCardSize = "lg" | "md" | "sm";
10
- declare type LootBadgeTier = "best" | "better" | "good";
11
- declare interface GameCardProps {
12
- /**
13
- * Game artwork image URL
14
- */
15
- image: string;
16
-
17
- /**
18
- * Game title
19
- */
20
- title: string;
21
-
22
- /**
23
- * Game subtitle (e.g., genre tags)
24
- */
25
- subtitle?: string;
26
-
27
- /**
28
- * Size variant of the card
29
- */
30
- size?: GameCardSize;
31
-
32
- /**
33
- * Loot tier badge displayed above tags on the image
34
- */
35
- lootBadge?: LootBadgeTier;
36
-
37
- /**
38
- * Custom content for top-left corner tags
39
- */
40
- tagsTopLeft?: React.ReactNode;
41
-
42
- /**
43
- * Custom content for top-right corner tags
44
- */
45
- tagsTopRight?: React.ReactNode;
46
-
47
- /**
48
- * Custom trailing content (button, price, etc.) - overrides buttonText if provided
49
- */
50
- trailing?: React.ReactNode;
51
-
52
- /**
53
- * Button label text (used if trailing is not provided)
54
- */
55
- buttonText?: string;
56
-
57
- /**
58
- * Button click handler (used if trailing is not provided)
59
- */
60
- onButtonClick?: () => void;
61
-
62
- /**
63
- * Whether the button is disabled (used if trailing is not provided)
64
- */
65
- buttonDisabled?: boolean;
66
-
67
- /**
68
- * Card click handler
69
- */
70
- onPress?: () => void;
71
-
72
- /**
73
- * Alt text for game image
74
- */
75
- imageAlt?: string;
76
-
77
- /**
78
- * Custom className for the container
79
- */
80
- className?: string;
81
- }
82
- declare var GameCard: React.FC<GameCardProps>;
83
- export type { GameCardProps, GameCardSize, LootBadgeTier };
84
- declare export { GameCard };
package/web/index.js.flow DELETED
@@ -1,84 +0,0 @@
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 from "react";
9
- declare type GameCardSize = "lg" | "md" | "sm";
10
- declare type LootBadgeTier = "best" | "better" | "good";
11
- declare interface GameCardProps {
12
- /**
13
- * Game artwork image URL
14
- */
15
- image: string;
16
-
17
- /**
18
- * Game title
19
- */
20
- title: string;
21
-
22
- /**
23
- * Game subtitle (e.g., genre tags)
24
- */
25
- subtitle?: string;
26
-
27
- /**
28
- * Size variant of the card
29
- */
30
- size?: GameCardSize;
31
-
32
- /**
33
- * Loot tier badge displayed above tags on the image
34
- */
35
- lootBadge?: LootBadgeTier;
36
-
37
- /**
38
- * Custom content for top-left corner tags
39
- */
40
- tagsTopLeft?: React.ReactNode;
41
-
42
- /**
43
- * Custom content for top-right corner tags
44
- */
45
- tagsTopRight?: React.ReactNode;
46
-
47
- /**
48
- * Custom trailing content (button, price, etc.) - overrides buttonText if provided
49
- */
50
- trailing?: React.ReactNode;
51
-
52
- /**
53
- * Button label text (used if trailing is not provided)
54
- */
55
- buttonText?: string;
56
-
57
- /**
58
- * Button click handler (used if trailing is not provided)
59
- */
60
- onButtonClick?: () => void;
61
-
62
- /**
63
- * Whether the button is disabled (used if trailing is not provided)
64
- */
65
- buttonDisabled?: boolean;
66
-
67
- /**
68
- * Card click handler
69
- */
70
- onPress?: () => void;
71
-
72
- /**
73
- * Alt text for game image
74
- */
75
- imageAlt?: string;
76
-
77
- /**
78
- * Custom className for the container
79
- */
80
- className?: string;
81
- }
82
- declare var GameCard: React.FC<GameCardProps>;
83
- export type { GameCardProps, GameCardSize, LootBadgeTier };
84
- declare export { GameCard };