intl-tel-input 25.15.0 → 25.15.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.
Files changed (79) hide show
  1. package/README.md +21 -19
  2. package/angular/README.md +1 -1
  3. package/angular/build/IntlTelInput.js +1 -1
  4. package/angular/build/IntlTelInputWithUtils.js +125 -186
  5. package/build/js/data.js +1 -1
  6. package/build/js/data.min.js +1 -1
  7. package/build/js/i18n/zh-hk/countries.js +245 -0
  8. package/build/js/i18n/zh-hk/index.js +5 -0
  9. package/build/js/i18n/zh-hk/interface.js +14 -0
  10. package/build/js/intlTelInput.js +2 -2
  11. package/build/js/intlTelInput.min.js +2 -2
  12. package/build/js/intlTelInputWithUtils.js +126 -187
  13. package/build/js/intlTelInputWithUtils.min.js +2 -2
  14. package/build/js/utils.js +53 -54
  15. package/package.json +2 -2
  16. package/react/README.md +4 -2
  17. package/react/build/IntlTelInput.cjs +1 -1
  18. package/react/build/IntlTelInput.js +1 -1
  19. package/react/build/IntlTelInputWithUtils.cjs +125 -186
  20. package/react/build/IntlTelInputWithUtils.js +125 -186
  21. package/svelte/README.md +7 -9
  22. package/svelte/build/IntlTelInput.mjs +1329 -1329
  23. package/svelte/build/IntlTelInputWithUtils.mjs +1829 -1890
  24. package/vue/README.md +7 -9
  25. package/vue/build/IntlTelInput.mjs +1 -1
  26. package/vue/build/IntlTelInputWithUtils.mjs +125 -186
  27. package/vue/build/exports/IntlTelInput.mjs +1 -1
  28. package/vue/build/exports/IntlTelInputWithUtils.mjs +1 -1
  29. package/vue/build/intl-tel-input/data.d.ts +18 -0
  30. package/vue/build/intl-tel-input/i18n/ar/index.d.ts +3 -0
  31. package/vue/build/intl-tel-input/i18n/bg/index.d.ts +3 -0
  32. package/vue/build/intl-tel-input/i18n/bn/index.d.ts +3 -0
  33. package/vue/build/intl-tel-input/i18n/bs/index.d.ts +3 -0
  34. package/vue/build/intl-tel-input/i18n/ca/index.d.ts +3 -0
  35. package/vue/build/intl-tel-input/i18n/cs/index.d.ts +3 -0
  36. package/vue/build/intl-tel-input/i18n/da/index.d.ts +3 -0
  37. package/vue/build/intl-tel-input/i18n/de/index.d.ts +3 -0
  38. package/vue/build/intl-tel-input/i18n/ee/index.d.ts +3 -0
  39. package/vue/build/intl-tel-input/i18n/el/index.d.ts +3 -0
  40. package/vue/build/intl-tel-input/i18n/en/index.d.ts +3 -0
  41. package/vue/build/intl-tel-input/i18n/es/index.d.ts +3 -0
  42. package/vue/build/intl-tel-input/i18n/fa/index.d.ts +3 -0
  43. package/vue/build/intl-tel-input/i18n/fi/index.d.ts +3 -0
  44. package/vue/build/intl-tel-input/i18n/fr/index.d.ts +3 -0
  45. package/vue/build/intl-tel-input/i18n/hi/index.d.ts +3 -0
  46. package/vue/build/intl-tel-input/i18n/hr/index.d.ts +3 -0
  47. package/vue/build/intl-tel-input/i18n/hu/index.d.ts +3 -0
  48. package/vue/build/intl-tel-input/i18n/id/index.d.ts +3 -0
  49. package/vue/build/intl-tel-input/i18n/index.d.ts +43 -0
  50. package/vue/build/intl-tel-input/i18n/it/index.d.ts +3 -0
  51. package/vue/build/intl-tel-input/i18n/ja/index.d.ts +3 -0
  52. package/vue/build/intl-tel-input/i18n/ko/index.d.ts +3 -0
  53. package/vue/build/intl-tel-input/i18n/lt/index.d.ts +3 -0
  54. package/vue/build/intl-tel-input/i18n/mr/index.d.ts +3 -0
  55. package/vue/build/intl-tel-input/i18n/nl/index.d.ts +3 -0
  56. package/vue/build/intl-tel-input/i18n/no/index.d.ts +3 -0
  57. package/vue/build/intl-tel-input/i18n/pl/index.d.ts +3 -0
  58. package/vue/build/intl-tel-input/i18n/pt/index.d.ts +3 -0
  59. package/vue/build/intl-tel-input/i18n/ro/index.d.ts +3 -0
  60. package/vue/build/intl-tel-input/i18n/ru/index.d.ts +3 -0
  61. package/vue/build/intl-tel-input/i18n/sk/index.d.ts +3 -0
  62. package/vue/build/intl-tel-input/i18n/sl/index.d.ts +3 -0
  63. package/vue/build/intl-tel-input/i18n/sq/index.d.ts +3 -0
  64. package/vue/build/intl-tel-input/i18n/sr/index.d.ts +3 -0
  65. package/vue/build/intl-tel-input/i18n/sv/index.d.ts +3 -0
  66. package/vue/build/intl-tel-input/i18n/te/index.d.ts +3 -0
  67. package/vue/build/intl-tel-input/i18n/th/index.d.ts +3 -0
  68. package/vue/build/intl-tel-input/i18n/tr/index.d.ts +3 -0
  69. package/vue/build/intl-tel-input/i18n/types.d.ts +10 -0
  70. package/vue/build/intl-tel-input/i18n/uk/index.d.ts +3 -0
  71. package/vue/build/intl-tel-input/i18n/ur/index.d.ts +3 -0
  72. package/vue/build/intl-tel-input/i18n/uz/index.d.ts +3 -0
  73. package/vue/build/intl-tel-input/i18n/vi/index.d.ts +3 -0
  74. package/vue/build/intl-tel-input/i18n/zh/index.d.ts +3 -0
  75. package/vue/build/intl-tel-input/intlTelInputWithUtils.d.ts +2 -0
  76. package/vue/build/{intl-tel-input-Db39yQmC.mjs → intl-tel-input-f0-6rrpA.mjs} +136 -138
  77. package/vue/build/modules/core/ui.d.ts +0 -1
  78. package/vue/build/modules/format/formatting.d.ts +1 -1
  79. package/vue/build/modules/types/public-api.d.ts +2 -1
