@xsolla/xui-feedback 0.95.0 → 0.97.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 +37 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @xsolla/xui-feedback
|
|
2
|
+
|
|
3
|
+
Convenience re-export bundle combining notification, spinner, tooltip, and toggletip packages.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @xsolla/xui-feedback
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
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
|
+
```
|
|
26
|
+
|
|
27
|
+
## Components
|
|
28
|
+
|
|
29
|
+
This package re-exports all components from:
|
|
30
|
+
|
|
31
|
+
- `@xsolla/xui-notification` — inline and toast-style banners
|
|
32
|
+
- `@xsolla/xui-notification-panel` — notification panel container
|
|
33
|
+
- `@xsolla/xui-spinner` — loading spinner
|
|
34
|
+
- `@xsolla/xui-tooltip` — hover-triggered info overlay
|
|
35
|
+
- `@xsolla/xui-toggletip` — click-triggered info popover
|
|
36
|
+
|
|
37
|
+
Refer to the individual package READMEs for full prop documentation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-feedback",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.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.97.0",
|
|
16
|
+
"@xsolla/xui-notification-panel": "0.97.0",
|
|
17
|
+
"@xsolla/xui-spinner": "0.97.0",
|
|
18
|
+
"@xsolla/xui-toggletip": "0.97.0",
|
|
19
|
+
"@xsolla/xui-tooltip": "0.97.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@vitest/coverage-v8": "^4.0.18",
|