@xsolla/xui-divider 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 +33 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @xsolla/xui-divider
2
+
3
+ A horizontal rule component for separating layout sections, with optional title and dash-stroke style.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-divider
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { Divider } from "@xsolla/xui-divider";
15
+
16
+ {/* Plain rule */}
17
+ <Divider />
18
+
19
+ {/* With section title */}
20
+ <Divider title="Or continue with" titlePosition="center" />
21
+ ```
22
+
23
+ ## Props
24
+
25
+ ### Divider
26
+
27
+ | Prop | Type | Default | Description |
28
+ |------|------|---------|-------------|
29
+ | `size` | `"lg" \| "md" \| "sm"` | `"md"` | Controls the height and font size of the divider |
30
+ | `title` | `string` | — | Optional label rendered beside the rule; displayed in uppercase |
31
+ | `titlePosition` | `"left" \| "center" \| "right"` | `"left"` | Position of the title relative to the rule |
32
+ | `dashStroke` | `boolean` | `false` | Renders the rule as a dashed line |
33
+ | `decorative` | `boolean` | `false` | Hides the divider from screen readers when purely visual |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-divider",
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",