@alfalab/core-components-intl-phone-input 6.1.2 → 6.1.5
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/CHANGELOG.md +27 -0
- package/dist/{component-0bc20203.d.ts → component-bd0fe8ca.d.ts} +0 -0
- package/dist/{component-0bc20203.js → component-bd0fe8ca.js} +2 -2
- package/dist/component.d.ts +1 -1
- package/dist/component.js +4 -4
- package/dist/components/flag-icon/component.d.ts +0 -4
- package/dist/components/flag-icon/component.js +3 -3
- package/dist/components/flag-icon/index.css +1292 -4423
- package/dist/components/index.js +1 -1
- package/dist/components/select/component.js +3 -3
- package/dist/components/select/index.css +6 -6
- package/dist/components/select/index.js +1 -1
- package/dist/components/select-field/component.js +1 -1
- package/dist/components/select-field/index.css +12 -12
- package/dist/components/select-field/index.d.ts +1 -1
- package/dist/components/select-field/index.js +1 -1
- package/dist/cssm/{component-88f82cfc.d.ts → component-343123ac.d.ts} +0 -0
- package/dist/cssm/{component-88f82cfc.js → component-343123ac.js} +1 -1
- package/dist/cssm/component.js +2 -2
- package/dist/cssm/components/flag-icon/component.d.ts +0 -4
- package/dist/cssm/components/flag-icon/component.js +2 -2
- package/dist/cssm/components/flag-icon/index.module.css +1290 -4427
- package/dist/cssm/components/index.js +1 -1
- package/dist/cssm/components/select/component.js +2 -2
- package/dist/cssm/components/select/index.js +1 -1
- package/dist/cssm/components/select-field/component.js +1 -1
- package/dist/cssm/components/select-field/index.d.ts +1 -1
- package/dist/cssm/components/select-field/index.js +1 -1
- package/dist/cssm/components/select-field/index.module.css +4 -4
- package/dist/cssm/index.js +1 -1
- package/dist/esm/{component-1fcbe4c0.d.ts → component-79fa579f.d.ts} +0 -0
- package/dist/esm/{component-1fcbe4c0.js → component-79fa579f.js} +2 -2
- package/dist/esm/component.js +4 -4
- package/dist/esm/components/flag-icon/component.d.ts +0 -4
- package/dist/esm/components/flag-icon/component.js +3 -3
- package/dist/esm/components/flag-icon/index.css +1292 -4423
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/select/component.js +4 -4
- package/dist/esm/components/select/index.css +6 -6
- package/dist/esm/components/select/index.js +1 -1
- package/dist/esm/components/select-field/component.js +1 -1
- package/dist/esm/components/select-field/index.css +12 -12
- package/dist/esm/components/select-field/index.d.ts +1 -1
- package/dist/esm/components/select-field/index.js +1 -1
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/{libphonenumber-js.min-047b635d.d.ts → libphonenumber-js.min-796d6add.d.ts} +0 -0
- package/dist/esm/{libphonenumber-js.min-047b635d.js → libphonenumber-js.min-796d6add.js} +0 -0
- package/dist/index.css +3 -3
- package/dist/index.js +1 -1
- package/dist/{libphonenumber-js.min-61c93ee5.d.ts → libphonenumber-js.min-377877ed.d.ts} +0 -0
- package/dist/{libphonenumber-js.min-61c93ee5.js → libphonenumber-js.min-377877ed.js} +0 -0
- package/dist/modern/component.js +3 -3
- package/dist/modern/components/flag-icon/component.d.ts +0 -4
- package/dist/modern/components/flag-icon/component.js +3 -3
- package/dist/modern/components/flag-icon/index.css +1292 -4423
- package/dist/modern/components/select/component.js +3 -3
- package/dist/modern/components/select/index.css +6 -6
- package/dist/modern/components/select-field/component.js +2 -2
- package/dist/modern/components/select-field/index.css +12 -12
- package/dist/modern/index.css +3 -3
- package/dist/modern/{libphonenumber-js.min-047b635d.d.ts → libphonenumber-js.min-796d6add.d.ts} +0 -0
- package/dist/modern/{libphonenumber-js.min-047b635d.js → libphonenumber-js.min-796d6add.js} +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.1.5](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-intl-phone-input@6.1.4...@alfalab/core-components-intl-phone-input@6.1.5) (2022-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-intl-phone-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [6.1.4](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-intl-phone-input@6.1.3...@alfalab/core-components-intl-phone-input@6.1.4) (2022-03-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **intl-phone-input:** design fixes ([#1030](https://github.com/alfa-laboratory/core-components/issues/1030)) ([27cfb9b](https://github.com/alfa-laboratory/core-components/commit/27cfb9be1cac9f0aac151ae2121c426fb123fb3f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [6.1.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-intl-phone-input@6.1.2...@alfalab/core-components-intl-phone-input@6.1.3) (2022-03-04)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @alfalab/core-components-intl-phone-input
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [6.1.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-intl-phone-input@6.1.1...@alfalab/core-components-intl-phone-input@6.1.2) (2022-03-04)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @alfalab/core-components-intl-phone-input
|
|
File without changes
|
|
@@ -51,7 +51,7 @@ function __rest(s, e) {
|
|
|
51
51
|
return t;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
var styles = {"component":"intl-phone-
|
|
54
|
+
var styles = {"component":"intl-phone-input__component_jtjwq","flagIconContainer":"intl-phone-input__flagIconContainer_jtjwq","disabled":"intl-phone-input__disabled_jtjwq","inner":"intl-phone-input__inner_jtjwq","l":"intl-phone-input__l_jtjwq","xl":"intl-phone-input__xl_jtjwq","focusVisible":"intl-phone-input__focusVisible_jtjwq"};
|
|
55
55
|
require('./components/select-field/index.css')
|
|
56
56
|
|
|
57
57
|
var SelectField = function (_a) {
|
|
@@ -66,7 +66,7 @@ var SelectField = function (_a) {
|
|
|
66
66
|
_b)) },
|
|
67
67
|
React__default['default'].createElement("div", exports.__assign({}, innerProps, { className: styles.inner }),
|
|
68
68
|
selected && (React__default['default'].createElement("span", { className: styles.flagIconContainer },
|
|
69
|
-
React__default['default'].createElement(components_flagIcon_component.FlagIcon, { country: selected.value
|
|
69
|
+
React__default['default'].createElement(components_flagIcon_component.FlagIcon, { country: selected.value }))),
|
|
70
70
|
Arrow)));
|
|
71
71
|
};
|
|
72
72
|
|
package/dist/component.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ type IntlPhoneInputProps = Partial<Omit<InputAutocompleteProps, 'onChange'>> & P
|
|
|
34
34
|
*/
|
|
35
35
|
clearableCountryCode?: boolean;
|
|
36
36
|
};
|
|
37
|
-
declare const IntlPhoneInput: React.ForwardRefExoticComponent<Partial<Pick<InputAutocompleteProps, "
|
|
37
|
+
declare const IntlPhoneInput: React.ForwardRefExoticComponent<Partial<Pick<InputAutocompleteProps, "selected" | "valueRenderer" | "Optgroup" | "size" | "value" | "disabled" | "multiple" | "name" | "placeholder" | "readOnly" | "className" | "id" | "onFocus" | "onBlur" | "onInput" | "onScroll" | "options" | "visibleOptions" | "open" | "label" | "error" | "hint" | "Arrow" | "dataTestId" | "fieldClassName" | "success" | "block" | "Option" | "inputProps" | "optionsListClassName" | "optionClassName" | "popperClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "preventFlip" | "optionsListWidth" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "Input">> & Pick<SelectProps, "preventFlip"> & {
|
|
38
38
|
/**
|
|
39
39
|
* Значение
|
|
40
40
|
*/
|
package/dist/component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_selectField_component = require('./component-
|
|
5
|
+
var components_selectField_component = require('./component-bd0fe8ca.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var utils = require('@alfalab/utils');
|
|
@@ -21,7 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"addons":"intl-phone-
|
|
24
|
+
var styles = {"addons":"intl-phone-input__addons_1agv7","l":"intl-phone-input__l_1agv7","xl":"intl-phone-input__xl_1agv7"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
var countriesHash = utils.getCountriesHash();
|
|
@@ -83,7 +83,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
83
83
|
}, [countries, countryIso2, setValue, handleCountryChange]);
|
|
84
84
|
var loadPhoneUtils = React.useCallback(function () {
|
|
85
85
|
// prettier-ignore
|
|
86
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-
|
|
86
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-377877ed.js'); })
|
|
87
87
|
.then(function (utils) {
|
|
88
88
|
phoneLibUtils.current = utils.AsYouType;
|
|
89
89
|
})
|
|
@@ -141,7 +141,7 @@ var IntlPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
141
141
|
var countryCodeLength = ("+" + country.dialCode).length;
|
|
142
142
|
useCaretAvoidCountryCode.useCaretAvoidCountryCode({ inputRef: inputRef, countryCodeLength: countryCodeLength, clearableCountryCode: clearableCountryCode });
|
|
143
143
|
usePreventCaretReset.usePreventCaretReset({ inputRef: inputRef, countryCodeLength: countryCodeLength, clearableCountryCode: clearableCountryCode });
|
|
144
|
-
return (React__default['default'].createElement(coreComponentsInputAutocomplete.InputAutocomplete, components_selectField_component.__assign({}, restProps, { ref: ref, inputProps: components_selectField_component.__assign(components_selectField_component.__assign({}, inputProps), { ref: inputRef, wrapperRef: setInputWrapperRef, type: 'tel', colors: colors, className: cn__default['default'](className, styles[size]), addonsClassName: styles.addons, leftAddons: countries.length > 1 && (React__default['default'].createElement(components_select_component.CountriesSelect, { dataTestId: 'countries-select', disabled: disabled || readOnly, size: size, selected: countryIso2, countries: countries, onChange: handleSelectChange, fieldWidth: inputWrapperRef && inputWrapperRef.getBoundingClientRect().width, preventFlip: preventFlip })) }), closeOnSelect: true, onInput: handleInputChange, onChange: handleChange, options: options, disabled: disabled, readOnly: readOnly, size: size, className: className, value: value })));
|
|
144
|
+
return (React__default['default'].createElement(coreComponentsInputAutocomplete.InputAutocomplete, components_selectField_component.__assign({}, restProps, { ref: ref, inputProps: components_selectField_component.__assign(components_selectField_component.__assign({}, inputProps), { ref: inputRef, wrapperRef: setInputWrapperRef, type: 'tel', colors: colors, className: cn__default['default'](className, styles[size]), addonsClassName: styles.addons, leftAddons: countries.length > 1 && (React__default['default'].createElement(components_select_component.CountriesSelect, { dataTestId: 'countries-select', disabled: disabled || readOnly, size: size, selected: countryIso2, countries: countries, onChange: handleSelectChange, fieldWidth: inputWrapperRef && inputWrapperRef.getBoundingClientRect().width, preventFlip: preventFlip })) }), optionsListWidth: "field", closeOnSelect: true, onInput: handleInputChange, onChange: handleChange, options: options, disabled: disabled, readOnly: readOnly, size: size, className: className, value: value })));
|
|
145
145
|
});
|
|
146
146
|
IntlPhoneInput.defaultProps = {
|
|
147
147
|
size: 'm',
|
|
@@ -4,10 +4,6 @@ type FlagIconProps = {
|
|
|
4
4
|
* Код страны из <a href="https://ru.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank">ISO 3166-1 alpha-2</a>
|
|
5
5
|
*/
|
|
6
6
|
country?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Размер компонента
|
|
9
|
-
*/
|
|
10
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
11
7
|
/**
|
|
12
8
|
* Дополнительный класс
|
|
13
9
|
*/
|
|
@@ -10,15 +10,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
12
12
|
|
|
13
|
-
var styles = {"flagIcon":"intl-phone-
|
|
13
|
+
var styles = {"flagIcon":"intl-phone-input__flagIcon_z7h92","ac":"intl-phone-input__ac_z7h92","ad":"intl-phone-input__ad_z7h92","ae":"intl-phone-input__ae_z7h92","af":"intl-phone-input__af_z7h92","ag":"intl-phone-input__ag_z7h92","ai":"intl-phone-input__ai_z7h92","al":"intl-phone-input__al_z7h92","am":"intl-phone-input__am_z7h92","ao":"intl-phone-input__ao_z7h92","aq":"intl-phone-input__aq_z7h92","ar":"intl-phone-input__ar_z7h92","as":"intl-phone-input__as_z7h92","at":"intl-phone-input__at_z7h92","au":"intl-phone-input__au_z7h92","aw":"intl-phone-input__aw_z7h92","ax":"intl-phone-input__ax_z7h92","az":"intl-phone-input__az_z7h92","ba":"intl-phone-input__ba_z7h92","bb":"intl-phone-input__bb_z7h92","bd":"intl-phone-input__bd_z7h92","be":"intl-phone-input__be_z7h92","bf":"intl-phone-input__bf_z7h92","bg":"intl-phone-input__bg_z7h92","bh":"intl-phone-input__bh_z7h92","bi":"intl-phone-input__bi_z7h92","bj":"intl-phone-input__bj_z7h92","bl":"intl-phone-input__bl_z7h92","bm":"intl-phone-input__bm_z7h92","bn":"intl-phone-input__bn_z7h92","bo":"intl-phone-input__bo_z7h92","bq":"intl-phone-input__bq_z7h92","br":"intl-phone-input__br_z7h92","bs":"intl-phone-input__bs_z7h92","bt":"intl-phone-input__bt_z7h92","bv":"intl-phone-input__bv_z7h92","bw":"intl-phone-input__bw_z7h92","by":"intl-phone-input__by_z7h92","bz":"intl-phone-input__bz_z7h92","ca":"intl-phone-input__ca_z7h92","cc":"intl-phone-input__cc_z7h92","cd":"intl-phone-input__cd_z7h92","cf":"intl-phone-input__cf_z7h92","cg":"intl-phone-input__cg_z7h92","ch":"intl-phone-input__ch_z7h92","ci":"intl-phone-input__ci_z7h92","ck":"intl-phone-input__ck_z7h92","cl":"intl-phone-input__cl_z7h92","cm":"intl-phone-input__cm_z7h92","cn":"intl-phone-input__cn_z7h92","co":"intl-phone-input__co_z7h92","cp":"intl-phone-input__cp_z7h92","cr":"intl-phone-input__cr_z7h92","cu":"intl-phone-input__cu_z7h92","cv":"intl-phone-input__cv_z7h92","cw":"intl-phone-input__cw_z7h92","cx":"intl-phone-input__cx_z7h92","cy":"intl-phone-input__cy_z7h92","cz":"intl-phone-input__cz_z7h92","de":"intl-phone-input__de_z7h92","dg":"intl-phone-input__dg_z7h92","dj":"intl-phone-input__dj_z7h92","dk":"intl-phone-input__dk_z7h92","dm":"intl-phone-input__dm_z7h92","do":"intl-phone-input__do_z7h92","dz":"intl-phone-input__dz_z7h92","ea":"intl-phone-input__ea_z7h92","ec":"intl-phone-input__ec_z7h92","ee":"intl-phone-input__ee_z7h92","eg":"intl-phone-input__eg_z7h92","eh":"intl-phone-input__eh_z7h92","er":"intl-phone-input__er_z7h92","es":"intl-phone-input__es_z7h92","et":"intl-phone-input__et_z7h92","eu":"intl-phone-input__eu_z7h92","fi":"intl-phone-input__fi_z7h92","fj":"intl-phone-input__fj_z7h92","fk":"intl-phone-input__fk_z7h92","fm":"intl-phone-input__fm_z7h92","fo":"intl-phone-input__fo_z7h92","fr":"intl-phone-input__fr_z7h92","ga":"intl-phone-input__ga_z7h92","gb":"intl-phone-input__gb_z7h92","gd":"intl-phone-input__gd_z7h92","ge":"intl-phone-input__ge_z7h92","gf":"intl-phone-input__gf_z7h92","gg":"intl-phone-input__gg_z7h92","gh":"intl-phone-input__gh_z7h92","gi":"intl-phone-input__gi_z7h92","gl":"intl-phone-input__gl_z7h92","gm":"intl-phone-input__gm_z7h92","gn":"intl-phone-input__gn_z7h92","gp":"intl-phone-input__gp_z7h92","gq":"intl-phone-input__gq_z7h92","gr":"intl-phone-input__gr_z7h92","gs":"intl-phone-input__gs_z7h92","gt":"intl-phone-input__gt_z7h92","gu":"intl-phone-input__gu_z7h92","gw":"intl-phone-input__gw_z7h92","gy":"intl-phone-input__gy_z7h92","hk":"intl-phone-input__hk_z7h92","hm":"intl-phone-input__hm_z7h92","hn":"intl-phone-input__hn_z7h92","hr":"intl-phone-input__hr_z7h92","ht":"intl-phone-input__ht_z7h92","hu":"intl-phone-input__hu_z7h92","ic":"intl-phone-input__ic_z7h92","id":"intl-phone-input__id_z7h92","ie":"intl-phone-input__ie_z7h92","il":"intl-phone-input__il_z7h92","im":"intl-phone-input__im_z7h92","in":"intl-phone-input__in_z7h92","io":"intl-phone-input__io_z7h92","iq":"intl-phone-input__iq_z7h92","ir":"intl-phone-input__ir_z7h92","is":"intl-phone-input__is_z7h92","it":"intl-phone-input__it_z7h92","je":"intl-phone-input__je_z7h92","jm":"intl-phone-input__jm_z7h92","jo":"intl-phone-input__jo_z7h92","jp":"intl-phone-input__jp_z7h92","ke":"intl-phone-input__ke_z7h92","kg":"intl-phone-input__kg_z7h92","kh":"intl-phone-input__kh_z7h92","ki":"intl-phone-input__ki_z7h92","km":"intl-phone-input__km_z7h92","kn":"intl-phone-input__kn_z7h92","kp":"intl-phone-input__kp_z7h92","kr":"intl-phone-input__kr_z7h92","kw":"intl-phone-input__kw_z7h92","ky":"intl-phone-input__ky_z7h92","kz":"intl-phone-input__kz_z7h92","la":"intl-phone-input__la_z7h92","lb":"intl-phone-input__lb_z7h92","lc":"intl-phone-input__lc_z7h92","li":"intl-phone-input__li_z7h92","lk":"intl-phone-input__lk_z7h92","lr":"intl-phone-input__lr_z7h92","ls":"intl-phone-input__ls_z7h92","lt":"intl-phone-input__lt_z7h92","lu":"intl-phone-input__lu_z7h92","lv":"intl-phone-input__lv_z7h92","ly":"intl-phone-input__ly_z7h92","ma":"intl-phone-input__ma_z7h92","mc":"intl-phone-input__mc_z7h92","md":"intl-phone-input__md_z7h92","me":"intl-phone-input__me_z7h92","mf":"intl-phone-input__mf_z7h92","mg":"intl-phone-input__mg_z7h92","mh":"intl-phone-input__mh_z7h92","mk":"intl-phone-input__mk_z7h92","ml":"intl-phone-input__ml_z7h92","mm":"intl-phone-input__mm_z7h92","mn":"intl-phone-input__mn_z7h92","mo":"intl-phone-input__mo_z7h92","mp":"intl-phone-input__mp_z7h92","mq":"intl-phone-input__mq_z7h92","mr":"intl-phone-input__mr_z7h92","ms":"intl-phone-input__ms_z7h92","mt":"intl-phone-input__mt_z7h92","mu":"intl-phone-input__mu_z7h92","mv":"intl-phone-input__mv_z7h92","mw":"intl-phone-input__mw_z7h92","mx":"intl-phone-input__mx_z7h92","my":"intl-phone-input__my_z7h92","mz":"intl-phone-input__mz_z7h92","na":"intl-phone-input__na_z7h92","nc":"intl-phone-input__nc_z7h92","ne":"intl-phone-input__ne_z7h92","nf":"intl-phone-input__nf_z7h92","ng":"intl-phone-input__ng_z7h92","ni":"intl-phone-input__ni_z7h92","nl":"intl-phone-input__nl_z7h92","no":"intl-phone-input__no_z7h92","np":"intl-phone-input__np_z7h92","nr":"intl-phone-input__nr_z7h92","nu":"intl-phone-input__nu_z7h92","nz":"intl-phone-input__nz_z7h92","om":"intl-phone-input__om_z7h92","pa":"intl-phone-input__pa_z7h92","pe":"intl-phone-input__pe_z7h92","pf":"intl-phone-input__pf_z7h92","pg":"intl-phone-input__pg_z7h92","ph":"intl-phone-input__ph_z7h92","pk":"intl-phone-input__pk_z7h92","pl":"intl-phone-input__pl_z7h92","pm":"intl-phone-input__pm_z7h92","pn":"intl-phone-input__pn_z7h92","pr":"intl-phone-input__pr_z7h92","ps":"intl-phone-input__ps_z7h92","pt":"intl-phone-input__pt_z7h92","pw":"intl-phone-input__pw_z7h92","py":"intl-phone-input__py_z7h92","qa":"intl-phone-input__qa_z7h92","re":"intl-phone-input__re_z7h92","ro":"intl-phone-input__ro_z7h92","rs":"intl-phone-input__rs_z7h92","ru":"intl-phone-input__ru_z7h92","rw":"intl-phone-input__rw_z7h92","sa":"intl-phone-input__sa_z7h92","sb":"intl-phone-input__sb_z7h92","sc":"intl-phone-input__sc_z7h92","sd":"intl-phone-input__sd_z7h92","se":"intl-phone-input__se_z7h92","sg":"intl-phone-input__sg_z7h92","sh":"intl-phone-input__sh_z7h92","si":"intl-phone-input__si_z7h92","sj":"intl-phone-input__sj_z7h92","sk":"intl-phone-input__sk_z7h92","sl":"intl-phone-input__sl_z7h92","sm":"intl-phone-input__sm_z7h92","sn":"intl-phone-input__sn_z7h92","so":"intl-phone-input__so_z7h92","sr":"intl-phone-input__sr_z7h92","ss":"intl-phone-input__ss_z7h92","st":"intl-phone-input__st_z7h92","sv":"intl-phone-input__sv_z7h92","sx":"intl-phone-input__sx_z7h92","sy":"intl-phone-input__sy_z7h92","sz":"intl-phone-input__sz_z7h92","ta":"intl-phone-input__ta_z7h92","tc":"intl-phone-input__tc_z7h92","td":"intl-phone-input__td_z7h92","tf":"intl-phone-input__tf_z7h92","tg":"intl-phone-input__tg_z7h92","th":"intl-phone-input__th_z7h92","tj":"intl-phone-input__tj_z7h92","tk":"intl-phone-input__tk_z7h92","tl":"intl-phone-input__tl_z7h92","tm":"intl-phone-input__tm_z7h92","tn":"intl-phone-input__tn_z7h92","to":"intl-phone-input__to_z7h92","tr":"intl-phone-input__tr_z7h92","tt":"intl-phone-input__tt_z7h92","tv":"intl-phone-input__tv_z7h92","tw":"intl-phone-input__tw_z7h92","tz":"intl-phone-input__tz_z7h92","ua":"intl-phone-input__ua_z7h92","ug":"intl-phone-input__ug_z7h92","um":"intl-phone-input__um_z7h92","un":"intl-phone-input__un_z7h92","us":"intl-phone-input__us_z7h92","uy":"intl-phone-input__uy_z7h92","uz":"intl-phone-input__uz_z7h92","va":"intl-phone-input__va_z7h92","vc":"intl-phone-input__vc_z7h92","ve":"intl-phone-input__ve_z7h92","vg":"intl-phone-input__vg_z7h92","vi":"intl-phone-input__vi_z7h92","vn":"intl-phone-input__vn_z7h92","vu":"intl-phone-input__vu_z7h92","wf":"intl-phone-input__wf_z7h92","ws":"intl-phone-input__ws_z7h92","xk":"intl-phone-input__xk_z7h92","ye":"intl-phone-input__ye_z7h92","yt":"intl-phone-input__yt_z7h92","za":"intl-phone-input__za_z7h92","zm":"intl-phone-input__zm_z7h92","zw":"intl-phone-input__zw_z7h92"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Компонент флага в виде иконки.
|
|
18
18
|
*/
|
|
19
19
|
var FlagIcon = function (_a) {
|
|
20
|
-
var _b = _a.
|
|
21
|
-
return React__default['default'].createElement("span", { className: cn__default['default'](styles.flagIcon, styles[
|
|
20
|
+
var _b = _a.country, country = _b === void 0 ? '' : _b, className = _a.className;
|
|
21
|
+
return React__default['default'].createElement("span", { className: cn__default['default'](styles.flagIcon, styles[country], className) });
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
exports.FlagIcon = FlagIcon;
|