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/.eslintrc CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "airbnb",
2
+ "extends": ["airbnb", "prettier"],
3
3
  "parser": "babel-eslint",
4
4
  "env": {
5
5
  "browser": true,
@@ -8,13 +8,7 @@
8
8
  "arrow-parens": "off",
9
9
  "camelcase": "off",
10
10
  "class-methods-use-this": "off",
11
- "comma-dangle": ["error", {
12
- "arrays": "always-multiline",
13
- "exports": "always-multiline",
14
- "functions": "never",
15
- "imports": "always-multiline",
16
- "objects": "always-multiline",
17
- }],
11
+ "curly": ["error", "all"],
18
12
  "no-cond-assign": ["error", "except-parens"],
19
13
  "no-lonely-if": "off",
20
14
  "no-multi-assign": "off",
@@ -0,0 +1,8 @@
1
+ {
2
+ "editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
3
+ "editor.formatOnPaste": false, // required
4
+ "editor.formatOnType": false, // required
5
+ "editor.formatOnSaveMode": "file", // required to format on save
6
+ "files.autoSave": "onFocusChange", // optional but recommended
7
+ "vs-code-prettier-eslint.prettierLast": "false" // set as "true" to run 'prettier' last not first
8
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v18.1.1 (2023-04-13)
4
+ - Simplify nationalMode option. Previously, when nationalMode was set to false, the plugin was needlessly creating a worse UX for users who typed a valid national number in 2 situations: (1) it wouldn't update the flag between NANP countries if you typed a different area code (in national format), and (2) isValidNumber would return false for a valid national number.
5
+
3
6
  ## v18.0.0 (2023-04-07)
4
7
  - Remove autoHideDialCode option in favour of new autoInsertDialCode option
5
8
  - Allow nationalMode to be used with separateDialCode
package/Gruntfile.js CHANGED
@@ -16,8 +16,6 @@ module.exports = function(grunt) {
16
16
  // just javascript (babel must go before we add the wrapper, to keep it's generated methods inside, so not globals)
17
17
  grunt.registerTask('js', ['eslint', 'template:jsAddVersion', 'babel', 'concat', 'uglify', 'replace']);
18
18
 
19
- // build examples
20
- grunt.registerTask('examples', ['template']);
21
19
  // Travis CI
22
20
  grunt.registerTask('travis', ['jasmine']);
23
21
  // bump version number in 3 files, rebuild js to update headers, then commit, tag and push
package/README.md CHANGED
@@ -3,7 +3,7 @@ A JavaScript plugin for entering and validating international telephone numbers.
3
3
 
4
4
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vanilla.png" alt="Screenshot" width="424px" style="max-width: 100%" />
5
5
 
6
- If you like it, please consider making a donation, which you can do from [the demo page](http://intl-tel-input.com).
6
+ If you like it, please consider making a donation, which you can do from [the demo page](https://intl-tel-input.com).
7
7
 
8
8
  ## Sponsored by
9
9
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/twilio.png" height="100" />
@@ -27,7 +27,7 @@ Use <a href="https://www.twilio.com/blog/international-telephone-input-twilio?ut
27
27
 
28
28
 
29
29
  ## Demo and Examples
30
- You can view a live demo and some examples of how to use the various options here: http://intl-tel-input.com, or try it for yourself using the included demo.html.
30
+ You can view [a live demo](https://intl-tel-input.com) and see some examples of how to use the various options, or try it for yourself using the included demo.html.
31
31
 
32
32
 
33
33
  ## Features
@@ -39,6 +39,7 @@ You can view a live demo and some examples of how to use the various options her
39
39
  * Full validation, including specific error types
40
40
  * Retina flag icons
41
41
  * Lots of initialisation options for customisation, as well as public methods for interaction
42
+ * Accessibility provided via ARIA tags based on [W3's Select-Only Combobox Example](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/)
42
43
 
43
44
 
44
45
  ## Browser Compatibility
@@ -46,12 +47,12 @@ You can view a live demo and some examples of how to use the various options her
46
47
  | :----: | :--: | :----: | :--: | :------------: | :-----------: | :----: |
47
48
  | ✓ | ✓ | ✓ | 11 | ✓ | ✓ | ✓ |
48
49
 
49
- Note: In v12.0.0 we dropped support for IE9 and IE10, because they are no longer supported by any version of Windows - see https://www.xfive.co/blog/stop-supporting-ie10-ie9-ie8/
50
+ _Note: In v12.0.0 we dropped support for IE9 and IE10, because they are [no longer supported](https://www.xfive.co/blog/stop-supporting-ie10-ie9-ie8/) by any version of Windows._
50
51
 
51
52
  ## Getting Started (Using a bundler e.g. Webpack)
52
53
  1. Install with npm: `npm install intl-tel-input --save` or yarn: `yarn add intl-tel-input`
53
54
 
54
- 2. Import CSS: `import 'intl-tel-input/build/css/intlTelInput.css';`
55
+ 2. Import the CSS: `import 'intl-tel-input/build/css/intlTelInput.css';`
55
56
 
56
57
  3. Override the path to flags.png in your CSS
57
58
  ```css
@@ -62,7 +63,7 @@ Note: In v12.0.0 we dropped support for IE9 and IE10, because they are no longer
62
63
  }
63
64
  ```
64
65
 
65
- 4. Import JS and initialise plugin:
66
+ 4. Import the JS and initialise the plugin on your input element
66
67
  ```js
67
68
  import intlTelInput from 'intl-tel-input';
68
69
 
@@ -93,8 +94,6 @@ Note: In v12.0.0 we dropped support for IE9 and IE10, because they are no longer
93
94
 
94
95
  4. Add the plugin script and initialise it on your input element
95
96
  ```html
96
- <input type="tel" id="phone">
97
-
98
97
  <script src="path/to/intlTelInput.js"></script>
99
98
  <script>
100
99
  var input = document.querySelector("#phone");
@@ -110,19 +109,18 @@ Note: In v12.0.0 we dropped support for IE9 and IE10, because they are no longer
110
109
  ## Recommended Usage
111
110
  We highly recommend you (lazy) load the included utils.js using the `utilsScript` option. Then the plugin is built to always deal with numbers in the full international format (e.g. "+17024181234") and convert them accordingly - even when `nationalMode` or `separateDialCode` is enabled. We recommend you get, store, and set numbers exclusively in this format for simplicity - then you don't have to deal with handling the country code separately, as full international numbers include the country code information.
112
111
 
113
- You can always get the full international number (including country code) using `getNumber`, then you only have to store that one string in your database (you don't have to store the country separately), and then the next time you initialise the plugin with that number it will automatically set the country and format it according to the options you specify (e.g. if you enable `nationalMode` it will automatically remove the international dial code for you).
112
+ You can always get the full international number (including country code) using `getNumber`, then you only have to store that one string in your database (you don't have to store the country separately), and then the next time you initialise the plugin with that number it will automatically set the country and format it according to the options you specify (e.g. when using `nationalMode` it will automatically remove the international dial code for you).
113
+
114
+ Finally, make sure you have `<meta charset="utf-8">` in the `<head>` section of your page, else you will get an error as the JS contains some special unicode characters.
114
115
 
115
116
 
116
117
  ## Initialisation Options
117
- When you initialise the plugin, the first argument is the input element, and the second is an object containing any initialisation options you want, which are detailed below. Note: any options that take country codes should be [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes
118
+ When you initialise the plugin, the first argument is the input element, and the second is an object containing any initialisation options you want, which are detailed below. Note: any options that take country codes should be [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes
118
119
 
119
120
  **allowDropdown**
120
121
  Type: `Boolean` Default: `true`
121
122
  Whether or not to allow the dropdown. If disabled, there is no dropdown arrow, and the selected flag is not clickable. Also we display the selected flag on the right instead because it is just a marker of state.
122
123
 
123
- **~~autoFormat~~ [REMOVED]**
124
- Automatically format the number as the user types. Unfortunately this had to be removed for the reasons listed here: [#346 Disable and remove autoFormat feature](https://github.com/jackocnr/intl-tel-input/issues/346).
125
-
126
124
  **autoInsertDialCode**
127
125
  Type: `Boolean` Default: `false`
128
126
  When enabled (requires `nationalMode` to be disabled), the international dial code will be automatically inserted into the input in 3 situations: (A) upon initialisation, and (B) when the user selects a country from the dropdown, and (C) upon calling `setCountry`. Additionally, the plugin will listen for blur/submit events, and if the input only contains a dial code, it will automatically be removed to avoid submitting just that.
@@ -163,7 +161,7 @@ Format the input value (according to the `nationalMode` option) during initialis
163
161
  Type: `Function` Default: `null`
164
162
  When setting `initialCountry` to `"auto"`, you must use this option to specify a custom function that looks up the user's location, and then calls the success callback with the relevant country code. Also note that when instantiating the plugin, if the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is defined, one of those is returned under the `promise` instance property, so you can do something like `iti.promise.then(callback)` to know when initialisation requests like this have completed.
165
163
 
166
- Here is an example using the [ip-api.com](https://ip-api.com/docs/api:json) service:
164
+ Here is an example using the [ipapi](https://ipapi.co/api/?javascript#location-of-clients-ip) service:
167
165
  ```js
168
166
  intlTelInput(input, {
169
167
  initialCountry: "auto",
@@ -183,7 +181,7 @@ Add a hidden input with the given name. Alternatively, if your input name contai
183
181
 
184
182
  **initialCountry**
185
183
  Type: `String` Default: `""`
186
- Set the initial country selection by specifying its country code. You can also set it to `"auto"`, which will lookup the user's country based on their IP address (requires the `geoIpLookup` option - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/default-country-ip.html)). Note that the `"auto"` option will not update the country selection if the input already contains a number.
184
+ Set the initial country selection by specifying its country code. You can also set it to `"auto"`, which will lookup the user's country based on their IP address (requires the `geoIpLookup` option - [see example](https://intl-tel-input.com/examples/lookup-country.html)). Note that the `"auto"` option will not update the country selection if the input already contains a number.
187
185
 
188
186
  If you leave `initialCountry` blank, it will default to the first country in the list.
189
187
 
@@ -197,11 +195,11 @@ Allows to translate the countries by its given iso code e.g.:
197
195
 
198
196
  **nationalMode**
199
197
  Type: `Boolean` Default: `true`
200
- Allow users to enter national numbers (and not have to think about international dial codes). Formatting, validation and placeholders still work. Then you can use `getNumber` to extract a full international number - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/national-mode.html). This option now defaults to `true`, and it is recommended that you leave it that way as it provides a better experience for the user.
198
+ Format numbers in the national format, rather than the international format. This applies to placeholder numbers, and when displaying user's existing numbers. Note that it's fine for user's to type their numbers in national format - as long as they have selected the right country, you can use `getNumber` to extract a full international number - [see example](https://intl-tel-input.com/examples/national-mode.html). It is recommended to leave this option enabled, to encourage users to enter their numbers in national format as this is usually more familiar to them and so it creates a better user experience.
201
199
 
202
200
  **onlyCountries**
203
201
  Type: `Array` Default: `undefined`
204
- In the dropdown, display only the countries you specify - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/only-countries-europe.html).
202
+ In the dropdown, display only the countries you specify - [see example](https://intl-tel-input.com/examples/only-countries.html).
205
203
 
206
204
  **placeholderNumberType**
207
205
  Type: `String` Default: `"MOBILE"`
@@ -211,15 +209,16 @@ Specify [one of the keys](https://github.com/jackocnr/intl-tel-input/blob/master
211
209
  Type: `Array` Default: `["us", "gb"]`
212
210
  Specify the countries to appear at the top of the list.
213
211
 
214
- **~~preventInvalidNumbers~~ [REMOVED]**
215
- Prevent the user from entering invalid characters. Unfortunately this had to be removed for the reasons listed here: [#79 Limit Input Characters to Formatted String Length](https://github.com/jackocnr/intl-tel-input/issues/79#issuecomment-121799307).
216
-
217
212
  **separateDialCode**
218
213
  Type: `Boolean` Default: `false`
219
214
  Display the country dial code next to the selected flag.
220
215
 
221
216
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/separateDialCode.png" width="257px" height="46px">
222
217
 
218
+ **showFlags**
219
+ Type: `Boolean` Default: `true`
220
+ Set this to false to hide the flags e.g. for political reasons. Must be used in combination with `separateDialCode` option, or with setting `allowDropdown` to `false`.
221
+
223
222
  **utilsScript**
224
223
  Type: `String` Default: `""` Example: `"build/js/utils.js"`
225
224
  Enable formatting/validation etc. by specifying the URL of the included utils.js script (or alternatively just point it to the file on [cdnjs.com](https://cdnjs.com/libraries/intl-tel-input)). The script is fetched only when the page has finished loading (on the window load event) to prevent blocking (the script is ~215KB). When instantiating the plugin, if the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is defined, one of those is returned under the `promise` instance property, so you can do something like `iti.promise.then(callback)` to know when initialisation requests like this have finished. See [Utilities Script](#utilities-script) for more information.
@@ -242,7 +241,7 @@ var extension = iti.getExtension();
242
241
  Returns a string e.g. if the input value was `"(702) 555-5555 ext. 1234"`, this would return `"1234"`
243
242
 
244
243
  **getNumber**
245
- Get the current number in the given format (defaults to [E.164 standard](http://en.wikipedia.org/wiki/E.164)). The different formats are available in the enum `intlTelInputUtils.numberFormat` - which you can see [here](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L109). Requires the `utilsScript` option. _Note that even if `nationalMode` is enabled, this can still return a full international number. Also note that this method expects a valid number, and so should only be used after validation._
244
+ Get the current number in the given format (defaults to [E.164 standard](https://en.wikipedia.org/wiki/E.164)). The different formats are available in the enum `intlTelInputUtils.numberFormat` - which you can see [here](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L109). Requires the `utilsScript` option. _Note that even if `nationalMode` is enabled, this can still return a full international number. Also note that this method expects a valid number, and so should only be used after validation._
246
245
  ```js
247
246
  var number = iti.getNumber();
248
247
  // or
@@ -290,7 +289,7 @@ if (error === intlTelInputUtils.validationError.TOO_SHORT) {
290
289
  ```
291
290
 
292
291
  **isValidNumber**
293
- Validate the current number - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/is-valid-number.html). Expects an internationally formatted number (unless `nationalMode` is enabled). If validation fails, you can use `getValidationError` to get more information. Requires the `utilsScript` option. Also see `getNumberType` if you want to make sure the user enters a certain type of number e.g. a mobile number.
292
+ Validate the current number - [see example](https://intl-tel-input.com/examples/validation.html). If validation fails, you can use `getValidationError` to get more information. Requires the `utilsScript` option. Also see `getNumberType` if you want to make sure the user enters a certain type of number e.g. a mobile number.
294
293
  ```js
295
294
  var isValid = iti.isValidNumber();
296
295
  ```
@@ -303,7 +302,7 @@ iti.setCountry("gb");
303
302
  ```
304
303
 
305
304
  **setNumber**
306
- Insert a number, and update the selected flag accordingly. _Note that if `formatOnDisplay` is enabled, this will attempt to format the number according to the `nationalMode` option._
305
+ Insert a number, and update the selected flag accordingly. _Note that if `formatOnDisplay` is enabled, this will attempt to format the number to either national or international format according to the `nationalMode` option._
307
306
  ```js
308
307
  iti.setNumber("+447733123456");
309
308
  ```
@@ -318,7 +317,7 @@ iti.setPlaceholderNumberType("FIXED_LINE");
318
317
  ## Static Methods
319
318
 
320
319
  **getCountryData**
321
- Get all of the plugin's country data - either to re-use elsewhere e.g. to populate a country dropdown - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/country-sync.html), or to modify - [see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/modify-country-data.html). Note that any modifications must be done before initialising the plugin.
320
+ Get all of the plugin's country data - either to re-use elsewhere e.g. to populate a country dropdown - [see example](https://intl-tel-input.com/examples/country-sync.html), or to modify - [see example](https://intl-tel-input.com/examples/modify-country-data.html). Note that any modifications must be done before initialising the plugin.
322
321
  ```js
323
322
  var countryData = window.intlTelInputGlobals.getCountryData();
324
323
  ```
@@ -345,10 +344,6 @@ An alternative to the `utilsScript` option, this method lets you manually load t
345
344
  window.intlTelInputGlobals.loadUtils("build/js/utils.js");
346
345
  ```
347
346
 
348
- **~~setCountryData~~ [REMOVED]**
349
- Set the plugin's country data. This method was removed because it makes much more sense to just use `getCountryData` and then modify that ([see example](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/modify-country-data.html)) instead of having to generate the whole thing yourself - the country data has become increasingly complicated and for each country we now have five properties: the name, [iso2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), international dial code, priority (in case two countries have the same international dial code), and finally a list of area codes used in that country - see [data.js](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/data.js#L36) for more info.
350
-
351
-
352
347
  ## Events
353
348
  You can listen for the following events on the input.
354
349
 
@@ -359,7 +354,7 @@ input.addEventListener("countrychange", function() {
359
354
  // do something with iti.getSelectedCountryData()
360
355
  });
361
356
  ```
362
- See an example here: [Country sync](http://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/country-sync.html)
357
+ See an example here: [Country sync](https://intl-tel-input.com/examples/country-sync.html)
363
358
 
364
359
  **open:countrydropdown**
365
360
  This is triggered when the user opens the dropdown.
@@ -414,7 +409,7 @@ The dropdown should automatically appear above/below the input depending on the
414
409
  In order to get the automatic country-specific placeholders, simply omit the placeholder attribute on the `<input>`.
415
410
 
416
411
  **Bootstrap input groups**
417
- A couple of CSS fixes are required to get the plugin to play nice with Bootstrap [input groups](https://getbootstrap.com/docs/3.3/components/#input-groups). You can see a Codepen [here](http://codepen.io/jackocnr/pen/EyPXed).
412
+ A couple of CSS fixes are required to get the plugin to play nice with Bootstrap [input groups](https://getbootstrap.com/docs/3.3/components/#input-groups). You can see a Codepen [here](https://codepen.io/jackocnr/pen/EyPXed).
418
413
  _Note: there is currently [a bug](https://bugs.webkit.org/show_bug.cgi?id=141822) in Mobile Safari which causes a crash when you click the dropdown arrow (a CSS triangle) inside an input group. The simplest workaround is to remove the CSS triangle with this line:_
419
414
 
420
415
  ```css
@@ -435,7 +430,6 @@ See the [contributing guide](https://github.com/jackocnr/intl-tel-input/blob/mas
435
430
 
436
431
  ## Links
437
432
  * List of [integrations with intl-tel-input](https://github.com/jackocnr/intl-tel-input/wiki/Integrations)
438
- * Android native port: [IntlPhoneInput](https://github.com/Rimoto/IntlPhoneInput)
439
433
  * Typescript type definitions are available in the [DefinitelyTyped repo](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/intl-tel-input/index.d.ts) (more info [here](https://github.com/jackocnr/intl-tel-input/issues/433#issuecomment-228517623))
440
434
 
441
435
  <img width="200" src="https://www.browserstack.com/images/layout/browserstack-logo-600x315.png" /><br />
@@ -106,7 +106,7 @@
106
106
  background-color: transparent; }
107
107
  .iti--separate-dial-code .iti__selected-flag {
108
108
  background-color: rgba(0, 0, 0, 0.05); }
109
- .iti--separate-dial-code .iti__selected-dial-code {
109
+ .iti--separate-dial-code.iti--show-flags .iti__selected-dial-code {
110
110
  margin-left: 6px; }
111
111
  .iti--container {
112
112
  position: absolute;
package/build/js/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v18.0.3
2
+ * International Telephone Input v18.1.1
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v18.0.3
2
+ * International Telephone Input v18.1.1
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */