@alfalab/core-components-intl-phone-input 9.6.2 → 9.6.4
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.js +1 -5
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +3 -3
- package/components/flag-icon/index.js +0 -3
- package/components/index.js +0 -9
- package/components/select/component.js +1 -6
- package/components/select/index.css +6 -6
- package/components/select/index.js +0 -11
- package/components/select-field/component.js +1 -2
- package/components/select-field/index.css +9 -9
- package/components/select-field/index.js +0 -8
- package/cssm/component.js +0 -6
- package/cssm/components/flag-icon/index.js +0 -4
- package/cssm/components/index.js +0 -12
- package/cssm/components/select/component.js +0 -7
- package/cssm/components/select/index.js +0 -14
- package/cssm/components/select-field/component.js +0 -2
- package/cssm/components/select-field/index.js +0 -10
- package/cssm/index.js +0 -22
- package/esm/component.js +1 -5
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +3 -3
- package/esm/components/flag-icon/index.js +0 -3
- package/esm/components/index.js +0 -9
- package/esm/components/select/component.js +1 -6
- package/esm/components/select/index.css +6 -6
- package/esm/components/select/index.js +0 -11
- package/esm/components/select-field/component.js +1 -2
- package/esm/components/select-field/index.css +9 -9
- package/esm/components/select-field/index.js +0 -8
- package/esm/index.css +5 -5
- package/esm/index.js +0 -18
- package/index.css +5 -5
- package/index.js +0 -18
- package/modern/component.js +1 -5
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +3 -3
- package/modern/components/flag-icon/index.js +0 -3
- package/modern/components/index.js +0 -8
- package/modern/components/select/component.js +1 -6
- package/modern/components/select/index.css +6 -6
- package/modern/components/select/index.js +0 -10
- package/modern/components/select-field/component.js +1 -2
- package/modern/components/select-field/index.css +9 -9
- package/modern/components/select-field/index.js +0 -7
- package/modern/index.css +5 -5
- package/modern/index.js +0 -17
- package/package.json +3 -3
package/component.js
CHANGED
|
@@ -16,10 +16,6 @@ require('@alfalab/hooks');
|
|
|
16
16
|
var components_flagIcon_component = require('./components/flag-icon/component.js');
|
|
17
17
|
var components_select_component = require('./components/select/component.js');
|
|
18
18
|
var useCaretAvoidCountryCode = require('./useCaretAvoidCountryCode.js');
|
|
19
|
-
require('./components/flag-icon/flagSprite.js');
|
|
20
|
-
require('@alfalab/core-components-select/desktop');
|
|
21
|
-
require('@alfalab/core-components-select/shared');
|
|
22
|
-
require('./components/select-field/component.js');
|
|
23
19
|
|
|
24
20
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
25
21
|
|
|
@@ -45,7 +41,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
45
41
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
46
42
|
var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
|
|
47
43
|
|
|
48
|
-
var styles = {"addons":"intl-phone-
|
|
44
|
+
var styles = {"addons":"intl-phone-input__addons_1x5mi","l":"intl-phone-input__l_1x5mi","xl":"intl-phone-input__xl_1x5mi","flagIconWrapper":"intl-phone-input__flagIconWrapper_1x5mi","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1x5mi"};
|
|
49
45
|
require('./index.css')
|
|
50
46
|
|
|
51
47
|
var countriesHash = utils.getCountriesHash();
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"flagIcon":"intl-phone-
|
|
14
|
+
var styles = {"flagIcon":"intl-phone-input__flagIcon_1cn1c","flagPlaceholder":"intl-phone-input__flagPlaceholder_1cn1c"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qayq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(30, 43, 68, 0.08); /* 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 */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-3xs: 2px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__flagIcon_1cn1c {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagPlaceholder_1cn1c {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
package/components/index.js
CHANGED
|
@@ -5,15 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var components_selectField_component = require('./select-field/component.js');
|
|
6
6
|
var components_flagIcon_component = require('./flag-icon/component.js');
|
|
7
7
|
var components_select_component = require('./select/component.js');
|
|
8
|
-
require('tslib');
|
|
9
|
-
require('react');
|
|
10
|
-
require('react-merge-refs');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('@alfalab/hooks');
|
|
13
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
14
|
-
require('./flag-icon/flagSprite.js');
|
|
15
|
-
require('@alfalab/core-components-select/desktop');
|
|
16
|
-
require('@alfalab/core-components-select/shared');
|
|
17
8
|
|
|
18
9
|
|
|
19
10
|
|
|
@@ -8,17 +8,12 @@ var desktop = require('@alfalab/core-components-select/desktop');
|
|
|
8
8
|
var shared = require('@alfalab/core-components-select/shared');
|
|
9
9
|
var components_flagIcon_component = require('../flag-icon/component.js');
|
|
10
10
|
var components_selectField_component = require('../select-field/component.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('../flag-icon/flagSprite.js');
|
|
13
|
-
require('react-merge-refs');
|
|
14
|
-
require('@alfalab/hooks');
|
|
15
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
16
11
|
|
|
17
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
18
13
|
|
|
19
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
20
15
|
|
|
21
|
-
var styles = {"component":"intl-phone-
|
|
16
|
+
var styles = {"component":"intl-phone-input__component_1h6b8","option":"intl-phone-input__option_1h6b8","flag":"intl-phone-input__flag_1h6b8","countryName":"intl-phone-input__countryName_1h6b8","dialCode":"intl-phone-input__dialCode_1h6b8"};
|
|
22
17
|
require('./index.css')
|
|
23
18
|
|
|
24
19
|
var CountriesSelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11jez */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
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 */
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__component_1h6b8 {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
|
-
} .intl-phone-
|
|
25
|
+
} .intl-phone-input__option_1h6b8 {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: flex-start;
|
|
28
|
-
} .intl-phone-
|
|
28
|
+
} .intl-phone-input__flag_1h6b8 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
margin-right: var(--gap-xs);
|
|
31
|
-
} .intl-phone-
|
|
31
|
+
} .intl-phone-input__countryName_1h6b8 {
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .intl-phone-
|
|
33
|
+
} .intl-phone-input__dialCode_1h6b8 {
|
|
34
34
|
color: var(--text-secondary-color);
|
|
35
35
|
}
|
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_select_component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('@alfalab/core-components-select/desktop');
|
|
9
|
-
require('@alfalab/core-components-select/shared');
|
|
10
|
-
require('../flag-icon/component.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('../flag-icon/flagSprite.js');
|
|
13
|
-
require('../select-field/component.js');
|
|
14
|
-
require('react-merge-refs');
|
|
15
|
-
require('@alfalab/hooks');
|
|
16
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
17
6
|
|
|
18
7
|
|
|
19
8
|
|
|
@@ -9,7 +9,6 @@ var cn = require('classnames');
|
|
|
9
9
|
var hooks = require('@alfalab/hooks');
|
|
10
10
|
var WorldMagnifierMIcon = require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
11
11
|
var components_flagIcon_component = require('../flag-icon/component.js');
|
|
12
|
-
require('../flag-icon/flagSprite.js');
|
|
13
12
|
|
|
14
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
14
|
|
|
@@ -18,7 +17,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
18
17
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
18
|
var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
|
|
20
19
|
|
|
21
|
-
var styles = {"component":"intl-phone-
|
|
20
|
+
var styles = {"component":"intl-phone-input__component_ysouw","flagIconContainer":"intl-phone-input__flagIconContainer_ysouw","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_ysouw","disabled":"intl-phone-input__disabled_ysouw","inner":"intl-phone-input__inner_ysouw","l":"intl-phone-input__l_ysouw","xl":"intl-phone-input__xl_ysouw","focusVisible":"intl-phone-input__focusVisible_ysouw"};
|
|
22
21
|
require('./index.css')
|
|
23
22
|
|
|
24
23
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dazg4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .intl-phone-
|
|
24
|
+
} .intl-phone-input__component_ysouw {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .intl-phone-
|
|
29
|
+
} .intl-phone-input__flagIconContainer_ysouw {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
|
-
} .intl-phone-
|
|
36
|
+
} .intl-phone-input__emptyCountryIcon_ysouw {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .intl-phone-
|
|
38
|
+
} .intl-phone-input__disabled_ysouw {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .intl-phone-
|
|
40
|
+
} .intl-phone-input__inner_ysouw {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
height: 100%;
|
|
45
45
|
padding-left: var(--gap-s);
|
|
46
46
|
outline: none;
|
|
47
|
-
} .intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
} .intl-phone-input__l_ysouw .intl-phone-input__inner_ysouw,
|
|
48
|
+
.intl-phone-input__xl_ysouw .intl-phone-input__inner_ysouw {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .intl-phone-
|
|
50
|
+
} .intl-phone-input__focusVisible_ysouw {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -3,14 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_selectField_component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('react-merge-refs');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/hooks');
|
|
11
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
12
|
-
require('../flag-icon/component.js');
|
|
13
|
-
require('../flag-icon/flagSprite.js');
|
|
14
6
|
|
|
15
7
|
|
|
16
8
|
|
package/cssm/component.js
CHANGED
|
@@ -18,12 +18,6 @@ require('./components/select-field/index.module.css');
|
|
|
18
18
|
var components_select_component = require('./components/select/component.js');
|
|
19
19
|
var useCaretAvoidCountryCode = require('./useCaretAvoidCountryCode.js');
|
|
20
20
|
var styles = require('./index.module.css');
|
|
21
|
-
require('./components/flag-icon/flagSprite.js');
|
|
22
|
-
require('./components/flag-icon/index.module.css');
|
|
23
|
-
require('@alfalab/core-components-select/cssm/desktop');
|
|
24
|
-
require('@alfalab/core-components-select/cssm/shared');
|
|
25
|
-
require('./components/select-field/component.js');
|
|
26
|
-
require('./components/select/index.module.css');
|
|
27
21
|
|
|
28
22
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
29
23
|
|
package/cssm/components/index.js
CHANGED
|
@@ -5,18 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var components_selectField_component = require('./select-field/component.js');
|
|
6
6
|
var components_flagIcon_component = require('./flag-icon/component.js');
|
|
7
7
|
var components_select_component = require('./select/component.js');
|
|
8
|
-
require('tslib');
|
|
9
|
-
require('react');
|
|
10
|
-
require('react-merge-refs');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('@alfalab/hooks');
|
|
13
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
14
|
-
require('./select-field/index.module.css');
|
|
15
|
-
require('./flag-icon/flagSprite.js');
|
|
16
|
-
require('./flag-icon/index.module.css');
|
|
17
|
-
require('@alfalab/core-components-select/cssm/desktop');
|
|
18
|
-
require('@alfalab/core-components-select/cssm/shared');
|
|
19
|
-
require('./select/index.module.css');
|
|
20
8
|
|
|
21
9
|
|
|
22
10
|
|
|
@@ -9,13 +9,6 @@ var shared = require('@alfalab/core-components-select/cssm/shared');
|
|
|
9
9
|
var components_flagIcon_component = require('../flag-icon/component.js');
|
|
10
10
|
var components_selectField_component = require('../select-field/component.js');
|
|
11
11
|
var styles = require('./index.module.css');
|
|
12
|
-
require('classnames');
|
|
13
|
-
require('../flag-icon/flagSprite.js');
|
|
14
|
-
require('../flag-icon/index.module.css');
|
|
15
|
-
require('react-merge-refs');
|
|
16
|
-
require('@alfalab/hooks');
|
|
17
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
18
|
-
require('../select-field/index.module.css');
|
|
19
12
|
|
|
20
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
21
14
|
|
|
@@ -3,20 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_select_component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('@alfalab/core-components-select/cssm/desktop');
|
|
9
|
-
require('@alfalab/core-components-select/cssm/shared');
|
|
10
|
-
require('../flag-icon/component.js');
|
|
11
|
-
require('classnames');
|
|
12
|
-
require('../flag-icon/flagSprite.js');
|
|
13
|
-
require('../flag-icon/index.module.css');
|
|
14
|
-
require('../select-field/component.js');
|
|
15
|
-
require('react-merge-refs');
|
|
16
|
-
require('@alfalab/hooks');
|
|
17
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
18
|
-
require('../select-field/index.module.css');
|
|
19
|
-
require('./index.module.css');
|
|
20
6
|
|
|
21
7
|
|
|
22
8
|
|
|
@@ -10,8 +10,6 @@ var hooks = require('@alfalab/hooks');
|
|
|
10
10
|
var WorldMagnifierMIcon = require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
11
11
|
var components_flagIcon_component = require('../flag-icon/component.js');
|
|
12
12
|
var styles = require('./index.module.css');
|
|
13
|
-
require('../flag-icon/flagSprite.js');
|
|
14
|
-
require('../flag-icon/index.module.css');
|
|
15
13
|
|
|
16
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
15
|
|
|
@@ -3,16 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_selectField_component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('react-merge-refs');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/hooks');
|
|
11
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
12
|
-
require('../flag-icon/component.js');
|
|
13
|
-
require('../flag-icon/flagSprite.js');
|
|
14
|
-
require('../flag-icon/index.module.css');
|
|
15
|
-
require('./index.module.css');
|
|
16
6
|
|
|
17
7
|
|
|
18
8
|
|
package/cssm/index.js
CHANGED
|
@@ -3,28 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-input-autocomplete/cssm/desktop');
|
|
10
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
11
|
-
require('@alfalab/utils');
|
|
12
|
-
require('./utils/calculateCaretPos.js');
|
|
13
|
-
require('./utils/format-phone-with-unclearable-country-code.js');
|
|
14
|
-
require('./utils/preparePasteData.js');
|
|
15
|
-
require('react-merge-refs');
|
|
16
|
-
require('@alfalab/hooks');
|
|
17
|
-
require('./components/flag-icon/component.js');
|
|
18
|
-
require('./components/flag-icon/flagSprite.js');
|
|
19
|
-
require('./components/flag-icon/index.module.css');
|
|
20
|
-
require('./components/select-field/index.module.css');
|
|
21
|
-
require('./components/select/component.js');
|
|
22
|
-
require('@alfalab/core-components-select/cssm/desktop');
|
|
23
|
-
require('@alfalab/core-components-select/cssm/shared');
|
|
24
|
-
require('./components/select-field/component.js');
|
|
25
|
-
require('./components/select/index.module.css');
|
|
26
|
-
require('./useCaretAvoidCountryCode.js');
|
|
27
|
-
require('./index.module.css');
|
|
28
6
|
|
|
29
7
|
|
|
30
8
|
|
package/esm/component.js
CHANGED
|
@@ -12,12 +12,8 @@ import '@alfalab/hooks';
|
|
|
12
12
|
import { FlagIcon } from './components/flag-icon/component.js';
|
|
13
13
|
import { CountriesSelect } from './components/select/component.js';
|
|
14
14
|
import { useCaretAvoidCountryCode } from './useCaretAvoidCountryCode.js';
|
|
15
|
-
import './components/flag-icon/flagSprite.js';
|
|
16
|
-
import '@alfalab/core-components-select/esm/desktop';
|
|
17
|
-
import '@alfalab/core-components-select/esm/shared';
|
|
18
|
-
import './components/select-field/component.js';
|
|
19
15
|
|
|
20
|
-
var styles = {"addons":"intl-phone-
|
|
16
|
+
var styles = {"addons":"intl-phone-input__addons_1x5mi","l":"intl-phone-input__l_1x5mi","xl":"intl-phone-input__xl_1x5mi","flagIconWrapper":"intl-phone-input__flagIconWrapper_1x5mi","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1x5mi"};
|
|
21
17
|
require('./index.css')
|
|
22
18
|
|
|
23
19
|
var countriesHash = getCountriesHash();
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { flagSprite } from './flagSprite.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"flagIcon":"intl-phone-
|
|
5
|
+
var styles = {"flagIcon":"intl-phone-input__flagIcon_1cn1c","flagPlaceholder":"intl-phone-input__flagPlaceholder_1cn1c"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qayq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(30, 43, 68, 0.08); /* 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 */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-3xs: 2px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__flagIcon_1cn1c {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagPlaceholder_1cn1c {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
package/esm/components/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './select-field/component.js';
|
|
2
2
|
export { FlagIcon } from './flag-icon/component.js';
|
|
3
3
|
export { CountriesSelect } from './select/component.js';
|
|
4
|
-
import 'tslib';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'react-merge-refs';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/hooks';
|
|
9
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
10
|
-
import './flag-icon/flagSprite.js';
|
|
11
|
-
import '@alfalab/core-components-select/esm/desktop';
|
|
12
|
-
import '@alfalab/core-components-select/esm/shared';
|
|
@@ -4,13 +4,8 @@ import { SelectDesktop } from '@alfalab/core-components-select/esm/desktop';
|
|
|
4
4
|
import { VirtualOptionsList } from '@alfalab/core-components-select/esm/shared';
|
|
5
5
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
6
6
|
import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '../flag-icon/flagSprite.js';
|
|
9
|
-
import 'react-merge-refs';
|
|
10
|
-
import '@alfalab/hooks';
|
|
11
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
12
7
|
|
|
13
|
-
var styles = {"component":"intl-phone-
|
|
8
|
+
var styles = {"component":"intl-phone-input__component_1h6b8","option":"intl-phone-input__option_1h6b8","flag":"intl-phone-input__flag_1h6b8","countryName":"intl-phone-input__countryName_1h6b8","dialCode":"intl-phone-input__dialCode_1h6b8"};
|
|
14
9
|
require('./index.css')
|
|
15
10
|
|
|
16
11
|
var CountriesSelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11jez */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
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 */
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__component_1h6b8 {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
|
-
} .intl-phone-
|
|
25
|
+
} .intl-phone-input__option_1h6b8 {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: flex-start;
|
|
28
|
-
} .intl-phone-
|
|
28
|
+
} .intl-phone-input__flag_1h6b8 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
margin-right: var(--gap-xs);
|
|
31
|
-
} .intl-phone-
|
|
31
|
+
} .intl-phone-input__countryName_1h6b8 {
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .intl-phone-
|
|
33
|
+
} .intl-phone-input__dialCode_1h6b8 {
|
|
34
34
|
color: var(--text-secondary-color);
|
|
35
35
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
1
|
export { CountriesSelect } from './component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@alfalab/core-components-select/esm/desktop';
|
|
5
|
-
import '@alfalab/core-components-select/esm/shared';
|
|
6
|
-
import '../flag-icon/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '../flag-icon/flagSprite.js';
|
|
9
|
-
import '../select-field/component.js';
|
|
10
|
-
import 'react-merge-refs';
|
|
11
|
-
import '@alfalab/hooks';
|
|
12
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
@@ -5,9 +5,8 @@ import cn from 'classnames';
|
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
import WorldMagnifierMIcon from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
8
|
-
import '../flag-icon/flagSprite.js';
|
|
9
8
|
|
|
10
|
-
var styles = {"component":"intl-phone-
|
|
9
|
+
var styles = {"component":"intl-phone-input__component_ysouw","flagIconContainer":"intl-phone-input__flagIconContainer_ysouw","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_ysouw","disabled":"intl-phone-input__disabled_ysouw","inner":"intl-phone-input__inner_ysouw","l":"intl-phone-input__l_ysouw","xl":"intl-phone-input__xl_ysouw","focusVisible":"intl-phone-input__focusVisible_ysouw"};
|
|
11
10
|
require('./index.css')
|
|
12
11
|
|
|
13
12
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dazg4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .intl-phone-
|
|
24
|
+
} .intl-phone-input__component_ysouw {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .intl-phone-
|
|
29
|
+
} .intl-phone-input__flagIconContainer_ysouw {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
|
-
} .intl-phone-
|
|
36
|
+
} .intl-phone-input__emptyCountryIcon_ysouw {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .intl-phone-
|
|
38
|
+
} .intl-phone-input__disabled_ysouw {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .intl-phone-
|
|
40
|
+
} .intl-phone-input__inner_ysouw {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
height: 100%;
|
|
45
45
|
padding-left: var(--gap-s);
|
|
46
46
|
outline: none;
|
|
47
|
-
} .intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
} .intl-phone-input__l_ysouw .intl-phone-input__inner_ysouw,
|
|
48
|
+
.intl-phone-input__xl_ysouw .intl-phone-input__inner_ysouw {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .intl-phone-
|
|
50
|
+
} .intl-phone-input__focusVisible_ysouw {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,9 +1 @@
|
|
|
1
1
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-merge-refs';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/hooks';
|
|
7
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
8
|
-
import '../flag-icon/component.js';
|
|
9
|
-
import '../flag-icon/flagSprite.js';
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tjex6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #898991; /* 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 */
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
--gap-s: 12px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .intl-phone-
|
|
19
|
+
} .intl-phone-input__addons_1x5mi {
|
|
20
20
|
padding-left: 0;
|
|
21
|
-
} .intl-phone-
|
|
21
|
+
} .intl-phone-input__l_1x5mi .intl-phone-input__addons_1x5mi, .intl-phone-input__xl_1x5mi .intl-phone-input__addons_1x5mi {
|
|
22
22
|
padding-left: 0;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagIconWrapper_1x5mi {
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
align-items: center;
|
|
27
27
|
width: 24px;
|
|
28
28
|
height: 24px;
|
|
29
29
|
margin-left: var(--gap-s);
|
|
30
|
-
} .intl-phone-
|
|
30
|
+
} .intl-phone-input__emptyCountryIcon_1x5mi {
|
|
31
31
|
color: var(--color-light-graphic-secondary);
|
|
32
32
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
1
|
export { IntlPhoneInput } from './component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-input-autocomplete/esm/desktop';
|
|
6
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
|
-
import '@alfalab/utils';
|
|
8
|
-
import './utils/calculateCaretPos.js';
|
|
9
|
-
import './utils/format-phone-with-unclearable-country-code.js';
|
|
10
|
-
import './utils/preparePasteData.js';
|
|
11
|
-
import 'react-merge-refs';
|
|
12
|
-
import '@alfalab/hooks';
|
|
13
|
-
import './components/flag-icon/component.js';
|
|
14
|
-
import './components/flag-icon/flagSprite.js';
|
|
15
|
-
import './components/select/component.js';
|
|
16
|
-
import '@alfalab/core-components-select/esm/desktop';
|
|
17
|
-
import '@alfalab/core-components-select/esm/shared';
|
|
18
|
-
import './components/select-field/component.js';
|
|
19
|
-
import './useCaretAvoidCountryCode.js';
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tjex6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #898991; /* 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 */
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
--gap-s: 12px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .intl-phone-
|
|
19
|
+
} .intl-phone-input__addons_1x5mi {
|
|
20
20
|
padding-left: 0;
|
|
21
|
-
} .intl-phone-
|
|
21
|
+
} .intl-phone-input__l_1x5mi .intl-phone-input__addons_1x5mi, .intl-phone-input__xl_1x5mi .intl-phone-input__addons_1x5mi {
|
|
22
22
|
padding-left: 0;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagIconWrapper_1x5mi {
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
align-items: center;
|
|
27
27
|
width: 24px;
|
|
28
28
|
height: 24px;
|
|
29
29
|
margin-left: var(--gap-s);
|
|
30
|
-
} .intl-phone-
|
|
30
|
+
} .intl-phone-input__emptyCountryIcon_1x5mi {
|
|
31
31
|
color: var(--color-light-graphic-secondary);
|
|
32
32
|
}
|
package/index.js
CHANGED
|
@@ -3,24 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var component = require('./component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-input-autocomplete/desktop');
|
|
10
|
-
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
11
|
-
require('@alfalab/utils');
|
|
12
|
-
require('./utils/calculateCaretPos.js');
|
|
13
|
-
require('./utils/format-phone-with-unclearable-country-code.js');
|
|
14
|
-
require('./utils/preparePasteData.js');
|
|
15
|
-
require('react-merge-refs');
|
|
16
|
-
require('@alfalab/hooks');
|
|
17
|
-
require('./components/flag-icon/component.js');
|
|
18
|
-
require('./components/flag-icon/flagSprite.js');
|
|
19
|
-
require('./components/select/component.js');
|
|
20
|
-
require('@alfalab/core-components-select/desktop');
|
|
21
|
-
require('@alfalab/core-components-select/shared');
|
|
22
|
-
require('./components/select-field/component.js');
|
|
23
|
-
require('./useCaretAvoidCountryCode.js');
|
|
24
6
|
|
|
25
7
|
|
|
26
8
|
|
package/modern/component.js
CHANGED
|
@@ -11,12 +11,8 @@ import '@alfalab/hooks';
|
|
|
11
11
|
import { FlagIcon } from './components/flag-icon/component.js';
|
|
12
12
|
import { CountriesSelect } from './components/select/component.js';
|
|
13
13
|
import { useCaretAvoidCountryCode } from './useCaretAvoidCountryCode.js';
|
|
14
|
-
import './components/flag-icon/flagSprite.js';
|
|
15
|
-
import '@alfalab/core-components-select/modern/desktop';
|
|
16
|
-
import '@alfalab/core-components-select/modern/shared';
|
|
17
|
-
import './components/select-field/component.js';
|
|
18
14
|
|
|
19
|
-
const styles = {"addons":"intl-phone-
|
|
15
|
+
const styles = {"addons":"intl-phone-input__addons_1x5mi","l":"intl-phone-input__l_1x5mi","xl":"intl-phone-input__xl_1x5mi","flagIconWrapper":"intl-phone-input__flagIconWrapper_1x5mi","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1x5mi"};
|
|
20
16
|
require('./index.css')
|
|
21
17
|
|
|
22
18
|
const countriesHash = getCountriesHash();
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { flagSprite } from './flagSprite.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"flagIcon":"intl-phone-
|
|
5
|
+
const styles = {"flagIcon":"intl-phone-input__flagIcon_1cn1c","flagPlaceholder":"intl-phone-input__flagPlaceholder_1cn1c"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qayq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(30, 43, 68, 0.08); /* 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 */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-3xs: 2px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__flagIcon_1cn1c {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagPlaceholder_1cn1c {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './select-field/component.js';
|
|
2
2
|
export { FlagIcon } from './flag-icon/component.js';
|
|
3
3
|
export { CountriesSelect } from './select/component.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'react-merge-refs';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '@alfalab/hooks';
|
|
8
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
9
|
-
import './flag-icon/flagSprite.js';
|
|
10
|
-
import '@alfalab/core-components-select/modern/desktop';
|
|
11
|
-
import '@alfalab/core-components-select/modern/shared';
|
|
@@ -3,13 +3,8 @@ import { SelectDesktop } from '@alfalab/core-components-select/modern/desktop';
|
|
|
3
3
|
import { VirtualOptionsList } from '@alfalab/core-components-select/modern/shared';
|
|
4
4
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
5
5
|
import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../flag-icon/flagSprite.js';
|
|
8
|
-
import 'react-merge-refs';
|
|
9
|
-
import '@alfalab/hooks';
|
|
10
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
11
6
|
|
|
12
|
-
const styles = {"component":"intl-phone-
|
|
7
|
+
const styles = {"component":"intl-phone-input__component_1h6b8","option":"intl-phone-input__option_1h6b8","flag":"intl-phone-input__flag_1h6b8","countryName":"intl-phone-input__countryName_1h6b8","dialCode":"intl-phone-input__dialCode_1h6b8"};
|
|
13
8
|
require('./index.css')
|
|
14
9
|
|
|
15
10
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11jez */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
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 */
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
20
|
-
} .intl-phone-
|
|
20
|
+
} .intl-phone-input__component_1h6b8 {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
|
-
} .intl-phone-
|
|
25
|
+
} .intl-phone-input__option_1h6b8 {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: flex-start;
|
|
28
|
-
} .intl-phone-
|
|
28
|
+
} .intl-phone-input__flag_1h6b8 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
margin-right: var(--gap-xs);
|
|
31
|
-
} .intl-phone-
|
|
31
|
+
} .intl-phone-input__countryName_1h6b8 {
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .intl-phone-
|
|
33
|
+
} .intl-phone-input__dialCode_1h6b8 {
|
|
34
34
|
color: var(--text-secondary-color);
|
|
35
35
|
}
|
|
@@ -1,11 +1 @@
|
|
|
1
1
|
export { CountriesSelect } from './component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '@alfalab/core-components-select/modern/desktop';
|
|
4
|
-
import '@alfalab/core-components-select/modern/shared';
|
|
5
|
-
import '../flag-icon/component.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../flag-icon/flagSprite.js';
|
|
8
|
-
import '../select-field/component.js';
|
|
9
|
-
import 'react-merge-refs';
|
|
10
|
-
import '@alfalab/hooks';
|
|
11
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
@@ -4,9 +4,8 @@ import cn from 'classnames';
|
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import WorldMagnifierMIcon from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
6
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
|
-
import '../flag-icon/flagSprite.js';
|
|
8
7
|
|
|
9
|
-
const styles = {"component":"intl-phone-
|
|
8
|
+
const styles = {"component":"intl-phone-input__component_ysouw","flagIconContainer":"intl-phone-input__flagIconContainer_ysouw","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_ysouw","disabled":"intl-phone-input__disabled_ysouw","inner":"intl-phone-input__inner_ysouw","l":"intl-phone-input__l_ysouw","xl":"intl-phone-input__xl_ysouw","focusVisible":"intl-phone-input__focusVisible_ysouw"};
|
|
10
9
|
require('./index.css')
|
|
11
10
|
|
|
12
11
|
const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dazg4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .intl-phone-
|
|
24
|
+
} .intl-phone-input__component_ysouw {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .intl-phone-
|
|
29
|
+
} .intl-phone-input__flagIconContainer_ysouw {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
|
-
} .intl-phone-
|
|
36
|
+
} .intl-phone-input__emptyCountryIcon_ysouw {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .intl-phone-
|
|
38
|
+
} .intl-phone-input__disabled_ysouw {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .intl-phone-
|
|
40
|
+
} .intl-phone-input__inner_ysouw {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
height: 100%;
|
|
45
45
|
padding-left: var(--gap-s);
|
|
46
46
|
outline: none;
|
|
47
|
-
} .intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
} .intl-phone-input__l_ysouw .intl-phone-input__inner_ysouw,
|
|
48
|
+
.intl-phone-input__xl_ysouw .intl-phone-input__inner_ysouw {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .intl-phone-
|
|
50
|
+
} .intl-phone-input__focusVisible_ysouw {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react-merge-refs';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/hooks';
|
|
6
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
|
-
import '../flag-icon/component.js';
|
|
8
|
-
import '../flag-icon/flagSprite.js';
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tjex6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #898991; /* 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 */
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
--gap-s: 12px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .intl-phone-
|
|
19
|
+
} .intl-phone-input__addons_1x5mi {
|
|
20
20
|
padding-left: 0;
|
|
21
|
-
} .intl-phone-
|
|
21
|
+
} .intl-phone-input__l_1x5mi .intl-phone-input__addons_1x5mi, .intl-phone-input__xl_1x5mi .intl-phone-input__addons_1x5mi {
|
|
22
22
|
padding-left: 0;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagIconWrapper_1x5mi {
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
align-items: center;
|
|
27
27
|
width: 24px;
|
|
28
28
|
height: 24px;
|
|
29
29
|
margin-left: var(--gap-s);
|
|
30
|
-
} .intl-phone-
|
|
30
|
+
} .intl-phone-input__emptyCountryIcon_1x5mi {
|
|
31
31
|
color: var(--color-light-graphic-secondary);
|
|
32
32
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
1
|
export { IntlPhoneInput } from './component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-input-autocomplete/modern/desktop';
|
|
5
|
-
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
|
-
import '@alfalab/utils';
|
|
7
|
-
import './utils/calculateCaretPos.js';
|
|
8
|
-
import './utils/format-phone-with-unclearable-country-code.js';
|
|
9
|
-
import './utils/preparePasteData.js';
|
|
10
|
-
import 'react-merge-refs';
|
|
11
|
-
import '@alfalab/hooks';
|
|
12
|
-
import './components/flag-icon/component.js';
|
|
13
|
-
import './components/flag-icon/flagSprite.js';
|
|
14
|
-
import './components/select/component.js';
|
|
15
|
-
import '@alfalab/core-components-select/modern/desktop';
|
|
16
|
-
import '@alfalab/core-components-select/modern/shared';
|
|
17
|
-
import './components/select-field/component.js';
|
|
18
|
-
import './useCaretAvoidCountryCode.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-intl-phone-input",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.4",
|
|
4
4
|
"description": "Phone input for international phones",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-input-autocomplete": "11.
|
|
18
|
-
"@alfalab/core-components-select": "^17.1
|
|
17
|
+
"@alfalab/core-components-input-autocomplete": "11.4.1",
|
|
18
|
+
"@alfalab/core-components-select": "^17.2.1",
|
|
19
19
|
"@alfalab/hooks": "^1.13.0",
|
|
20
20
|
"@alfalab/icons-glyph": "^2.139.0",
|
|
21
21
|
"@alfalab/utils": "^1.14.4",
|