intl-tel-input 19.2.1 → 19.2.2
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/demo/SimpleApp.js +18 -0
- package/react/demo/simple-bundle.js +25007 -0
- package/react/demo/{index.html → simple.html} +1 -1
- package/react/demo/{demo-bundle.js → validation-bundle.js} +1 -1
- package/react/demo/validation.html +18 -0
- package/react/src/IntlTelInput.js +6 -3
- /package/react/demo/{DemoApp.js → ValidationApp.js} +0 -0
|
@@ -24922,7 +24922,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24922
24922
|
}
|
|
24923
24923
|
});
|
|
24924
24924
|
|
|
24925
|
-
// react/demo/
|
|
24925
|
+
// react/demo/ValidationApp.js
|
|
24926
24926
|
var import_react = __toESM(require_react());
|
|
24927
24927
|
var import_client = __toESM(require_client());
|
|
24928
24928
|
var import_IntlTelInput = __toESM(require_IntlTelInput_cjs());
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>IntlTelInput React Component</title>
|
|
8
|
+
<link rel="stylesheet" href="../../build/css/intlTelInput.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../build/css/demo.css" />
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<h1>IntlTelInput React Component</h1>
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
<script src="./validation-bundle.js"></script>
|
|
16
|
+
</body>
|
|
17
|
+
|
|
18
|
+
</html>
|
|
@@ -54,10 +54,10 @@ const IntlTelInput = ({
|
|
|
54
54
|
|
|
55
55
|
IntlTelInput.propTypes = {
|
|
56
56
|
initialValue: PropTypes.string,
|
|
57
|
-
setNumber: PropTypes.func
|
|
57
|
+
setNumber: PropTypes.func,
|
|
58
58
|
setCountryIso: PropTypes.func,
|
|
59
|
-
setIsValid: PropTypes.func
|
|
60
|
-
setErrorCode: PropTypes.func
|
|
59
|
+
setIsValid: PropTypes.func,
|
|
60
|
+
setErrorCode: PropTypes.func,
|
|
61
61
|
initOptions: PropTypes.shape({
|
|
62
62
|
allowDropdown: PropTypes.bool,
|
|
63
63
|
autoInsertDialCode: PropTypes.bool,
|
|
@@ -87,7 +87,10 @@ IntlTelInput.propTypes = {
|
|
|
87
87
|
|
|
88
88
|
IntlTelInput.defaultProps = {
|
|
89
89
|
initialValue: "",
|
|
90
|
+
setNumber: () => {},
|
|
90
91
|
setCountryIso: () => {},
|
|
92
|
+
setIsValid: () => {},
|
|
93
|
+
setErrorCode: () => {},
|
|
91
94
|
initOptions: {},
|
|
92
95
|
};
|
|
93
96
|
|
|
File without changes
|