svelte-tel-input 3.5.1 → 3.5.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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -63,12 +63,12 @@ _Snippet would be too long_ - [Example](https://github.com/gyurielf/svelte-tel-i
63
63
  name="Country"
64
64
  bind:value={selectedCountry}
65
65
  >
66
- <option value={null} hidden={country !== null}>Please select</option>
66
+ <option value={null} hidden={selectedCountry !== null}>Please select</option>
67
67
  {#each normalizedCountries as currentCountry (currentCountry.id)}
68
68
  <option
69
69
  value={currentCountry.iso2}
70
- selected={currentCountry.iso2 === country}
71
- aria-selected={currentCountry.iso2 === country}
70
+ selected={currentCountry.iso2 === selectedCountry}
71
+ aria-selected={currentCountry.iso2 === selectedCountry}
72
72
  >
73
73
  {currentCountry.iso2} (+{currentCountry.dialCode})
74
74
  </option>
@@ -79,7 +79,7 @@ _Snippet would be too long_ - [Example](https://github.com/gyurielf/svelte-tel-i
79
79
  bind:value
80
80
  bind:valid
81
81
  bind:detailedValue
82
- class="basic-tel-input {!isValid ? 'invalid' : ''}"
82
+ class="basic-tel-input {!valid ? 'invalid' : ''}"
83
83
  />
84
84
  </div>
85
85
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-tel-input",
3
3
  "description": "svelte-tel-input",
4
- "version": "3.5.1",
4
+ "version": "3.5.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/gyurielf/svelte-tel-input.git"
@@ -27,7 +27,7 @@
27
27
  "pnpm": ">= 8"
28
28
  },
29
29
  "peerDependencies": {
30
- "svelte": "^3.58.0 || ^4.0.0"
30
+ "svelte": "^3.58.0 || ^4.0.0 || ^5.0.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "libphonenumber-js": "1.10.43"