@alfalab/core-components-international-phone-input 1.4.0 → 2.0.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 (110) hide show
  1. package/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
  2. package/{cssm/Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  3. package/Component-bdb4c6b9.d.ts +2 -2
  4. package/Component.responsive-8566963f.d.ts +2 -2
  5. package/Component.responsive.d.ts +6 -10
  6. package/{esm/ResponsiveContext-8a2a8ad1.d.ts → ResponsiveContext-88b743b5.d.ts} +1 -1
  7. package/components/base-international-phone-input/Component.d.ts +2 -4
  8. package/components/base-international-phone-input/Component.js +12 -15
  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 +9 -9
  12. package/components/flag-icon/component.js +1 -1
  13. package/components/flag-icon/index.css +4 -4
  14. package/components/select-field/component.d.ts +4 -1
  15. package/components/select-field/component.js +12 -2
  16. package/components/select-field/index.css +10 -10
  17. package/consts-6c9aad46.d.ts +12 -0
  18. package/consts-ef43bf1b.d.ts +12 -0
  19. package/cssm/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
  20. package/{Component-c29389e5.d.ts → cssm/Component-70284312.d.ts} +1 -1
  21. package/cssm/Component-bdb4c6b9.d.ts +2 -2
  22. package/cssm/Component.responsive-8566963f.d.ts +2 -2
  23. package/cssm/Component.responsive.d.ts +6 -10
  24. package/{modern/ResponsiveContext-8a2a8ad1.d.ts → cssm/ResponsiveContext-88b743b5.d.ts} +1 -1
  25. package/cssm/components/base-international-phone-input/Component.d.ts +2 -4
  26. package/cssm/components/base-international-phone-input/Component.js +11 -14
  27. package/cssm/components/country-select/index.module.css +1 -1
  28. package/cssm/components/flag-icon/index.module.css +1 -1
  29. package/cssm/components/select-field/component.d.ts +4 -1
  30. package/cssm/components/select-field/component.js +11 -1
  31. package/cssm/components/select-field/index.module.css +3 -3
  32. package/cssm/consts-6c9aad46.d.ts +12 -0
  33. package/cssm/consts-ef43bf1b.d.ts +12 -0
  34. package/cssm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  35. package/cssm/index-8566963f.d.ts +2 -2
  36. package/cssm/index-ebda875c.d.ts +3 -2
  37. package/cssm/types.d.ts +3 -5
  38. package/{modern/typings-c241b310.d.ts → cssm/typings-61e2321e.d.ts} +3 -2
  39. package/cssm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
  40. package/{esm/typings-8a2a8ad1.d.ts → cssm/typings-88b743b5.d.ts} +3 -2
  41. package/cssm/utils-89376c31.d.ts +1 -1
  42. package/{modern/Component-c241b310.d.ts → esm/Component-61e2321e.d.ts} +12 -3
  43. package/esm/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  44. package/esm/Component-bdb4c6b9.d.ts +2 -2
  45. package/esm/Component.responsive-8566963f.d.ts +2 -2
  46. package/esm/Component.responsive.d.ts +6 -10
  47. package/{ResponsiveContext-8a2a8ad1.d.ts → esm/ResponsiveContext-88b743b5.d.ts} +1 -1
  48. package/esm/components/base-international-phone-input/Component.d.ts +2 -4
  49. package/esm/components/base-international-phone-input/Component.js +12 -15
  50. package/esm/components/base-international-phone-input/index.css +2 -2
  51. package/esm/components/country-select/Component.js +1 -1
  52. package/esm/components/country-select/index.css +9 -9
  53. package/esm/components/flag-icon/component.js +1 -1
  54. package/esm/components/flag-icon/index.css +4 -4
  55. package/esm/components/select-field/component.d.ts +4 -1
  56. package/esm/components/select-field/component.js +12 -2
  57. package/esm/components/select-field/index.css +10 -10
  58. package/esm/consts-6c9aad46.d.ts +12 -0
  59. package/esm/consts-ef43bf1b.d.ts +12 -0
  60. package/esm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  61. package/esm/index-8566963f.d.ts +2 -2
  62. package/esm/index-ebda875c.d.ts +3 -2
  63. package/esm/types.d.ts +3 -5
  64. package/{cssm/typings-c241b310.d.ts → esm/typings-61e2321e.d.ts} +3 -2
  65. package/esm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
  66. package/{modern/typings-8a2a8ad1.d.ts → esm/typings-88b743b5.d.ts} +3 -2
  67. package/esm/utils-89376c31.d.ts +1 -1
  68. package/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  69. package/index-8566963f.d.ts +2 -2
  70. package/index-ebda875c.d.ts +3 -2
  71. package/{esm/Component-c241b310.d.ts → modern/Component-61e2321e.d.ts} +12 -3
  72. package/modern/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  73. package/modern/Component-bdb4c6b9.d.ts +2 -2
  74. package/modern/Component.responsive-8566963f.d.ts +2 -2
  75. package/modern/Component.responsive.d.ts +6 -10
  76. package/{cssm/ResponsiveContext-8a2a8ad1.d.ts → modern/ResponsiveContext-88b743b5.d.ts} +1 -1
  77. package/modern/components/base-international-phone-input/Component.d.ts +2 -4
  78. package/modern/components/base-international-phone-input/Component.js +12 -12
  79. package/modern/components/base-international-phone-input/index.css +2 -2
  80. package/modern/components/country-select/Component.js +1 -1
  81. package/modern/components/country-select/index.css +9 -9
  82. package/modern/components/flag-icon/component.js +1 -1
  83. package/modern/components/flag-icon/index.css +4 -4
  84. package/modern/components/select-field/component.d.ts +4 -1
  85. package/modern/components/select-field/component.js +12 -2
  86. package/modern/components/select-field/index.css +10 -10
  87. package/modern/consts-6c9aad46.d.ts +12 -0
  88. package/modern/consts-ef43bf1b.d.ts +12 -0
  89. package/modern/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  90. package/modern/index-8566963f.d.ts +2 -2
  91. package/modern/index-ebda875c.d.ts +3 -2
  92. package/modern/types.d.ts +3 -5
  93. package/{typings-c241b310.d.ts → modern/typings-61e2321e.d.ts} +3 -2
  94. package/modern/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
  95. package/{cssm/typings-8a2a8ad1.d.ts → modern/typings-88b743b5.d.ts} +3 -2
  96. package/modern/utils-89376c31.d.ts +1 -1
  97. package/package.json +4 -4
  98. package/src/components/base-international-phone-input/Component.tsx +10 -11
  99. package/src/components/select-field/component.tsx +17 -2
  100. package/src/components/select-field/index.module.css +2 -2
  101. package/src/types.ts +2 -2
  102. package/types.d.ts +3 -5
  103. package/{esm/typings-c241b310.d.ts → typings-61e2321e.d.ts} +3 -2
  104. package/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
  105. package/{typings-8a2a8ad1.d.ts → typings-88b743b5.d.ts} +3 -2
  106. package/utils-89376c31.d.ts +1 -1
  107. package/consts-f777ba1a.d.ts +0 -2
  108. package/cssm/consts-f777ba1a.d.ts +0 -2
  109. package/esm/consts-f777ba1a.d.ts +0 -2
  110. package/modern/consts-f777ba1a.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { CommonButtonProps, PrivateButtonProps } from "./typings-c241b310";
4
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-61e2321e";
5
5
  type SpinnerProps = {
6
6
  /**
7
7
  * Управление видимостью компонента
@@ -9,8 +9,9 @@ type SpinnerProps = {
9
9
  visible?: boolean;
10
10
  /**
11
11
  * Размер компонента
12
+ * @description xs, s, m deprecated, используйте вместо них 16, 24, 48 соответственно
12
13
  */
13
- size?: "xs" | "s" | "m";
14
+ size?: "xs" | "s" | "m" | 16 | 24 | 48;
14
15
  /**
15
16
  * Дополнительный класс
16
17
  */
@@ -28,6 +29,14 @@ type SpinnerProps = {
28
29
  */
29
30
  colors?: "default" | "inverted";
30
31
  };
32
+ declare const SIZE_TO_CLASSNAME_MAP: {
33
+ xs: string;
34
+ s: string;
35
+ m: string;
36
+ 16: string;
37
+ 24: string;
38
+ 48: string;
39
+ };
31
40
  declare const Spinner: FC<SpinnerProps>;
32
41
  /**
33
42
  * Минимальное время отображения лоадера - 500мс,
@@ -35,4 +44,4 @@ declare const Spinner: FC<SpinnerProps>;
35
44
  */
36
45
  declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
46
  declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
47
+ export { SpinnerProps, SIZE_TO_CLASSNAME_MAP, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-c29389e5";
3
+ import { OptgroupProps } from "./typings-70284312";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { View } from "./typings-8a2a8ad1";
3
+ import { View } from "./typings-88b743b5";
4
4
  declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
5
+ size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
6
6
  fullscreen?: boolean | undefined;
7
7
  fixedPosition?: boolean | undefined;
8
8
  hasCloser?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { CommonButtonProps, ButtonProps } from "./typings-c241b310";
3
+ import { CommonButtonProps, ButtonProps } from "./typings-61e2321e";
4
4
  declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
6
  export { ButtonMobile, Button };
7
- export type { CommonButtonProps as ButtonMobileProps } from "./typings-c241b310";
7
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-61e2321e";
@@ -7,11 +7,9 @@ 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-c29389e5").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
- value: string;
14
- }) => void) | undefined;
12
+ onChange?: ((phone: string) => void) | undefined;
15
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
16
14
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
17
15
  } & {
@@ -28,17 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
28
26
  clearableCountryCode?: boolean | undefined;
29
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
30
28
  clear?: boolean | undefined;
31
- filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
32
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
33
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
- value: string;
35
- }) => void) | undefined;
31
+ onChange?: ((phone: string) => void) | undefined;
36
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
38
34
  } & {
39
- options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
35
+ options: (import("./typings-70284312").OptionShape | import("./typings-70284312").GroupShape)[];
40
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
41
- options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
37
+ options: (import("./typings-70284312").OptionShape | import("./typings-70284312").GroupShape)[];
42
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
43
39
  breakpoint?: number | undefined;
44
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { TResponsiveModalContext } from "./typings-8a2a8ad1";
3
+ import { TResponsiveModalContext } from "./typings-88b743b5";
4
4
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
5
  export { ResponsiveContext };
@@ -9,11 +9,9 @@ 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-c29389e5").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-70284312").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
- value: string;
16
- }) => void) | undefined;
14
+ onChange?: ((phone: string) => void) | undefined;
17
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
18
16
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
19
17
  } & {
@@ -16,11 +16,11 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
16
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
 
19
- var styles = {"component":"international-phone-input__component_pnml1","addons":"international-phone-input__addons_pnml1"};
19
+ var styles = {"component":"international-phone-input__component_1gdiu","addons":"international-phone-input__addons_1gdiu"};
20
20
  require('./index.css')
21
21
 
22
22
  var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
23
- 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"]);
23
+ 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 ? 56 : _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"]);
24
24
  var countriesData = React.useMemo(function () { return utils_index.initCountries(countries); }, [countries]);
25
25
  var inputRef = React.useRef(null);
26
26
  var inputWrapperRef = React.useRef(null);
@@ -36,43 +36,43 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
36
36
  };
