@xsolla/xui-textarea 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 +35 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # @xsolla/xui-textarea
2
+
3
+ Accessible multi-line text input rendered as a native `<textarea>` element.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-textarea
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { TextArea } from '@xsolla/xui-textarea';
15
+
16
+ <TextArea
17
+ placeholder="Enter a description"
18
+ value={text}
19
+ onChangeText={setText}
20
+ errorMessage="This field is required"
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ ### TextArea
27
+
28
+ | Prop | Type | Default | Description |
29
+ |------|------|---------|-------------|
30
+ | `value` | `string` | — | Controlled value |
31
+ | `placeholder` | `string` | — | Placeholder text |
32
+ | `onChangeText` | `(text: string) => void` | — | Called with the new string value on change |
33
+ | `size` | `'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs'` | `'md'` | Textarea size |
34
+ | `disabled` | `boolean` | `false` | Disables the textarea |
35
+ | `errorMessage` | `string` | — | Error text displayed below; also sets invalid state |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-textarea",
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",