@alfalab/core-components-international-phone-input 1.1.0 → 1.2.0

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 (137) hide show
  1. package/Component-0816e61d.d.ts +5 -0
  2. package/Component-8b2c2707.d.ts +71 -0
  3. package/Component.desktop-0aa4e915.d.ts +5 -0
  4. package/Component.desktop.js +6 -17
  5. package/Component.mobile.js +6 -52
  6. package/Component.responsive.d.ts +8 -8
  7. package/components/base-international-phone-input/Component.d.ts +2 -3
  8. package/components/base-international-phone-input/Component.js +25 -13
  9. package/components/base-international-phone-input/index.css +2 -2
  10. package/components/country-select/Component.js +1 -1
  11. package/components/country-select/index.css +12 -13
  12. package/components/flag-icon/component.js +1 -1
  13. package/components/flag-icon/index.css +5 -5
  14. package/components/select-field/component.js +1 -1
  15. package/components/select-field/index.css +12 -12
  16. package/consts-f777ba1a.d.ts +2 -0
  17. package/cssm/Component-0816e61d.d.ts +5 -0
  18. package/cssm/Component-8b2c2707.d.ts +71 -0
  19. package/cssm/Component.desktop-0aa4e915.d.ts +5 -0
  20. package/cssm/Component.desktop.js +6 -17
  21. package/cssm/Component.mobile.js +7 -53
  22. package/cssm/Component.responsive.d.ts +8 -8
  23. package/cssm/components/base-international-phone-input/Component.d.ts +2 -3
  24. package/cssm/components/base-international-phone-input/Component.js +24 -12
  25. package/cssm/components/country-select/index.module.css +4 -5
  26. package/cssm/components/flag-icon/index.module.css +2 -2
  27. package/cssm/components/select-field/index.module.css +3 -3
  28. package/cssm/consts-f777ba1a.d.ts +2 -0
  29. package/cssm/index-136acbb1.d.ts +28 -0
  30. package/cssm/index-72dda473.d.ts +12 -0
  31. package/cssm/index-89f0cb07.d.ts +2 -0
  32. package/cssm/index-8b2c2707.d.ts +7 -0
  33. package/cssm/index-bdb4c6b9.d.ts +183 -0
  34. package/cssm/index-c44170fe.d.ts +2 -0
  35. package/cssm/index-c76d6398.d.ts +319 -0
  36. package/cssm/index-ebda875c.d.ts +13 -138
  37. package/cssm/types-1b036d4b.d.ts +13 -0
  38. package/cssm/types-72dda473.d.ts +276 -0
  39. package/cssm/types.d.ts +6 -7
  40. package/cssm/{typings-0f4b9bed.d.ts → typings-0816e61d.d.ts} +214 -38
  41. package/cssm/typings-c44170fe.d.ts +91 -0
  42. package/cssm/useSkeleton-1b036d4b.d.ts +40 -0
  43. package/cssm/utils/index.d.ts +2 -2
  44. package/cssm/utils/index.js +3 -2
  45. package/cssm/utils-d2597f31.d.ts +41 -0
  46. package/esm/Component-0816e61d.d.ts +5 -0
  47. package/esm/Component-8b2c2707.d.ts +71 -0
  48. package/esm/Component.desktop-0aa4e915.d.ts +5 -0
  49. package/esm/Component.desktop.js +7 -18
  50. package/esm/Component.mobile.js +7 -53
  51. package/esm/Component.responsive.d.ts +8 -8
  52. package/esm/components/base-international-phone-input/Component.d.ts +2 -3
  53. package/esm/components/base-international-phone-input/Component.js +27 -15
  54. package/esm/components/base-international-phone-input/index.css +2 -2
  55. package/esm/components/country-select/Component.js +1 -1
  56. package/esm/components/country-select/index.css +12 -13
  57. package/esm/components/flag-icon/component.js +1 -1
  58. package/esm/components/flag-icon/index.css +5 -5
  59. package/esm/components/select-field/component.js +1 -1
  60. package/esm/components/select-field/index.css +12 -12
  61. package/esm/consts-f777ba1a.d.ts +2 -0
  62. package/esm/index-136acbb1.d.ts +28 -0
  63. package/esm/index-72dda473.d.ts +12 -0
  64. package/esm/index-89f0cb07.d.ts +2 -0
  65. package/esm/index-8b2c2707.d.ts +7 -0
  66. package/esm/index-bdb4c6b9.d.ts +183 -0
  67. package/esm/index-c44170fe.d.ts +2 -0
  68. package/esm/index-c76d6398.d.ts +319 -0
  69. package/esm/index-ebda875c.d.ts +13 -138
  70. package/esm/types-1b036d4b.d.ts +13 -0
  71. package/esm/types-72dda473.d.ts +276 -0
  72. package/esm/types.d.ts +6 -7
  73. package/esm/{typings-0f4b9bed.d.ts → typings-0816e61d.d.ts} +214 -38
  74. package/esm/typings-c44170fe.d.ts +91 -0
  75. package/esm/useSkeleton-1b036d4b.d.ts +40 -0
  76. package/esm/utils/index.d.ts +2 -2
  77. package/esm/utils/index.js +3 -2
  78. package/esm/utils-d2597f31.d.ts +41 -0
  79. package/index-136acbb1.d.ts +28 -0
  80. package/index-72dda473.d.ts +12 -0
  81. package/index-89f0cb07.d.ts +2 -0
  82. package/index-8b2c2707.d.ts +7 -0
  83. package/index-bdb4c6b9.d.ts +183 -0
  84. package/index-c44170fe.d.ts +2 -0
  85. package/index-c76d6398.d.ts +319 -0
  86. package/index-ebda875c.d.ts +13 -138
  87. package/modern/Component-0816e61d.d.ts +5 -0
  88. package/modern/Component-8b2c2707.d.ts +71 -0
  89. package/modern/Component.desktop-0aa4e915.d.ts +5 -0
  90. package/modern/Component.desktop.js +6 -17
  91. package/modern/Component.mobile.js +6 -59
  92. package/modern/Component.responsive.d.ts +8 -8
  93. package/modern/components/base-international-phone-input/Component.d.ts +2 -3
  94. package/modern/components/base-international-phone-input/Component.js +21 -15
  95. package/modern/components/base-international-phone-input/index.css +2 -2
  96. package/modern/components/country-select/Component.js +1 -1
  97. package/modern/components/country-select/index.css +12 -13
  98. package/modern/components/flag-icon/component.js +1 -1
  99. package/modern/components/flag-icon/index.css +5 -5
  100. package/modern/components/select-field/component.js +1 -1
  101. package/modern/components/select-field/index.css +12 -12
  102. package/modern/consts-f777ba1a.d.ts +2 -0
  103. package/modern/index-136acbb1.d.ts +28 -0
  104. package/modern/index-72dda473.d.ts +12 -0
  105. package/modern/index-89f0cb07.d.ts +2 -0
  106. package/modern/index-8b2c2707.d.ts +7 -0
  107. package/modern/index-bdb4c6b9.d.ts +183 -0
  108. package/modern/index-c44170fe.d.ts +2 -0
  109. package/modern/index-c76d6398.d.ts +319 -0
  110. package/modern/index-ebda875c.d.ts +13 -138
  111. package/modern/types-1b036d4b.d.ts +13 -0
  112. package/modern/types-72dda473.d.ts +276 -0
  113. package/modern/types.d.ts +6 -7
  114. package/modern/{typings-0f4b9bed.d.ts → typings-0816e61d.d.ts} +214 -38
  115. package/modern/typings-c44170fe.d.ts +91 -0
  116. package/modern/useSkeleton-1b036d4b.d.ts +40 -0
  117. package/modern/utils/index.d.ts +2 -2
  118. package/modern/utils/index.js +3 -2
  119. package/modern/utils-d2597f31.d.ts +41 -0
  120. package/package.json +5 -5
  121. package/src/Component.desktop.tsx +16 -54
  122. package/src/Component.mobile.tsx +18 -123
  123. package/src/components/base-international-phone-input/Component.tsx +42 -28
  124. package/src/components/country-select/index.module.css +2 -2
  125. package/src/components/flag-icon/index.module.css +1 -1
  126. package/src/components/select-field/index.module.css +1 -1
  127. package/src/types.ts +6 -7
  128. package/src/utils/index.ts +4 -2
  129. package/types-1b036d4b.d.ts +13 -0
  130. package/types-72dda473.d.ts +276 -0
  131. package/types.d.ts +6 -7
  132. package/{typings-0f4b9bed.d.ts → typings-0816e61d.d.ts} +214 -38
  133. package/typings-c44170fe.d.ts +91 -0
  134. package/useSkeleton-1b036d4b.d.ts +40 -0
  135. package/utils/index.d.ts +2 -2
  136. package/utils/index.js +3 -2
  137. package/utils-d2597f31.d.ts +41 -0
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptgroupProps } from "./typings-0816e61d";
4
+ declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
+ export { Optgroup };
@@ -0,0 +1,71 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactElement } from "react";
4
+ import { ButtonProps } from "./index-8b2c2707";
5
+ type IconButtonProps = {
6
+ /**
7
+ * Компонент иконки
8
+ */
9
+ icon: ElementType<{
10
+ className?: string;
11
+ }> | ReactElement;
12
+ /**
13
+ * Тип кнопки
14
+ */
15
+ view?: 'primary' | 'secondary' | 'transparent' | 'tertiary' | 'negative';
16
+ /**
17
+ * Размер компонента
18
+ */
19
+ size?: 'xxs' | 'xs' | 's';
20
+ /**
21
+ * Дополнительный класс
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Выравнивание иконки
26
+ * @default 'center'
27
+ */
28
+ alignIcon?: 'left' | 'center' | 'right';
29
+ /**
30
+ * Идентификатор для систем автоматизированного тестирования
31
+ */
32
+ dataTestId?: string;
33
+ /**
34
+ * Набор цветов для компонента
35
+ */
36
+ colors?: 'default' | 'inverted';
37
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'Component' | 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
38
+ declare const IconButton: React.ForwardRefExoticComponent<{
39
+ /**
40
+ * Компонент иконки
41
+ */
42
+ icon: ElementType<{
43
+ className?: string;
44
+ }> | ReactElement;
45
+ /**
46
+ * Тип кнопки
47
+ */
48
+ view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
49
+ /**
50
+ * Размер компонента
51
+ */
52
+ size?: "xs" | "s" | "xxs" | undefined;
53
+ /**
54
+ * Дополнительный класс
55
+ */
56
+ className?: string | undefined;
57
+ /**
58
+ * Выравнивание иконки
59
+ * @default 'center'
60
+ */
61
+ alignIcon?: "center" | "right" | "left" | undefined;
62
+ /**
63
+ * Идентификатор для систем автоматизированного тестирования
64
+ */
65
+ dataTestId?: string | undefined;
66
+ /**
67
+ * Набор цветов для компонента
68
+ */
69
+ colors?: "default" | "inverted" | undefined;
70
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
71
+ export { IconButtonProps, IconButton };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
@@ -8,40 +8,29 @@ var Component_desktop = require('@alfalab/core-components-input/Component.deskto
8
8
  var desktop$1 = require('@alfalab/core-components-input-autocomplete/desktop');
9
9
  var desktop = require('@alfalab/core-components-select/desktop');
10
10
  var components_baseInternationalPhoneInput_Component = require('./components/base-international-phone-input/Component.js');
11
- var utils_index = require('./utils/index.js');
12
11
  require('react-merge-refs');
13
12
  require('@maskito/core');
14
13
  require('@maskito/react');
15
14
  require('@alfalab/core-components-select/shared');
16
- require('./components/country-select/Component.js');
15
+ require('./utils/index.js');
17
16
  require('@alfalab/core-components-shared');
17
+ require('./consts.js');
18
+ require('./data/country-data.js');
19
+ require('./components/country-select/Component.js');
18
20
  require('@alfalab/icons-glyph/WorldMagnifierMIcon');
19
21
  require('./components/flag-icon/component.js');
20
22
  require('classnames');
21
23
  require('./components/flag-icon/flagSprite.js');
22
24
  require('./components/select-field/component.js');
23
25
  require('@alfalab/hooks');
24
- require('./consts.js');
25
- require('./data/country-data.js');
26
26
 
27
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
28
28
 
29
29
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
30
30
 
31
31
  var InternationalPhoneInputDesktop = React.forwardRef(function (_a, ref) {
32
- var options = _a.options, countryProp = _a.country, countries = _a.countries, onCountryChange = _a.onCountryChange, value = _a.value, filterFn = _a.filterFn, defaultIso2 = _a.defaultIso2, clear = _a.clear, _b = _a.clearableCountryCode, clearableCountryCode = _b === void 0 ? true : _b, restProps = tslib.__rest(_a, ["options", "country", "countries", "onCountryChange", "value", "filterFn", "defaultIso2", "clear", "clearableCountryCode"]);
33
- var countriesData = React.useMemo(function () { return utils_index.initCountries(countries); }, [countries]);
34
- var _c = React.useState(function () {
35
- return utils_index.findCountry(countriesData, value, defaultIso2, countryProp);
36
- }), selectedCountry = _c[0], setSelectedCountry = _c[1];
37
- var filteredOptions = utils_index.filterPhones(value, options, filterFn);
38
- var country = countryProp !== null && countryProp !== void 0 ? countryProp : selectedCountry;
39
- var handleCountryChange = function (nextCountry) {
40
- if (countryProp === undefined)
41
- setSelectedCountry(nextCountry);
42
- onCountryChange === null || onCountryChange === void 0 ? void 0 : onCountryChange(nextCountry);
43
- };
44
- return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ countriesData: countriesData, selected: value }, restProps, { clear: utils_index.getClear(clear, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode), clearableCountryCode: clearableCountryCode, country: country, onCountryChange: handleCountryChange, defaultIso2: defaultIso2, value: value, view: 'desktop', options: filteredOptions, ref: ref, SelectComponent: desktop.SelectDesktop, Input: Component_desktop.InputDesktop, InputAutocomplete: desktop$1.InputAutocompleteDesktop })));
32
+ var value = _a.value, _b = _a.clearableCountryCode, clearableCountryCode = _b === void 0 ? true : _b, restProps = tslib.__rest(_a, ["value", "clearableCountryCode"]);
33
+ return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ selected: value }, restProps, { clearableCountryCode: clearableCountryCode, value: value, view: 'desktop', ref: ref, SelectComponent: desktop.SelectDesktop, Input: Component_desktop.InputDesktop, InputAutocomplete: desktop$1.InputAutocompleteDesktop })));
45
34
  });
