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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "24.3.2",
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 [here](https://github.com/jackocnr/intl-tel-input/blob/master/react/src/intl-tel-input/react.tsx).
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/react";
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"` instead, 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.2/build/js/utils.js"`.
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 react component.
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`
@@ -3099,7 +3099,7 @@ var intlTelInput = Object.assign(
3099
3099
  //* A map from instance ID to instance object.
3100
3100
  instances: {},
3101
3101
  loadUtils,
3102
- version: "24.3.2"
3102
+ version: "24.3.3"
3103
3103
  }
3104
3104
  );
3105
3105
  var intl_tel_input_default = intlTelInput;
@@ -3063,7 +3063,7 @@ var intlTelInput = Object.assign(
3063
3063
  //* A map from instance ID to instance object.
3064
3064
  instances: {},
3065
3065
  loadUtils,
3066
- version: "24.3.2"
3066
+ version: "24.3.3"
3067
3067
  }
3068
3068
  );
3069
3069
  var intl_tel_input_default = intlTelInput;
@@ -3099,7 +3099,7 @@ var intlTelInput = Object.assign(
3099
3099
  //* A map from instance ID to instance object.
3100
3100
  instances: {},
3101
3101
  loadUtils,
3102
- version: "24.3.2"
3102
+ version: "24.3.3"
3103
3103
  }
3104
3104
  );
3105
3105
  var intl_tel_input_default = intlTelInput;
@@ -3063,7 +3063,7 @@ var intlTelInput = Object.assign(
3063
3063
  //* A map from instance ID to instance object.
3064
3064
  instances: {},
3065
3065
  loadUtils,
3066
- version: "24.3.2"
3066
+ version: "24.3.3"
3067
3067
  }
3068
3068
  );
3069
3069
  var intl_tel_input_default = intlTelInput;
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]