@xsolla/xui-divider 0.148.0 → 0.148.2

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 +63 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Divider
2
+
3
+ A cross-platform React divider component for visually separating content sections. Supports horizontal and vertical orientations.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @xsolla/xui-divider
9
+ # or
10
+ yarn add @xsolla/xui-divider
11
+ ```
12
+
13
+ ## Demo
14
+
15
+ ### Basic Divider
16
+
17
+ ```tsx
18
+ import * as React from 'react';
19
+ import { Divider } from '@xsolla/xui-divider';
20
+
21
+ export default function BasicDivider() {
22
+ return (
23
+ <div>
24
+ <p>Content above</p>
25
+ <Divider />
26
+ <p>Content below</p>
27
+ </div>
28
+ );
29
+ }
30
+ ```
31
+
32
+ ### Vertical Divider
33
+
34
+ ```tsx
35
+ import * as React from 'react';
36
+ import { Divider } from '@xsolla/xui-divider';
37
+
38
+ export default function VerticalDivider() {
39
+ return (
40
+ <div style={{ display: 'flex', alignItems: 'center', height: 40 }}>
41
+ <span>Left</span>
42
+ <Divider orientation="vertical" />
43
+ <span>Right</span>
44
+ </div>
45
+ );
46
+ }
47
+ ```
48
+
49
+ ## API Reference
50
+
51
+ ### Divider
52
+
53
+ **Divider Props:**
54
+
55
+ | Prop | Type | Default | Description |
56
+ | :--- | :--- | :------ | :---------- |
57
+ | orientation | `"horizontal" \| "vertical"` | `"horizontal"` | Direction of the divider. |
58
+
59
+ ## Theming
60
+
61
+ ```typescript
62
+ theme.colors.border.primary // Divider color
63
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-divider",
3
- "version": "0.148.0",
3
+ "version": "0.148.2",
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.148.0",
14
- "@xsolla/xui-primitives-core": "0.148.0"
13
+ "@xsolla/xui-core": "0.148.2",
14
+ "@xsolla/xui-primitives-core": "0.148.2"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=16.8.0",