@alfalab/core-components-intl-phone-input 6.7.2 → 7.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-28179d73.d.ts → component-e9145a42.d.ts} +0 -0
- package/{component-28179d73.js → component-e9145a42.js} +1 -1
- package/component.js +3 -3
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +261 -261
- package/components/index.js +1 -1
- package/components/select/component.js +2 -2
- package/components/select/index.css +6 -6
- package/components/select/index.js +1 -1
- package/components/select-field/component.js +1 -1
- package/components/select-field/index.css +8 -8
- package/components/select-field/index.d.ts +1 -1
- package/components/select-field/index.js +1 -1
- package/esm/{component-3bf26f4f.d.ts → component-39272306.d.ts} +0 -0
- package/esm/{component-3bf26f4f.js → component-39272306.js} +1 -1
- package/esm/component.js +3 -3
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +261 -261
- package/esm/components/index.js +1 -1
- package/esm/components/select/component.js +2 -2
- package/esm/components/select/index.css +6 -6
- package/esm/components/select/index.js +1 -1
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +8 -8
- package/esm/components/select-field/index.d.ts +1 -1
- package/esm/components/select-field/index.js +1 -1
- package/esm/index.css +3 -3
- package/esm/index.js +1 -1
- package/esm/{libphonenumber-js.min-9d089083.d.ts → libphonenumber-js.min-f8ddb650.d.ts} +0 -0
- package/esm/{libphonenumber-js.min-9d089083.js → libphonenumber-js.min-f8ddb650.js} +0 -0
- package/index.css +3 -3
- package/index.js +1 -1
- package/{libphonenumber-js.min-de7df66f.d.ts → libphonenumber-js.min-9e5e4c31.d.ts} +0 -0
- package/{libphonenumber-js.min-de7df66f.js → libphonenumber-js.min-9e5e4c31.js} +0 -0
- package/modern/component.js +2 -2
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +261 -261
- package/modern/components/select/component.js +1 -1
- package/modern/components/select/index.css +6 -6
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +8 -8
- package/modern/index.css +3 -3
- package/modern/{libphonenumber-js.min-9d089083.d.ts → libphonenumber-js.min-f8ddb650.d.ts} +0 -0
- package/modern/{libphonenumber-js.min-9d089083.js → libphonenumber-js.min-f8ddb650.js} +0 -0
- package/package.json +4 -4
package/esm/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, S as SelectField } from '../../component-
|
|
1
|
+
import { a as __assign, S as SelectField } from '../../component-39272306.js';
|
|
2
2
|
import React, { useMemo, useCallback } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'react-merge-refs';
|
|
@@ -6,7 +6,7 @@ import '@alfalab/hooks';
|
|
|
6
6
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
7
|
import { VirtualOptionsList, Select } from '@alfalab/core-components-select/esm';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"intl-phone-
|
|
9
|
+
var styles = {"component":"intl-phone-input__component_14obo","option":"intl-phone-input__option_14obo","flag":"intl-phone-input__flag_14obo","countryName":"intl-phone-input__countryName_14obo","dialCode":"intl-phone-input__dialCode_14obo"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var CountriesSelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: h4vpn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
:root {
|
|
18
18
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
19
19
|
}
|
|
20
|
-
.intl-phone-
|
|
20
|
+
.intl-phone-input__component_14obo {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
.intl-phone-
|
|
26
|
+
.intl-phone-input__option_14obo {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
}
|
|
30
|
-
.intl-phone-
|
|
30
|
+
.intl-phone-input__flag_14obo {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-top: var(--gap-2xs);
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
34
|
}
|
|
35
|
-
.intl-phone-
|
|
35
|
+
.intl-phone-input__countryName_14obo {
|
|
36
36
|
margin-right: var(--gap-xs);
|
|
37
37
|
}
|
|
38
|
-
.intl-phone-
|
|
38
|
+
.intl-phone-input__dialCode_14obo {
|
|
39
39
|
color: var(--text-secondary-color);
|
|
40
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1eqd4 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
}
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
21
|
}
|
|
22
|
-
.intl-phone-
|
|
22
|
+
.intl-phone-input__component_1ixw6 {
|
|
23
23
|
height: 100%;
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
outline: none;
|
|
26
26
|
position: relative;
|
|
27
27
|
}
|
|
28
|
-
.intl-phone-
|
|
28
|
+
.intl-phone-input__flagIconContainer_1ixw6 {
|
|
29
29
|
display: flex;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
align-items: center;
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
height: 24px;
|
|
34
34
|
margin-right: var(--gap-2xs);
|
|
35
35
|
}
|
|
36
|
-
.intl-phone-
|
|
36
|
+
.intl-phone-input__disabled_1ixw6 {
|
|
37
37
|
cursor: var(--disabled-cursor);
|
|
38
38
|
}
|
|
39
|
-
.intl-phone-
|
|
39
|
+
.intl-phone-input__inner_1ixw6 {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
padding-left: var(--gap-s);
|
|
45
45
|
outline: none;
|
|
46
46
|
}
|
|
47
|
-
.intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
.intl-phone-input__l_1ixw6 .intl-phone-input__inner_1ixw6,
|
|
48
|
+
.intl-phone-input__xl_1ixw6 .intl-phone-input__inner_1ixw6 {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
50
|
}
|
|
51
|
-
.intl-phone-
|
|
51
|
+
.intl-phone-input__focusVisible_1ixw6 {
|
|
52
52
|
outline: 2px solid var(--focus-color);
|
|
53
53
|
outline-offset: 2px;
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-39272306";
|
package/esm/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.intl-phone-
|
|
1
|
+
/* hash: 52php */
|
|
2
|
+
.intl-phone-input__addons_1t642 {
|
|
3
3
|
padding-left: 0;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.intl-phone-
|
|
6
|
+
.intl-phone-input__l_1t642 .intl-phone-input__addons_1t642, .intl-phone-input__xl_1t642 .intl-phone-input__addons_1t642 {
|
|
7
7
|
padding-left: 0;
|
|
8
8
|
}
|
package/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.intl-phone-
|
|
1
|
+
/* hash: 52php */
|
|
2
|
+
.intl-phone-input__addons_1t642 {
|
|
3
3
|
padding-left: 0;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.intl-phone-
|
|
6
|
+
.intl-phone-input__l_1t642 .intl-phone-input__addons_1t642, .intl-phone-input__xl_1t642 .intl-phone-input__addons_1t642 {
|
|
7
7
|
padding-left: 0;
|
|
8
8
|
}
|
package/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/modern/component.js
CHANGED
|
@@ -12,7 +12,7 @@ import { formatPhoneWithUnclearableCountryCode } from './utils/format-phone-with
|
|
|
12
12
|
import { calculateCaretPos } from './utils/calculateCaretPos.js';
|
|
13
13
|
import { useCaretAvoidCountryCode } from './useCaretAvoidCountryCode.js';
|
|
14
14
|
|
|
15
|
-
var styles = {"addons":"intl-phone-
|
|
15
|
+
var styles = {"addons":"intl-phone-input__addons_1t642","l":"intl-phone-input__l_1t642","xl":"intl-phone-input__xl_1t642"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
const countriesHash = getCountriesHash();
|
|
@@ -190,7 +190,7 @@ const IntlPhoneInput = forwardRef(({ disabled = false, readOnly = false, size =
|
|
|
190
190
|
if (phoneLibUtils.current)
|
|
191
191
|
return;
|
|
192
192
|
import(
|
|
193
|
-
/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-
|
|
193
|
+
/* webpackChunkName: "libphonenumber" */ './libphonenumber-js.min-f8ddb650.js')
|
|
194
194
|
.then(utils => {
|
|
195
195
|
phoneLibUtils.current = utils.AsYouType;
|
|
196
196
|
setCountryByDialCode(value);
|
|
@@ -1,7 +1,7 @@
|
|
|
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_fgxvv","ac":"intl-phone-input__ac_fgxvv","ad":"intl-phone-input__ad_fgxvv","ae":"intl-phone-input__ae_fgxvv","af":"intl-phone-input__af_fgxvv","ag":"intl-phone-input__ag_fgxvv","ai":"intl-phone-input__ai_fgxvv","al":"intl-phone-input__al_fgxvv","am":"intl-phone-input__am_fgxvv","ao":"intl-phone-input__ao_fgxvv","aq":"intl-phone-input__aq_fgxvv","ar":"intl-phone-input__ar_fgxvv","as":"intl-phone-input__as_fgxvv","at":"intl-phone-input__at_fgxvv","au":"intl-phone-input__au_fgxvv","aw":"intl-phone-input__aw_fgxvv","ax":"intl-phone-input__ax_fgxvv","az":"intl-phone-input__az_fgxvv","ba":"intl-phone-input__ba_fgxvv","bb":"intl-phone-input__bb_fgxvv","bd":"intl-phone-input__bd_fgxvv","be":"intl-phone-input__be_fgxvv","bf":"intl-phone-input__bf_fgxvv","bg":"intl-phone-input__bg_fgxvv","bh":"intl-phone-input__bh_fgxvv","bi":"intl-phone-input__bi_fgxvv","bj":"intl-phone-input__bj_fgxvv","bl":"intl-phone-input__bl_fgxvv","bm":"intl-phone-input__bm_fgxvv","bn":"intl-phone-input__bn_fgxvv","bo":"intl-phone-input__bo_fgxvv","bq":"intl-phone-input__bq_fgxvv","br":"intl-phone-input__br_fgxvv","bs":"intl-phone-input__bs_fgxvv","bt":"intl-phone-input__bt_fgxvv","bv":"intl-phone-input__bv_fgxvv","bw":"intl-phone-input__bw_fgxvv","by":"intl-phone-input__by_fgxvv","bz":"intl-phone-input__bz_fgxvv","ca":"intl-phone-input__ca_fgxvv","cc":"intl-phone-input__cc_fgxvv","cd":"intl-phone-input__cd_fgxvv","cf":"intl-phone-input__cf_fgxvv","cg":"intl-phone-input__cg_fgxvv","ch":"intl-phone-input__ch_fgxvv","ci":"intl-phone-input__ci_fgxvv","ck":"intl-phone-input__ck_fgxvv","cl":"intl-phone-input__cl_fgxvv","cm":"intl-phone-input__cm_fgxvv","cn":"intl-phone-input__cn_fgxvv","co":"intl-phone-input__co_fgxvv","cp":"intl-phone-input__cp_fgxvv","cr":"intl-phone-input__cr_fgxvv","cu":"intl-phone-input__cu_fgxvv","cv":"intl-phone-input__cv_fgxvv","cw":"intl-phone-input__cw_fgxvv","cx":"intl-phone-input__cx_fgxvv","cy":"intl-phone-input__cy_fgxvv","cz":"intl-phone-input__cz_fgxvv","de":"intl-phone-input__de_fgxvv","dg":"intl-phone-input__dg_fgxvv","dj":"intl-phone-input__dj_fgxvv","dk":"intl-phone-input__dk_fgxvv","dm":"intl-phone-input__dm_fgxvv","do":"intl-phone-input__do_fgxvv","dz":"intl-phone-input__dz_fgxvv","ea":"intl-phone-input__ea_fgxvv","ec":"intl-phone-input__ec_fgxvv","ee":"intl-phone-input__ee_fgxvv","eg":"intl-phone-input__eg_fgxvv","eh":"intl-phone-input__eh_fgxvv","er":"intl-phone-input__er_fgxvv","es":"intl-phone-input__es_fgxvv","et":"intl-phone-input__et_fgxvv","eu":"intl-phone-input__eu_fgxvv","fi":"intl-phone-input__fi_fgxvv","fj":"intl-phone-input__fj_fgxvv","fk":"intl-phone-input__fk_fgxvv","fm":"intl-phone-input__fm_fgxvv","fo":"intl-phone-input__fo_fgxvv","fr":"intl-phone-input__fr_fgxvv","ga":"intl-phone-input__ga_fgxvv","gb":"intl-phone-input__gb_fgxvv","gd":"intl-phone-input__gd_fgxvv","ge":"intl-phone-input__ge_fgxvv","gf":"intl-phone-input__gf_fgxvv","gg":"intl-phone-input__gg_fgxvv","gh":"intl-phone-input__gh_fgxvv","gi":"intl-phone-input__gi_fgxvv","gl":"intl-phone-input__gl_fgxvv","gm":"intl-phone-input__gm_fgxvv","gn":"intl-phone-input__gn_fgxvv","gp":"intl-phone-input__gp_fgxvv","gq":"intl-phone-input__gq_fgxvv","gr":"intl-phone-input__gr_fgxvv","gs":"intl-phone-input__gs_fgxvv","gt":"intl-phone-input__gt_fgxvv","gu":"intl-phone-input__gu_fgxvv","gw":"intl-phone-input__gw_fgxvv","gy":"intl-phone-input__gy_fgxvv","hk":"intl-phone-input__hk_fgxvv","hm":"intl-phone-input__hm_fgxvv","hn":"intl-phone-input__hn_fgxvv","hr":"intl-phone-input__hr_fgxvv","ht":"intl-phone-input__ht_fgxvv","hu":"intl-phone-input__hu_fgxvv","ic":"intl-phone-input__ic_fgxvv","id":"intl-phone-input__id_fgxvv","ie":"intl-phone-input__ie_fgxvv","il":"intl-phone-input__il_fgxvv","im":"intl-phone-input__im_fgxvv","in":"intl-phone-input__in_fgxvv","io":"intl-phone-input__io_fgxvv","iq":"intl-phone-input__iq_fgxvv","ir":"intl-phone-input__ir_fgxvv","is":"intl-phone-input__is_fgxvv","it":"intl-phone-input__it_fgxvv","je":"intl-phone-input__je_fgxvv","jm":"intl-phone-input__jm_fgxvv","jo":"intl-phone-input__jo_fgxvv","jp":"intl-phone-input__jp_fgxvv","ke":"intl-phone-input__ke_fgxvv","kg":"intl-phone-input__kg_fgxvv","kh":"intl-phone-input__kh_fgxvv","ki":"intl-phone-input__ki_fgxvv","km":"intl-phone-input__km_fgxvv","kn":"intl-phone-input__kn_fgxvv","kp":"intl-phone-input__kp_fgxvv","kr":"intl-phone-input__kr_fgxvv","kw":"intl-phone-input__kw_fgxvv","ky":"intl-phone-input__ky_fgxvv","kz":"intl-phone-input__kz_fgxvv","la":"intl-phone-input__la_fgxvv","lb":"intl-phone-input__lb_fgxvv","lc":"intl-phone-input__lc_fgxvv","li":"intl-phone-input__li_fgxvv","lk":"intl-phone-input__lk_fgxvv","lr":"intl-phone-input__lr_fgxvv","ls":"intl-phone-input__ls_fgxvv","lt":"intl-phone-input__lt_fgxvv","lu":"intl-phone-input__lu_fgxvv","lv":"intl-phone-input__lv_fgxvv","ly":"intl-phone-input__ly_fgxvv","ma":"intl-phone-input__ma_fgxvv","mc":"intl-phone-input__mc_fgxvv","md":"intl-phone-input__md_fgxvv","me":"intl-phone-input__me_fgxvv","mf":"intl-phone-input__mf_fgxvv","mg":"intl-phone-input__mg_fgxvv","mh":"intl-phone-input__mh_fgxvv","mk":"intl-phone-input__mk_fgxvv","ml":"intl-phone-input__ml_fgxvv","mm":"intl-phone-input__mm_fgxvv","mn":"intl-phone-input__mn_fgxvv","mo":"intl-phone-input__mo_fgxvv","mp":"intl-phone-input__mp_fgxvv","mq":"intl-phone-input__mq_fgxvv","mr":"intl-phone-input__mr_fgxvv","ms":"intl-phone-input__ms_fgxvv","mt":"intl-phone-input__mt_fgxvv","mu":"intl-phone-input__mu_fgxvv","mv":"intl-phone-input__mv_fgxvv","mw":"intl-phone-input__mw_fgxvv","mx":"intl-phone-input__mx_fgxvv","my":"intl-phone-input__my_fgxvv","mz":"intl-phone-input__mz_fgxvv","na":"intl-phone-input__na_fgxvv","nc":"intl-phone-input__nc_fgxvv","ne":"intl-phone-input__ne_fgxvv","nf":"intl-phone-input__nf_fgxvv","ng":"intl-phone-input__ng_fgxvv","ni":"intl-phone-input__ni_fgxvv","nl":"intl-phone-input__nl_fgxvv","no":"intl-phone-input__no_fgxvv","np":"intl-phone-input__np_fgxvv","nr":"intl-phone-input__nr_fgxvv","nu":"intl-phone-input__nu_fgxvv","nz":"intl-phone-input__nz_fgxvv","om":"intl-phone-input__om_fgxvv","pa":"intl-phone-input__pa_fgxvv","pe":"intl-phone-input__pe_fgxvv","pf":"intl-phone-input__pf_fgxvv","pg":"intl-phone-input__pg_fgxvv","ph":"intl-phone-input__ph_fgxvv","pk":"intl-phone-input__pk_fgxvv","pl":"intl-phone-input__pl_fgxvv","pm":"intl-phone-input__pm_fgxvv","pn":"intl-phone-input__pn_fgxvv","pr":"intl-phone-input__pr_fgxvv","ps":"intl-phone-input__ps_fgxvv","pt":"intl-phone-input__pt_fgxvv","pw":"intl-phone-input__pw_fgxvv","py":"intl-phone-input__py_fgxvv","qa":"intl-phone-input__qa_fgxvv","re":"intl-phone-input__re_fgxvv","ro":"intl-phone-input__ro_fgxvv","rs":"intl-phone-input__rs_fgxvv","ru":"intl-phone-input__ru_fgxvv","rw":"intl-phone-input__rw_fgxvv","sa":"intl-phone-input__sa_fgxvv","sb":"intl-phone-input__sb_fgxvv","sc":"intl-phone-input__sc_fgxvv","sd":"intl-phone-input__sd_fgxvv","se":"intl-phone-input__se_fgxvv","sg":"intl-phone-input__sg_fgxvv","sh":"intl-phone-input__sh_fgxvv","si":"intl-phone-input__si_fgxvv","sj":"intl-phone-input__sj_fgxvv","sk":"intl-phone-input__sk_fgxvv","sl":"intl-phone-input__sl_fgxvv","sm":"intl-phone-input__sm_fgxvv","sn":"intl-phone-input__sn_fgxvv","so":"intl-phone-input__so_fgxvv","sr":"intl-phone-input__sr_fgxvv","ss":"intl-phone-input__ss_fgxvv","st":"intl-phone-input__st_fgxvv","sv":"intl-phone-input__sv_fgxvv","sx":"intl-phone-input__sx_fgxvv","sy":"intl-phone-input__sy_fgxvv","sz":"intl-phone-input__sz_fgxvv","ta":"intl-phone-input__ta_fgxvv","tc":"intl-phone-input__tc_fgxvv","td":"intl-phone-input__td_fgxvv","tf":"intl-phone-input__tf_fgxvv","tg":"intl-phone-input__tg_fgxvv","th":"intl-phone-input__th_fgxvv","tj":"intl-phone-input__tj_fgxvv","tk":"intl-phone-input__tk_fgxvv","tl":"intl-phone-input__tl_fgxvv","tm":"intl-phone-input__tm_fgxvv","tn":"intl-phone-input__tn_fgxvv","to":"intl-phone-input__to_fgxvv","tr":"intl-phone-input__tr_fgxvv","tt":"intl-phone-input__tt_fgxvv","tv":"intl-phone-input__tv_fgxvv","tw":"intl-phone-input__tw_fgxvv","tz":"intl-phone-input__tz_fgxvv","ua":"intl-phone-input__ua_fgxvv","ug":"intl-phone-input__ug_fgxvv","um":"intl-phone-input__um_fgxvv","un":"intl-phone-input__un_fgxvv","us":"intl-phone-input__us_fgxvv","uy":"intl-phone-input__uy_fgxvv","uz":"intl-phone-input__uz_fgxvv","va":"intl-phone-input__va_fgxvv","vc":"intl-phone-input__vc_fgxvv","ve":"intl-phone-input__ve_fgxvv","vg":"intl-phone-input__vg_fgxvv","vi":"intl-phone-input__vi_fgxvv","vn":"intl-phone-input__vn_fgxvv","vu":"intl-phone-input__vu_fgxvv","wf":"intl-phone-input__wf_fgxvv","ws":"intl-phone-input__ws_fgxvv","xk":"intl-phone-input__xk_fgxvv","ye":"intl-phone-input__ye_fgxvv","yt":"intl-phone-input__yt_fgxvv","za":"intl-phone-input__za_fgxvv","zm":"intl-phone-input__zm_fgxvv","zw":"intl-phone-input__zw_fgxvv"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
/**
|