@alfalab/core-components-international-phone-input 1.0.2 → 1.0.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 (30) hide show
  1. package/components/base-international-phone-input/Component.js +1 -1
  2. package/components/base-international-phone-input/index.css +2 -2
  3. package/components/country-select/Component.js +1 -1
  4. package/components/country-select/index.css +8 -8
  5. package/components/flag-icon/component.js +1 -1
  6. package/components/flag-icon/index.css +3 -3
  7. package/components/select-field/component.js +1 -1
  8. package/components/select-field/index.css +9 -9
  9. package/esm/components/base-international-phone-input/Component.js +1 -1
  10. package/esm/components/base-international-phone-input/index.css +2 -2
  11. package/esm/components/country-select/Component.js +1 -1
  12. package/esm/components/country-select/index.css +8 -8
  13. package/esm/components/flag-icon/component.js +1 -1
  14. package/esm/components/flag-icon/index.css +3 -3
  15. package/esm/components/select-field/component.js +1 -1
  16. package/esm/components/select-field/index.css +9 -9
  17. package/modern/Component-8b2c2707.d.ts +1 -1
  18. package/modern/Component.mobile-4cd3936b.d.ts +1 -1
  19. package/modern/Component.modal.mobile-4cd3936b.d.ts +1 -1
  20. package/modern/Component.responsive.d.ts +5 -5
  21. package/modern/components/base-international-phone-input/Component.d.ts +2 -2
  22. package/modern/components/base-international-phone-input/Component.js +1 -1
  23. package/modern/components/base-international-phone-input/index.css +2 -2
  24. package/modern/components/country-select/Component.js +1 -1
  25. package/modern/components/country-select/index.css +8 -8
  26. package/modern/components/flag-icon/component.js +1 -1
  27. package/modern/components/flag-icon/index.css +3 -3
  28. package/modern/components/select-field/component.js +1 -1
  29. package/modern/components/select-field/index.css +9 -9
  30. package/package.json +3 -3
@@ -25,7 +25,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
25
25
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
26
26
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
27
27
 
28
- var styles = {"component":"international-phone-input__component_1qs7j","addons":"international-phone-input__addons_1qs7j"};
28
+ var styles = {"component":"international-phone-input__component_gub4x","addons":"international-phone-input__addons_gub4x"};
29
29
  require('./index.css')
30
30
 
31
31
  var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: 52r4w */
1
+ /* hash: 1vade */
2
2
 
