intl-tel-input 24.0.1 → 24.1.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.
- package/README.md +12 -9
- package/build/css/intlTelInput.css +253 -363
- package/build/css/intlTelInput.min.css +1 -1
- package/build/img/flags.png +0 -0
- package/build/img/flags.webp +0 -0
- package/build/img/flags@2x.png +0 -0
- package/build/img/flags@2x.webp +0 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +3 -3
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +3 -3
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +12 -3
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +2 -2
- package/react/build/IntlTelInput.js +2 -2
- package/react/build/IntlTelInputWithUtils.cjs +2 -2
- package/react/build/IntlTelInputWithUtils.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-tel-input",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"description": "A JavaScript plugin for entering and validating international telephone numbers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"international",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@types/react-dom": "^18.2.24",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
32
32
|
"@typescript-eslint/parser": "^8.1.0",
|
|
33
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
33
34
|
"cspell": "^8.6.1",
|
|
34
35
|
"esbuild": "^0.23.0",
|
|
35
36
|
"eslint": "^8.57.0",
|
|
@@ -62,7 +63,9 @@
|
|
|
62
63
|
"sass": "^1.74.1",
|
|
63
64
|
"sharp": "^0.33.5",
|
|
64
65
|
"time-grunt": "^2.0.0",
|
|
65
|
-
"typescript": "^5.5.3"
|
|
66
|
+
"typescript": "^5.5.3",
|
|
67
|
+
"vite": "^5.4.2",
|
|
68
|
+
"vue": "^3.4.38"
|
|
66
69
|
},
|
|
67
70
|
"files": [
|
|
68
71
|
"build/*",
|
|
@@ -92,7 +95,9 @@
|
|
|
92
95
|
"build:utils": "grunt build:utils",
|
|
93
96
|
"build:css": "grunt css",
|
|
94
97
|
"build:img": "grunt img",
|
|
95
|
-
"build:react": "grunt react"
|
|
98
|
+
"build:react": "grunt react",
|
|
99
|
+
"build:vue": "vite build --config vue/vite.config.js",
|
|
100
|
+
"vue:demo": "vite --config vue/demo/vite.config.js"
|
|
96
101
|
},
|
|
97
102
|
"style": "build/css/intlTelInput.css",
|
|
98
103
|
"main": "./build/js/intlTelInput.js",
|
|
@@ -113,6 +118,10 @@
|
|
|
113
118
|
"require": "./react/build/IntlTelInput.cjs",
|
|
114
119
|
"default": "./react/build/IntlTelInput.js"
|
|
115
120
|
},
|
|
121
|
+
"./vue": {
|
|
122
|
+
"import": "./vue/build/IntlTelInputWithUtils.mjs",
|
|
123
|
+
"default": "./vue/build/IntlTelInputWithUtils.umd.js"
|
|
124
|
+
},
|
|
116
125
|
"./reactWithUtils": {
|
|
117
126
|
"types": "./react/build/IntlTelInput.d.ts",
|
|
118
127
|
"require": "./react/build/IntlTelInputWithUtils.cjs",
|
package/react/README.md
CHANGED
|
@@ -29,7 +29,7 @@ import "intl-tel-input/styles";
|
|
|
29
29
|
|
|
30
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.
|
|
31
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/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.0
|
|
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.1.0/build/js/utils.js"`.
|
|
33
33
|
|
|
34
34
|
## Props
|
|
35
35
|
Here's a list of all of the current props you can pass to the IntlTelInput react component.
|
|
@@ -1838,7 +1838,7 @@ var Iti = class {
|
|
|
1838
1838
|
c.nodeById[this.id] = listItem;
|
|
1839
1839
|
let content = "";
|
|
1840
1840
|
if (this.options.showFlags) {
|
|
1841
|
-
content += `<div class='iti__flag
|
|
1841
|
+
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
1842
1842
|
}
|
|
1843
1843
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
1844
1844
|
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
@@ -2835,7 +2835,7 @@ var intlTelInput = Object.assign(
|
|
|
2835
2835
|
//* A map from instance ID to instance object.
|
|
2836
2836
|
instances: {},
|
|
2837
2837
|
loadUtils,
|
|
2838
|
-
version: "24.0
|
|
2838
|
+
version: "24.1.0"
|
|
2839
2839
|
}
|
|
2840
2840
|
);
|
|
2841
2841
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1802,7 +1802,7 @@ var Iti = class {
|
|
|
1802
1802
|
c.nodeById[this.id] = listItem;
|
|
1803
1803
|
let content = "";
|
|
1804
1804
|
if (this.options.showFlags) {
|
|
1805
|
-
content += `<div class='iti__flag
|
|
1805
|
+
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
1806
1806
|
}
|
|
1807
1807
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
1808
1808
|
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
@@ -2799,7 +2799,7 @@ var intlTelInput = Object.assign(
|
|
|
2799
2799
|
//* A map from instance ID to instance object.
|
|
2800
2800
|
instances: {},
|
|
2801
2801
|
loadUtils,
|
|
2802
|
-
version: "24.0
|
|
2802
|
+
version: "24.1.0"
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1838,7 +1838,7 @@ var Iti = class {
|
|
|
1838
1838
|
c.nodeById[this.id] = listItem;
|
|
1839
1839
|
let content = "";
|
|
1840
1840
|
if (this.options.showFlags) {
|
|
1841
|
-
content += `<div class='iti__flag
|
|
1841
|
+
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
1842
1842
|
}
|
|
1843
1843
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
1844
1844
|
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
@@ -2835,7 +2835,7 @@ var intlTelInput = Object.assign(
|
|
|
2835
2835
|
//* A map from instance ID to instance object.
|
|
2836
2836
|
instances: {},
|
|
2837
2837
|
loadUtils,
|
|
2838
|
-
version: "24.0
|
|
2838
|
+
version: "24.1.0"
|
|
2839
2839
|
}
|
|
2840
2840
|
);
|
|
2841
2841
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1802,7 +1802,7 @@ var Iti = class {
|
|
|
1802
1802
|
c.nodeById[this.id] = listItem;
|
|
1803
1803
|
let content = "";
|
|
1804
1804
|
if (this.options.showFlags) {
|
|
1805
|
-
content += `<div class='iti__flag
|
|
1805
|
+
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
1806
1806
|
}
|
|
1807
1807
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
1808
1808
|
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
@@ -2799,7 +2799,7 @@ var intlTelInput = Object.assign(
|
|
|
2799
2799
|
//* A map from instance ID to instance object.
|
|
2800
2800
|
instances: {},
|
|
2801
2801
|
loadUtils,
|
|
2802
|
-
version: "24.0
|
|
2802
|
+
version: "24.1.0"
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
var intl_tel_input_default = intlTelInput;
|