@nevuto/phone 0.0.36 → 0.0.37
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/README.md +31 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @nevuto/phone
|
|
2
|
+
|
|
3
|
+
International phone number input with a country picker.
|
|
4
|
+
|
|
5
|
+
Part of Nevuto UI, the design system of the Nevuto admin. Apps embedded in the admin can use it to look like part of it.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm i @nevuto/phone
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Peer dependencies: react, react-dom.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import '@nevuto/phone/styles.css'
|
|
19
|
+
import { PhoneInput } from '@nevuto/phone'
|
|
20
|
+
|
|
21
|
+
<PhoneInput defaultCountry="TR" value={phone} onChange={setPhone} />
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Links
|
|
25
|
+
|
|
26
|
+
- Nevuto UI docs: https://design.nevuto.com
|
|
27
|
+
- Building apps for Nevuto: https://nevuto.dev
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nevuto/phone",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.37",
|
|
4
|
+
"description": "International phone number input for Nevuto UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"libphonenumber-js": "^1.11.0",
|
|
25
|
-
"@nevuto/
|
|
26
|
-
"@nevuto/components": "^0.17.
|
|
27
|
-
"@nevuto/tokens": "0.0.
|
|
28
|
-
"@nevuto/
|
|
25
|
+
"@nevuto/hooks": "^0.0.3",
|
|
26
|
+
"@nevuto/components": "^0.17.1",
|
|
27
|
+
"@nevuto/tokens": "0.0.11",
|
|
28
|
+
"@nevuto/icons": "^0.1.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18.0.0",
|