@alfalab/core-components-international-phone-input 1.4.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
- package/{cssm/Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/Component-bdb4c6b9.d.ts +2 -2
- package/Component.responsive-8566963f.d.ts +2 -2
- package/Component.responsive.d.ts +6 -10
- package/{esm/ResponsiveContext-8a2a8ad1.d.ts → ResponsiveContext-88b743b5.d.ts} +1 -1
- package/components/base-international-phone-input/Component.d.ts +2 -4
- package/components/base-international-phone-input/Component.js +19 -16
- package/components/base-international-phone-input/index.css +2 -2
- package/components/country-select/Component.js +1 -1
- package/components/country-select/index.css +9 -9
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +4 -4
- package/components/select-field/component.d.ts +4 -1
- package/components/select-field/component.js +12 -2
- package/components/select-field/index.css +10 -10
- package/consts-6c9aad46.d.ts +12 -0
- package/consts-ef43bf1b.d.ts +12 -0
- package/cssm/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
- package/{Component-c29389e5.d.ts → cssm/Component-70284312.d.ts} +1 -1
- package/cssm/Component-bdb4c6b9.d.ts +2 -2
- package/cssm/Component.responsive-8566963f.d.ts +2 -2
- package/cssm/Component.responsive.d.ts +6 -10
- package/{modern/ResponsiveContext-8a2a8ad1.d.ts → cssm/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/cssm/components/base-international-phone-input/Component.d.ts +2 -4
- package/cssm/components/base-international-phone-input/Component.js +18 -15
- package/cssm/components/country-select/index.module.css +1 -1
- package/cssm/components/flag-icon/index.module.css +1 -1
- package/cssm/components/select-field/component.d.ts +4 -1
- package/cssm/components/select-field/component.js +11 -1
- package/cssm/components/select-field/index.module.css +3 -3
- package/cssm/consts-6c9aad46.d.ts +12 -0
- package/cssm/consts-ef43bf1b.d.ts +12 -0
- package/cssm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/cssm/index-8566963f.d.ts +2 -2
- package/cssm/index-ebda875c.d.ts +3 -2
- package/cssm/types.d.ts +3 -5
- package/{modern/typings-c241b310.d.ts → cssm/typings-61e2321e.d.ts} +3 -2
- package/cssm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
- package/{esm/typings-8a2a8ad1.d.ts → cssm/typings-88b743b5.d.ts} +3 -2
- package/cssm/utils/index.js +1 -2
- package/cssm/utils-89376c31.d.ts +1 -1
- package/{modern/Component-c241b310.d.ts → esm/Component-61e2321e.d.ts} +12 -3
- package/esm/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/esm/Component-bdb4c6b9.d.ts +2 -2
- package/esm/Component.responsive-8566963f.d.ts +2 -2
- package/esm/Component.responsive.d.ts +6 -10
- package/{ResponsiveContext-8a2a8ad1.d.ts → esm/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/esm/components/base-international-phone-input/Component.d.ts +2 -4
- package/esm/components/base-international-phone-input/Component.js +19 -16
- package/esm/components/base-international-phone-input/index.css +2 -2
- package/esm/components/country-select/Component.js +1 -1
- package/esm/components/country-select/index.css +9 -9
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +4 -4
- package/esm/components/select-field/component.d.ts +4 -1
- package/esm/components/select-field/component.js +12 -2
- package/esm/components/select-field/index.css +10 -10
- package/esm/consts-6c9aad46.d.ts +12 -0
- package/esm/consts-ef43bf1b.d.ts +12 -0
- package/esm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/esm/index-8566963f.d.ts +2 -2
- package/esm/index-ebda875c.d.ts +3 -2
- package/esm/types.d.ts +3 -5
- package/{cssm/typings-c241b310.d.ts → esm/typings-61e2321e.d.ts} +3 -2
- package/esm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
- package/{modern/typings-8a2a8ad1.d.ts → esm/typings-88b743b5.d.ts} +3 -2
- package/esm/utils/index.js +1 -2
- package/esm/utils-89376c31.d.ts +1 -1
- package/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/index-8566963f.d.ts +2 -2
- package/index-ebda875c.d.ts +3 -2
- package/{esm/Component-c241b310.d.ts → modern/Component-61e2321e.d.ts} +12 -3
- package/modern/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/modern/Component-bdb4c6b9.d.ts +2 -2
- package/modern/Component.responsive-8566963f.d.ts +2 -2
- package/modern/Component.responsive.d.ts +6 -10
- package/{cssm/ResponsiveContext-8a2a8ad1.d.ts → modern/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/modern/components/base-international-phone-input/Component.d.ts +2 -4
- package/modern/components/base-international-phone-input/Component.js +19 -13
- package/modern/components/base-international-phone-input/index.css +2 -2
- package/modern/components/country-select/Component.js +1 -1
- package/modern/components/country-select/index.css +9 -9
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +4 -4
- package/modern/components/select-field/component.d.ts +4 -1
- package/modern/components/select-field/component.js +12 -2
- package/modern/components/select-field/index.css +10 -10
- package/modern/consts-6c9aad46.d.ts +12 -0
- package/modern/consts-ef43bf1b.d.ts +12 -0
- package/modern/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/modern/index-8566963f.d.ts +2 -2
- package/modern/index-ebda875c.d.ts +3 -2
- package/modern/types.d.ts +3 -5
- package/{typings-c241b310.d.ts → modern/typings-61e2321e.d.ts} +3 -2
- package/modern/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
- package/{cssm/typings-8a2a8ad1.d.ts → modern/typings-88b743b5.d.ts} +3 -2
- package/modern/utils/index.js +1 -2
- package/modern/utils-89376c31.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/base-international-phone-input/Component.tsx +16 -12
- package/src/components/select-field/component.tsx +17 -2
- package/src/components/select-field/index.module.css +2 -2
- package/src/types.ts +2 -2
- package/src/utils/index.ts +1 -1
- package/types.d.ts +3 -5
- package/{esm/typings-c241b310.d.ts → typings-61e2321e.d.ts} +3 -2
- package/{typings-c29389e5.d.ts → typings-70284312.d.ts} +18 -13
- package/{typings-8a2a8ad1.d.ts → typings-88b743b5.d.ts} +3 -2
- package/utils/index.js +1 -2
- package/utils-89376c31.d.ts +1 -1
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/esm/consts-f777ba1a.d.ts +0 -2
- 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-
|
|
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-
|
|
3
|
+
import { OptgroupProps } from "./typings-70284312";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
package/Component-bdb4c6b9.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
+
filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
|
-
onChange?: ((
|
|
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-
|
|
29
|
+
filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
|
|
32
30
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
33
|
-
onChange?: ((
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
filterFn?: ((value: string | undefined, option: import("../../typings-70284312").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
|
-
onChange?: ((
|
|
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-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_kl7oa","addons":"international-phone-input__addons_kl7oa"};
|
|
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 ?
|
|
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,49 @@ 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 (
|
|
40
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
39
|
+
var changeNumber = function (phone) {
|
|
40
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(phone);
|
|
41
41
|
};
|
|
42
|
-
var updatePhoneData = function (phone
|
|
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(
|
|
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(
|
|
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)
|
|
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
|
|
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
|
-
|
|
69
|
-
|
|
68
|
+
if (clearableCountryCode) {
|
|
69
|
+
var nextCountry = utils_index.findCountry(countriesData, '', defaultIso2, countryProp);
|
|
70
|
+
changeNumber('');
|
|
71
|
+
handleCountryChange(nextCountry);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
changeNumber("+".concat(country === null || country === void 0 ? void 0 : country.countryCode) || '');
|
|
75
|
+
}
|
|
70
76
|
};
|
|
71
77
|
React.useEffect(function () {
|
|
72
78
|
if (value) {
|
|
73
79
|
var newValue = core.maskitoTransform(value, maskOptions);
|
|
74
80
|
if (value !== newValue) {
|
|
75
|
-
updatePhoneData(newValue
|
|
81
|
+
updatePhoneData(newValue);
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -83,10 +89,7 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
83
89
|
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
90
|
};
|
|
85
91
|
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 (
|
|
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 })));
|
|
92
|
+
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
93
|
});
|
|
91
94
|
|
|
92
95
|
exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
|
|
@@ -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-
|
|
17
|
+
var styles = {"component":"international-phone-input__component_1i24x","option":"international-phone-input__option_1i24x","flag":"international-phone-input__flag_1i24x","countryName":"international-phone-input__countryName_1i24x","dialCode":"international-phone-input__dialCode_1i24x","flagIconWrapper":"international-phone-input__flagIconWrapper_1i24x","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1i24x"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var CountrySelect = function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: kxpn0 */
|
|
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-
|
|
21
|
+
} .international-phone-input__component_1i24x {
|
|
22
22
|
position: static;
|
|
23
23
|
display: flex;
|
|
24
24
|
min-width: initial;
|
|
25
25
|
height: 100%;
|
|
26
|
-
} .international-phone-
|
|
26
|
+
} .international-phone-input__option_1i24x {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
padding: var(--gap-s);
|
|
30
|
-
} .international-phone-
|
|
30
|
+
} .international-phone-input__flag_1i24x {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .international-phone-
|
|
33
|
+
} .international-phone-input__countryName_1i24x {
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
|
-
} .international-phone-
|
|
35
|
+
} .international-phone-input__dialCode_1i24x {
|
|
36
36
|
color: var(--color-light-text-secondary);
|
|
37
|
-
} .international-phone-
|
|
37
|
+
} .international-phone-input__flagIconWrapper_1i24x {
|
|
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-
|
|
44
|
+
} .international-phone-input__emptyCountryIcon_1i24x {
|
|
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-
|
|
14
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_n2h6p","flagPlaceholder":"international-phone-input__flagPlaceholder_n2h6p"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: hn891 */
|
|
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-
|
|
20
|
+
} .international-phone-input__flagIcon_n2h6p {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_n2h6p {
|
|
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
|
-
|
|
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-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_1ak6w","flagIconContainer":"international-phone-input__flagIconContainer_1ak6w","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1ak6w","disabled":"international-phone-input__disabled_1ak6w","inner":"international-phone-input__inner_1ak6w","size-64":"international-phone-input__size-64_1ak6w","size-72":"international-phone-input__size-72_1ak6w","focusVisible":"international-phone-input__focusVisible_1ak6w"};
|
|
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:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: zu3yr */
|
|
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-
|
|
24
|
+
} .international-phone-input__component_1ak6w {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_1ak6w {
|
|
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-
|
|
36
|
+
} .international-phone-input__emptyCountryIcon_1ak6w {
|
|
37
37
|
color: var(--color-light-neutral-translucent-700);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_1ak6w {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_1ak6w {
|
|
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-
|
|
48
|
-
.international-phone-
|
|
47
|
+
} .international-phone-input__size-64_1ak6w .international-phone-input__inner_1ak6w,
|
|
48
|
+
.international-phone-input__size-72_1ak6w .international-phone-input__inner_1ak6w {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_1ak6w {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
+
filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
|
-
onChange?: ((
|
|
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-
|
|
29
|
+
filterFn?: ((value: string | undefined, option: import("./typings-70284312").OptionShape) => boolean) | undefined;
|
|
32
30
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
33
|
-
onChange?: ((
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
filterFn?: ((value: string | undefined, option: import("../../typings-70284312").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
|
-
onChange?: ((
|
|
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
|
} & {
|