package/svelte/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # IntlTelInput Svelte Component
1
+ # IntlTelInput Svelte Component (Beta)
2
2
  A Svelte 5 component wrapper for the [intl-tel-input](https://github.com/jackocnr/intl-tel-input) JavaScript plugin. View the [source code](https://github.com/jackocnr/intl-tel-input/blob/master/svelte/src/intl-tel-input/IntlTelInput.svelte).
3
3
 
4
4
  ## Table of Contents
@@ -10,7 +10,7 @@ A Svelte 5 component wrapper for the [intl-tel-input](https://github.com/jackocn
10
10
  - [Accessing Static Methods](#accessing-static-methods)
11
11
 
12
12
  ## Demo
13
- Try it for yourself by downloading the project and running `npm install` and then `npm run svelte:demo` and then copy the given URL into your browser.
13
+ Try it for yourself by downloading and building the project yourself in 3 simple steps. You just need to initialise the submodules with `git submodule update --init --recursive`, then run `npm install`, and then `npm run build`. You can then run `npm run svelte:demo` and copy the given URL into your browser. By default, this is setup to show the validation demo - you can change this by locating the `"svelte:demo"` task in the scripts section of package.json, and updating the demo path accordingly. View a list of available demos [here](https://github.com/jackocnr/intl-tel-input/tree/master/svelte/demo).
14
14
 
15
15
  ## Getting Started
16
16
  ```svelte
@@ -20,17 +20,15 @@ Try it for yourself by downloading the project and running `npm install` and the
20
20
  </script>
21
21
 
22
22
  <IntlTelInput
23
- options={{ initialCountry: 'us' }}
23
+ options={{
24
+ initialCountry: 'us',
25
+ }}
24
26
  />
25
27
  ```
26
28
 
27
- 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. Make sure to change the path in the `package.json` script to the correct demo if you're running it locally e.g.:
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.
28
30
 
29
- ```
30
- "svelte:demo": "vite --config svelte/demo/[demo variant]/vite.config.mjs"
31
- ```
32
-
33
- 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@25.15.0/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@25.15.1/build/js/utils.js"`.
34
32
 
35
33
  ## Props
36
34
  Here's a list of all of the current props you can pass to the IntlTelInput Svelte component.