46
35
 
47
36
  exports.InternationalPhoneInputDesktop = InternationalPhoneInputDesktop;
@@ -8,75 +8,29 @@ var mobile$1 = require('@alfalab/core-components-input/mobile');
8
8
  var mobile$2 = require('@alfalab/core-components-input-autocomplete/mobile');
9
9
  var mobile = require('@alfalab/core-components-select/mobile');
10
10
  var components_baseInternationalPhoneInput_Component = require('./components/base-international-phone-input/Component.js');
11
- var components_countrySelect_Component = require('./components/country-select/Component.js');
12
- var utils_index = require('./utils/index.js');
13
11
  require('react-merge-refs');
14
12
  require('@maskito/core');
15
13
  require('@maskito/react');
16
14
  require('@alfalab/core-components-select/shared');
15
+ require('./utils/index.js');
17
16
  require('@alfalab/core-components-shared');
17
+ require('./consts.js');
18
+ require('./data/country-data.js');
19
+ require('./components/country-select/Component.js');
18
20
  require('@alfalab/icons-glyph/WorldMagnifierMIcon');
19
21
  require('./components/flag-icon/component.js');
20
22
  require('classnames');
21
23
  require('./components/flag-icon/flagSprite.js');
22
24
  require('./components/select-field/component.js');
