@startupjs-ui/password-input 0.1.13 → 0.1.16
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.
- package/CHANGELOG.md +8 -0
- package/README.mdx +7 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.16](https://github.com/startupjs/startupjs-ui/compare/v0.1.15...v0.1.16) (2026-02-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @startupjs-ui/password-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.1.13](https://github.com/startupjs/startupjs-ui/compare/v0.1.12...v0.1.13) (2026-02-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @startupjs-ui/password-input
|
package/README.mdx
CHANGED
|
@@ -4,8 +4,9 @@ import { Sandbox } from '@startupjs-ui/docs'
|
|
|
4
4
|
|
|
5
5
|
# PasswordInput
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Inherits [TextInput](/docs/forms/TextInput) props.
|
|
8
|
+
|
|
9
|
+
PasswordInput is a text field designed for entering passwords. It obscures the entered text by default and includes a built-in toggle button (eye icon) that lets users show or hide their password.
|
|
9
10
|
|
|
10
11
|
```jsx
|
|
11
12
|
import { PasswordInput } from 'startupjs-ui'
|
|
@@ -13,6 +14,8 @@ import { PasswordInput } from 'startupjs-ui'
|
|
|
13
14
|
|
|
14
15
|
## Simple example
|
|
15
16
|
|
|
17
|
+
Use `value` and `onChangeText` to control the input. The password text is hidden by default and can be revealed by pressing the eye icon on the right side of the field.
|
|
18
|
+
|
|
16
19
|
```jsx example
|
|
17
20
|
const [password, setPassword] = useState()
|
|
18
21
|
|
|
@@ -26,6 +29,8 @@ return (
|
|
|
26
29
|
|
|
27
30
|
## Disabled
|
|
28
31
|
|
|
32
|
+
Set the `disabled` prop to prevent user interaction with the input.
|
|
33
|
+
|
|
29
34
|
```jsx example
|
|
30
35
|
return (
|
|
31
36
|
<PasswordInput
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/password-input",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@startupjs-ui/core": "^0.1.11",
|
|
12
|
-
"@startupjs-ui/text-input": "^0.1.
|
|
12
|
+
"@startupjs-ui/text-input": "^0.1.16"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "*",
|
|
16
16
|
"react-native": "*",
|
|
17
17
|
"startupjs": "*"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "9943aa3566d5d80f5b404473906eb3c0611f9ee5"
|
|
20
20
|
}
|