intl-tel-input 19.2.0 → 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.
@@ -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>
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/jsx-filename-extension */
2
2
  import React, { useRef, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import intlTelInput from "..";
4
+ import intlTelInput from "../../build/js/intlTelInput";
5
5
 
6
6
  const IntlTelInput = ({
7
7
  initialValue,
@@ -54,10 +54,10 @@ const IntlTelInput = ({
54
54
 
55
55
  IntlTelInput.propTypes = {
56
56
  initialValue: PropTypes.string,
57
- setNumber: PropTypes.func.isRequired,
57
+ setNumber: PropTypes.func,
58
58
  setCountryIso: PropTypes.func,
59
- setIsValid: PropTypes.func.isRequired,
60
- setErrorCode: PropTypes.func.isRequired,
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