@xsolla/xui-feedback 0.150.0 → 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 +29 -23
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,37 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Feedback
|
|
2
2
|
|
|
3
|
-
Convenience re-
|
|
3
|
+
Convenience meta-package that re-exports every feedback 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-feedback
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Imports
|
|
12
12
|
|
|
13
|
-
```
|
|
13
|
+
```ts
|
|
14
14
|
import { Notification, Spinner, Tooltip, Toggletip } from '@xsolla/xui-feedback';
|
|
15
|
-
|
|
16
|
-
const Example = () => (
|
|
17
|
-
<>
|
|
18
|
-
<Notification tone="success" title="Saved" />
|
|
19
|
-
<Tooltip content="More info">
|
|
20
|
-
<button>Hover</button>
|
|
21
|
-
</Tooltip>
|
|
22
|
-
<Spinner />
|
|
23
|
-
</>
|
|
24
|
-
);
|
|
25
15
|
```
|
|
26
16
|
|
|
27
|
-
##
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { Notification, Tooltip, Spinner } from '@xsolla/xui-feedback';
|
|
21
|
+
|
|
22
|
+
export default function Example() {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<Notification tone="success" title="Saved" />
|
|
26
|
+
<Tooltip content="More info"><button>Hover</button></Tooltip>
|
|
27
|
+
<Spinner />
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
## Re-exported packages
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
| Component(s) | Source package |
|
|
36
|
+
| :----------- | :------------- |
|
|
37
|
+
| Notification | `@xsolla/xui-notification` |
|
|
38
|
+
| NotificationPanel | `@xsolla/xui-notification-panel` |
|
|
39
|
+
| Spinner | `@xsolla/xui-spinner` |
|
|
40
|
+
| Toggletip | `@xsolla/xui-toggletip` |
|
|
41
|
+
| Tooltip | `@xsolla/xui-tooltip` |
|
|
36
42
|
|
|
37
|
-
|
|
43
|
+
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-feedback",
|
|
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,11 +12,11 @@
|
|
|
12
12
|
"styled-components": ">=4"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@xsolla/xui-notification": "0.
|
|
16
|
-
"@xsolla/xui-notification-panel": "0.
|
|
17
|
-
"@xsolla/xui-spinner": "0.
|
|
18
|
-
"@xsolla/xui-toggletip": "0.
|
|
19
|
-
"@xsolla/xui-tooltip": "0.
|
|
15
|
+
"@xsolla/xui-notification": "0.151.0",
|
|
16
|
+
"@xsolla/xui-notification-panel": "0.151.0",
|
|
17
|
+
"@xsolla/xui-spinner": "0.151.0",
|
|
18
|
+
"@xsolla/xui-toggletip": "0.151.0",
|
|
19
|
+
"@xsolla/xui-tooltip": "0.151.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@vitest/coverage-v8": "^4.0.18",
|