intl-tel-input 18.0.3 → 18.1.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 (63) hide show
  1. package/.eslintrc +2 -8
  2. package/.vscode/settings.json +8 -0
  3. package/CHANGELOG.md +3 -0
  4. package/Gruntfile.js +0 -2
  5. package/README.md +24 -30
  6. package/build/css/intlTelInput.css +1 -1
  7. package/build/js/data.js +1 -1
  8. package/build/js/data.min.js +1 -1
  9. package/build/js/intlTelInput-jquery.js +213 -89
  10. package/build/js/intlTelInput-jquery.min.js +3 -3
  11. package/build/js/intlTelInput.js +213 -89
  12. package/build/js/intlTelInput.min.js +3 -3
  13. package/composer.json +1 -1
  14. package/demo.html +42 -43
  15. package/demo_rtl.html +21 -23
  16. package/grunt/template.js +2 -265
  17. package/package.json +4 -1
  18. package/src/css/intlTelInput.scss +1 -1
  19. package/src/js/intlTelInput.js +605 -341
  20. package/examples/css/countrySync.css +0 -10
  21. package/examples/css/isValidNumber.css +0 -12
  22. package/examples/css/prism.css +0 -126
  23. package/examples/gen/country-sync.html +0 -98
  24. package/examples/gen/default-country-ip.html +0 -62
  25. package/examples/gen/display-number.html +0 -47
  26. package/examples/gen/hidden-input.html +0 -54
  27. package/examples/gen/init-promise.html +0 -66
  28. package/examples/gen/is-valid-number.html +0 -86
  29. package/examples/gen/js/countrySync.js +0 -31
  30. package/examples/gen/js/defaultCountryIp.js +0 -11
  31. package/examples/gen/js/displayNumber.js +0 -4
  32. package/examples/gen/js/hiddenInput.js +0 -5
  33. package/examples/gen/js/initPromise.js +0 -9
  34. package/examples/gen/js/isValidNumber.js +0 -37
  35. package/examples/gen/js/modifyCountryData.js +0 -11
  36. package/examples/gen/js/multipleInstances.js +0 -13
  37. package/examples/gen/js/nationalMode.js +0 -18
  38. package/examples/gen/js/onlyCountriesEurope.js +0 -8
  39. package/examples/gen/modify-country-data.html +0 -52
  40. package/examples/gen/multiple-instances.html +0 -60
  41. package/examples/gen/national-mode.html +0 -63
  42. package/examples/gen/only-countries-europe.html +0 -49
  43. package/examples/js/countrySync.js.ejs +0 -31
  44. package/examples/js/defaultCountryIp.js.ejs +0 -11
  45. package/examples/js/displayNumber.js.ejs +0 -4
  46. package/examples/js/hiddenInput.js.ejs +0 -5
  47. package/examples/js/initPromise.js.ejs +0 -9
  48. package/examples/js/isValidNumber.js.ejs +0 -37
  49. package/examples/js/modifyCountryData.js.ejs +0 -11
  50. package/examples/js/multipleInstances.js.ejs +0 -13
  51. package/examples/js/nationalMode.js.ejs +0 -18
  52. package/examples/js/onlyCountriesEurope.js.ejs +0 -8
  53. package/examples/js/prism.js +0 -11
  54. package/examples/partials/countrySync.html +0 -13
  55. package/examples/partials/defaultCountryIp.html +0 -5
  56. package/examples/partials/displayNumber.html +0 -1
  57. package/examples/partials/hiddenInput.html +0 -4
  58. package/examples/partials/initPromise.html +0 -8
  59. package/examples/partials/isValidNumber.html +0 -3
  60. package/examples/partials/multipleInstances.html +0 -3
  61. package/examples/partials/nationalMode.html +0 -2
  62. package/examples/partials/simpleInput.html +0 -1
  63. package/examples/template.html.ejs +0 -43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "18.0.3",
3
+ "version": "18.1.1",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
@@ -21,7 +21,9 @@
21
21
  "babel-eslint": "^9.0.0",
22
22
  "custom-event-polyfill": "^1.0.6",
23
23
  "es6-promise": "^4.2.5",
24
+ "eslint": "^8.38.0",
24
25
  "eslint-config-airbnb": "^17.1.0",
26
+ "eslint-config-prettier": "^8.8.0",
25
27
  "eslint-plugin-import": "^2.14.0",
26
28
  "eslint-plugin-jsx-a11y": "^6.1.1",
27
29
  "eslint-plugin-react": "^7.11.1",
@@ -48,6 +50,7 @@
48
50
  "jquery": "^3.1.1",
49
51
  "load-grunt-config": "^0.19.2",
50
52
  "node-sass": "^6.0.1",
53
+ "prettier": "^2.8.7",
51
54
  "region-flags": "^1.1.0",
52
55
  "time-grunt": "^1.4.0"
53
56
  },
@@ -248,7 +248,7 @@ $mobilePopupMargin: 30px !default;
248
248
  // now that we have digits in this section, it needs this visual separation
249
249
  background-color: $hoverColor;
250
250
  }
251
- .iti__selected-dial-code {
251
+ &.iti--show-flags .iti__selected-dial-code {
252
252
  margin-left: $arrowPadding;
253
253
  }
254
254
  }