@xsolla/xui-game-card 0.123.0 → 0.124.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.
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
3
  type GameCardSize = "lg" | "md" | "sm";
4
- type LootBadgeTier = "best" | "better" | "good";
5
4
  interface GameCardProps {
6
5
  /** Game artwork image URL */
7
6
  image: string;
@@ -11,8 +10,8 @@ interface GameCardProps {
11
10
  subtitle?: string;
12
11
  /** Size variant of the card */
13
12
  size?: GameCardSize;
14
- /** Loot tier badge displayed above tags on the image */
15
- lootBadge?: LootBadgeTier;
13
+ /** Custom badge element displayed above tags on the image (top-left corner) */
14
+ badge?: React.ReactNode;
16
15
  /** Custom content for top-left corner tags */
17
16
  tagsTopLeft?: React.ReactNode;
18
17
  /** Custom content for top-right corner tags */
@@ -35,4 +34,4 @@ interface GameCardProps {
35
34
 
36
35
  declare const GameCard: React.FC<GameCardProps>;
37
36
 
38
- export { GameCard, type GameCardProps, type GameCardSize, type LootBadgeTier };
37
+ export { GameCard, type GameCardProps, type GameCardSize };
package/native/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
3
  type GameCardSize = "lg" | "md" | "sm";
4
- type LootBadgeTier = "best" | "better" | "good";
5
4
  interface GameCardProps {
6
5
  /** Game artwork image URL */
7
6
  image: string;
@@ -11,8 +10,8 @@ interface GameCardProps {
11
10
  subtitle?: string;
12
11
  /** Size variant of the card */
13
12
  size?: GameCardSize;
14
- /** Loot tier badge displayed above tags on the image */
15
- lootBadge?: LootBadgeTier;
13
+ /** Custom badge element displayed above tags on the image (top-left corner) */
14
+ badge?: React.ReactNode;
16
15
  /** Custom content for top-left corner tags */
17
16
  tagsTopLeft?: React.ReactNode;
18
17
  /** Custom content for top-right corner tags */
@@ -35,4 +34,4 @@ interface GameCardProps {
35
34
 
36
35
  declare const GameCard: React.FC<GameCardProps>;
37
36
 
38
- export { GameCard, type GameCardProps, type GameCardSize, type LootBadgeTier };
37
+ export { GameCard, type GameCardProps, type GameCardSize };