23
25
  require('@alfalab/hooks');
24
- require('./consts.js');
25
- require('./data/country-data.js');
26
26
 
27
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
28
28
 
29
29
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
30
30
 
31
31
  var InternationalPhoneInputMobile = React.forwardRef(function (_a, ref) {
32
- var options = _a.options, countryProp = _a.country, onCountryChange = _a.onCountryChange, value = _a.value, filterFn = _a.filterFn, countries = _a.countries, defaultIso2 = _a.defaultIso2, clearProp = _a.clear, _b = _a.clearableCountryCode, clearableCountryCode = _b === void 0 ? true : _b, restProps = tslib.__rest(_a, ["options", "country", "onCountryChange", "value", "filterFn", "countries", "defaultIso2", "clear", "clearableCountryCode"]);
33
- var typedRestProps = restProps;
34
- var countriesData = React.useMemo(function () { return utils_index.initCountries(countries); }, [countries]);
35
- var _c = React.useState(''), filter = _c[0], setFilter = _c[1];
36
- var _d = React.useState(), filterCountry = _d[0], setFilterCountry = _d[1];
37
- var _e = React.useState(function () {
38
- return utils_index.findCountry(countriesData, value, defaultIso2, countryProp);
39
- }), selectedCountry = _e[0], setSelectedCountry = _e[1];
40
- var filteredOptions = utils_index.filterPhones(filter, options, filterFn);
41
- var country = countryProp !== null && countryProp !== void 0 ? countryProp : selectedCountry;
42
- var countryCode = country === null || country === void 0 ? void 0 : country.countryCode;
43
- var handleCountryChange = function (nextCountry) {
44
- if (countryProp === undefined)
45
- setSelectedCountry(nextCountry);
46
- onCountryChange === null || onCountryChange === void 0 ? void 0 : onCountryChange(nextCountry);
47
- };
48
- var handleFilter = function (event) {
49
- var _a = utils_index.getPhoneData(event.target.value, countriesData, defaultIso2), nextPhone = _a.nextPhone, nextCountry = _a.nextCountry;
50
- setFilter(nextPhone);
51
- setFilterCountry(nextCountry);
52
- };
53
- var handleFilterClear = function () {
54
- var withCountryCode = !clearableCountryCode && (filterCountry === null || filterCountry === void 0 ? void 0 : filterCountry.countryCode);
55
- setFilter(withCountryCode ? "+".concat(filterCountry.countryCode) : '');
56
- };
57
- var handleEnter = function (node, isAppearing) {
58
- var _a, _b, _c;
59
- (_c = (_b = (_a = typedRestProps.bottomSheetProps) === null || _a === void 0 ? void 0 : _a.transitionProps) === null || _b === void 0 ? void 0 : _b.onEnter) === null || _c === void 0 ? void 0 : _c.call(_b, node, isAppearing);
60
- setFilterCountry(country);
61
- setFilter(countryCode ? "+".concat(country.countryCode) : '');
62
- };
63
- var isAutocomplete = Array.isArray(options);
64
- var props = isAutocomplete
65
- ? (function () {
66
- var _a;
67
- var clear = utils_index.getClear(clearProp, clearableCountryCode, filter, countryCode);
68
- return {
69
- filter: filter,
70
- onFilter: handleFilter,
71
- onClearFilter: clear ? handleFilterClear : undefined,
72
- bottomSheetHeaderAddonsProps: tslib.__assign(tslib.__assign({}, typedRestProps.bottomSheetHeaderAddonsProps), { leftAddons: (React__default.default.createElement(components_countrySelect_Component.CountrySelect, { SelectComponent: mobile.SelectMobile, view: 'mobile', country: filterCountry })) }),
73
- bottomSheetProps: tslib.__assign(tslib.__assign({}, typedRestProps.bottomSheetProps), { transitionProps: tslib.__assign(tslib.__assign({}, (_a = typedRestProps.bottomSheetProps) === null || _a === void 0 ? void 0 : _a.transitionProps), { onEnter: handleEnter }) }),
74
- };
75
- })()
76
- : {
77
- clear: utils_index.getClear(clearProp, clearableCountryCode, value, countryCode),
78
- };
79
- return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ selected: value }, restProps, props, { clearableCountryCode: clearableCountryCode, onCountryChange: handleCountryChange, country: country, defaultIso2: defaultIso2, countriesData: countriesData, value: value, options: filteredOptions, view: 'mobile', ref: ref, SelectComponent: mobile.SelectMobile, Input: mobile$1.InputMobile, InputAutocomplete: mobile$2.InputAutocompleteMobile })));
32
+ var value = _a.value, _b = _a.clearableCountryCode, clearableCountryCode = _b === void 0 ? true : _b, restProps = tslib.__rest(_a, ["value", "clearableCountryCode"]);
33
+ return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ selected: value }, restProps, { clearableCountryCode: clearableCountryCode, value: value, view: 'mobile', ref: ref, SelectComponent: mobile.SelectMobile, Input: mobile$1.InputMobile, InputAutocomplete: mobile$2.InputAutocompleteMobile })));
80
34
  });
