@xsolla/xui-game-card 0.149.1 → 0.151.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/README.md +0 -14
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@ A cross-platform React card component for displaying game promotions with custom
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @xsolla/xui-game-card
|
|
9
|
-
# or
|
|
10
|
-
yarn add @xsolla/xui-game-card
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Demo
|
|
@@ -201,18 +199,6 @@ A card component for displaying game promotions.
|
|
|
201
199
|
| md | 280:158 (~16:9) | 280px |
|
|
202
200
|
| sm | 200:113 (~16:9) | 200px |
|
|
203
201
|
|
|
204
|
-
## Theming
|
|
205
|
-
|
|
206
|
-
GameCard uses the design system theme for colors:
|
|
207
|
-
|
|
208
|
-
```typescript
|
|
209
|
-
// Colors accessed via theme
|
|
210
|
-
theme.colors.background.primary // Card background
|
|
211
|
-
theme.colors.content.primary // Title text
|
|
212
|
-
theme.colors.content.tertiary // Subtitle text
|
|
213
|
-
theme.shadow.surface // Card shadow
|
|
214
|
-
```
|
|
215
|
-
|
|
216
202
|
## Accessibility
|
|
217
203
|
|
|
218
204
|
- Uses semantic HTML structure
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-game-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.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.
|
|
18
|
-
"@xsolla/xui-primitives-core": "0.
|
|
17
|
+
"@xsolla/xui-core": "0.151.0",
|
|
18
|
+
"@xsolla/xui-primitives-core": "0.151.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.0",
|