@xsolla/xui-input-password 0.96.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 +44 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @xsolla/xui-input-password
2
+
3
+ Password input with visibility toggle, clear button, and validation check support.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-input-password
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { InputPassword } from '@xsolla/xui-input-password';
15
+
16
+ <InputPassword
17
+ label="Password"
18
+ placeholder="Enter password"
19
+ extraSee
20
+ extraClear
21
+ value={value}
22
+ onChange={(e) => setValue(e.target.value)}
23
+ errorMessage="Password is too short"
24
+ />
25
+ ```
26
+
27
+ ## Props
28
+
29
+ ### InputPassword
30
+
31
+ | Prop | Type | Default | Description |
32
+ |------|------|---------|-------------|
33
+ | `value` | `string` | — | Controlled value |
34
+ | `placeholder` | `string` | — | Placeholder text |
35
+ | `onChange` | `(e: ChangeEvent) => void` | — | Change handler |
36
+ | `onChangeText` | `(text: string) => void` | — | Alternative change handler receiving the string value |
37
+ | `size` | `'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs'` | `'md'` | Input size |
38
+ | `disabled` | `boolean` | `false` | Disables the input |
39
+ | `label` | `string` | — | Label displayed above the input |
40
+ | `helperText` | `string` | — | Helper text below the input (hidden when `errorMessage` is set) |
41
+ | `errorMessage` | `string` | — | Error text displayed below; also sets invalid state |
42
+ | `error` | `boolean` | — | Sets invalid state without a message |
43
+ | `extraSee` | `boolean` | `false` | Shows a visibility toggle button |
44
+ | `extraClear` | `boolean` | `false` | Shows a clear button when the field has a value |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-input-password",
3
- "version": "0.96.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",
@@ -13,9 +13,9 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.96.0",
17
- "@xsolla/xui-icons": "0.96.0",
18
- "@xsolla/xui-primitives-core": "0.96.0"
16
+ "@xsolla/xui-core": "0.97.0",
17
+ "@xsolla/xui-icons": "0.97.0",
18
+ "@xsolla/xui-primitives-core": "0.97.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": ">=16.8.0",