@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
|
@@ -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-343123ac.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react-merge-refs');
|
|
@@ -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-343123ac.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react-merge-refs');
|
|
@@ -37,7 +37,7 @@ var CountriesSelect = function (_a) {
|
|
|
37
37
|
});
|
|
38
38
|
}, [countries]);
|
|
39
39
|
var renderOptionsList = React.useCallback(function (props) { return (React__default['default'].createElement("div", { style: { width: fieldWidth || 0 } },
|
|
40
|
-
React__default['default'].createElement(coreComponentsSelect.
|
|
40
|
+
React__default['default'].createElement(coreComponentsSelect.VirtualOptionsList, components_selectField_component.__assign({}, props)))); }, [fieldWidth]);
|
|
41
41
|
return (React__default['default'].createElement("div", { className: styles__default['default'].component, onClick: function (event) { return event.stopPropagation(); } },
|
|
42
42
|
React__default['default'].createElement(coreComponentsSelect.Select, { dataTestId: dataTestId, disabled: disabled, size: size, options: options, selected: selected, onChange: onChange, Field: components_selectField_component.SelectField, OptionsList: renderOptionsList, preventFlip: preventFlip })));
|
|
43
43
|
};
|
|
@@ -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-343123ac.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react-merge-refs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-343123ac";
|
|
@@ -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-343123ac.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react-merge-refs');
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
/* Hard up */
|
|
11
11
|
}
|
|
12
12
|
:root {
|
|
13
|
+
--gap-2xs: 4px;
|
|
13
14
|
--gap-s: 12px;
|
|
14
15
|
--gap-m: 16px;
|
|
15
16
|
}
|
|
@@ -21,16 +22,15 @@
|
|
|
21
22
|
height: 100%;
|
|
22
23
|
cursor: pointer;
|
|
23
24
|
outline: none;
|
|
24
|
-
width: 92px;
|
|
25
25
|
position: relative;
|
|
26
26
|
}
|
|
27
27
|
.flagIconContainer {
|
|
28
28
|
display: flex;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
align-items: center;
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
-
margin-right: var(--gap-
|
|
31
|
+
width: 24px;
|
|
32
|
+
height: 24px;
|
|
33
|
+
margin-right: var(--gap-2xs);
|
|
34
34
|
}
|
|
35
35
|
.disabled {
|
|
36
36
|
cursor: var(--disabled-cursor);
|
package/dist/cssm/index.js
CHANGED
|
File without changes
|
|
@@ -43,7 +43,7 @@ function __rest(s, e) {
|
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
var styles = {"component":"intl-phone-
|
|
46
|
+
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"};
|
|
47
47
|
require('./components/select-field/index.css')
|
|
48
48
|
|
|
49
49
|
var SelectField = function (_a) {
|
|
@@ -58,7 +58,7 @@ var SelectField = function (_a) {
|
|
|
58
58
|
_b)) },
|
|
59
59
|
React.createElement("div", __assign({}, innerProps, { className: styles.inner }),
|
|
60
60
|
selected && (React.createElement("span", { className: styles.flagIconContainer },
|
|
61
|
-
React.createElement(FlagIcon, { country: selected.value
|
|
61
|
+
React.createElement(FlagIcon, { country: selected.value }))),
|
|
62
62
|
Arrow)));
|
|
63
63
|
};
|
|
64
64
|
|
package/dist/esm/component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './component-
|
|
1
|
+
import { _ as __rest, a as __assign } from './component-82951d54.js';
|
|
2
2
|
import React, { forwardRef, useState, useRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { getCountriesHash, getCountries } from '@alfalab/utils';
|
|
@@ -12,7 +12,7 @@ import { formatPhoneWithUnclearableCountryCode } from './utils/format-phone-with
|
|
|
12
12
|
import { useCaretAvoidCountryCode } from './useCaretAvoidCountryCode.js';
|
|
13
13
|
import { usePreventCaretReset } from './usePreventCaretReset.js';
|
|
14
14
|
|
|
15
|
-
var styles = {"addons":"intl-phone-
|
|
15
|
+
var styles = {"addons":"intl-phone-input__addons_hi7gy","l":"intl-phone-input__l_hi7gy","xl":"intl-phone-input__xl_hi7gy"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var countriesHash = getCountriesHash();
|
|
@@ -74,7 +74,7 @@ var IntlPhoneInput = forwardRef(function (_a, ref) {
|
|
|
74
74
|
}, [countries, countryIso2, setValue, handleCountryChange]);
|
|
75
75
|
var loadPhoneUtils = useCallback(function () {
|
|
76
76
|
// prettier-ignore
|
|
77
|
-
return import(/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-
|
|
77
|
+
return import(/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-224b0232.js')
|
|
78
78
|
.then(function (utils) {
|
|
79
79
|
phoneLibUtils.current = utils.AsYouType;
|
|
80
80
|
})
|
|
@@ -132,7 +132,7 @@ var IntlPhoneInput = forwardRef(function (_a, ref) {
|
|
|
132
132
|
var countryCodeLength = ("+" + country.dialCode).length;
|
|
133
133
|
useCaretAvoidCountryCode({ inputRef: inputRef, countryCodeLength: countryCodeLength, clearableCountryCode: clearableCountryCode });
|
|
134
134
|
usePreventCaretReset({ inputRef: inputRef, countryCodeLength: countryCodeLength, clearableCountryCode: clearableCountryCode });
|
|
135
|
-
return (React.createElement(InputAutocomplete, __assign({}, restProps, { ref: ref, inputProps: __assign(__assign({}, inputProps), { ref: inputRef, wrapperRef: setInputWrapperRef, type: 'tel', colors: colors, className: cn(className, styles[size]), addonsClassName: styles.addons, leftAddons: countries.length > 1 && (React.createElement(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 })));
|
|
135
|
+
return (React.createElement(InputAutocomplete, __assign({}, restProps, { ref: ref, inputProps: __assign(__assign({}, inputProps), { ref: inputRef, wrapperRef: setInputWrapperRef, type: 'tel', colors: colors, className: cn(className, styles[size]), addonsClassName: styles.addons, leftAddons: countries.length > 1 && (React.createElement(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 })));
|
|
136
136
|
});
|
|
137
137
|
IntlPhoneInput.defaultProps = {
|
|
138
138
|
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
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"flagIcon":"intl-phone-
|
|
4
|
+
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"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Компонент флага в виде иконки.
|
|
9
9
|
*/
|
|
10
10
|
var FlagIcon = function (_a) {
|
|
11
|
-
var _b = _a.
|
|
12
|
-
return React.createElement("span", { className: cn(styles.flagIcon, styles[
|
|
11
|
+
var _b = _a.country, country = _b === void 0 ? '' : _b, className = _a.className;
|
|
12
|
+
return React.createElement("span", { className: cn(styles.flagIcon, styles[country], className) });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { FlagIcon };
|