@xsolla/xui-image-thumbnail 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 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@ A cross-platform React component for displaying image thumbnails with overlays,
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @xsolla/xui-image-thumbnail
|
|
9
|
-
# or
|
|
10
|
-
yarn add @xsolla/xui-image-thumbnail
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Demo
|
|
@@ -254,16 +252,6 @@ A media thumbnail component with tag support.
|
|
|
254
252
|
| 2:3 | 0.67 | Portrait |
|
|
255
253
|
| 9:16 | 0.56 | Vertical video |
|
|
256
254
|
|
|
257
|
-
## Theming
|
|
258
|
-
|
|
259
|
-
ImageThumbnail uses minimal theming, primarily relying on the passed props:
|
|
260
|
-
|
|
261
|
-
```typescript
|
|
262
|
-
// Overlay styles
|
|
263
|
-
overlay="fade" // linear-gradient(to top, rgba(0,0,0,0.48), transparent)
|
|
264
|
-
overlay="dark" // rgba(0,0,0,0.48)
|
|
265
|
-
```
|
|
266
|
-
|
|
267
255
|
## Accessibility
|
|
268
256
|
|
|
269
257
|
- Uses semantic `img` element with alt text
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-image-thumbnail",
|
|
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",
|