37
37
  var maskOptions = React.useMemo(function () { return utils_index.createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
38
38
  var maskRef = react.useMaskito({ options: maskOptions });
39
- var changeNumber = function (e, phone) {
40
- onChange === null || onChange === void 0 ? void 0 : onChange(e, { value: phone });
39
+ var changeNumber = function (phone) {
40
+ onChange === null || onChange === void 0 ? void 0 : onChange(phone);
41
41
  };
42
- var updatePhoneData = function (phone, e) {
42
+ var updatePhoneData = function (phone) {
43
43
  var _a = utils_index.getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
44
44
  if (nextCountry !== country) {
45
45
  handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
46
46
  }
47
- changeNumber(e, nextPhone);
47
+ changeNumber(nextPhone);
48
48
  };
49
49
  var handleSelectCountry = function (_a) {
50
50
  var selected = _a.selected;
51
51
  var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
52
52
  handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
53
53
  if (nextCountry) {
54
- changeNumber(null, "+".concat(nextCountry.dialCode));
54
+ changeNumber("+".concat(nextCountry.dialCode));
55
55
  }
56
56
  requestAnimationFrame(function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
57
57
  };
58
58
  var handleOptionSelect = function (payload) {
59
59
  var _a;
60
- updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions), null);
60
+ updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions));
61
61
  };
62
62
  var handleInput = function (e) {
63
- updatePhoneData(e.target.value, e);
63
+ updatePhoneData(e.target.value);
64
64
  };
65
65
  var handleClear = function (event) {
66
66
  var _a, _b;
67
67
  (_b = (_a = restProps.inputProps) === null || _a === void 0 ? void 0 : _a.onClear) === null || _b === void 0 ? void 0 : _b.call(_a, event);
68
68
  var countryCode = (country === null || country === void 0 ? void 0 : country.countryCode) || '';
69
- changeNumber(null, clearableCountryCode ? '' : "+".concat(countryCode));
69
+ changeNumber(clearableCountryCode ? '' : "+".concat(countryCode));
70
70
  };
71
71
  React.useEffect(function () {
72
72
  if (value) {
73
73
  var newValue = core.maskitoTransform(value, maskOptions);
74
74
  if (value !== newValue) {
75
- updatePhoneData(newValue, null);
75
+ updatePhoneData(newValue);
76
76
  }
77
77
  }
78
78
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -83,10 +83,7 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
83
83
  return (React__default.default.createElement(components_countrySelect_Component.CountrySelect, tslib.__assign({ dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }, 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 })));
84
84
  };
85
85
  var inputProps = tslib.__assign({ className: styles.component, ref: mergeRefs__default.default([maskRef, ref, inputRef]), wrapperRef: inputWrapperRef, addonsClassName: styles.addons, type: 'tel', clear: utils_index.getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode) }, restProps.inputProps);
