intl-tel-input 26.0.2 → 26.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "26.0.2",
3
+ "version": "26.0.3",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
package/react/README.md CHANGED
@@ -32,7 +32,7 @@ import "intl-tel-input/styles";
32
32
  See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
33
33
 
34
34
  ## Utils Script
35
- 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"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.2/build/js/utils.js"`.
35
+ 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"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js"`.
36
36
 
37
37
  ## Props
38
38
  Here's a list of all of the current props you can pass to the IntlTelInput React component.
@@ -3420,7 +3420,7 @@ var Iti = class _Iti {
3420
3420
  const { name, dialCode } = this.selectedCountryData;
3421
3421
  title = name;
3422
3422
  ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
3423
- selectedCountryInner = "";
3423
+ selectedCountryInner = showFlags ? "" : buildGlobeIcon();
3424
3424
  } else {
3425
3425
  title = i18n.noCountrySelected;
3426
3426
  ariaLabel = i18n.noCountrySelected;
@@ -3866,7 +3866,7 @@ var intlTelInput = Object.assign(
3866
3866
  attachUtils,
3867
3867
  startedLoadingUtilsScript: false,
3868
3868
  startedLoadingAutoCountry: false,
3869
- version: "26.0.2"
3869
+ version: "26.0.3"
3870
3870
  }
3871
3871
  );
3872
3872
  var intl_tel_input_default = intlTelInput;
@@ -3384,7 +3384,7 @@ var Iti = class _Iti {
3384
3384
  const { name, dialCode } = this.selectedCountryData;
3385
3385
  title = name;
3386
3386
  ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
3387
- selectedCountryInner = "";
3387
+ selectedCountryInner = showFlags ? "" : buildGlobeIcon();
3388
3388
  } else {
3389
3389
  title = i18n.noCountrySelected;
3390
3390
  ariaLabel = i18n.noCountrySelected;
@@ -3830,7 +3830,7 @@ var intlTelInput = Object.assign(
3830
3830
  attachUtils,
3831
3831
  startedLoadingUtilsScript: false,
3832
3832
  startedLoadingAutoCountry: false,
3833
- version: "26.0.2"
3833
+ version: "26.0.3"
3834
3834
  }
3835
3835
  );
3836
3836
  var intl_tel_input_default = intlTelInput;
@@ -3420,7 +3420,7 @@ var Iti = class _Iti {
3420
3420
  const { name, dialCode } = this.selectedCountryData;
3421
3421
  title = name;
3422
3422
  ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
3423
- selectedCountryInner = "";
3423
+ selectedCountryInner = showFlags ? "" : buildGlobeIcon();
3424
3424
  } else {
3425
3425
  title = i18n.noCountrySelected;
3426
3426
  ariaLabel = i18n.noCountrySelected;
@@ -3866,7 +3866,7 @@ var intlTelInput = Object.assign(
3866
3866
  attachUtils,
3867
3867
  startedLoadingUtilsScript: false,
3868
3868
  startedLoadingAutoCountry: false,
3869
- version: "26.0.2"
3869
+ version: "26.0.3"
3870
3870
  }
3871
3871
  );
3872
3872
  var intl_tel_input_default = intlTelInput;
@@ -3384,7 +3384,7 @@ var Iti = class _Iti {
3384
3384
  const { name, dialCode } = this.selectedCountryData;
3385
3385
  title = name;
3386
3386
  ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
3387
- selectedCountryInner = "";
3387
+ selectedCountryInner = showFlags ? "" : buildGlobeIcon();
3388
3388
  } else {
3389
3389
  title = i18n.noCountrySelected;
3390
3390
  ariaLabel = i18n.noCountrySelected;
@@ -3830,7 +3830,7 @@ var intlTelInput = Object.assign(
3830
3830
  attachUtils,
3831
3831
  startedLoadingUtilsScript: false,
3832
3832
  startedLoadingAutoCountry: false,
3833
- version: "26.0.2"
3833
+ version: "26.0.3"
3834
3834
  }
3835
3835
  );
3836
3836
  var intl_tel_input_default = intlTelInput;
package/svelte/README.md CHANGED
@@ -28,7 +28,7 @@ Try it for yourself by downloading and building the project yourself in 3 simple
28
28
 
29
29
  See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/svelte/demo/validation/App.svelte) for a more fleshed-out example of how to handle validation.
30
30
 
31
- 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/svelteWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/svelte"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.2/build/js/utils.js"`.
31
+ 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/svelteWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/svelte"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js"`.
32
32
 
33
33
  ## Props
34
34
  Here's a list of all of the current props you can pass to the IntlTelInput Svelte component.