3
- .international-phone-input__component_1qs7j .international-phone-input__addons_1qs7j {
3
+ .international-phone-input__component_gub4x .international-phone-input__addons_gub4x {
4
4
  padding-left: 0;
5
5
  }
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
18
18
 
19
19
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
20
20
 
21
- var styles = {"component":"international-phone-input__component_jun45","option":"international-phone-input__option_jun45","flag":"international-phone-input__flag_jun45","countryName":"international-phone-input__countryName_jun45","dialCode":"international-phone-input__dialCode_jun45","flagIconWrapper":"international-phone-input__flagIconWrapper_jun45","emptyCountryIcon":"international-phone-input__emptyCountryIcon_jun45"};
21
+ var styles = {"component":"international-phone-input__component_1difn","option":"international-phone-input__option_1difn","flag":"international-phone-input__flag_1difn","countryName":"international-phone-input__countryName_1difn","dialCode":"international-phone-input__dialCode_1difn","flagIconWrapper":"international-phone-input__flagIconWrapper_1difn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1difn"};
22
22
  require('./index.css')
23
23
 
24
24
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: aglkp */
1
+ /* hash: z45eq */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-secondary: #86868a;
@@ -19,29 +19,29 @@
19
19
  } :root {
20
20
  } :root {
21
21
  --text-secondary-color: var(--color-light-text-secondary);
22
- } .international-phone-input__component_jun45 {
22
+ } .international-phone-input__component_1difn {
23
23
  position: static;
24
24
  display: flex;
25
25
  min-width: initial;
26
26
  height: 100%;
27
- } .international-phone-input__option_jun45 {
27
+ } .international-phone-input__option_1difn {
28
28
  display: flex;
29
29
  align-items: flex-start;
30
30
  padding: var(--gap-s);
31
- } .international-phone-input__flag_jun45 {
31
+ } .international-phone-input__flag_1difn {
32
32
  flex-shrink: 0;
33
33
  margin-right: var(--gap-xs);
34
- } .international-phone-input__countryName_jun45 {
34
+ } .international-phone-input__countryName_1difn {
35
35
  margin-right: var(--gap-xs);
36
- } .international-phone-input__dialCode_jun45 {
36
+ } .international-phone-input__dialCode_1difn {
37
37
  color: var(--text-secondary-color);
38
- } .international-phone-input__flagIconWrapper_jun45 {
38
+ } .international-phone-input__flagIconWrapper_1difn {
39
39
  display: flex;
40
40
  justify-content: center;
41
41
  align-items: center;
42
42
  width: 24px;
43
43
  height: 24px;
44
44
  margin-left: var(--gap-s);
45
- } .international-phone-input__emptyCountryIcon_jun45 {
45
+ } .international-phone-input__emptyCountryIcon_1difn {
46
46
  color: var(--color-light-graphic-secondary);
47
47
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"flagIcon":"international-phone-input__flagIcon_1cay9","flagPlaceholder":"international-phone-input__flagPlaceholder_1cay9"};
14
+ var styles = {"flagIcon":"international-phone-input__flagIcon_in5qt","flagPlaceholder":"international-phone-input__flagPlaceholder_in5qt"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,4 +1,4 @@
1
- /* hash: s4cbc */
1
+ /* hash: 3gshb */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_1cay9 {
20
+ } .international-phone-input__flagIcon_in5qt {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_1cay9 {
23
+ } .international-phone-input__flagPlaceholder_in5qt {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -17,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"component":"international-phone-input__component_e0t5l","flagIconContainer":"international-phone-input__flagIconContainer_e0t5l","emptyCountryIcon":"international-phone-input__emptyCountryIcon_e0t5l","disabled":"international-phone-input__disabled_e0t5l","inner":"international-phone-input__inner_e0t5l","l":"international-phone-input__l_e0t5l","xl":"international-phone-input__xl_e0t5l","focusVisible":"international-phone-input__focusVisible_e0t5l"};
20
+ var styles = {"component":"international-phone-input__component_1nypj","flagIconContainer":"international-phone-input__flagIconContainer_1nypj","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1nypj","disabled":"international-phone-input__disabled_1nypj","inner":"international-phone-input__inner_1nypj","l":"international-phone-input__l_1nypj","xl":"international-phone-input__xl_1nypj","focusVisible":"international-phone-input__focusVisible_1nypj"};
21
21
  require('./index.css')
22
22
 
23
23
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1ofkt */
1
+ /* hash: 1x92l */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_e0t5l {
24
+ } .international-phone-input__component_1nypj {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_e0t5l {
29
+ } .international-phone-input__flagIconContainer_1nypj {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_e0t5l {
36
+ } .international-phone-input__emptyCountryIcon_1nypj {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .international-phone-input__disabled_e0t5l {
38
+ } .international-phone-input__disabled_1nypj {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_e0t5l {
40
+ } .international-phone-input__inner_1nypj {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__l_e0t5l .international-phone-input__inner_e0t5l,
48
- .international-phone-input__xl_e0t5l .international-phone-input__inner_e0t5l {
47
+ } .international-phone-input__l_1nypj .international-phone-input__inner_1nypj,
48
+ .international-phone-input__xl_1nypj .international-phone-input__inner_1nypj {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_e0t5l {
50
+ } .international-phone-input__focusVisible_1nypj {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -16,7 +16,7 @@ import '../flag-icon/flagSprite.js';
16
16
  import '../select-field/component.js';
17
17
  import '@alfalab/hooks';
18
18
 
19
- var styles = {"component":"international-phone-input__component_1qs7j","addons":"international-phone-input__addons_1qs7j"};
19
+ var styles = {"component":"international-phone-input__component_gub4x","addons":"international-phone-input__addons_gub4x"};
20
20
  require('./index.css')
21
21
 
22
22
  var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: 52r4w */
1
+ /* hash: 1vade */
2
2
 
3
- .international-phone-input__component_1qs7j .international-phone-input__addons_1qs7j {
3
+ .international-phone-input__component_gub4x .international-phone-input__addons_gub4x {
4
4
  padding-left: 0;
5
5
  }
@@ -10,7 +10,7 @@ import '../flag-icon/flagSprite.js';
10
10
  import 'react-merge-refs';
11
11
  import '@alfalab/hooks';
12
12
 
13
- var styles = {"component":"international-phone-input__component_jun45","option":"international-phone-input__option_jun45","flag":"international-phone-input__flag_jun45","countryName":"international-phone-input__countryName_jun45","dialCode":"international-phone-input__dialCode_jun45","flagIconWrapper":"international-phone-input__flagIconWrapper_jun45","emptyCountryIcon":"international-phone-input__emptyCountryIcon_jun45"};
13
+ var styles = {"component":"international-phone-input__component_1difn","option":"international-phone-input__option_1difn","flag":"international-phone-input__flag_1difn","countryName":"international-phone-input__countryName_1difn","dialCode":"international-phone-input__dialCode_1difn","flagIconWrapper":"international-phone-input__flagIconWrapper_1difn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1difn"};
14
14
  require('./index.css')
15
15
 
16
16
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: aglkp */
1
+ /* hash: z45eq */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-secondary: #86868a;
@@ -19,29 +19,29 @@
19
19
  } :root {
20
20
  } :root {
21
21
  --text-secondary-color: var(--color-light-text-secondary);
22
- } .international-phone-input__component_jun45 {
22
+ } .international-phone-input__component_1difn {
23
23
  position: static;
24
24
  display: flex;
25
25
  min-width: initial;
26
26
  height: 100%;
27
- } .international-phone-input__option_jun45 {
27
+ } .international-phone-input__option_1difn {
28
28
  display: flex;
29
29
  align-items: flex-start;
30
30
  padding: var(--gap-s);
31
- } .international-phone-input__flag_jun45 {
31
+ } .international-phone-input__flag_1difn {
32
32
  flex-shrink: 0;
33
33
  margin-right: var(--gap-xs);
34
- } .international-phone-input__countryName_jun45 {
34
+ } .international-phone-input__countryName_1difn {
35
35
  margin-right: var(--gap-xs);
36
- } .international-phone-input__dialCode_jun45 {
36
+ } .international-phone-input__dialCode_1difn {
37
37
  color: var(--text-secondary-color);
38
- } .international-phone-input__flagIconWrapper_jun45 {
38
+ } .international-phone-input__flagIconWrapper_1difn {
39
39
  display: flex;
40
40
  justify-content: center;
41
41
  align-items: center;
42
42
  width: 24px;
43
43
  height: 24px;
44
44
  margin-left: var(--gap-s);
45
- } .international-phone-input__emptyCountryIcon_jun45 {
45
+ } .international-phone-input__emptyCountryIcon_1difn {
46
46
  color: var(--color-light-graphic-secondary);
47
47
  }
@@ -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":"international-phone-input__flagIcon_1cay9","flagPlaceholder":"international-phone-input__flagPlaceholder_1cay9"};
5
+ var styles = {"flagIcon":"international-phone-input__flagIcon_in5qt","flagPlaceholder":"international-phone-input__flagPlaceholder_in5qt"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: s4cbc */
1
+ /* hash: 3gshb */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_1cay9 {
20
+ } .international-phone-input__flagIcon_in5qt {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_1cay9 {
23
+ } .international-phone-input__flagPlaceholder_in5qt {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -7,7 +7,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
7
7
  import { FlagIcon } from '../flag-icon/component.js';
8
8
  import '../flag-icon/flagSprite.js';
9
9
 
10
- var styles = {"component":"international-phone-input__component_e0t5l","flagIconContainer":"international-phone-input__flagIconContainer_e0t5l","emptyCountryIcon":"international-phone-input__emptyCountryIcon_e0t5l","disabled":"international-phone-input__disabled_e0t5l","inner":"international-phone-input__inner_e0t5l","l":"international-phone-input__l_e0t5l","xl":"international-phone-input__xl_e0t5l","focusVisible":"international-phone-input__focusVisible_e0t5l"};
10
+ var styles = {"component":"international-phone-input__component_1nypj","flagIconContainer":"international-phone-input__flagIconContainer_1nypj","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1nypj","disabled":"international-phone-input__disabled_1nypj","inner":"international-phone-input__inner_1nypj","l":"international-phone-input__l_1nypj","xl":"international-phone-input__xl_1nypj","focusVisible":"international-phone-input__focusVisible_1nypj"};
11
11
  require('./index.css')
12
12
 
13
13
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1ofkt */
1
+ /* hash: 1x92l */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_e0t5l {
24
+ } .international-phone-input__component_1nypj {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_e0t5l {
29
+ } .international-phone-input__flagIconContainer_1nypj {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_e0t5l {
36
+ } .international-phone-input__emptyCountryIcon_1nypj {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .international-phone-input__disabled_e0t5l {
38
+ } .international-phone-input__disabled_1nypj {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_e0t5l {
40
+ } .international-phone-input__inner_1nypj {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__l_e0t5l .international-phone-input__inner_e0t5l,
48
- .international-phone-input__xl_e0t5l .international-phone-input__inner_e0t5l {
47
+ } .international-phone-input__l_1nypj .international-phone-input__inner_1nypj,
48
+ .international-phone-input__xl_1nypj .international-phone-input__inner_1nypj {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_e0t5l {
50
+ } .international-phone-input__focusVisible_1nypj {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -49,7 +49,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
49
49
  /**
50
50
  * Размер компонента
51
51
  */
52
- size?: "s" | "xs" | "xxs" | undefined;
52
+ size?: "xs" | "s" | "xxs" | undefined;
53
53
  /**
54
54
  * Дополнительный класс
55
55
  */
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
49
49
  */
50
50
  Input?: ElementType;
51
51
  };
52
- declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
52
+ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
53
53
  /**
54
54
  * Обработчик выбора
55
55
  */
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
46
46
  */
47
47
  Input?: ElementType;
48
48
  };
49
- declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
49
+ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
50
50
  /**
51
51
  * Обработчик выбора
52
52
  */
@@ -12,8 +12,8 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
12
12
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
13
  value: string;
14
14
  }) => void) | undefined;
15
- onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
16
- onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
15
+ onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
16
+ onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
17
17
  } & {
18
18
  options?: undefined;
19
19
  } & Omit<import("./Component.desktop-d873d97d").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "clear" | "onClear"> & {
@@ -33,13 +33,13 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
33
33
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
34
  value: string;
35
35
  }) => void) | undefined;
36
- onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
- onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
36
+ onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
37
+ onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
38
38
  } & {
39
39
  options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
40
40
  } & Omit<import("./Component.desktop-9cded6b9").InputAutocompleteDesktopProps, "onChange"> & {
41
41
  options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
42
- } & Omit<import("./Component.mobile-4cd3936b").InputAutocompleteMobileProps, "filter" | "onChange" | "onFilter" | "onClearFilter"> & {
42
+ } & Omit<import("./Component.mobile-4cd3936b").InputAutocompleteMobileProps, "onChange" | "filter" | "onFilter" | "onClearFilter"> & {
43
43
  breakpoint?: number | undefined;
44
44
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
45
45
  })) & React.RefAttributes<HTMLInputElement>>;
@@ -14,8 +14,8 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
14
14
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
15
  value: string;
16
16
  }) => void) | undefined;
17
- onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
18
- onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
17
+ onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
18
+ onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
19
19
  } & {
20
20
  Input: React.FC<import("@alfalab/core-components-input").InputProps>;
21
21
  InputAutocomplete: React.FC<InputAutocompleteProps>;
@@ -15,7 +15,7 @@ import '../flag-icon/flagSprite.js';
15
15
  import '../select-field/component.js';
16
16
  import '@alfalab/hooks';
17
17
 
18
- const styles = {"component":"international-phone-input__component_1qs7j","addons":"international-phone-input__addons_1qs7j"};
18
+ const styles = {"component":"international-phone-input__component_gub4x","addons":"international-phone-input__addons_gub4x"};
19
19
  require('./index.css')
20
20
 
21
21
  const BaseInternationalPhoneInput = forwardRef(({ clearableCountryCode, value, country, onChange, onCountryChange, countrySelectProps, countries, defaultIso2, disabled, options, size = 'm', Input, InputAutocomplete, SelectComponent, view, bottomSheetHeaderAddonsProps, countriesData, clear, ...restProps }, ref) => {
@@ -1,5 +1,5 @@
1
- /* hash: 52r4w */
1
+ /* hash: 1vade */
2
2
 
3
- .international-phone-input__component_1qs7j .international-phone-input__addons_1qs7j {
3
+ .international-phone-input__component_gub4x .international-phone-input__addons_gub4x {
4
4
  padding-left: 0;
5
5
  }
@@ -9,7 +9,7 @@ import '../flag-icon/flagSprite.js';
9
9
  import 'react-merge-refs';
10
10
  import '@alfalab/hooks';
11
11
 
12
- const styles = {"component":"international-phone-input__component_jun45","option":"international-phone-input__option_jun45","flag":"international-phone-input__flag_jun45","countryName":"international-phone-input__countryName_jun45","dialCode":"international-phone-input__dialCode_jun45","flagIconWrapper":"international-phone-input__flagIconWrapper_jun45","emptyCountryIcon":"international-phone-input__emptyCountryIcon_jun45"};
12
+ const styles = {"component":"international-phone-input__component_1difn","option":"international-phone-input__option_1difn","flag":"international-phone-input__flag_1difn","countryName":"international-phone-input__countryName_1difn","dialCode":"international-phone-input__dialCode_1difn","flagIconWrapper":"international-phone-input__flagIconWrapper_1difn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1difn"};
13
13
  require('./index.css')
14
14
 
15
15
  const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: aglkp */
1
+ /* hash: z45eq */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-secondary: #86868a;
@@ -19,29 +19,29 @@
19
19
  } :root {
20
20
  } :root {
21
21
  --text-secondary-color: var(--color-light-text-secondary);
22
- } .international-phone-input__component_jun45 {
22
+ } .international-phone-input__component_1difn {
23
23
  position: static;
24
24
  display: flex;
25
25
  min-width: initial;
26
26
  height: 100%;
27
- } .international-phone-input__option_jun45 {
27
+ } .international-phone-input__option_1difn {
28
28
  display: flex;
29
29
  align-items: flex-start;
30
30
  padding: var(--gap-s);
31
- } .international-phone-input__flag_jun45 {
31
+ } .international-phone-input__flag_1difn {
32
32
  flex-shrink: 0;
33
33
  margin-right: var(--gap-xs);
34
- } .international-phone-input__countryName_jun45 {
34
+ } .international-phone-input__countryName_1difn {
35
35
  margin-right: var(--gap-xs);
36
- } .international-phone-input__dialCode_jun45 {
36
+ } .international-phone-input__dialCode_1difn {
37
37
  color: var(--text-secondary-color);
38
- } .international-phone-input__flagIconWrapper_jun45 {
38
+ } .international-phone-input__flagIconWrapper_1difn {
39
39
  display: flex;
40
40
  justify-content: center;
41
41
  align-items: center;
42
42
  width: 24px;
43
43
  height: 24px;
44
44
  margin-left: var(--gap-s);
45
- } .international-phone-input__emptyCountryIcon_jun45 {
45
+ } .international-phone-input__emptyCountryIcon_1difn {
46
46
  color: var(--color-light-graphic-secondary);
47
47
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- const styles = {"flagIcon":"international-phone-input__flagIcon_1cay9","flagPlaceholder":"international-phone-input__flagPlaceholder_1cay9"};
5
+ const styles = {"flagIcon":"international-phone-input__flagIcon_in5qt","flagPlaceholder":"international-phone-input__flagPlaceholder_in5qt"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: s4cbc */
1
+ /* hash: 3gshb */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_1cay9 {
20
+ } .international-phone-input__flagIcon_in5qt {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_1cay9 {
23
+ } .international-phone-input__flagPlaceholder_in5qt {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -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":"international-phone-input__component_e0t5l","flagIconContainer":"international-phone-input__flagIconContainer_e0t5l","emptyCountryIcon":"international-phone-input__emptyCountryIcon_e0t5l","disabled":"international-phone-input__disabled_e0t5l","inner":"international-phone-input__inner_e0t5l","l":"international-phone-input__l_e0t5l","xl":"international-phone-input__xl_e0t5l","focusVisible":"international-phone-input__focusVisible_e0t5l"};
9
+ const styles = {"component":"international-phone-input__component_1nypj","flagIconContainer":"international-phone-input__flagIconContainer_1nypj","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1nypj","disabled":"international-phone-input__disabled_1nypj","inner":"international-phone-input__inner_1nypj","l":"international-phone-input__l_1nypj","xl":"international-phone-input__xl_1nypj","focusVisible":"international-phone-input__focusVisible_1nypj"};
10
10
  require('./index.css')
11
11
 
12
12
  const EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1ofkt */
1
+ /* hash: 1x92l */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_e0t5l {
24
+ } .international-phone-input__component_1nypj {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_e0t5l {
29
+ } .international-phone-input__flagIconContainer_1nypj {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_e0t5l {
36
+ } .international-phone-input__emptyCountryIcon_1nypj {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .international-phone-input__disabled_e0t5l {
38
+ } .international-phone-input__disabled_1nypj {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_e0t5l {
40
+ } .international-phone-input__inner_1nypj {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__l_e0t5l .international-phone-input__inner_e0t5l,
48
- .international-phone-input__xl_e0t5l .international-phone-input__inner_e0t5l {
47
+ } .international-phone-input__l_1nypj .international-phone-input__inner_1nypj,
48
+ .international-phone-input__xl_1nypj .international-phone-input__inner_1nypj {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_e0t5l {
50
+ } .international-phone-input__focusVisible_1nypj {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-international-phone-input",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,9 +14,9 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-input-autocomplete": "10.2.1",
17
+ "@alfalab/core-components-input-autocomplete": "10.2.3",
18
18
  "@alfalab/core-components-input": "^12.2.1",
19
- "@alfalab/core-components-select": "^15.2.1",
19
+ "@alfalab/core-components-select": "^15.2.3",
20
20
  "@alfalab/core-components-shared": "^0.6.0",
21
21
  "@alfalab/core-components-mq": "^4.2.0",
22
22
  "@alfalab/hooks": "^1.13.0",