@xsolla/xui-display 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 +47 -33
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -1,44 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Display
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Convenience meta-package that re-exports every display component from the toolkit. Install one package instead of many; refer to each component's own page for detailed API and accessibility notes.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
npm install @xsolla/xui-display
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Imports
|
|
12
12
|
|
|
13
|
-
```
|
|
14
|
-
import {
|
|
13
|
+
```ts
|
|
14
|
+
import { Avatar, Badge, Cell, Divider, Tag, Typography } from '@xsolla/xui-display';
|
|
15
|
+
```
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { Typography, Status, Badge } from '@xsolla/xui-display';
|
|
21
|
+
|
|
22
|
+
export default function Example() {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<Typography variant="h3" color="primary">Title</Typography>
|
|
26
|
+
<Status palette="success">Online</Status>
|
|
27
|
+
<Badge tone="alert">9</Badge>
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
19
31
|
```
|
|
20
32
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
| Component | Source package |
|
|
24
|
-
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
33
|
+
## Re-exported packages
|
|
34
|
+
|
|
35
|
+
| Component(s) | Source package |
|
|
36
|
+
| :----------- | :------------- |
|
|
37
|
+
| Avatar | `@xsolla/xui-avatar` |
|
|
38
|
+
| Badge | `@xsolla/xui-badge` |
|
|
39
|
+
| Bounding | `@xsolla/xui-bounding` |
|
|
40
|
+
| Cell | `@xsolla/xui-cell` |
|
|
41
|
+
| Divider | `@xsolla/xui-divider` |
|
|
42
|
+
| GameCard | `@xsolla/xui-game-card` |
|
|
43
|
+
| IconWrapper | `@xsolla/xui-icon-wrapper` |
|
|
44
|
+
| Image | `@xsolla/xui-image` |
|
|
45
|
+
| ImageThumbnail | `@xsolla/xui-image-thumbnail` |
|
|
46
|
+
| Markdown | `@xsolla/xui-markdown` |
|
|
47
|
+
| ProgressBar | `@xsolla/xui-progress-bar` |
|
|
48
|
+
| ProgressLine | `@xsolla/xui-progress-line` |
|
|
49
|
+
| RichIcon | `@xsolla/xui-rich-icon` |
|
|
50
|
+
| Status | `@xsolla/xui-status` |
|
|
51
|
+
| Stepper | `@xsolla/xui-stepper` |
|
|
52
|
+
| StoreBadge | `@xsolla/xui-store-badge` |
|
|
53
|
+
| SupportingText | `@xsolla/xui-supporting-text` |
|
|
54
|
+
| SvgThemed | `@xsolla/xui-svg-themed` |
|
|
55
|
+
| Tag | `@xsolla/xui-tag` |
|
|
56
|
+
| Typography | `@xsolla/xui-typography` |
|
|
57
|
+
|
|
58
|
+
See each component's dedicated page for props, examples, and accessibility details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-display",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"types": "./web/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -12,26 +12,26 @@
|
|
|
12
12
|
"styled-components": ">=4"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@xsolla/xui-avatar": "0.
|
|
16
|
-
"@xsolla/xui-badge": "0.
|
|
17
|
-
"@xsolla/xui-bounding": "0.
|
|
18
|
-
"@xsolla/xui-cell": "0.
|
|
19
|
-
"@xsolla/xui-divider": "0.
|
|
20
|
-
"@xsolla/xui-game-card": "0.
|
|
21
|
-
"@xsolla/xui-icon-wrapper": "0.
|
|
22
|
-
"@xsolla/xui-image": "0.
|
|
23
|
-
"@xsolla/xui-image-thumbnail": "0.
|
|
24
|
-
"@xsolla/xui-markdown": "0.
|
|
25
|
-
"@xsolla/xui-progress-bar": "0.
|
|
26
|
-
"@xsolla/xui-progress-line": "0.
|
|
27
|
-
"@xsolla/xui-rich-icon": "0.
|
|
28
|
-
"@xsolla/xui-status": "0.
|
|
29
|
-
"@xsolla/xui-stepper": "0.
|
|
30
|
-
"@xsolla/xui-store-badge": "0.
|
|
31
|
-
"@xsolla/xui-supporting-text": "0.
|
|
32
|
-
"@xsolla/xui-svg-themed": "0.
|
|
33
|
-
"@xsolla/xui-tag": "0.
|
|
34
|
-
"@xsolla/xui-typography": "0.
|
|
15
|
+
"@xsolla/xui-avatar": "0.151.0",
|
|
16
|
+
"@xsolla/xui-badge": "0.151.0",
|
|
17
|
+
"@xsolla/xui-bounding": "0.151.0",
|
|
18
|
+
"@xsolla/xui-cell": "0.151.0",
|
|
19
|
+
"@xsolla/xui-divider": "0.151.0",
|
|
20
|
+
"@xsolla/xui-game-card": "0.151.0",
|
|
21
|
+
"@xsolla/xui-icon-wrapper": "0.151.0",
|
|
22
|
+
"@xsolla/xui-image": "0.151.0",
|
|
23
|
+
"@xsolla/xui-image-thumbnail": "0.151.0",
|
|
24
|
+
"@xsolla/xui-markdown": "0.151.0",
|
|
25
|
+
"@xsolla/xui-progress-bar": "0.151.0",
|
|
26
|
+
"@xsolla/xui-progress-line": "0.151.0",
|
|
27
|
+
"@xsolla/xui-rich-icon": "0.151.0",
|
|
28
|
+
"@xsolla/xui-status": "0.151.0",
|
|
29
|
+
"@xsolla/xui-stepper": "0.151.0",
|
|
30
|
+
"@xsolla/xui-store-badge": "0.151.0",
|
|
31
|
+
"@xsolla/xui-supporting-text": "0.151.0",
|
|
32
|
+
"@xsolla/xui-svg-themed": "0.151.0",
|
|
33
|
+
"@xsolla/xui-tag": "0.151.0",
|
|
34
|
+
"@xsolla/xui-typography": "0.151.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@vitest/coverage-v8": "^4.0.18",
|