81
35
 
82
36
  exports.InternationalPhoneInputMobile = InternationalPhoneInputMobile;
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-0f4b9bed").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-0816e61d").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
13
  value: string;
@@ -16,9 +16,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
16
16
  onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
17
17
  } & {
18
18
  options?: undefined;
19
- } & Omit<import("./Component.desktop").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "clear" | "onClear"> & {
19
+ } & Omit<import("./Component.desktop").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
20
20
  options?: undefined;
21
- } & Omit<import("@alfalab/core-components-input/Component.mobile").InputMobileProps, "onFocus" | "onBlur" | "onChange" | "clear" | "onClear"> & {
21
+ } & Omit<import("@alfalab/core-components-input/Component.mobile").InputMobileProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
22
22
  breakpoint?: number | undefined;
23
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
24
24
  }) | ({
@@ -28,7 +28,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
28
28
  clearableCountryCode?: boolean | undefined;
29
29
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
30
30
  clear?: boolean | undefined;
31
- filterFn?: ((value: string | undefined, option: import("./typings-0f4b9bed").OptionShape) => boolean) | undefined;
31
+ filterFn?: ((value: string | undefined, option: import("./typings-0816e61d").OptionShape) => boolean) | undefined;
32
32
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
33
33
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
34
  value: string;
@@ -36,10 +36,10 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
36
36
  onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
37
37
  onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
38
38
  } & {
39
- options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
40
- } & Omit<import("@alfalab/core-components-input-autocomplete/Component.desktop").InputAutocompleteDesktopProps, "onChange"> & {
41
- options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
42
- } & Omit<import("@alfalab/core-components-input-autocomplete/Component.mobile").InputAutocompleteMobileProps, "onChange" | "filter" | "onFilter" | "onClearFilter"> & {
39
+ options: (import("./typings-0816e61d").OptionShape | import("./typings-0816e61d").GroupShape)[];
40
+ } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
41
+ options: (import("./typings-0816e61d").OptionShape | import("./typings-0816e61d").GroupShape)[];
42
+ } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
43
43
  breakpoint?: number | undefined;
