intl-tel-input 19.2.14 → 19.2.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/README.md +7 -7
- package/build/css/intlTelInput.min.css +1 -1
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput-jquery.js +8 -8
- package/build/js/intlTelInput-jquery.min.js +3 -3
- package/build/js/intlTelInput.js +8 -8
- package/build/js/intlTelInput.min.js +3 -3
- package/composer.json +1 -1
- package/grunt/replace.js +0 -3
- package/package.json +2 -2
- package/react/build/IntlTelInput.cjs.js +1 -1
- package/react/build/IntlTelInput.cjs.js.map +2 -2
- package/react/build/IntlTelInput.esm.js +1 -1
- package/react/build/IntlTelInput.esm.js.map +2 -2
- package/react/demo/SimpleApp.js +2 -6
- package/react/demo/ValidationApp.js +1 -1
- package/react/demo/simple-bundle.js +645 -658
- package/react/demo/validation-bundle.js +646 -657
- package/src/js/intlTelInput.js +11 -5
package/react/demo/SimpleApp.js
CHANGED
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
/* eslint-disable react/jsx-filename-extension */
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { createRoot } from 'react-dom/client';
|
|
6
|
-
import IntlTelInput from '../build/IntlTelInput.
|
|
7
|
-
|
|
8
|
-
// defined in package.json scripts section
|
|
9
|
-
const version = process.env.VERSION;
|
|
6
|
+
import IntlTelInput from '../build/IntlTelInput.esm';
|
|
10
7
|
|
|
11
8
|
const App = () => (
|
|
12
9
|
<IntlTelInput
|
|
13
10
|
initOptions={{
|
|
14
11
|
initialCountry: "us",
|
|
15
|
-
|
|
16
|
-
utilsScript: `https://cdn.jsdelivr.net/npm/intl-tel-input@${version}/build/js/utils.js`,
|
|
12
|
+
utilsScript: "../../build/js/utils.js",
|
|
17
13
|
}}
|
|
18
14
|
/>
|
|
19
15
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable react/jsx-filename-extension */
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { createRoot } from 'react-dom/client';
|
|
6
|
-
import IntlTelInput from '../build/IntlTelInput.
|
|
6
|
+
import IntlTelInput from '../build/IntlTelInput.esm';
|
|
7
7
|
|
|
8
8
|
const errorMap = [
|
|
9
9
|
"Invalid number",
|