@xsolla/xui-progress-line 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.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @xsolla/xui-progress-line
2
+
3
+ Minimal horizontal progress line indicator with size and state variants.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-progress-line
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { ProgressLine } from '@xsolla/xui-progress-line';
15
+
16
+ <ProgressLine percent={75} size="md" state="default" />
17
+ ```
18
+
19
+ ## Props
20
+
21
+ ### ProgressLine
22
+
23
+ | Prop | Type | Default | Description |
24
+ |------|------|---------|-------------|
25
+ | `percent` | `number` | `0` | Progress value from 0 to 100 |
26
+ | `size` | `"sm" \| "md" \| "lg"` | `"md"` | Height of the progress line |
27
+ | `state` | `"default" \| "success" \| "error"` | `"default"` | Colour of the filled portion |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-progress-line",
3
- "version": "0.95.0",
3
+ "version": "0.97.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,8 +10,8 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-core": "0.95.0",
14
- "@xsolla/xui-primitives-core": "0.95.0"
13
+ "@xsolla/xui-core": "0.97.0",
14
+ "@xsolla/xui-primitives-core": "0.97.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=16.8.0",