86
- 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) {
87
- var phone = _a.value;
88
- return updatePhoneData(phone, event);
89
- }, inputProps: tslib.__assign(tslib.__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: tslib.__assign(tslib.__assign(tslib.__assign({}, restProps.fieldProps), { 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 })));
86
+ 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 (phone) { return updatePhoneData(phone); }, inputProps: tslib.__assign(tslib.__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: tslib.__assign(tslib.__assign(tslib.__assign({}, restProps.fieldProps), { 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 })));
90
87
  });
91
88
 
92
89
  exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
@@ -1,5 +1,5 @@
1
- /* hash: 1nmzk */
1
+ /* hash: ri3ng */
2
2
 
3
- .international-phone-input__component_pnml1 .international-phone-input__addons_pnml1 {
3
+ .international-phone-input__component_1gdiu .international-phone-input__addons_1gdiu {
4
4
  padding-left: 0;
5
5
  }
@@ -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":"international-phone-input__component_1u0p1","option":"international-phone-input__option_1u0p1","flag":"international-phone-input__flag_1u0p1","countryName":"international-phone-input__countryName_1u0p1","dialCode":"international-phone-input__dialCode_1u0p1","flagIconWrapper":"international-phone-input__flagIconWrapper_1u0p1","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1u0p1"};
17
+ var styles = {"component":"international-phone-input__component_1opig","option":"international-phone-input__option_1opig","flag":"international-phone-input__flag_1opig","countryName":"international-phone-input__countryName_1opig","dialCode":"international-phone-input__dialCode_1opig","flagIconWrapper":"international-phone-input__flagIconWrapper_1opig","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1opig"};
18
18
  require('./index.css')
19
19
 
20
20
  var CountrySelect = function (_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 1t4ag */
2
- :root {
1
+ /* hash: 1r5mu */
2
+ :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
5
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 */
@@ -18,29 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .international-phone-input__component_1u0p1 {
21
+ } .international-phone-input__component_1opig {
22
22
  position: static;
23
23
  display: flex;
24
24
  min-width: initial;
25
25
  height: 100%;
26
- } .international-phone-input__option_1u0p1 {
26
+ } .international-phone-input__option_1opig {
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  padding: var(--gap-s);
30
- } .international-phone-input__flag_1u0p1 {
30
+ } .international-phone-input__flag_1opig {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_1u0p1 {
33
+ } .international-phone-input__countryName_1opig {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_1u0p1 {
35
+ } .international-phone-input__dialCode_1opig {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_1u0p1 {
37
+ } .international-phone-input__flagIconWrapper_1opig {
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  align-items: center;
41
41
  width: 24px;
42
42
  height: 24px;
43
43
  margin-left: var(--gap-s);
44
- } .international-phone-input__emptyCountryIcon_1u0p1 {
44
+ } .international-phone-input__emptyCountryIcon_1opig {
45
45
  color: var(--color-light-neutral-translucent-700);
46
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_b3x27","flagPlaceholder":"international-phone-input__flagPlaceholder_b3x27"};
14
+ var styles = {"flagIcon":"international-phone-input__flagIcon_1305a","flagPlaceholder":"international-phone-input__flagPlaceholder_1305a"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,5 +1,5 @@
1
- /* hash: 18hrh */
2
- :root {
1
+ /* hash: 1agf3 */
2
+ :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
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 */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_b3x27 {
20
+ } .international-phone-input__flagIcon_1305a {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_b3x27 {
23
+ } .international-phone-input__flagPlaceholder_1305a {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -4,5 +4,8 @@ declare const EMPTY_COUNTRY_SELECT_FIELD: {
4
4
  value: string;
5
5
  key: string;
6
6
  };
7
- declare const SelectField: FC<FieldProps>;
7
+ type SelectFieldProps = FieldProps & {
8
+ size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
9
+ };
10
+ declare const SelectField: FC<SelectFieldProps>;
8
11
  export { EMPTY_COUNTRY_SELECT_FIELD, SelectField };
@@ -16,20 +16,30 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
17
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
18
 
19
- var styles = {"component":"international-phone-input__component_in79c","flagIconContainer":"international-phone-input__flagIconContainer_in79c","emptyCountryIcon":"international-phone-input__emptyCountryIcon_in79c","disabled":"international-phone-input__disabled_in79c","inner":"international-phone-input__inner_in79c","l":"international-phone-input__l_in79c","xl":"international-phone-input__xl_in79c","focusVisible":"international-phone-input__focusVisible_in79c"};
19
+ var styles = {"component":"international-phone-input__component_1vizw","flagIconContainer":"international-phone-input__flagIconContainer_1vizw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1vizw","disabled":"international-phone-input__disabled_1vizw","inner":"international-phone-input__inner_1vizw","size-64":"international-phone-input__size-64_1vizw","size-72":"international-phone-input__size-72_1vizw","focusVisible":"international-phone-input__focusVisible_1vizw"};
20
20
  require('./index.css')
21
21
 
22
22
  var EMPTY_COUNTRY_SELECT_FIELD = {
23
23
  value: 'EMPTY_COUNTRY_SELECT_VALUE',
24
24
  key: 'EMPTY_COUNTRY_SELECT_KEY',
25
25
  };
26
+ var SIZE_TO_CLASSNAME_MAP = {
27
+ s: 'size-48',
28
+ m: 'size-56',
29
+ l: 'size-64',
30
+ xl: 'size-72',
31
+ 48: 'size-48',
32
+ 56: 'size-56',
33
+ 64: 'size-64',
34
+ 72: 'size-72',
35
+ };
26
36
  var SelectField = function (_a) {
27
37
  var _b;
28
38
  var selected = _a.selected, Arrow = _a.Arrow, size = _a.size, disabled = _a.disabled, _c = _a.innerProps, innerProps = _c === void 0 ? {} : _c;
29
39
  var wrapperRef = React.useRef(null);
30
40
  var focusVisible = hooks.useFocus(wrapperRef, 'keyboard')[0];
31
41
  var ref = innerProps.ref ? mergeRefs__default.default([innerProps.ref, wrapperRef]) : wrapperRef;
32
- return (React__default.default.createElement("div", { ref: ref, className: cn__default.default(styles.component, size && styles[size], (_b = {},
42
+ return (React__default.default.createElement("div", { ref: ref, className: cn__default.default(styles.component, size && styles[SIZE_TO_CLASSNAME_MAP[size]], (_b = {},
33
43
  _b[styles.focusVisible] = focusVisible,
34
44
  _b[styles.disabled] = disabled,
35
45
  _b)) },
@@ -1,5 +1,5 @@
1
- /* hash: kydnd */
2
- :root {
1
+ /* hash: 1h39k */
2
+ :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa;
5
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 */
@@ -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_in79c {
24
+ } .international-phone-input__component_1vizw {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_in79c {
29
+ } .international-phone-input__flagIconContainer_1vizw {
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_in79c {
36
+ } .international-phone-input__emptyCountryIcon_1vizw {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_in79c {
38
+ } .international-phone-input__disabled_1vizw {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_in79c {
40
+ } .international-phone-input__inner_1vizw {
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_in79c .international-phone-input__inner_in79c,
48
- .international-phone-input__xl_in79c .international-phone-input__inner_in79c {
47
+ } .international-phone-input__size-64_1vizw .international-phone-input__inner_1vizw,
48
+ .international-phone-input__size-72_1vizw .international-phone-input__inner_1vizw {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_in79c {
50
+ } .international-phone-input__focusVisible_1vizw {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -0,0 +1,12 @@
1
+ declare const SIZE_TO_CLASSNAME_MAP: {
2
+ s: string;
3
+ m: string;
4
+ l: string;
5
+ xl: string;
6
+ fullscreen: string;
7
+ 500: string;
8
+ 600: string;
9
+ 800: string;
10
+ 1140: string;
11
+ };
12
+ export { SIZE_TO_CLASSNAME_MAP };
@@ -0,0 +1,12 @@
1
+ declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
+ declare const SIZE_TO_CLASSNAME_MAP: {
3
+ s: string;
4
+ m: string;
5
+ l: string;
6
+ xl: string;
7
+ 48: string;
8
+ 56: string;
9
+ 64: string;
10
+ 72: string;
11
+ };
12
+ export { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { CommonButtonProps, PrivateButtonProps } from "./typings-c241b310";
4
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-61e2321e";
5
5
  type SpinnerProps = {
6
6
  /**
7
7
  * Управление видимостью компонента
@@ -9,8 +9,9 @@ type SpinnerProps = {
9
9
  visible?: boolean;
10
10
  /**
11
11
  * Размер компонента
12
+ * @description xs, s, m deprecated, используйте вместо них 16, 24, 48 соответственно
12
13
  */
13
- size?: "xs" | "s" | "m";
14
+ size?: "xs" | "s" | "m" | 16 | 24 | 48;
14
15
  /**
15
16
  * Дополнительный класс
16
17
  */
@@ -28,6 +29,14 @@ type SpinnerProps = {
28
29
  */
29
30
  colors?: "default" | "inverted";
30
31
  };
32
+ declare const SIZE_TO_CLASSNAME_MAP: {
33
+ xs: string;
34
+ s: string;
35
+ m: string;
36
+ 16: string;
37
+ 24: string;
38
+ 48: string;
39
+ };
31
40
  declare const Spinner: FC<SpinnerProps>;
32
41
  /**
33
42
  * Минимальное время отображения лоадера - 500мс,
@@ -35,4 +44,4 @@ declare const Spinner: FC<SpinnerProps>;
35
44
  */
36
45
  declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
37
46
  declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
- export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
47
+ export { SpinnerProps, SIZE_TO_CLASSNAME_MAP, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-c29389e5";
3
+ import { OptgroupProps } from "./typings-70284312";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { View } from "./typings-8a2a8ad1";
3
+ import { View } from "./typings-88b743b5";
4
4
  declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
5
+ size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
6
6
  fullscreen?: boolean | undefined;
7
7
  fixedPosition?: boolean | undefined;
8
8
  hasCloser?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { CommonButtonProps, ButtonProps } from "./typings-c241b310";
3
+ import { CommonButtonProps, ButtonProps } from "./typings-61e2321e";
4
4
  declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
6
  export { ButtonMobile, Button };
7
- export type { CommonButtonProps as ButtonMobileProps } from "./typings-c241b310";
7
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-61e2321e";
@@ -7,11 +7,9 @@ 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-c29389e5").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
- value: string;
14
- }) => void) | undefined;
12
+ onChange?: ((phone: string) => void) | undefined;
15
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
16
14
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
17
15
  } & {
@@ -28,17 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
28
26
  clearableCountryCode?: boolean | undefined;
29
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
30
28
  clear?: boolean | undefined;
31
- filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
32
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
33
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
- value: string;
35
- }) => void) | undefined;
31
+ onChange?: ((phone: string) => void) | undefined;
36
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
38
34
  } & {
39
- options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
35
+ options: (import("./typings-70284312").OptionShape | import("./typings-70284312").GroupShape)[];
40
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
41
- options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
37
+ options: (import("./typings-70284312").OptionShape | import("./typings-70284312").GroupShape)[];
42
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
43
39
  breakpoint?: number | undefined;
44
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { TResponsiveModalContext } from "./typings-8a2a8ad1";
3
+ import { TResponsiveModalContext } from "./typings-88b743b5";
4
4
  declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
5
  export { ResponsiveContext };
@@ -9,11 +9,9 @@ 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-c29389e5").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-70284312").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
- onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
- value: string;
16
- }) => void) | undefined;
14
+ onChange?: ((phone: string) => void) | undefined;
17
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
18
16
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
19
17
  } & {