@alfalab/core-components-intl-phone-input 9.2.3 → 9.2.4

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 (47) hide show
  1. package/{component-ad5d85bd.d.ts → component-921e60df.d.ts} +0 -0
  2. package/{component-ad5d85bd.js → component-921e60df.js} +1 -1
  3. package/component.js +13 -13
  4. package/components/flag-icon/component.js +2 -2
  5. package/components/flag-icon/index.css +3 -3
  6. package/components/index.js +1 -1
  7. package/components/select/component.js +2 -2
  8. package/components/select/index.css +6 -6
  9. package/components/select/index.js +1 -1
  10. package/components/select-field/component.js +1 -1
  11. package/components/select-field/index.css +9 -9
  12. package/components/select-field/index.d.ts +1 -1
  13. package/components/select-field/index.js +1 -1
  14. package/cssm/component.js +10 -10
  15. package/cssm/components/flag-icon/component.js +1 -1
  16. package/esm/{component-f0b09b0e.d.ts → component-94cfd480.d.ts} +0 -0
  17. package/esm/{component-f0b09b0e.js → component-94cfd480.js} +1 -1
  18. package/esm/component.js +13 -13
  19. package/esm/components/flag-icon/component.js +2 -2
  20. package/esm/components/flag-icon/index.css +3 -3
  21. package/esm/components/index.js +1 -1
  22. package/esm/components/select/component.js +2 -2
  23. package/esm/components/select/index.css +6 -6
  24. package/esm/components/select/index.js +1 -1
  25. package/esm/components/select-field/component.js +1 -1
  26. package/esm/components/select-field/index.css +9 -9
  27. package/esm/components/select-field/index.d.ts +1 -1
  28. package/esm/components/select-field/index.js +1 -1
  29. package/esm/index.css +5 -5
  30. package/esm/index.js +1 -1
  31. package/esm/{libphonenumber-js.min-befabdb6.d.ts → libphonenumber-js.min-5284ff94.d.ts} +0 -0
  32. package/esm/{libphonenumber-js.min-befabdb6.js → libphonenumber-js.min-5284ff94.js} +0 -0
  33. package/index.css +5 -5
  34. package/index.js +1 -1
  35. package/{libphonenumber-js.min-09b5263c.d.ts → libphonenumber-js.min-71310bca.d.ts} +0 -0
  36. package/{libphonenumber-js.min-09b5263c.js → libphonenumber-js.min-71310bca.js} +0 -0
  37. package/modern/component.js +12 -12
  38. package/modern/components/flag-icon/component.js +2 -2
  39. package/modern/components/flag-icon/index.css +3 -3
  40. package/modern/components/select/component.js +1 -1
  41. package/modern/components/select/index.css +6 -6
  42. package/modern/components/select-field/component.js +1 -1
  43. package/modern/components/select-field/index.css +9 -9
  44. package/modern/index.css +5 -5
  45. package/modern/{libphonenumber-js.min-befabdb6.d.ts → libphonenumber-js.min-5284ff94.d.ts} +0 -0
  46. package/modern/{libphonenumber-js.min-befabdb6.js → libphonenumber-js.min-5284ff94.js} +0 -0
  47. package/package.json +4 -4
@@ -53,7 +53,7 @@ function __rest(s, e) {
53
53
  return t;
54
54
  }
55
55
 
56
- var styles = {"component":"intl-phone-input__component_11kns","flagIconContainer":"intl-phone-input__flagIconContainer_11kns","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_11kns","disabled":"intl-phone-input__disabled_11kns","inner":"intl-phone-input__inner_11kns","l":"intl-phone-input__l_11kns","xl":"intl-phone-input__xl_11kns","focusVisible":"intl-phone-input__focusVisible_11kns"};
56
+ var styles = {"component":"intl-phone-input__component_1v6lz","flagIconContainer":"intl-phone-input__flagIconContainer_1v6lz","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1v6lz","disabled":"intl-phone-input__disabled_1v6lz","inner":"intl-phone-input__inner_1v6lz","l":"intl-phone-input__l_1v6lz","xl":"intl-phone-input__xl_1v6lz","focusVisible":"intl-phone-input__focusVisible_1v6lz"};
57
57
  require('./components/select-field/index.css')
58
58
 
59
59
  var EMPTY_COUNTRY_SELECT_FIELD = {
package/component.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_selectField_component = require('./component-ad5d85bd.js');
3
+ var components_selectField_component = require('./component-921e60df.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var coreComponentsInputAutocomplete = require('@alfalab/core-components-input-autocomplete');
@@ -23,7 +23,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
23
23
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
24
24
  var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
25
25
 
26
- var styles = {"addons":"intl-phone-input__addons_1fxwe","l":"intl-phone-input__l_1fxwe","xl":"intl-phone-input__xl_1fxwe","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fxwe","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fxwe"};
26
+ var styles = {"addons":"intl-phone-input__addons_dq68h","l":"intl-phone-input__l_dq68h","xl":"intl-phone-input__xl_dq68h","flagIconWrapper":"intl-phone-input__flagIconWrapper_dq68h","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_dq68h"};
27
27
  require('./index.css')
28
28
 
29
29
  var countriesHash = utils.getCountriesHash();
@@ -100,9 +100,18 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
100
100
  });
101
101
  return targetCountry;
102
102
  };
