intl-tel-input 19.2.1 → 19.2.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/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput-jquery.js +2 -2
- package/build/js/intlTelInput-jquery.min.js +2 -2
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/composer.json +1 -1
- package/package.json +2 -2
- package/react/build/IntlTelInput.cjs.js +2 -2
- package/react/build/IntlTelInput.cjs.js.map +3 -3
- package/react/build/IntlTelInput.esm.js +2 -2
- package/react/build/IntlTelInput.esm.js.map +3 -3
- package/react/demo/SimpleApp.js +18 -0
- package/react/demo/{DemoApp.js → ValidationApp.js} +3 -3
- package/react/demo/simple-bundle.js +25010 -0
- package/react/demo/{index.html → simple.html} +1 -1
- package/react/demo/{demo-bundle.js → validation-bundle.js} +25 -22
- package/react/demo/validation.html +18 -0
- package/react/src/IntlTelInput.js +18 -15
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable import/no-named-as-default-member */
|
|
2
|
+
/* eslint-disable import/no-named-as-default */
|
|
3
|
+
/* eslint-disable react/jsx-filename-extension */
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { createRoot } from 'react-dom/client';
|
|
6
|
+
import IntlTelInput from '../build/IntlTelInput.cjs';
|
|
7
|
+
|
|
8
|
+
const container = document.getElementById("app");
|
|
9
|
+
const root = createRoot(container);
|
|
10
|
+
root.render(
|
|
11
|
+
<IntlTelInput
|
|
12
|
+
initOptions={{
|
|
13
|
+
initialCountry: "us",
|
|
14
|
+
// use a CDN so it works on intl-tel-input.com
|
|
15
|
+
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@19.1.0/build/js/utils.js",
|
|
16
|
+
}}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
@@ -31,9 +31,9 @@ const DemoApp = () => {
|
|
|
31
31
|
return (
|
|
32
32
|
<form>
|
|
33
33
|
<IntlTelInput
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
onChangeNumber={setNumber}
|
|
35
|
+
onChangeValidity={setIsValid}
|
|
36
|
+
onChangeErrorCode={setErrorCode}
|
|
37
37
|
initOptions={{
|
|
38
38
|
initialCountry: "us",
|
|
39
39
|
utilsScript: "../../build/js/utils.js",
|