44
44
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
45
45
  })) & React.RefAttributes<HTMLInputElement>>;
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-0f4b9bed").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-0816e61d").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
15
  value: string;
@@ -21,6 +21,5 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
21
21
  InputAutocomplete: React.FC<InputAutocompleteProps>;
22
22
  SelectComponent: React.ElementType<any>;
23
23
  view: "mobile" | "desktop";
24
- countriesData: Country[][];
25
- } & Omit<import("@alfalab/core-components-input").InputProps, "onFocus" | "onBlur" | "onScroll"> & Partial<Omit<InputAutocompleteProps, "leftAddons" | "onChange" | "onScroll">> & React.RefAttributes<HTMLInputElement>>;
24
+ } & Omit<import("@alfalab/core-components-input").InputProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "onScroll"> & Partial<Omit<InputAutocompleteProps, "leftAddons" | "onChange" | "onInput" | "onScroll">> & React.RefAttributes<HTMLInputElement>>;
26
25
  export { BaseInternationalPhoneInput };
@@ -25,13 +25,24 @@ 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_1qt4a","addons":"international-phone-input__addons_1qt4a"};
28
+ var styles = {"component":"international-phone-input__component_1gks9","addons":"international-phone-input__addons_1gks9"};
29
29
  require('./index.css')