103
+ var addCountryCode = function (inputValue) {
104
+ if (clearableCountryCode || !countryIso2) {
105
+ return inputValue.length === 1 && inputValue !== '+'
106
+ ? "+".concat(inputValue)
107
+ : inputValue;
108
+ }
109
+ var country = countriesHash[countryIso2];
110
+ return utils_formatPhoneWithUnclearableCountryCode.formatPhoneWithUnclearableCountryCode(inputValue, country);
111
+ };
103
112
  var setCountryByDialCode = function (inputValue) {
104
113
  var country = getCountryByNumber(inputValue);
105
- onChange(formatPhone(inputValue));
114
+ onChange(formatPhone(addCountryCode(inputValue)));
106
115
  if (country) {
107
116
  setCountryIso2(country.iso2);
108
117
  handleCountryChange(country.iso2);
@@ -120,15 +129,6 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
120
129
  }
121
130
  }
122
131
  };
123
- var addCountryCode = function (inputValue) {
124
- if (clearableCountryCode || !countryIso2) {
125
- return inputValue.length === 1 && inputValue !== '+'
126
- ? "+".concat(inputValue)
127
- : inputValue;
128
- }
129
- var country = countriesHash[countryIso2];
130
- return utils_formatPhoneWithUnclearableCountryCode.formatPhoneWithUnclearableCountryCode(inputValue, country);
131
- };
132
132
  var handleInputChange = function (event) {
133
133
  setCountryByDialCodeWithLengthCheck(event.target.value);
134
134
  onChange(formatPhone(addCountryCode(event.target.value)));
@@ -275,7 +275,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
275
275
  if (phoneLibUtils.current)
276
276
  return;
277
277
  Promise.resolve().then(function () { return require(
278
- /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-09b5263c.js'); })
278
+ /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-71310bca.js'); })
279
279
  .then(function (utils) {
280
280
  phoneLibUtils.current = utils.AsYouType;
281
281
  if (canBeEmptyCountry) {
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"flagIcon":"intl-phone-input__flagIcon_htvnp","flagPlaceholder":"intl-phone-input__flagPlaceholder_htvnp"};
12
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_1mahb","flagPlaceholder":"intl-phone-input__flagPlaceholder_1mahb"};
13
13
  require('./index.css')
14
14
 
15
15
  /**
@@ -17,7 +17,7 @@ require('./index.css')
17
17
  */
18
18
  var FlagIcon = function (_a) {
19
19
  var _b = _a.country, country = _b === void 0 ? '' : _b, className = _a.className;
20
- return components_flagIcon_flagSprite.flagSprite[country] ? (React__default.default.createElement("span", { className: cn__default.default(styles.flagIcon, className), dangerouslySetInnerHTML: { __html: components_flagIcon_flagSprite.flagSprite[country] } })) : (React__default.default.createElement("div", { className: cn__default.default(styles.flagPlaceholder, className) }));
20
+ return components_flagIcon_flagSprite.flagSprite[country] ? (React__default.default.createElement("span", { className: cn__default.default(styles.flagIcon, className), "data-test-id": "flag-icon-".concat(country), dangerouslySetInnerHTML: { __html: components_flagIcon_flagSprite.flagSprite[country] } })) : (React__default.default.createElement("div", { className: cn__default.default(styles.flagPlaceholder, className) }));
21
21
  };
22
22
 
23
23
  exports.FlagIcon = FlagIcon;
@@ -1,4 +1,4 @@
1
- /* hash: 4wqkm */
1
+ /* hash: 1mlma */
2
2
  :root {
3
3
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
4
4
  }
@@ -16,11 +16,11 @@
16
16
  :root {
17
17
  --border-radius-xs: 2px;
18
18
  }
19
- .intl-phone-input__flagIcon_htvnp {
19
+ .intl-phone-input__flagIcon_1mahb {
20
20
  max-width: 24px;
21
21
  max-height: 24px;
22
22
  }
23
- .intl-phone-input__flagPlaceholder_htvnp {
23
+ .intl-phone-input__flagPlaceholder_1mahb {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_selectField_component = require('../component-ad5d85bd.js');
3
+ var components_selectField_component = require('../component-921e60df.js');
4
4
  var components_flagIcon_component = require('./flag-icon/component.js');
5
5
  var components_select_component = require('./select/component.js');
6
6
  require('react');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_selectField_component = require('../../component-ad5d85bd.js');
3
+ var components_selectField_component = require('../../component-921e60df.js');
4
4
  var React = require('react');
5
5
  var coreComponentsSelect = require('@alfalab/core-components-select');
6
6
  var components_flagIcon_component = require('../flag-icon/component.js');
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
 
17
- var styles = {"component":"intl-phone-input__component_1i23b","option":"intl-phone-input__option_1i23b","flag":"intl-phone-input__flag_1i23b","countryName":"intl-phone-input__countryName_1i23b","dialCode":"intl-phone-input__dialCode_1i23b"};
17
+ var styles = {"component":"intl-phone-input__component_cdgmd","option":"intl-phone-input__option_cdgmd","flag":"intl-phone-input__flag_cdgmd","countryName":"intl-phone-input__countryName_cdgmd","dialCode":"intl-phone-input__dialCode_cdgmd"};
18
18
  require('./index.css')
19
19
 
20
20
  var CountriesSelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 193l8 */
1
+ /* hash: 1wdb1 */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -16,23 +16,23 @@
16
16
  :root {
17
17
  --text-secondary-color: var(--color-light-text-secondary);
18
18
  }
19
- .intl-phone-input__component_1i23b {
19
+ .intl-phone-input__component_cdgmd {
20
20
  position: static;
21
21
  display: flex;
22
22
  min-width: initial;
23
23
  height: 100%;
24
24
  }
25
- .intl-phone-input__option_1i23b {
25
+ .intl-phone-input__option_cdgmd {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
28
  }
29
- .intl-phone-input__flag_1i23b {
29
+ .intl-phone-input__flag_cdgmd {
30
30
  flex-shrink: 0;
31
31
  margin-right: var(--gap-xs);
32
32
  }
33
- .intl-phone-input__countryName_1i23b {
33
+ .intl-phone-input__countryName_cdgmd {
34
34
  margin-right: var(--gap-xs);
35
35
  }
36
- .intl-phone-input__dialCode_1i23b {
36
+ .intl-phone-input__dialCode_cdgmd {
37
37
  color: var(--text-secondary-color);
38
38
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var components_select_component = require('./component.js');
4
- require('../../component-ad5d85bd.js');
4
+ require('../../component-921e60df.js');
5
5
  require('react');
6
6
  require('react-merge-refs');
7
7
  require('classnames');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_selectField_component = require('../../component-ad5d85bd.js');
3
+ var components_selectField_component = require('../../component-921e60df.js');
4
4
  require('react');
5
5
  require('react-merge-refs');
6
6
  require('classnames');
@@ -1,4 +1,4 @@
1
- /* hash: mrnlc */
1
+ /* hash: h0bvp */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-graphic-secondary: #6d7986;
@@ -20,13 +20,13 @@
20
20
  --focus-color: var(--color-light-border-link);
21
21
  --disabled-cursor: not-allowed;
22
22
  }
23
- .intl-phone-input__component_11kns {
23
+ .intl-phone-input__component_1v6lz {
24
24
  height: 100%;
25
25
  cursor: pointer;
26
26
  outline: none;
27
27
  position: relative;
28
28
  }
29
- .intl-phone-input__flagIconContainer_11kns {
29
+ .intl-phone-input__flagIconContainer_1v6lz {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
@@ -34,13 +34,13 @@
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
36
  }
37
- .intl-phone-input__emptyCountryIcon_11kns {
37
+ .intl-phone-input__emptyCountryIcon_1v6lz {
38
38
  color: var(--color-light-graphic-secondary);
39
39
  }
40
- .intl-phone-input__disabled_11kns {
40
+ .intl-phone-input__disabled_1v6lz {
41
41
  cursor: var(--disabled-cursor);
42
42
  }
43
- .intl-phone-input__inner_11kns {
43
+ .intl-phone-input__inner_1v6lz {
44
44
  position: relative;
45
45
  display: flex;
46
46
  align-items: center;
@@ -48,11 +48,11 @@
48
48
  padding-left: var(--gap-s);
49
49
  outline: none;
50
50
  }
51
- .intl-phone-input__l_11kns .intl-phone-input__inner_11kns,
52
- .intl-phone-input__xl_11kns .intl-phone-input__inner_11kns {
51
+ .intl-phone-input__l_1v6lz .intl-phone-input__inner_1v6lz,
52
+ .intl-phone-input__xl_1v6lz .intl-phone-input__inner_1v6lz {
53
53
  padding-left: var(--gap-m);
54
54
  }
55
- .intl-phone-input__focusVisible_11kns {
55
+ .intl-phone-input__focusVisible_1v6lz {
56
56
  outline: 2px solid var(--focus-color);
57
57
  outline-offset: 2px;
58
58
  }
@@ -1 +1 @@
1
- export * from "../../component-ad5d85bd";
1
+ export * from "../../component-921e60df";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_selectField_component = require('../../component-ad5d85bd.js');
3
+ var components_selectField_component = require('../../component-921e60df.js');
4
4
  require('react');
5
5
  require('react-merge-refs');
6
6
  require('classnames');
package/cssm/component.js CHANGED
@@ -102,9 +102,18 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
102
102
  });
103
103
  return targetCountry;
104
104
  };
105
+ var addCountryCode = function (inputValue) {
106
+ if (clearableCountryCode || !countryIso2) {
107
+ return inputValue.length === 1 && inputValue !== '+'
108
+ ? "+".concat(inputValue)
109
+ : inputValue;
110
+ }
111
+ var country = countriesHash[countryIso2];
112
+ return utils_formatPhoneWithUnclearableCountryCode.formatPhoneWithUnclearableCountryCode(inputValue, country);
113
+ };
105
114
  var setCountryByDialCode = function (inputValue) {
106
115
  var country = getCountryByNumber(inputValue);
107
- onChange(formatPhone(inputValue));
116
+ onChange(formatPhone(addCountryCode(inputValue)));
108
117
  if (country) {
109
118
  setCountryIso2(country.iso2);
110
119
  handleCountryChange(country.iso2);
@@ -122,15 +131,6 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
122
131
  }
123
132
  }
124
133
  };
125
- var addCountryCode = function (inputValue) {
126
- if (clearableCountryCode || !countryIso2) {
127
- return inputValue.length === 1 && inputValue !== '+'
128
- ? "+".concat(inputValue)
129
- : inputValue;
130
- }
131
- var country = countriesHash[countryIso2];
132
- return utils_formatPhoneWithUnclearableCountryCode.formatPhoneWithUnclearableCountryCode(inputValue, country);
133
- };
134
134
  var handleInputChange = function (event) {
135
135
  setCountryByDialCodeWithLengthCheck(event.target.value);
136
136
  onChange(formatPhone(addCountryCode(event.target.value)));
@@ -16,7 +16,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
16
16
  */
17
17
  var FlagIcon = function (_a) {
18
18
  var _b = _a.country, country = _b === void 0 ? '' : _b, className = _a.className;
19
- return components_flagIcon_flagSprite.flagSprite[country] ? (React__default.default.createElement("span", { className: cn__default.default(styles__default.default.flagIcon, className), dangerouslySetInnerHTML: { __html: components_flagIcon_flagSprite.flagSprite[country] } })) : (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.flagPlaceholder, className) }));
19
+ return components_flagIcon_flagSprite.flagSprite[country] ? (React__default.default.createElement("span", { className: cn__default.default(styles__default.default.flagIcon, className), "data-test-id": "flag-icon-".concat(country), dangerouslySetInnerHTML: { __html: components_flagIcon_flagSprite.flagSprite[country] } })) : (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.flagPlaceholder, className) }));
20
20
  };
21
21
 
22
22
  exports.FlagIcon = FlagIcon;
@@ -44,7 +44,7 @@ function __rest(s, e) {
44
44
  return t;
45
45
  }
46
46
 
47
- var styles = {"component":"intl-phone-input__component_11kns","flagIconContainer":"intl-phone-input__flagIconContainer_11kns","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_11kns","disabled":"intl-phone-input__disabled_11kns","inner":"intl-phone-input__inner_11kns","l":"intl-phone-input__l_11kns","xl":"intl-phone-input__xl_11kns","focusVisible":"intl-phone-input__focusVisible_11kns"};
47
+ var styles = {"component":"intl-phone-input__component_1v6lz","flagIconContainer":"intl-phone-input__flagIconContainer_1v6lz","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1v6lz","disabled":"intl-phone-input__disabled_1v6lz","inner":"intl-phone-input__inner_1v6lz","l":"intl-phone-input__l_1v6lz","xl":"intl-phone-input__xl_1v6lz","focusVisible":"intl-phone-input__focusVisible_1v6lz"};
48
48
  require('./components/select-field/index.css')
49
49
 
50
50
  var EMPTY_COUNTRY_SELECT_FIELD = {
package/esm/component.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './component-f0b09b0e.js';
1
+ import { _ as __rest, a as __assign } from './component-94cfd480.js';
2
2
  import React, { forwardRef, useState, useRef, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { InputAutocomplete } from '@alfalab/core-components-input-autocomplete/esm';
@@ -15,7 +15,7 @@ import { useCaretAvoidCountryCode } from './useCaretAvoidCountryCode.js';
15
15
  import './components/flag-icon/flagSprite.js';
16
16
  import '@alfalab/core-components-select/esm';
17
17
 
18
- var styles = {"addons":"intl-phone-input__addons_1fxwe","l":"intl-phone-input__l_1fxwe","xl":"intl-phone-input__xl_1fxwe","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fxwe","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fxwe"};
18
+ var styles = {"addons":"intl-phone-input__addons_dq68h","l":"intl-phone-input__l_dq68h","xl":"intl-phone-input__xl_dq68h","flagIconWrapper":"intl-phone-input__flagIconWrapper_dq68h","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_dq68h"};
19
19
  require('./index.css')
20
20
 
21
21
  var countriesHash = getCountriesHash();
@@ -92,9 +92,18 @@ var IntlPhoneInput = forwardRef(function (_a, ref) {
92
92
  });
93
93
  return targetCountry;
94
94
  };
95
+ var addCountryCode = function (inputValue) {
96
+ if (clearableCountryCode || !countryIso2) {
97
+ return inputValue.length === 1 && inputValue !== '+'
98
+ ? "+".concat(inputValue)
99
+ : inputValue;
100
+ }
101
+ var country = countriesHash[countryIso2];
102
+ return formatPhoneWithUnclearableCountryCode(inputValue, country);
103
+ };
95
104
  var setCountryByDialCode = function (inputValue) {
96
105
  var country = getCountryByNumber(inputValue);
97
- onChange(formatPhone(inputValue));
106
+ onChange(formatPhone(addCountryCode(inputValue)));
98
107
  if (country) {
99
108
  setCountryIso2(country.iso2);
100
109
  handleCountryChange(country.iso2);
@@ -112,15 +121,6 @@ var IntlPhoneInput = forwardRef(function (_a, ref) {
112
121
  }
113
122
  }
114
123
  };
115
- var addCountryCode = function (inputValue) {
116
- if (clearableCountryCode || !countryIso2) {
117
- return inputValue.length === 1 && inputValue !== '+'
118
- ? "+".concat(inputValue)
119
- : inputValue;
120
- }
121
- var country = countriesHash[countryIso2];
122
- return formatPhoneWithUnclearableCountryCode(inputValue, country);
123
- };
124
124
  var handleInputChange = function (event) {
125
125
  setCountryByDialCodeWithLengthCheck(event.target.value);
126
126
  onChange(formatPhone(addCountryCode(event.target.value)));
@@ -267,7 +267,7 @@ var IntlPhoneInput = forwardRef(function (_a, ref) {
267
267
  if (phoneLibUtils.current)
268
268
  return;
269
269
  import(
270
- /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-befabdb6.js')
270
+ /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-5284ff94.js')
271
271
  .then(function (utils) {
272
272
  phoneLibUtils.current = utils.AsYouType;
273
273
  if (canBeEmptyCountry) {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- var styles = {"flagIcon":"intl-phone-input__flagIcon_htvnp","flagPlaceholder":"intl-phone-input__flagPlaceholder_htvnp"};
5
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_1mahb","flagPlaceholder":"intl-phone-input__flagPlaceholder_1mahb"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -10,7 +10,7 @@ require('./index.css')
10
10
  */
11
11
  var FlagIcon = function (_a) {
12
12
  var _b = _a.country, country = _b === void 0 ? '' : _b, className = _a.className;
13
- return flagSprite[country] ? (React.createElement("span", { className: cn(styles.flagIcon, className), dangerouslySetInnerHTML: { __html: flagSprite[country] } })) : (React.createElement("div", { className: cn(styles.flagPlaceholder, className) }));
13
+ return flagSprite[country] ? (React.createElement("span", { className: cn(styles.flagIcon, className), "data-test-id": "flag-icon-".concat(country), dangerouslySetInnerHTML: { __html: flagSprite[country] } })) : (React.createElement("div", { className: cn(styles.flagPlaceholder, className) }));
14
14
  };
15
15
 
16
16
  export { FlagIcon };
@@ -1,4 +1,4 @@
1
- /* hash: 4wqkm */
1
+ /* hash: 1mlma */
2
2
  :root {
3
3
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
4
4
  }
@@ -16,11 +16,11 @@
16
16
  :root {
17
17
  --border-radius-xs: 2px;
18
18
  }
19
- .intl-phone-input__flagIcon_htvnp {
19
+ .intl-phone-input__flagIcon_1mahb {
20
20
  max-width: 24px;
21
21
  max-height: 24px;
22
22
  }
23
- .intl-phone-input__flagPlaceholder_htvnp {
23
+ .intl-phone-input__flagPlaceholder_1mahb {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -1,4 +1,4 @@
1
- export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../component-f0b09b0e.js';
1
+ export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../component-94cfd480.js';
2
2
  export { FlagIcon } from './flag-icon/component.js';
3
3
  export { CountriesSelect } from './select/component.js';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- import { a as __assign, E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-f0b09b0e.js';
1
+ import { a as __assign, E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-94cfd480.js';
2
2
  import React, { useMemo, useCallback } from 'react';
3
3
  import { VirtualOptionsList, Select } from '@alfalab/core-components-select/esm';
4
4
  import { FlagIcon } from '../flag-icon/component.js';
@@ -8,7 +8,7 @@ import '@alfalab/hooks';
8
8
  import '@alfalab/icons-glyph/WorldMagnifierMIcon';
9
9
  import '../flag-icon/flagSprite.js';
10
10
 
11
- var styles = {"component":"intl-phone-input__component_1i23b","option":"intl-phone-input__option_1i23b","flag":"intl-phone-input__flag_1i23b","countryName":"intl-phone-input__countryName_1i23b","dialCode":"intl-phone-input__dialCode_1i23b"};
11
+ var styles = {"component":"intl-phone-input__component_cdgmd","option":"intl-phone-input__option_cdgmd","flag":"intl-phone-input__flag_cdgmd","countryName":"intl-phone-input__countryName_cdgmd","dialCode":"intl-phone-input__dialCode_cdgmd"};
12
12
  require('./index.css')
13
13
 
14
14
  var CountriesSelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 193l8 */
1
+ /* hash: 1wdb1 */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -16,23 +16,23 @@
16
16
  :root {
17
17
  --text-secondary-color: var(--color-light-text-secondary);
18
18
  }
19
- .intl-phone-input__component_1i23b {
19
+ .intl-phone-input__component_cdgmd {
20
20
  position: static;
21
21
  display: flex;
22
22
  min-width: initial;
23
23
  height: 100%;
24
24
  }
25
- .intl-phone-input__option_1i23b {
25
+ .intl-phone-input__option_cdgmd {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
28
  }
29
- .intl-phone-input__flag_1i23b {
29
+ .intl-phone-input__flag_cdgmd {
30
30
  flex-shrink: 0;
31
31
  margin-right: var(--gap-xs);
32
32
  }
33
- .intl-phone-input__countryName_1i23b {
33
+ .intl-phone-input__countryName_cdgmd {
34
34
  margin-right: var(--gap-xs);
35
35
  }
36
- .intl-phone-input__dialCode_1i23b {
36
+ .intl-phone-input__dialCode_cdgmd {
37
37
  color: var(--text-secondary-color);
38
38
  }
@@ -1,5 +1,5 @@
1
1
  export { CountriesSelect } from './component.js';
2
- import '../../component-f0b09b0e.js';
2
+ import '../../component-94cfd480.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
@@ -1,4 +1,4 @@
1
- export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-f0b09b0e.js';
1
+ export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-94cfd480.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
@@ -1,4 +1,4 @@
1
- /* hash: mrnlc */
1
+ /* hash: h0bvp */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-graphic-secondary: #6d7986;
@@ -20,13 +20,13 @@
20
20
  --focus-color: var(--color-light-border-link);
21
21
  --disabled-cursor: not-allowed;
22
22
  }
23
- .intl-phone-input__component_11kns {
23
+ .intl-phone-input__component_1v6lz {
24
24
  height: 100%;
25
25
  cursor: pointer;
26
26
  outline: none;
27
27
  position: relative;
28
28
  }
29
- .intl-phone-input__flagIconContainer_11kns {
29
+ .intl-phone-input__flagIconContainer_1v6lz {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
@@ -34,13 +34,13 @@
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
36
  }
37
- .intl-phone-input__emptyCountryIcon_11kns {
37
+ .intl-phone-input__emptyCountryIcon_1v6lz {
38
38
  color: var(--color-light-graphic-secondary);
39
39
  }
40
- .intl-phone-input__disabled_11kns {
40
+ .intl-phone-input__disabled_1v6lz {
41
41
  cursor: var(--disabled-cursor);
42
42
  }
43
- .intl-phone-input__inner_11kns {
43
+ .intl-phone-input__inner_1v6lz {
44
44
  position: relative;
45
45
  display: flex;
46
46
  align-items: center;
@@ -48,11 +48,11 @@
48
48
  padding-left: var(--gap-s);
49
49
  outline: none;
50
50
  }
51
- .intl-phone-input__l_11kns .intl-phone-input__inner_11kns,
52
- .intl-phone-input__xl_11kns .intl-phone-input__inner_11kns {
51
+ .intl-phone-input__l_1v6lz .intl-phone-input__inner_1v6lz,
52
+ .intl-phone-input__xl_1v6lz .intl-phone-input__inner_1v6lz {
53
53
  padding-left: var(--gap-m);
54
54
  }
55
- .intl-phone-input__focusVisible_11kns {
55
+ .intl-phone-input__focusVisible_1v6lz {
56
56
  outline: 2px solid var(--focus-color);
57
57
  outline-offset: 2px;
58
58
  }
@@ -1 +1 @@
1
- export * from "../../component-f0b09b0e";
1
+ export * from "../../component-94cfd480";
@@ -1,4 +1,4 @@
1
- export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-f0b09b0e.js';
1
+ export { E as EMPTY_COUNTRY_SELECT_FIELD, S as SelectField } from '../../component-94cfd480.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1ekzo */
1
+ /* hash: x8rcr */
2
2
  :root {
3
3
  --color-light-graphic-secondary: #6d7986;
4
4
  }
@@ -13,13 +13,13 @@
13
13
  :root {
14
14
  --gap-s: 12px;
15
15
  }
16
- .intl-phone-input__addons_1fxwe {
16
+ .intl-phone-input__addons_dq68h {
17
17
  padding-left: 0;
18
18
  }
19
- .intl-phone-input__l_1fxwe .intl-phone-input__addons_1fxwe, .intl-phone-input__xl_1fxwe .intl-phone-input__addons_1fxwe {
19
+ .intl-phone-input__l_dq68h .intl-phone-input__addons_dq68h, .intl-phone-input__xl_dq68h .intl-phone-input__addons_dq68h {
20
20
  padding-left: 0;
21
21
  }
22
- .intl-phone-input__flagIconWrapper_1fxwe {
22
+ .intl-phone-input__flagIconWrapper_dq68h {
23
23
  display: flex;
24
24
  justify-content: center;
25
25
  align-items: center;
@@ -27,6 +27,6 @@
27
27
  height: 24px;
28
28
  margin-left: var(--gap-s);
29
29
  }
30
- .intl-phone-input__emptyCountryIcon_1fxwe {
30
+ .intl-phone-input__emptyCountryIcon_dq68h {
31
31
  color: var(--color-light-graphic-secondary);
32
32
  }
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { IntlPhoneInput } from './component.js';
2
- import './component-f0b09b0e.js';
2
+ import './component-94cfd480.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1ekzo */
1
+ /* hash: x8rcr */
2
2
  :root {
3
3
  --color-light-graphic-secondary: #6d7986;
4
4
  }
@@ -13,13 +13,13 @@
13
13
  :root {
14
14
  --gap-s: 12px;
15
15
  }
16
- .intl-phone-input__addons_1fxwe {
16
+ .intl-phone-input__addons_dq68h {
17
17
  padding-left: 0;
18
18
  }
19
- .intl-phone-input__l_1fxwe .intl-phone-input__addons_1fxwe, .intl-phone-input__xl_1fxwe .intl-phone-input__addons_1fxwe {
19
+ .intl-phone-input__l_dq68h .intl-phone-input__addons_dq68h, .intl-phone-input__xl_dq68h .intl-phone-input__addons_dq68h {
20
20
  padding-left: 0;
21
21
  }
22
- .intl-phone-input__flagIconWrapper_1fxwe {
22
+ .intl-phone-input__flagIconWrapper_dq68h {
23
23
  display: flex;
24
24
  justify-content: center;
25
25
  align-items: center;
@@ -27,6 +27,6 @@
27
27
  height: 24px;
28
28
  margin-left: var(--gap-s);
29
29
  }
30
- .intl-phone-input__emptyCountryIcon_1fxwe {
30
+ .intl-phone-input__emptyCountryIcon_dq68h {
31
31
  color: var(--color-light-graphic-secondary);
32
32
  }
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var component = require('./component.js');
4
- require('./component-ad5d85bd.js');
4
+ require('./component-921e60df.js');
5
5
  require('react');
6
6
  require('react-merge-refs');
7
7
  require('classnames');
@@ -15,7 +15,7 @@ import './components/flag-icon/flagSprite.js';
15
15
  import '@alfalab/core-components-select/modern';
16
16
  import './components/select-field/component.js';
17
17
 
18
- const styles = {"addons":"intl-phone-input__addons_1fxwe","l":"intl-phone-input__l_1fxwe","xl":"intl-phone-input__xl_1fxwe","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fxwe","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fxwe"};
18
+ const styles = {"addons":"intl-phone-input__addons_dq68h","l":"intl-phone-input__l_dq68h","xl":"intl-phone-input__xl_dq68h","flagIconWrapper":"intl-phone-input__flagIconWrapper_dq68h","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_dq68h"};
19
19
  require('./index.css')
20
20
 
21
21
  const countriesHash = getCountriesHash();
@@ -90,9 +90,18 @@ const IntlPhoneInput = forwardRef(({ disabled = false, readOnly = false, hideCou
90
90
  });
91
91
  return targetCountry;
92
92
  };
93
+ const addCountryCode = (inputValue) => {
94
+ if (clearableCountryCode || !countryIso2) {
95
+ return inputValue.length === 1 && inputValue !== '+'
96
+ ? `+${inputValue}`
97
+ : inputValue;
98
+ }
99
+ const country = countriesHash[countryIso2];
100
+ return formatPhoneWithUnclearableCountryCode(inputValue, country);
101
+ };
93
102
  const setCountryByDialCode = (inputValue) => {
94
103
  const country = getCountryByNumber(inputValue);
95
- onChange(formatPhone(inputValue));
104
+ onChange(formatPhone(addCountryCode(inputValue)));
96
105
  if (country) {
97
106
  setCountryIso2(country.iso2);
98
107
  handleCountryChange(country.iso2);
@@ -110,15 +119,6 @@ const IntlPhoneInput = forwardRef(({ disabled = false, readOnly = false, hideCou
110
119
  }
111
120
  }
112
121
  };
113
- const addCountryCode = (inputValue) => {
114
- if (clearableCountryCode || !countryIso2) {
115
- return inputValue.length === 1 && inputValue !== '+'
116
- ? `+${inputValue}`
117
- : inputValue;
118
- }
119
- const country = countriesHash[countryIso2];
120
- return formatPhoneWithUnclearableCountryCode(inputValue, country);
121
- };
122
122
  const handleInputChange = (event) => {
123
123
  setCountryByDialCodeWithLengthCheck(event.target.value);
124
124
  onChange(formatPhone(addCountryCode(event.target.value)));
@@ -263,7 +263,7 @@ const IntlPhoneInput = forwardRef(({ disabled = false, readOnly = false, hideCou
263
263
  if (phoneLibUtils.current)
264
264
  return;
265
265
  import(
266
- /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-befabdb6.js')
266
+ /* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-5284ff94.js')
267
267
  .then((utils) => {
268
268
  phoneLibUtils.current = utils.AsYouType;
269
269
  if (canBeEmptyCountry) {
@@ -2,12 +2,12 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- const styles = {"flagIcon":"intl-phone-input__flagIcon_htvnp","flagPlaceholder":"intl-phone-input__flagPlaceholder_htvnp"};
5
+ const styles = {"flagIcon":"intl-phone-input__flagIcon_1mahb","flagPlaceholder":"intl-phone-input__flagPlaceholder_1mahb"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
9
9
  * Компонент флага в виде иконки.
10
10
  */
11
- const FlagIcon = ({ country = '', className }) => flagSprite[country] ? (React.createElement("span", { className: cn(styles.flagIcon, className), dangerouslySetInnerHTML: { __html: flagSprite[country] } })) : (React.createElement("div", { className: cn(styles.flagPlaceholder, className) }));
11
+ const FlagIcon = ({ country = '', className }) => flagSprite[country] ? (React.createElement("span", { className: cn(styles.flagIcon, className), "data-test-id": `flag-icon-${country}`, dangerouslySetInnerHTML: { __html: flagSprite[country] } })) : (React.createElement("div", { className: cn(styles.flagPlaceholder, className) }));
12
12
 
13
13
  export { FlagIcon };
@@ -1,4 +1,4 @@
1
- /* hash: 4wqkm */
1
+ /* hash: 1mlma */
2
2
  :root {
3
3
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
4
4
  }
@@ -16,11 +16,11 @@
16
16
  :root {
17
17
  --border-radius-xs: 2px;
18
18
  }
19
- .intl-phone-input__flagIcon_htvnp {
19
+ .intl-phone-input__flagIcon_1mahb {
20
20
  max-width: 24px;
21
21
  max-height: 24px;
22
22
  }
23
- .intl-phone-input__flagPlaceholder_htvnp {
23
+ .intl-phone-input__flagPlaceholder_1mahb {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -8,7 +8,7 @@ import 'react-merge-refs';
8
8
  import '@alfalab/hooks';
9
9
  import '@alfalab/icons-glyph/WorldMagnifierMIcon';
10
10
 
11
- const styles = {"component":"intl-phone-input__component_1i23b","option":"intl-phone-input__option_1i23b","flag":"intl-phone-input__flag_1i23b","countryName":"intl-phone-input__countryName_1i23b","dialCode":"intl-phone-input__dialCode_1i23b"};
11
+ const styles = {"component":"intl-phone-input__component_cdgmd","option":"intl-phone-input__option_cdgmd","flag":"intl-phone-input__flag_cdgmd","countryName":"intl-phone-input__countryName_cdgmd","dialCode":"intl-phone-input__dialCode_cdgmd"};
12
12
  require('./index.css')
13
13
 
14
14
  /* eslint-disable jsx-a11y/no-static-element-interactions */
@@ -1,4 +1,4 @@
1
- /* hash: 193l8 */
1
+ /* hash: 1wdb1 */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -16,23 +16,23 @@
16
16
  :root {
17
17
  --text-secondary-color: var(--color-light-text-secondary);
18
18
  }
19
- .intl-phone-input__component_1i23b {
19
+ .intl-phone-input__component_cdgmd {
20
20
  position: static;
21
21
  display: flex;
22
22
  min-width: initial;
23
23
  height: 100%;
24
24
  }
25
- .intl-phone-input__option_1i23b {
25
+ .intl-phone-input__option_cdgmd {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
28
  }
29
- .intl-phone-input__flag_1i23b {
29
+ .intl-phone-input__flag_cdgmd {
30
30
  flex-shrink: 0;
31
31
  margin-right: var(--gap-xs);
32
32
  }
33
- .intl-phone-input__countryName_1i23b {
33
+ .intl-phone-input__countryName_cdgmd {
34
34
  margin-right: var(--gap-xs);
35
35
  }
36
- .intl-phone-input__dialCode_1i23b {
36
+ .intl-phone-input__dialCode_cdgmd {
37
37
  color: var(--text-secondary-color);
38
38
  }
@@ -6,7 +6,7 @@ import WorldMagnifierMIcon from '@alfalab/icons-glyph/WorldMagnifierMIcon';
6
6
  import { FlagIcon } from '../flag-icon/component.js';
7
7
  import '../flag-icon/flagSprite.js';
8
8
 
9
- const styles = {"component":"intl-phone-input__component_11kns","flagIconContainer":"intl-phone-input__flagIconContainer_11kns","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_11kns","disabled":"intl-phone-input__disabled_11kns","inner":"intl-phone-input__inner_11kns","l":"intl-phone-input__l_11kns","xl":"intl-phone-input__xl_11kns","focusVisible":"intl-phone-input__focusVisible_11kns"};
9
+ const styles = {"component":"intl-phone-input__component_1v6lz","flagIconContainer":"intl-phone-input__flagIconContainer_1v6lz","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1v6lz","disabled":"intl-phone-input__disabled_1v6lz","inner":"intl-phone-input__inner_1v6lz","l":"intl-phone-input__l_1v6lz","xl":"intl-phone-input__xl_1v6lz","focusVisible":"intl-phone-input__focusVisible_1v6lz"};
10
10
  require('./index.css')
11
11
 
12
12
  const EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: mrnlc */
1
+ /* hash: h0bvp */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-graphic-secondary: #6d7986;
@@ -20,13 +20,13 @@
20
20
  --focus-color: var(--color-light-border-link);
21
21
  --disabled-cursor: not-allowed;
22
22
  }
23
- .intl-phone-input__component_11kns {
23
+ .intl-phone-input__component_1v6lz {
24
24
  height: 100%;
25
25
  cursor: pointer;
26
26
  outline: none;
27
27
  position: relative;
28
28
  }
29
- .intl-phone-input__flagIconContainer_11kns {
29
+ .intl-phone-input__flagIconContainer_1v6lz {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
@@ -34,13 +34,13 @@
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
36
  }
37
- .intl-phone-input__emptyCountryIcon_11kns {
37
+ .intl-phone-input__emptyCountryIcon_1v6lz {
38
38
  color: var(--color-light-graphic-secondary);
39
39
  }
40
- .intl-phone-input__disabled_11kns {
40
+ .intl-phone-input__disabled_1v6lz {
41
41
  cursor: var(--disabled-cursor);
42
42
  }
43
- .intl-phone-input__inner_11kns {
43
+ .intl-phone-input__inner_1v6lz {
44
44
  position: relative;
45
45
  display: flex;
46
46
  align-items: center;
@@ -48,11 +48,11 @@
48
48
  padding-left: var(--gap-s);
49
49
  outline: none;
50
50
  }
51
- .intl-phone-input__l_11kns .intl-phone-input__inner_11kns,
52
- .intl-phone-input__xl_11kns .intl-phone-input__inner_11kns {
51
+ .intl-phone-input__l_1v6lz .intl-phone-input__inner_1v6lz,
52
+ .intl-phone-input__xl_1v6lz .intl-phone-input__inner_1v6lz {
53
53
  padding-left: var(--gap-m);
54
54
  }
55
- .intl-phone-input__focusVisible_11kns {
55
+ .intl-phone-input__focusVisible_1v6lz {
56
56
  outline: 2px solid var(--focus-color);
57
57
  outline-offset: 2px;
58
58
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1ekzo */
1
+ /* hash: x8rcr */
2
2
  :root {
3
3
  --color-light-graphic-secondary: #6d7986;
4
4
  }
@@ -13,13 +13,13 @@
13
13
  :root {
14
14
  --gap-s: 12px;
15
15
  }
16
- .intl-phone-input__addons_1fxwe {
16
+ .intl-phone-input__addons_dq68h {
17
17
  padding-left: 0;
18
18
  }
19
- .intl-phone-input__l_1fxwe .intl-phone-input__addons_1fxwe, .intl-phone-input__xl_1fxwe .intl-phone-input__addons_1fxwe {
19
+ .intl-phone-input__l_dq68h .intl-phone-input__addons_dq68h, .intl-phone-input__xl_dq68h .intl-phone-input__addons_dq68h {
20
20
  padding-left: 0;
21
21
  }
22
- .intl-phone-input__flagIconWrapper_1fxwe {
22
+ .intl-phone-input__flagIconWrapper_dq68h {
23
23
  display: flex;
24
24
  justify-content: center;
25
25
  align-items: center;
@@ -27,6 +27,6 @@
27
27
  height: 24px;
28
28
  margin-left: var(--gap-s);
29
29
  }
30
- .intl-phone-input__emptyCountryIcon_1fxwe {
30
+ .intl-phone-input__emptyCountryIcon_dq68h {
31
31
  color: var(--color-light-graphic-secondary);
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-intl-phone-input",
3
- "version": "9.2.3",
3
+ "version": "9.2.4",
4
4
  "description": "Phone input for international phones",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,9 +17,9 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-input": "^11.1.2",
21
- "@alfalab/core-components-input-autocomplete": "9.3.1",
22
- "@alfalab/core-components-select": "^13.2.4",
20
+ "@alfalab/core-components-input": "^11.1.3",
21
+ "@alfalab/core-components-input-autocomplete": "9.3.2",
22
+ "@alfalab/core-components-select": "^13.2.5",
23
23
  "@alfalab/hooks": "^1.4.1",
24
24
  "@alfalab/utils": "^1.13.3",
25
25
  "classnames": "^2.3.1",