@alfalab/core-components-international-phone-input 1.3.3 → 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.
- 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 +16 -21
- 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 +15 -20
- 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} +19 -14
- package/{esm/typings-8a2a8ad1.d.ts → cssm/typings-88b743b5.d.ts} +3 -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 +16 -21
- 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} +19 -14
- package/{modern/typings-8a2a8ad1.d.ts → esm/typings-88b743b5.d.ts} +3 -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 +15 -18
- 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} +19 -14
- package/{cssm/typings-8a2a8ad1.d.ts → modern/typings-88b743b5.d.ts} +3 -2
- package/modern/utils-89376c31.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/base-international-phone-input/Component.tsx +24 -17
- 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/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} +19 -14
- package/{typings-8a2a8ad1.d.ts → typings-88b743b5.d.ts} +3 -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
|
@@ -19,7 +19,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
19
19
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
20
20
|
|
|
21
21
|
var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
22
|
-
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 ?
|
|
22
|
+
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"]);
|
|
23
23
|
var countriesData = React.useMemo(function () { return utils_index.initCountries(countries); }, [countries]);
|
|
24
24
|
var inputRef = React.useRef(null);
|
|
25
25
|
var inputWrapperRef = React.useRef(null);
|
|
@@ -35,45 +35,43 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
35
35
|
};
|
|
36
36
|
var maskOptions = React.useMemo(function () { return utils_index.createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
|
|
37
37
|
var maskRef = react.useMaskito({ options: maskOptions });
|
|
38
|
-
var changeNumber = function (
|
|
39
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(
|
|
38
|
+
var changeNumber = function (phone) {
|
|
39
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(phone);
|
|
40
40
|
};
|
|
41
|
-
var updatePhoneData = function (phone
|
|
41
|
+
var updatePhoneData = function (phone) {
|
|
42
42
|
var _a = utils_index.getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
|
|
43
43
|
if (nextCountry !== country) {
|
|
44
44
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
45
45
|
}
|
|
46
|
-
changeNumber(
|
|
46
|
+
changeNumber(nextPhone);
|
|
47
47
|
};
|
|
48
48
|
var handleSelectCountry = function (_a) {
|
|
49
49
|
var selected = _a.selected;
|
|
50
50
|
var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
|
|
51
51
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
52
52
|
if (nextCountry) {
|
|
53
|
-
changeNumber(
|
|
53
|
+
changeNumber("+".concat(nextCountry.dialCode));
|
|
54
54
|
}
|
|
55
55
|
requestAnimationFrame(function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
56
56
|
};
|
|
57
57
|
var handleOptionSelect = function (payload) {
|
|
58
58
|
var _a;
|
|
59
|
-
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions)
|
|
59
|
+
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions));
|
|
60
60
|
};
|
|
61
61
|
var handleInput = function (e) {
|
|
62
|
-
updatePhoneData(e.target.value
|
|
62
|
+
updatePhoneData(e.target.value);
|
|
63
63
|
};
|
|
64
|
-
var handleClear = function () {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
changeNumber(null, "+".concat(country === null || country === void 0 ? void 0 : country.countryCode) || '');
|
|
70
|
-
}
|
|
64
|
+
var handleClear = function (event) {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
(_b = (_a = restProps.inputProps) === null || _a === void 0 ? void 0 : _a.onClear) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
67
|
+
var countryCode = (country === null || country === void 0 ? void 0 : country.countryCode) || '';
|
|
68
|
+
changeNumber(clearableCountryCode ? '' : "+".concat(countryCode));
|
|
71
69
|
};
|
|
72
70
|
React.useEffect(function () {
|
|
73
71
|
if (value) {
|
|
74
72
|
var newValue = core.maskitoTransform(value, maskOptions);
|
|
75
73
|
if (value !== newValue) {
|
|
76
|
-
updatePhoneData(newValue
|
|
74
|
+
updatePhoneData(newValue);
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
77
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -84,10 +82,7 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
84
82
|
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 })));
|
|
85
83
|
};
|
|
86
84
|
var inputProps = tslib.__assign({ className: styles__default.default.component, ref: mergeRefs__default.default([maskRef, ref, inputRef]), wrapperRef: inputWrapperRef, addonsClassName: styles__default.default.addons, type: 'tel', clear: utils_index.getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode) }, restProps.inputProps);
|
|
87
|
-
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 (
|
|
88
|
-
var phone = _a.value;
|
|
89
|
-
return updatePhoneData(phone, event);
|
|
90
|
-
}, 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 })));
|
|
85
|
+
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 })));
|
|
91
86
|
});
|
|
92
87
|
|
|
93
88
|
exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
4
4
|
--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 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--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 */
|
|
4
4
|
} :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 */
|
|
@@ -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 };
|
|
@@ -22,13 +22,23 @@ var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
|
22
22
|
value: 'EMPTY_COUNTRY_SELECT_VALUE',
|
|
23
23
|
key: 'EMPTY_COUNTRY_SELECT_KEY',
|
|
24
24
|
};
|
|
25
|
+
var SIZE_TO_CLASSNAME_MAP = {
|
|
26
|
+
s: 'size-48',
|
|
27
|
+
m: 'size-56',
|
|
28
|
+
l: 'size-64',
|
|
29
|
+
xl: 'size-72',
|
|
30
|
+
48: 'size-48',
|
|
31
|
+
56: 'size-56',
|
|
32
|
+
64: 'size-64',
|
|
33
|
+
72: 'size-72',
|
|
34
|
+
};
|
|
25
35
|
var SelectField = function (_a) {
|
|
26
36
|
var _b;
|
|
27
37
|
var selected = _a.selected, Arrow = _a.Arrow, size = _a.size, disabled = _a.disabled, _c = _a.innerProps, innerProps = _c === void 0 ? {} : _c;
|
|
28
38
|
var wrapperRef = React.useRef(null);
|
|
29
39
|
var focusVisible = hooks.useFocus(wrapperRef, 'keyboard')[0];
|
|
30
40
|
var ref = innerProps.ref ? mergeRefs__default.default([innerProps.ref, wrapperRef]) : wrapperRef;
|
|
31
|
-
return (React__default.default.createElement("div", { ref: ref, className: cn__default.default(styles__default.default.component, size && styles__default.default[size], (_b = {},
|
|
41
|
+
return (React__default.default.createElement("div", { ref: ref, className: cn__default.default(styles__default.default.component, size && styles__default.default[SIZE_TO_CLASSNAME_MAP[size]], (_b = {},
|
|
32
42
|
_b[styles__default.default.focusVisible] = focusVisible,
|
|
33
43
|
_b[styles__default.default.disabled] = disabled,
|
|
34
44
|
_b)) },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
: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 */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-border-link: #2288fa;
|
|
4
4
|
--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 */
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
height: 100%;
|
|
44
44
|
padding-left: var(--gap-s);
|
|
45
45
|
outline: none;
|
|
46
|
-
} .
|
|
47
|
-
.
|
|
46
|
+
} .size-64 .inner,
|
|
47
|
+
.size-72 .inner {
|
|
48
48
|
padding-left: var(--gap-m);
|
|
49
49
|
} .focusVisible {
|
|
50
50
|
outline: 2px solid var(--focus-color);
|
|
@@ -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,2 +1,2 @@
|
|
|
1
1
|
export { Button } from "./Component.responsive-8566963f";
|
|
2
|
-
export type { ButtonProps } from "./typings-
|
|
2
|
+
export type { ButtonProps } from "./typings-61e2321e";
|
package/cssm/index-8566963f.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CommonButtonProps } from "./typings-
|
|
3
|
+
import { CommonButtonProps } from "./typings-61e2321e";
|
|
4
4
|
declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
export { ButtonDesktop };
|
|
6
|
-
export type { CommonButtonProps as ButtonDesktopProps } from "./typings-
|
|
6
|
+
export type { CommonButtonProps as ButtonDesktopProps } from "./typings-61e2321e";
|
package/cssm/index-ebda875c.d.ts
CHANGED
|
@@ -17,8 +17,9 @@ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
17
17
|
block?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Размер компонента
|
|
20
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
20
21
|
*/
|
|
21
|
-
size?: "s" | "m" | "l" | "xl";
|
|
22
|
+
size?: "s" | "m" | "l" | "xl" | 48 | 56 | 64 | 72;
|
|
22
23
|
/**
|
|
23
24
|
* Набор цветов для компонента
|
|
24
25
|
*/
|
|
@@ -118,7 +119,7 @@ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
118
119
|
};
|
|
119
120
|
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
120
121
|
block?: boolean | undefined;
|
|
121
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
122
|
+
size?: "s" | "m" | "l" | "xl" | 48 | 56 | 64 | 72 | undefined;
|
|
122
123
|
colors?: "default" | "inverted" | undefined;
|
|
123
124
|
disabled?: boolean | undefined;
|
|
124
125
|
readOnly?: boolean | undefined;
|
package/cssm/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, FC, FocusEvent } from 'react';
|
|
2
2
|
import { InputProps } from "@alfalab/core-components-input";
|
|
3
3
|
import { InputDesktopProps } from "@alfalab/core-components-input/desktop";
|
|
4
4
|
import { InputMobileProps } from "@alfalab/core-components-input/mobile";
|
|
5
5
|
import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
|
|
6
6
|
import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
|
|
7
7
|
import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
|
|
8
|
-
import { OptionShape } from "./typings-
|
|
8
|
+
import { OptionShape } from "./typings-70284312";
|
|
9
9
|
import { SharedCountrySelectProps } from "./components/country-select/index";
|
|
10
10
|
type Country = {
|
|
11
11
|
name: string;
|
|
@@ -57,9 +57,7 @@ type CommonPhoneInputProps = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Обработчик изменения номера
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
61
|
-
value: string;
|
|
62
|
-
}) => void;
|
|
60
|
+
onChange?: (phone: string) => void;
|
|
63
61
|
/**
|
|
64
62
|
* Обработчик блюра поля
|
|
65
63
|
*/
|
|
@@ -37,9 +37,10 @@ type ComponentProps = {
|
|
|
37
37
|
rightAddons?: ReactNode;
|
|
38
38
|
/**
|
|
39
39
|
* Размер компонента
|
|
40
|
-
* @default
|
|
40
|
+
* @default 56
|
|
41
|
+
* @description xxs, xs, s, m, l, xl deprecated, используйте вместо них 32, 40, 48, 56, 64, 72 соответственно
|
|
41
42
|
*/
|
|
42
|
-
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
43
|
+
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 32 | 40 | 48 | 56 | 64 | 72;
|
|
43
44
|
/**
|
|
44
45
|
* Растягивает компонент на ширину контейнера
|
|
45
46
|
* @default false
|
|
@@ -10,15 +10,15 @@ import { CSSTransitionProps } from "react-transition-group/CSSTransition";
|
|
|
10
10
|
import { BasePlacement, VariationPlacement } from "@popperjs/core";
|
|
11
11
|
import { SwipeableHandlers } from "react-swipeable";
|
|
12
12
|
import { TextElementType, TextSkeletonProps } from "./types-1328ead9";
|
|
13
|
-
import { ButtonProps } from "./index-
|
|
14
|
-
import { ContentProps } from "./typings-
|
|
15
|
-
import { ModalResponsiveProps as ModalProps } from "./typings-
|
|
13
|
+
import { ButtonProps } from "./index-61e2321e";
|
|
14
|
+
import { ContentProps } from "./typings-88b743b5";
|
|
15
|
+
import { ModalResponsiveProps as ModalProps } from "./typings-88b743b5";
|
|
16
16
|
import { InputProps } from "@alfalab/core-components-input";
|
|
17
17
|
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
18
18
|
/**
|
|
19
19
|
* Текст после иконки
|
|
20
20
|
*/
|
|
21
|
-
text?: string;
|
|
21
|
+
text?: string | null;
|
|
22
22
|
/**
|
|
23
23
|
* Дополнительный класс
|
|
24
24
|
*/
|
|
@@ -512,7 +512,7 @@ interface ControlsProps {
|
|
|
512
512
|
gap?: 16 | 24 | 32;
|
|
513
513
|
}
|
|
514
514
|
declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
515
|
-
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
515
|
+
size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
|
|
516
516
|
fullscreen?: boolean | undefined;
|
|
517
517
|
fixedPosition?: boolean | undefined;
|
|
518
518
|
hasCloser?: boolean | undefined;
|
|
@@ -521,7 +521,7 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-b
|
|
|
521
521
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
522
522
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
523
523
|
Header: React.FC<HeaderProps>;
|
|
524
|
-
Content: React.FC<import("./typings-
|
|
524
|
+
Content: React.FC<import("./typings-88b743b5").ContentProps>;
|
|
525
525
|
Footer: React.FC<FooterProps>;
|
|
526
526
|
Controls: React.FC<ControlsProps>;
|
|
527
527
|
};
|
|
@@ -879,7 +879,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
879
879
|
className?: string;
|
|
880
880
|
}> | ReactElement;
|
|
881
881
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
882
|
-
size?: "s" | "xs" | 24 | 32 | 40 |
|
|
882
|
+
size?: "s" | "xs" | 48 | 56 | 24 | 32 | 40 | "xxs" | undefined;
|
|
883
883
|
className?: string | undefined;
|
|
884
884
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
885
885
|
dataTestId?: string | undefined;
|
|
@@ -1029,12 +1029,14 @@ type BaseSelectProps = {
|
|
|
1029
1029
|
multiple?: boolean;
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Размер компонента
|
|
1032
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1032
1033
|
*/
|
|
1033
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1034
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1034
1035
|
/**
|
|
1035
1036
|
* Размер пунктов меню
|
|
1037
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1036
1038
|
*/
|
|
1037
|
-
optionsSize?: 's' | 'm' | 'l' | 'xl';
|
|
1039
|
+
optionsSize?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1038
1040
|
/**
|
|
1039
1041
|
* Растягивает компонент на ширину контейнера
|
|
1040
1042
|
*/
|
|
@@ -1299,8 +1301,9 @@ type OptionsListProps = {
|
|
|
1299
1301
|
scrollbarClassName?: string;
|
|
1300
1302
|
/**
|
|
1301
1303
|
* Размер компонента
|
|
1304
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1302
1305
|
*/
|
|
1303
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1306
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1304
1307
|
/**
|
|
1305
1308
|
* Компонент пункта меню
|
|
1306
1309
|
*/
|
|
@@ -1402,8 +1405,9 @@ type OptgroupProps = {
|
|
|
1402
1405
|
className?: string;
|
|
1403
1406
|
/**
|
|
1404
1407
|
* Размер компонента
|
|
1408
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1405
1409
|
*/
|
|
1406
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1410
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1407
1411
|
/**
|
|
1408
1412
|
* Заголовок группы
|
|
1409
1413
|
*/
|
|
@@ -1420,8 +1424,9 @@ type OptionProps = {
|
|
|
1420
1424
|
className?: string;
|
|
1421
1425
|
/**
|
|
1422
1426
|
* Размер компонента
|
|
1427
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1423
1428
|
*/
|
|
1424
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1429
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1425
1430
|
/**
|
|
1426
1431
|
* Контент пункта меню
|
|
1427
1432
|
*/
|
|
@@ -1579,8 +1584,8 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1579
1584
|
};
|
|
1580
1585
|
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalContext, getModalTestIds, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, Typography, typographyPresets, TitleResponsive, getDefaultWeight, IconButtonProps, IconButton, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1581
1586
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, TitleProps, TextProps, Color };
|
|
1582
|
-
export { ModalResponsiveProps as ModalProps } from "./typings-
|
|
1583
|
-
export type { ContentProps as ModalContentProps } from "./typings-
|
|
1587
|
+
export { ModalResponsiveProps as ModalProps } from "./typings-88b743b5";
|
|
1588
|
+
export type { ContentProps as ModalContentProps } from "./typings-88b743b5";
|
|
1584
1589
|
export * from "./use-skeleton-1328ead9";
|
|
1585
1590
|
export * from "./Component.desktop-ebda875c";
|
|
1586
1591
|
export * from "./Component.mobile-ebda875c";
|
|
@@ -3,9 +3,10 @@ import { BaseModalProps } from "./index-bdb4c6b9";
|
|
|
3
3
|
type ModalDesktopProps = BaseModalProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Ширина модального окна
|
|
6
|
-
* @default
|
|
6
|
+
* @default 600
|
|
7
|
+
* @description s, m, l, xl deprecated, используйте вместо них 500, 600, 800, 1140 соответственно
|
|
7
8
|
*/
|
|
8
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen' | 500 | 600 | 800 | 1140;
|
|
9
10
|
/**
|
|
10
11
|
* Растягивает модальное окно на весь экран
|
|
11
12
|
* @deprecated Используйте размер fullscreen
|
package/cssm/utils-89376c31.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-70284312";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -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
|
} & {
|