30
30
 
31
31
  var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
32
- var clearableCountryCode = _a.clearableCountryCode, value = _a.value, country = _a.country, onChange = _a.onChange, onCountryChange = _a.onCountryChange, countrySelectProps = _a.countrySelectProps; _a.countries; var defaultIso2 = _a.defaultIso2, disabled = _a.disabled, options = _a.options, _b = _a.size, size = _b === void 0 ? 'm' : _b, Input = _a.Input, InputAutocomplete = _a.InputAutocomplete, SelectComponent = _a.SelectComponent, view = _a.view, bottomSheetHeaderAddonsProps = _a.bottomSheetHeaderAddonsProps, countriesData = _a.countriesData, clear = _a.clear, restProps = tslib.__rest(_a, ["clearableCountryCode", "value", "country", "onChange", "onCountryChange", "countrySelectProps", "countries", "defaultIso2", "disabled", "options", "size", "Input", "InputAutocomplete", "SelectComponent", "view", "bottomSheetHeaderAddonsProps", "countriesData", "clear"]);
32
+ var clearableCountryCode = _a.clearableCountryCode, value = _a.value, countryProp = _a.country, filterFn = _a.filterFn, onChange = _a.onChange, onCountryChange = _a.onCountryChange, countrySelectProps = _a.countrySelectProps, countries = _a.countries, defaultIso2 = _a.defaultIso2, disabled = _a.disabled, options = _a.options, _b = _a.size, size = _b === void 0 ? 'm' : _b, Input = _a.Input, InputAutocomplete = _a.InputAutocomplete, SelectComponent = _a.SelectComponent, view = _a.view, clearProp = _a.clear, restProps = tslib.__rest(_a, ["clearableCountryCode", "value", "country", "filterFn", "onChange", "onCountryChange", "countrySelectProps", "countries", "defaultIso2", "disabled", "options", "size", "Input", "InputAutocomplete", "SelectComponent", "view", "clear"]);
33
+ var countriesData = React.useMemo(function () { return utils_index.initCountries(countries); }, [countries]);
33
34
  var inputRef = React.useRef(null);
34
35
  var inputWrapperRef = React.useRef(null);
36
+ var _c = React.useState(function () {
37
+ return utils_index.findCountry(countriesData, value, defaultIso2, countryProp);
38
+ }), selectedCountry = _c[0], setSelectedCountry = _c[1];
39
+ var filteredOptions = utils_index.filterPhones(value, options, filterFn);
40
+ var country = countryProp !== null && countryProp !== void 0 ? countryProp : selectedCountry;
41
+ var handleCountryChange = function (nextCountry) {
42
+ if (countryProp === undefined)
43
+ setSelectedCountry(nextCountry);
44
+ onCountryChange === null || onCountryChange === void 0 ? void 0 : onCountryChange(nextCountry);
45
+ };
35
46
  var maskOptions = React.useMemo(function () { return utils_index.createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
36
47
  var maskRef = react.useMaskito({ options: maskOptions });
37
48
  var changeNumber = function (e, phone) {
@@ -40,14 +51,14 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
40
51
  var updatePhoneData = function (phone, e) {
41
52
  var _a = utils_index.getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
42
53
  if (nextCountry !== country) {
43
- onCountryChange === null || onCountryChange === void 0 ? void 0 : onCountryChange(nextCountry);
54
+ handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
44
55
  }
45
56
  changeNumber(e, nextPhone);
46
57
  };
47
58
  var handleSelectCountry = function (_a) {
48
59
  var selected = _a.selected;
49
60
  var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
50
- onCountryChange === null || onCountryChange === void 0 ? void 0 : onCountryChange(nextCountry);
61
+ handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
51
62
  if (nextCountry) {
52
63
  changeNumber(null, "+".concat(nextCountry.dialCode));
53
64
  }
@@ -77,22 +88,23 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
77
88
  }
78
89
  // eslint-disable-next-line react-hooks/exhaustive-deps
79
90
  }, [value, maskOptions]);
91
+ var renderCountrySelect = function (compact) {
92
+ var _a;
93
+ if (compact === void 0) { compact = false; }
94
+ return (React__default.default.createElement(components_countrySelect_Component.CountrySelect, tslib.__assign({}, countrySelectProps, { view: view, SelectComponent: SelectComponent, disabled: disabled || (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.disabled), onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width })));
95
+ };
80
96
  var inputProps = {
81
97
  className: styles.component,
82
98
  ref: mergeRefs__default.default([maskRef, ref, inputRef]),
83
99
  wrapperRef: inputWrapperRef,
84
100
  addonsClassName: styles.addons,
85
101
  type: 'tel',
102
+ clear: utils_index.getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode),
86
103
  };
