intl-tel-input 24.3.2 → 24.3.3
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 +5 -5
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +2 -2
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +2 -1
- package/react/README.md +5 -6
- package/react/build/IntlTelInput.cjs +1 -1
- package/react/build/IntlTelInput.js +1 -1
- package/react/build/IntlTelInputWithUtils.cjs +1 -1
- package/react/build/IntlTelInputWithUtils.js +1 -1
- package/vue/README.md +41 -0
- package/vue/build/IntlTelInput.mjs +2534 -0
- package/vue/build/IntlTelInputWithUtils.mjs +8608 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-tel-input",
|
|
3
|
-
"version": "24.3.
|
|
3
|
+
"version": "24.3.3",
|
|
4
4
|
"description": "A JavaScript plugin for entering and validating international telephone numbers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"international",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"files": [
|
|
71
71
|
"build/*",
|
|
72
72
|
"react/build/*",
|
|
73
|
+
"vue/build/*",
|
|
73
74
|
"CHANGELOG.md",
|
|
74
75
|
"LICENSE",
|
|
75
76
|
"package.json",
|
package/react/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# IntlTelInput React Component
|
|
2
|
-
A React component wrapper for the [intl-tel-input](https://github.com/jackocnr/intl-tel-input) JavaScript plugin. View the source code
|
|
2
|
+
A React component wrapper for the [intl-tel-input](https://github.com/jackocnr/intl-tel-input) JavaScript plugin. View the [source code](https://github.com/jackocnr/intl-tel-input/blob/master/react/src/intl-tel-input/react.tsx).
|
|
3
3
|
|
|
4
4
|
## Table of Contents
|
|
5
5
|
- [Demo and Examples](#demo-and-examples)
|
|
@@ -14,7 +14,7 @@ Check out [Storybook](https://intl-tel-input.com/storybook/?path=/docs/intltelin
|
|
|
14
14
|
|
|
15
15
|
## Getting Started
|
|
16
16
|
```js
|
|
17
|
-
import IntlTelInput from "intl-tel-input/
|
|
17
|
+
import IntlTelInput from "intl-tel-input/reactWithUtils";
|
|
18
18
|
import "intl-tel-input/styles";
|
|
19
19
|
|
|
20
20
|
<IntlTelInput
|
|
@@ -22,17 +22,16 @@ import "intl-tel-input/styles";
|
|
|
22
22
|
onChangeValidity={setIsValid}
|
|
23
23
|
initOptions={{
|
|
24
24
|
initialCountry: "us",
|
|
25
|
-
utilsScript: "path/to/utils.js",
|
|
26
25
|
}}
|
|
27
26
|
/>
|
|
28
27
|
```
|
|
29
28
|
|
|
30
|
-
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
|
|
29
|
+
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
|
|
31
30
|
|
|
32
|
-
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"
|
|
31
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.3.3/build/js/utils.js"`.
|
|
33
32
|
|
|
34
33
|
## Props
|
|
35
|
-
Here's a list of all of the current props you can pass to the IntlTelInput
|
|
34
|
+
Here's a list of all of the current props you can pass to the IntlTelInput React component.
|
|
36
35
|
|
|
37
36
|
**disabled**
|
|
38
37
|
Type: `Boolean`, Default: `false`
|
package/vue/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# IntlTelInput Vue Component
|
|
2
|
+
A Vue component wrapper for the [intl-tel-input](https://github.com/jackocnr/intl-tel-input) JavaScript plugin. View the [source code](https://github.com/jackocnr/intl-tel-input/blob/master/vue/src/intl-tel-input/IntlTelInput.vue).
|
|
3
|
+
|
|
4
|
+
## Table of Contents
|
|
5
|
+
- [Demo and Examples](#demo-and-examples)
|
|
6
|
+
- [Getting Started](#getting-started)
|
|
7
|
+
- [Props](#props)
|
|
8
|
+
- [Accessing Instance Methods](#accessing-instance-methods)
|
|
9
|
+
- [Accessing Static Methods](#accessing-static-methods)
|
|
10
|
+
- [Troubleshooting](#troubleshooting)
|
|
11
|
+
|
|
12
|
+
## Demo and Examples
|
|
13
|
+
Try it for yourself by downloading the project and running `npm install` and then `npm run vue:demo` and then copying the given URL into your browser.
|
|
14
|
+
|
|
15
|
+
## Getting Started
|
|
16
|
+
```vue
|
|
17
|
+
<script setup>
|
|
18
|
+
import IntlTelInput from "../../src/intl-tel-input/IntlTelInputWithUtils.vue";
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<IntlTelInput
|
|
23
|
+
:options="{
|
|
24
|
+
initialCountry: 'us',
|
|
25
|
+
}"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/vue/demo/validation/App.vue) for a more fleshed-out example of how to handle validation [COMING SOON].
|
|
31
|
+
|
|
32
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.3.3/build/js/utils.js"`.
|
|
33
|
+
|
|
34
|
+
## Props
|
|
35
|
+
Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
|
|
36
|
+
|
|
37
|
+
**options**
|
|
38
|
+
Type: `Object`
|
|
39
|
+
An object containing all of the [initialisation options](https://github.com/jackocnr/intl-tel-input?tab=readme-ov-file#initialisation-options) to pass to the plugin. You can use these exactly the same as when using the plugin with pure JavaScript.
|
|
40
|
+
|
|
41
|
+
[MORE COMING SOON]
|