@alfalab/core-components-intl-phone-input 6.1.3 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/{component-76a5478b.d.ts → component-f8b7bb12.d.ts} +0 -0
- package/dist/{component-76a5478b.js → component-f8b7bb12.js} +2 -2
- 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-9b9b82d6.d.ts → component-82951d54.d.ts} +0 -0
- package/dist/esm/{component-9b9b82d6.js → component-82951d54.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-25ec5f48.d.ts → libphonenumber-js.min-224b0232.d.ts} +0 -0
- package/dist/esm/{libphonenumber-js.min-25ec5f48.js → libphonenumber-js.min-224b0232.js} +0 -0
- package/dist/index.css +3 -3
- package/dist/index.js +1 -1
- package/dist/{libphonenumber-js.min-e01537a8.d.ts → libphonenumber-js.min-24d9823c.d.ts} +0 -0
- package/dist/{libphonenumber-js.min-e01537a8.js → libphonenumber-js.min-24d9823c.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-25ec5f48.d.ts → libphonenumber-js.min-224b0232.d.ts} +0 -0
- package/dist/modern/{libphonenumber-js.min-25ec5f48.js → libphonenumber-js.min-224b0232.js} +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-intl-phone-input@6.1.5...@alfalab/core-components-intl-phone-input@6.2.0) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **filter-tag:** new component ([#1035](https://github.com/alfa-laboratory/core-components/issues/1035)) ([f97e9c5](https://github.com/alfa-laboratory/core-components/commit/f97e9c59062e56f3bafa855450a33b5f67497143))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @alfalab/core-components-intl-phone-input
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [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)
|
|
7
37
|
|
|
8
38
|
**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_1cu57","flagIconContainer":"intl-phone-input__flagIconContainer_1cu57","disabled":"intl-phone-input__disabled_1cu57","inner":"intl-phone-input__inner_1cu57","l":"intl-phone-input__l_1cu57","xl":"intl-phone-input__xl_1cu57","focusVisible":"intl-phone-input__focusVisible_1cu57"};
|
|
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.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-f8b7bb12.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_hi7gy","l":"intl-phone-input__l_hi7gy","xl":"intl-phone-input__xl_hi7gy"};
|
|
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-24d9823c.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_y28zi","ac":"intl-phone-input__ac_y28zi","ad":"intl-phone-input__ad_y28zi","ae":"intl-phone-input__ae_y28zi","af":"intl-phone-input__af_y28zi","ag":"intl-phone-input__ag_y28zi","ai":"intl-phone-input__ai_y28zi","al":"intl-phone-input__al_y28zi","am":"intl-phone-input__am_y28zi","ao":"intl-phone-input__ao_y28zi","aq":"intl-phone-input__aq_y28zi","ar":"intl-phone-input__ar_y28zi","as":"intl-phone-input__as_y28zi","at":"intl-phone-input__at_y28zi","au":"intl-phone-input__au_y28zi","aw":"intl-phone-input__aw_y28zi","ax":"intl-phone-input__ax_y28zi","az":"intl-phone-input__az_y28zi","ba":"intl-phone-input__ba_y28zi","bb":"intl-phone-input__bb_y28zi","bd":"intl-phone-input__bd_y28zi","be":"intl-phone-input__be_y28zi","bf":"intl-phone-input__bf_y28zi","bg":"intl-phone-input__bg_y28zi","bh":"intl-phone-input__bh_y28zi","bi":"intl-phone-input__bi_y28zi","bj":"intl-phone-input__bj_y28zi","bl":"intl-phone-input__bl_y28zi","bm":"intl-phone-input__bm_y28zi","bn":"intl-phone-input__bn_y28zi","bo":"intl-phone-input__bo_y28zi","bq":"intl-phone-input__bq_y28zi","br":"intl-phone-input__br_y28zi","bs":"intl-phone-input__bs_y28zi","bt":"intl-phone-input__bt_y28zi","bv":"intl-phone-input__bv_y28zi","bw":"intl-phone-input__bw_y28zi","by":"intl-phone-input__by_y28zi","bz":"intl-phone-input__bz_y28zi","ca":"intl-phone-input__ca_y28zi","cc":"intl-phone-input__cc_y28zi","cd":"intl-phone-input__cd_y28zi","cf":"intl-phone-input__cf_y28zi","cg":"intl-phone-input__cg_y28zi","ch":"intl-phone-input__ch_y28zi","ci":"intl-phone-input__ci_y28zi","ck":"intl-phone-input__ck_y28zi","cl":"intl-phone-input__cl_y28zi","cm":"intl-phone-input__cm_y28zi","cn":"intl-phone-input__cn_y28zi","co":"intl-phone-input__co_y28zi","cp":"intl-phone-input__cp_y28zi","cr":"intl-phone-input__cr_y28zi","cu":"intl-phone-input__cu_y28zi","cv":"intl-phone-input__cv_y28zi","cw":"intl-phone-input__cw_y28zi","cx":"intl-phone-input__cx_y28zi","cy":"intl-phone-input__cy_y28zi","cz":"intl-phone-input__cz_y28zi","de":"intl-phone-input__de_y28zi","dg":"intl-phone-input__dg_y28zi","dj":"intl-phone-input__dj_y28zi","dk":"intl-phone-input__dk_y28zi","dm":"intl-phone-input__dm_y28zi","do":"intl-phone-input__do_y28zi","dz":"intl-phone-input__dz_y28zi","ea":"intl-phone-input__ea_y28zi","ec":"intl-phone-input__ec_y28zi","ee":"intl-phone-input__ee_y28zi","eg":"intl-phone-input__eg_y28zi","eh":"intl-phone-input__eh_y28zi","er":"intl-phone-input__er_y28zi","es":"intl-phone-input__es_y28zi","et":"intl-phone-input__et_y28zi","eu":"intl-phone-input__eu_y28zi","fi":"intl-phone-input__fi_y28zi","fj":"intl-phone-input__fj_y28zi","fk":"intl-phone-input__fk_y28zi","fm":"intl-phone-input__fm_y28zi","fo":"intl-phone-input__fo_y28zi","fr":"intl-phone-input__fr_y28zi","ga":"intl-phone-input__ga_y28zi","gb":"intl-phone-input__gb_y28zi","gd":"intl-phone-input__gd_y28zi","ge":"intl-phone-input__ge_y28zi","gf":"intl-phone-input__gf_y28zi","gg":"intl-phone-input__gg_y28zi","gh":"intl-phone-input__gh_y28zi","gi":"intl-phone-input__gi_y28zi","gl":"intl-phone-input__gl_y28zi","gm":"intl-phone-input__gm_y28zi","gn":"intl-phone-input__gn_y28zi","gp":"intl-phone-input__gp_y28zi","gq":"intl-phone-input__gq_y28zi","gr":"intl-phone-input__gr_y28zi","gs":"intl-phone-input__gs_y28zi","gt":"intl-phone-input__gt_y28zi","gu":"intl-phone-input__gu_y28zi","gw":"intl-phone-input__gw_y28zi","gy":"intl-phone-input__gy_y28zi","hk":"intl-phone-input__hk_y28zi","hm":"intl-phone-input__hm_y28zi","hn":"intl-phone-input__hn_y28zi","hr":"intl-phone-input__hr_y28zi","ht":"intl-phone-input__ht_y28zi","hu":"intl-phone-input__hu_y28zi","ic":"intl-phone-input__ic_y28zi","id":"intl-phone-input__id_y28zi","ie":"intl-phone-input__ie_y28zi","il":"intl-phone-input__il_y28zi","im":"intl-phone-input__im_y28zi","in":"intl-phone-input__in_y28zi","io":"intl-phone-input__io_y28zi","iq":"intl-phone-input__iq_y28zi","ir":"intl-phone-input__ir_y28zi","is":"intl-phone-input__is_y28zi","it":"intl-phone-input__it_y28zi","je":"intl-phone-input__je_y28zi","jm":"intl-phone-input__jm_y28zi","jo":"intl-phone-input__jo_y28zi","jp":"intl-phone-input__jp_y28zi","ke":"intl-phone-input__ke_y28zi","kg":"intl-phone-input__kg_y28zi","kh":"intl-phone-input__kh_y28zi","ki":"intl-phone-input__ki_y28zi","km":"intl-phone-input__km_y28zi","kn":"intl-phone-input__kn_y28zi","kp":"intl-phone-input__kp_y28zi","kr":"intl-phone-input__kr_y28zi","kw":"intl-phone-input__kw_y28zi","ky":"intl-phone-input__ky_y28zi","kz":"intl-phone-input__kz_y28zi","la":"intl-phone-input__la_y28zi","lb":"intl-phone-input__lb_y28zi","lc":"intl-phone-input__lc_y28zi","li":"intl-phone-input__li_y28zi","lk":"intl-phone-input__lk_y28zi","lr":"intl-phone-input__lr_y28zi","ls":"intl-phone-input__ls_y28zi","lt":"intl-phone-input__lt_y28zi","lu":"intl-phone-input__lu_y28zi","lv":"intl-phone-input__lv_y28zi","ly":"intl-phone-input__ly_y28zi","ma":"intl-phone-input__ma_y28zi","mc":"intl-phone-input__mc_y28zi","md":"intl-phone-input__md_y28zi","me":"intl-phone-input__me_y28zi","mf":"intl-phone-input__mf_y28zi","mg":"intl-phone-input__mg_y28zi","mh":"intl-phone-input__mh_y28zi","mk":"intl-phone-input__mk_y28zi","ml":"intl-phone-input__ml_y28zi","mm":"intl-phone-input__mm_y28zi","mn":"intl-phone-input__mn_y28zi","mo":"intl-phone-input__mo_y28zi","mp":"intl-phone-input__mp_y28zi","mq":"intl-phone-input__mq_y28zi","mr":"intl-phone-input__mr_y28zi","ms":"intl-phone-input__ms_y28zi","mt":"intl-phone-input__mt_y28zi","mu":"intl-phone-input__mu_y28zi","mv":"intl-phone-input__mv_y28zi","mw":"intl-phone-input__mw_y28zi","mx":"intl-phone-input__mx_y28zi","my":"intl-phone-input__my_y28zi","mz":"intl-phone-input__mz_y28zi","na":"intl-phone-input__na_y28zi","nc":"intl-phone-input__nc_y28zi","ne":"intl-phone-input__ne_y28zi","nf":"intl-phone-input__nf_y28zi","ng":"intl-phone-input__ng_y28zi","ni":"intl-phone-input__ni_y28zi","nl":"intl-phone-input__nl_y28zi","no":"intl-phone-input__no_y28zi","np":"intl-phone-input__np_y28zi","nr":"intl-phone-input__nr_y28zi","nu":"intl-phone-input__nu_y28zi","nz":"intl-phone-input__nz_y28zi","om":"intl-phone-input__om_y28zi","pa":"intl-phone-input__pa_y28zi","pe":"intl-phone-input__pe_y28zi","pf":"intl-phone-input__pf_y28zi","pg":"intl-phone-input__pg_y28zi","ph":"intl-phone-input__ph_y28zi","pk":"intl-phone-input__pk_y28zi","pl":"intl-phone-input__pl_y28zi","pm":"intl-phone-input__pm_y28zi","pn":"intl-phone-input__pn_y28zi","pr":"intl-phone-input__pr_y28zi","ps":"intl-phone-input__ps_y28zi","pt":"intl-phone-input__pt_y28zi","pw":"intl-phone-input__pw_y28zi","py":"intl-phone-input__py_y28zi","qa":"intl-phone-input__qa_y28zi","re":"intl-phone-input__re_y28zi","ro":"intl-phone-input__ro_y28zi","rs":"intl-phone-input__rs_y28zi","ru":"intl-phone-input__ru_y28zi","rw":"intl-phone-input__rw_y28zi","sa":"intl-phone-input__sa_y28zi","sb":"intl-phone-input__sb_y28zi","sc":"intl-phone-input__sc_y28zi","sd":"intl-phone-input__sd_y28zi","se":"intl-phone-input__se_y28zi","sg":"intl-phone-input__sg_y28zi","sh":"intl-phone-input__sh_y28zi","si":"intl-phone-input__si_y28zi","sj":"intl-phone-input__sj_y28zi","sk":"intl-phone-input__sk_y28zi","sl":"intl-phone-input__sl_y28zi","sm":"intl-phone-input__sm_y28zi","sn":"intl-phone-input__sn_y28zi","so":"intl-phone-input__so_y28zi","sr":"intl-phone-input__sr_y28zi","ss":"intl-phone-input__ss_y28zi","st":"intl-phone-input__st_y28zi","sv":"intl-phone-input__sv_y28zi","sx":"intl-phone-input__sx_y28zi","sy":"intl-phone-input__sy_y28zi","sz":"intl-phone-input__sz_y28zi","ta":"intl-phone-input__ta_y28zi","tc":"intl-phone-input__tc_y28zi","td":"intl-phone-input__td_y28zi","tf":"intl-phone-input__tf_y28zi","tg":"intl-phone-input__tg_y28zi","th":"intl-phone-input__th_y28zi","tj":"intl-phone-input__tj_y28zi","tk":"intl-phone-input__tk_y28zi","tl":"intl-phone-input__tl_y28zi","tm":"intl-phone-input__tm_y28zi","tn":"intl-phone-input__tn_y28zi","to":"intl-phone-input__to_y28zi","tr":"intl-phone-input__tr_y28zi","tt":"intl-phone-input__tt_y28zi","tv":"intl-phone-input__tv_y28zi","tw":"intl-phone-input__tw_y28zi","tz":"intl-phone-input__tz_y28zi","ua":"intl-phone-input__ua_y28zi","ug":"intl-phone-input__ug_y28zi","um":"intl-phone-input__um_y28zi","un":"intl-phone-input__un_y28zi","us":"intl-phone-input__us_y28zi","uy":"intl-phone-input__uy_y28zi","uz":"intl-phone-input__uz_y28zi","va":"intl-phone-input__va_y28zi","vc":"intl-phone-input__vc_y28zi","ve":"intl-phone-input__ve_y28zi","vg":"intl-phone-input__vg_y28zi","vi":"intl-phone-input__vi_y28zi","vn":"intl-phone-input__vn_y28zi","vu":"intl-phone-input__vu_y28zi","wf":"intl-phone-input__wf_y28zi","ws":"intl-phone-input__ws_y28zi","xk":"intl-phone-input__xk_y28zi","ye":"intl-phone-input__ye_y28zi","yt":"intl-phone-input__yt_y28zi","za":"intl-phone-input__za_y28zi","zm":"intl-phone-input__zm_y28zi","zw":"intl-phone-input__zw_y28zi"};
|
|
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;
|