87
- var renderCountrySelect = function () {
88
- var _a;
89
- return (React__default.default.createElement(components_countrySelect_Component.CountrySelect, tslib.__assign({}, countrySelectProps, { view: view, SelectComponent: SelectComponent, disabled: disabled || (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.disabled), onChange: handleSelectCountry, country: country, countries: countriesData, fieldWidth: (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width })));
90
- };
91
- return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: options, value: value, onChange: handleOptionSelect, bottomSheetHeaderAddonsProps: tslib.__assign(tslib.__assign({}, bottomSheetHeaderAddonsProps), inputProps), inputProps: tslib.__assign(tslib.__assign({}, inputProps), { clear: clear, onClear: handleClear, leftAddons: renderCountrySelect(), onInput: handleInput }), fieldProps: {
92
- className: inputProps.className,
93
- addonsClassName: inputProps.addonsClassName,
94
- leftAddons: renderCountrySelect(),
95
- } }))) : (React__default.default.createElement(Input, tslib.__assign({}, restProps, inputProps, { onClear: clear ? handleClear : undefined, clear: clear, leftAddons: renderCountrySelect(), size: size, onInput: handleInput, value: value, disabled: disabled })));
104
+ return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (event, _a) {
105
+ var phone = _a.value;
106
+ return updatePhoneData(phone, event);
107
+ }, inputProps: tslib.__assign(tslib.__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: tslib.__assign({ className: inputProps.className, addonsClassName: inputProps.addonsClassName }, (view === 'mobile' ? { leftAddons: renderCountrySelect() } : null)) }))) : (React__default.default.createElement(Input, tslib.__assign({}, restProps, inputProps, { onClear: inputProps.clear ? handleClear : undefined, leftAddons: renderCountrySelect(), size: size, onInput: handleInput, value: value, disabled: disabled })));
96
108
  });
97
109
 
98
110
  exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
@@ -1,5 +1,5 @@
1
- /* hash: 1km27 */
1
+ /* hash: 154xi */
2
2
 
