intl-tel-input 24.2.0 → 24.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "24.2.0",
3
+ "version": "24.2.1",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
package/react/README.md CHANGED
@@ -29,7 +29,7 @@ import "intl-tel-input/styles";
29
29
 
30
30
  See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
31
31
 
32
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"` instead, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.2.0/build/js/utils.js"`.
32
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/reactWithUtils"` instead, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.2.1/build/js/utils.js"`.
33
33
 
34
34
  ## Props
35
35
  Here's a list of all of the current props you can pass to the IntlTelInput react component.
@@ -1763,7 +1763,7 @@ var Iti = class {
1763
1763
  this.options.nationalMode = false;
1764
1764
  this.options.countrySearch = true;
1765
1765
  }
1766
- if (!this.options.showFlags && !this.options.separateDialCode) {
1766
+ if (this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode) {
1767
1767
  this.options.nationalMode = false;
1768
1768
  }
1769
1769
  if (this.options.useFullscreenPopup && !this.options.dropdownContainer) {
@@ -3079,7 +3079,7 @@ var intlTelInput = Object.assign(
3079
3079
  //* A map from instance ID to instance object.
3080
3080
  instances: {},
3081
3081
  loadUtils,
3082
- version: "24.2.0"
3082
+ version: "24.2.1"
3083
3083
  }
3084
3084
  );
3085
3085
  var intl_tel_input_default = intlTelInput;
@@ -1727,7 +1727,7 @@ var Iti = class {
1727
1727
  this.options.nationalMode = false;
1728
1728
  this.options.countrySearch = true;
1729
1729
  }
1730
- if (!this.options.showFlags && !this.options.separateDialCode) {
1730
+ if (this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode) {
1731
1731
  this.options.nationalMode = false;
1732
1732
  }
1733
1733
  if (this.options.useFullscreenPopup && !this.options.dropdownContainer) {
@@ -3043,7 +3043,7 @@ var intlTelInput = Object.assign(
3043
3043
  //* A map from instance ID to instance object.
3044
3044
  instances: {},
3045
3045
  loadUtils,
3046
- version: "24.2.0"
3046
+ version: "24.2.1"
3047
3047
  }
3048
3048
  );
3049
3049
  var intl_tel_input_default = intlTelInput;
@@ -1763,7 +1763,7 @@ var Iti = class {
1763
1763
  this.options.nationalMode = false;
1764
1764
  this.options.countrySearch = true;
1765
1765
  }
1766
- if (!this.options.showFlags && !this.options.separateDialCode) {
1766
+ if (this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode) {
1767
1767
  this.options.nationalMode = false;
1768
1768
  }
1769
1769
  if (this.options.useFullscreenPopup && !this.options.dropdownContainer) {
@@ -3079,7 +3079,7 @@ var intlTelInput = Object.assign(
3079
3079
  //* A map from instance ID to instance object.
3080
3080
  instances: {},
3081
3081
  loadUtils,
3082
- version: "24.2.0"
3082
+ version: "24.2.1"
3083
3083
  }
3084
3084
  );
3085
3085
  var intl_tel_input_default = intlTelInput;
@@ -1727,7 +1727,7 @@ var Iti = class {
1727
1727
  this.options.nationalMode = false;
1728
1728
  this.options.countrySearch = true;
1729
1729
  }
1730
- if (!this.options.showFlags && !this.options.separateDialCode) {
1730
+ if (this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode) {
1731
1731
  this.options.nationalMode = false;
1732
1732
  }
1733
1733
  if (this.options.useFullscreenPopup && !this.options.dropdownContainer) {
@@ -3043,7 +3043,7 @@ var intlTelInput = Object.assign(
3043
3043
  //* A map from instance ID to instance object.
3044
3044
  instances: {},
3045
3045
  loadUtils,
3046
- version: "24.2.0"
3046
+ version: "24.2.1"
3047
3047
  }
3048
3048
  );
3049
3049
  var intl_tel_input_default = intlTelInput;