@types/react-phone-number-input
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -82,3 +82,11 @@ // Type definitions for react-phone-number-input 3.0 | ||
countries?: string[]; | ||
/** | ||
* If country is specified then the phone number can only be input in "national" | ||
* (not "international") format, and will be parsed as a phone number belonging | ||
* to the country. Example: country="US" | ||
*/ | ||
country?: string; | ||
/** | ||
* Can be used to place some countries on top of the list of country <select/> options. | ||
@@ -141,3 +149,16 @@ * - "|" — inserts a separator. | ||
>; | ||
/** | ||
* If country is specified and international property is true then the phone number can only be input | ||
* in "international" format for that country, but without "country calling code" part. | ||
* For example, if country is "US" and international property is not passed then the phone number can | ||
* only be input in the "national" format for US ((213) 373-4253). But if country is "US" and | ||
* international property is true then the phone number will be input in the "international" format | ||
* for US (213 373 4253) without "country calling code" part (+1). This could be used for implementing | ||
* phone number input components that show "country calling code" part before the input field and then | ||
* the user can fill in the rest of their phone number in the input field. | ||
*/ | ||
international?: boolean; | ||
/** | ||
* If `country` property is passed along with `international={true}` property | ||
@@ -144,0 +165,0 @@ * then the phone number will be input in "international" format for that `country` |
{ | ||
"name": "@types/react-phone-number-input", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "TypeScript definitions for react-phone-number-input", | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "425f75dca972a3f9e69e95ea3ccf235151823548b7173961c1f98b40f573db0f", | ||
"typesPublisherContentHash": "346da8651e3a300ee3811b883c4d746e075f8d99754bb209f1565d2e96521df0", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 30 Jan 2020 21:23:42 GMT | ||
* Last updated: Thu, 12 Mar 2020 22:42:29 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Peter Yang (https://github.com/PeterYangIO), Adrien Etienne (https://github.com/AdrienEtienne), Jonathan Fleckenstein (https://github.com/fleck), and James Lismore (https://github.com/jlismore). | ||
These definitions were written by [Peter Yang](https://github.com/PeterYangIO), [Adrien Etienne](https://github.com/AdrienEtienne), [Jonathan Fleckenstein](https://github.com/fleck), and [James Lismore](https://github.com/jlismore). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11905
191