3
- .international-phone-input__component_1qt4a .international-phone-input__addons_1qt4a {
3
+ .international-phone-input__component_1gks9 .international-phone-input__addons_1gks9 {
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_ot2vq","option":"international-phone-input__option_ot2vq","flag":"international-phone-input__flag_ot2vq","countryName":"international-phone-input__countryName_ot2vq","dialCode":"international-phone-input__dialCode_ot2vq","flagIconWrapper":"international-phone-input__flagIconWrapper_ot2vq","emptyCountryIcon":"international-phone-input__emptyCountryIcon_ot2vq"};
21
+ var styles = {"component":"international-phone-input__component_u22e5","option":"international-phone-input__option_u22e5","flag":"international-phone-input__flag_u22e5","countryName":"international-phone-input__countryName_u22e5","dialCode":"international-phone-input__dialCode_u22e5","flagIconWrapper":"international-phone-input__flagIconWrapper_u22e5","emptyCountryIcon":"international-phone-input__emptyCountryIcon_u22e5"};
22
22
  require('./index.css')
23
23
 
24
24
  var CountrySelect = function (_a) {
@@ -1,8 +1,8 @@
1
- /* hash: y1oap */
1
+ /* hash: 1h958 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-graphic-secondary: #86868a;
5
- --color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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 */
4
+ --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
5
+ --color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */
6
6
  } :root { /* 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 */
7
7
  } :root {
8
8
  } :root {
@@ -18,30 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- --text-secondary-color: var(--color-light-text-secondary);
22
- } .international-phone-input__component_ot2vq {
21
+ } .international-phone-input__component_u22e5 {
23
22
  position: static;
24
23
  display: flex;
25
24
  min-width: initial;
26
25
  height: 100%;
27
- } .international-phone-input__option_ot2vq {
26
+ } .international-phone-input__option_u22e5 {
28
27
  display: flex;
29
28
  align-items: flex-start;
30
29
  padding: var(--gap-s);
31
- } .international-phone-input__flag_ot2vq {
30
+ } .international-phone-input__flag_u22e5 {
32
31
  flex-shrink: 0;
33
32
  margin-right: var(--gap-xs);
34
- } .international-phone-input__countryName_ot2vq {
33
+ } .international-phone-input__countryName_u22e5 {
35
34
  margin-right: var(--gap-xs);
36
- } .international-phone-input__dialCode_ot2vq {
37
- color: var(--text-secondary-color);
38
- } .international-phone-input__flagIconWrapper_ot2vq {
35
+ } .international-phone-input__dialCode_u22e5 {
36
+ color: var(--color-light-text-secondary);
37
+ } .international-phone-input__flagIconWrapper_u22e5 {
39
38
  display: flex;
40
39
  justify-content: center;
41
40
  align-items: center;
42
41
  width: 24px;
43
42
  height: 24px;
44
43
  margin-left: var(--gap-s);
45
- } .international-phone-input__emptyCountryIcon_ot2vq {
46
- color: var(--color-light-graphic-secondary);
44
+ } .international-phone-input__emptyCountryIcon_u22e5 {
45
+ color: var(--color-light-neutral-translucent-700);
47
46
  }
@@ -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_17cii","flagPlaceholder":"international-phone-input__flagPlaceholder_17cii"};
14
+ var styles = {"flagIcon":"international-phone-input__flagIcon_123iz","flagPlaceholder":"international-phone-input__flagPlaceholder_123iz"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,7 +1,7 @@
1
- /* hash: 4j9lc */
1
+ /* hash: 1kcwp */
2
2
  :root {
3
3
  } /* deprecated */ :root {
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 */
4
+ --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* 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 */
5
5
  } :root { /* 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 */
6
6
  } :root {
7
7
  } :root {
@@ -17,14 +17,14 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_17cii {
20
+ } .international-phone-input__flagIcon_123iz {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_17cii {
23
+ } .international-phone-input__flagPlaceholder_123iz {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
27
27
  border-radius: var(--border-radius-xs);
28
28
  margin-top: var(--gap-3xs);
29
- background-color: var(--color-light-specialbg-tertiary-transparent);
29
+ background-color: var(--color-light-neutral-translucent-100);
30
30
  }
@@ -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_dzwdy","flagIconContainer":"international-phone-input__flagIconContainer_dzwdy","emptyCountryIcon":"international-phone-input__emptyCountryIcon_dzwdy","disabled":"international-phone-input__disabled_dzwdy","inner":"international-phone-input__inner_dzwdy","l":"international-phone-input__l_dzwdy","xl":"international-phone-input__xl_dzwdy","focusVisible":"international-phone-input__focusVisible_dzwdy"};
20
+ var styles = {"component":"international-phone-input__component_o88fm","flagIconContainer":"international-phone-input__flagIconContainer_o88fm","emptyCountryIcon":"international-phone-input__emptyCountryIcon_o88fm","disabled":"international-phone-input__disabled_o88fm","inner":"international-phone-input__inner_o88fm","l":"international-phone-input__l_o88fm","xl":"international-phone-input__xl_o88fm","focusVisible":"international-phone-input__focusVisible_o88fm"};
21
21
  require('./index.css')
22
22
 
23
23
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,8 +1,8 @@
1
- /* hash: nzb0d */
1
+ /* hash: odefp */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-border-link: #0072ef;
5
- --color-light-graphic-secondary: #86868a; /* 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 */
4
+ --color-light-border-link: #2288fa;
5
+ --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47); /* 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 */
6
6
  } :root { /* 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 */
7
7
  } :root {
8
8
  } :root {
@@ -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_dzwdy {
24
+ } .international-phone-input__component_o88fm {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_dzwdy {
29
+ } .international-phone-input__flagIconContainer_o88fm {
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_dzwdy {
37
- color: var(--color-light-graphic-secondary);
38
- } .international-phone-input__disabled_dzwdy {
36
+ } .international-phone-input__emptyCountryIcon_o88fm {
37
+ color: var(--color-light-neutral-translucent-700);
38
+ } .international-phone-input__disabled_o88fm {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_dzwdy {
40
+ } .international-phone-input__inner_o88fm {
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_dzwdy .international-phone-input__inner_dzwdy,
48
- .international-phone-input__xl_dzwdy .international-phone-input__inner_dzwdy {
47
+ } .international-phone-input__l_o88fm .international-phone-input__inner_o88fm,
48
+ .international-phone-input__xl_o88fm .international-phone-input__inner_o88fm {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_dzwdy {
50
+ } .international-phone-input__focusVisible_o88fm {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -0,0 +1,2 @@
1
+ declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
+ export { DEFAULT_VISIBLE_OPTIONS };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptgroupProps } from "./typings-0816e61d";
4
+ declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
+ export { Optgroup };