@alfalab/core-components-intl-phone-input 9.1.2 → 9.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/{component-5856f15f.d.ts → component-b3b0e670.d.ts} +0 -0
- package/{component-5856f15f.js → component-b3b0e670.js} +1 -1
- package/component.js +4 -3
- package/components/flag-icon/component.js +3 -2
- package/components/flag-icon/flagSprite.d.ts +2 -0
- package/components/flag-icon/flagSprite.js +233 -0
- package/components/flag-icon/index.css +20 -1554
- package/components/flag-icon/index.js +1 -0
- package/components/index.js +2 -1
- package/components/select/component.js +3 -2
- package/components/select/index.css +6 -8
- package/components/select/index.js +2 -1
- package/components/select-field/component.js +2 -1
- package/components/select-field/index.css +9 -9
- package/components/select-field/index.d.ts +1 -1
- package/components/select-field/index.js +2 -1
- package/cssm/{component-215a3963.d.ts → component-1eeab8e9.d.ts} +0 -0
- package/cssm/{component-215a3963.js → component-1eeab8e9.js} +0 -0
- package/cssm/component.js +2 -1
- package/cssm/components/flag-icon/component.js +2 -1
- package/cssm/components/flag-icon/flagSprite.d.ts +2 -0
- package/cssm/components/flag-icon/flagSprite.js +233 -0
- package/cssm/components/flag-icon/index.js +1 -0
- package/cssm/components/flag-icon/index.module.css +19 -1556
- package/cssm/components/index.js +2 -1
- package/cssm/components/select/component.js +2 -1
- package/cssm/components/select/index.js +2 -1
- package/cssm/components/select/index.module.css +0 -2
- package/cssm/components/select-field/component.js +2 -1
- package/cssm/components/select-field/index.d.ts +1 -1
- package/cssm/components/select-field/index.js +2 -1
- package/cssm/index.js +2 -1
- package/esm/{component-7c31218a.d.ts → component-1fd0e5df.d.ts} +0 -0
- package/esm/{component-7c31218a.js → component-1fd0e5df.js} +1 -1
- package/esm/component.js +4 -3
- package/esm/components/flag-icon/component.js +3 -2
- package/esm/components/flag-icon/flagSprite.d.ts +2 -0
- package/esm/components/flag-icon/flagSprite.js +229 -0
- package/esm/components/flag-icon/index.css +20 -1554
- package/esm/components/flag-icon/index.js +1 -0
- package/esm/components/index.js +2 -1
- package/esm/components/select/component.js +3 -2
- package/esm/components/select/index.css +6 -8
- package/esm/components/select/index.js +2 -1
- package/esm/components/select-field/component.js +2 -1
- package/esm/components/select-field/index.css +9 -9
- package/esm/components/select-field/index.d.ts +1 -1
- package/esm/components/select-field/index.js +2 -1
- package/esm/index.css +5 -5
- package/esm/index.js +2 -1
- package/esm/{libphonenumber-js.min-642994e6.d.ts → libphonenumber-js.min-ae2df8d5.d.ts} +0 -0
- package/esm/{libphonenumber-js.min-642994e6.js → libphonenumber-js.min-ae2df8d5.js} +0 -0
- package/index.css +5 -5
- package/index.js +2 -1
- package/{libphonenumber-js.min-e0567a76.d.ts → libphonenumber-js.min-0775258e.d.ts} +0 -0
- package/{libphonenumber-js.min-e0567a76.js → libphonenumber-js.min-0775258e.js} +0 -0
- package/modern/component.js +3 -2
- package/modern/components/flag-icon/component.js +3 -2
- package/modern/components/flag-icon/flagSprite.d.ts +2 -0
- package/modern/components/flag-icon/flagSprite.js +229 -0
- package/modern/components/flag-icon/index.css +20 -1554
- package/modern/components/flag-icon/index.js +1 -0
- package/modern/components/index.js +1 -0
- package/modern/components/select/component.js +2 -1
- package/modern/components/select/index.css +6 -8
- package/modern/components/select/index.js +1 -0
- package/modern/components/select-field/component.js +2 -1
- package/modern/components/select-field/index.css +9 -9
- package/modern/components/select-field/index.js +1 -0
- package/modern/index.css +5 -5
- package/modern/index.js +1 -0
- package/modern/{libphonenumber-js.min-642994e6.d.ts → libphonenumber-js.min-ae2df8d5.d.ts} +0 -0
- package/modern/{libphonenumber-js.min-642994e6.js → libphonenumber-js.min-ae2df8d5.js} +0 -0
- package/package.json +3 -3
- package/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
- package/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
- package/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
- package/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
- package/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
- package/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
- package/cssm/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
- package/esm/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
- package/modern/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
|
@@ -3,6 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
+
import './flag-icon/flagSprite.js';
|
|
6
7
|
export { FlagIcon } from './flag-icon/component.js';
|
|
7
8
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './select-field/component.js';
|
|
8
9
|
import '@alfalab/core-components-select/modern';
|
|
@@ -3,11 +3,12 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
+
import '../flag-icon/flagSprite.js';
|
|
6
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
8
|
import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
|
|
8
9
|
import { VirtualOptionsList, Select } from '@alfalab/core-components-select/modern';
|
|
9
10
|
|
|
10
|
-
var styles = {"component":"intl-phone-
|
|
11
|
+
var styles = {"component":"intl-phone-input__component_1hlhb","option":"intl-phone-input__option_1hlhb","flag":"intl-phone-input__flag_1hlhb","countryName":"intl-phone-input__countryName_1hlhb","dialCode":"intl-phone-input__dialCode_1hlhb"};
|
|
11
12
|
require('./index.css')
|
|
12
13
|
|
|
13
14
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3jm6f */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
4
|
}
|
|
@@ -11,30 +11,28 @@
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
13
|
:root {
|
|
14
|
-
--gap-2xs: 4px;
|
|
15
14
|
--gap-xs: 8px;
|
|
16
15
|
}
|
|
17
16
|
:root {
|
|
18
17
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
19
18
|
}
|
|
20
|
-
.intl-phone-
|
|
19
|
+
.intl-phone-input__component_1hlhb {
|
|
21
20
|
position: static;
|
|
22
21
|
display: flex;
|
|
23
22
|
min-width: initial;
|
|
24
23
|
height: 100%;
|
|
25
24
|
}
|
|
26
|
-
.intl-phone-
|
|
25
|
+
.intl-phone-input__option_1hlhb {
|
|
27
26
|
display: flex;
|
|
28
27
|
align-items: flex-start;
|
|
29
28
|
}
|
|
30
|
-
.intl-phone-
|
|
29
|
+
.intl-phone-input__flag_1hlhb {
|
|
31
30
|
flex-shrink: 0;
|
|
32
|
-
margin-top: var(--gap-2xs);
|
|
33
31
|
margin-right: var(--gap-xs);
|
|
34
32
|
}
|
|
35
|
-
.intl-phone-
|
|
33
|
+
.intl-phone-input__countryName_1hlhb {
|
|
36
34
|
margin-right: var(--gap-xs);
|
|
37
35
|
}
|
|
38
|
-
.intl-phone-
|
|
36
|
+
.intl-phone-input__dialCode_1hlhb {
|
|
39
37
|
color: var(--text-secondary-color);
|
|
40
38
|
}
|
|
@@ -3,6 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
+
import '../flag-icon/flagSprite.js';
|
|
6
7
|
import '../flag-icon/component.js';
|
|
7
8
|
import '../select-field/component.js';
|
|
8
9
|
import '@alfalab/core-components-select/modern';
|
|
@@ -3,9 +3,10 @@ import cn from 'classnames';
|
|
|
3
3
|
import WorldMagnifierMIcon from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
|
+
import '../flag-icon/flagSprite.js';
|
|
6
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
8
|
|
|
8
|
-
var styles = {"component":"intl-phone-
|
|
9
|
+
var styles = {"component":"intl-phone-input__component_1xm4x","flagIconContainer":"intl-phone-input__flagIconContainer_1xm4x","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1xm4x","disabled":"intl-phone-input__disabled_1xm4x","inner":"intl-phone-input__inner_1xm4x","l":"intl-phone-input__l_1xm4x","xl":"intl-phone-input__xl_1xm4x","focusVisible":"intl-phone-input__focusVisible_1xm4x"};
|
|
9
10
|
require('./index.css')
|
|
10
11
|
|
|
11
12
|
const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sbmn */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
--color-light-graphic-secondary: #6d7986;
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
--focus-color: var(--color-light-border-link);
|
|
21
21
|
--disabled-cursor: not-allowed;
|
|
22
22
|
}
|
|
23
|
-
.intl-phone-
|
|
23
|
+
.intl-phone-input__component_1xm4x {
|
|
24
24
|
height: 100%;
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
outline: none;
|
|
27
27
|
position: relative;
|
|
28
28
|
}
|
|
29
|
-
.intl-phone-
|
|
29
|
+
.intl-phone-input__flagIconContainer_1xm4x {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
36
|
}
|
|
37
|
-
.intl-phone-
|
|
37
|
+
.intl-phone-input__emptyCountryIcon_1xm4x {
|
|
38
38
|
color: var(--color-light-graphic-secondary);
|
|
39
39
|
}
|
|
40
|
-
.intl-phone-
|
|
40
|
+
.intl-phone-input__disabled_1xm4x {
|
|
41
41
|
cursor: var(--disabled-cursor);
|
|
42
42
|
}
|
|
43
|
-
.intl-phone-
|
|
43
|
+
.intl-phone-input__inner_1xm4x {
|
|
44
44
|
position: relative;
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
padding-left: var(--gap-s);
|
|
49
49
|
outline: none;
|
|
50
50
|
}
|
|
51
|
-
.intl-phone-
|
|
52
|
-
.intl-phone-
|
|
51
|
+
.intl-phone-input__l_1xm4x .intl-phone-input__inner_1xm4x,
|
|
52
|
+
.intl-phone-input__xl_1xm4x .intl-phone-input__inner_1xm4x {
|
|
53
53
|
padding-left: var(--gap-m);
|
|
54
54
|
}
|
|
55
|
-
.intl-phone-
|
|
55
|
+
.intl-phone-input__focusVisible_1xm4x {
|
|
56
56
|
outline: 2px solid var(--focus-color);
|
|
57
57
|
outline-offset: 2px;
|
|
58
58
|
}
|
|
@@ -3,5 +3,6 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
+
import '../flag-icon/flagSprite.js';
|
|
6
7
|
import '../flag-icon/component.js';
|
|
7
8
|
export { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from './component.js';
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4127a */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-secondary: #6d7986;
|
|
4
4
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--gap-s: 12px;
|
|
15
15
|
}
|
|
16
|
-
.intl-phone-
|
|
16
|
+
.intl-phone-input__addons_bt23w {
|
|
17
17
|
padding-left: 0;
|
|
18
18
|
}
|
|
19
|
-
.intl-phone-
|
|
19
|
+
.intl-phone-input__l_bt23w .intl-phone-input__addons_bt23w, .intl-phone-input__xl_bt23w .intl-phone-input__addons_bt23w {
|
|
20
20
|
padding-left: 0;
|
|
21
21
|
}
|
|
22
|
-
.intl-phone-
|
|
22
|
+
.intl-phone-input__flagIconWrapper_bt23w {
|
|
23
23
|
display: flex;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
align-items: center;
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
height: 24px;
|
|
28
28
|
margin-left: var(--gap-s);
|
|
29
29
|
}
|
|
30
|
-
.intl-phone-
|
|
30
|
+
.intl-phone-input__emptyCountryIcon_bt23w {
|
|
31
31
|
color: var(--color-light-graphic-secondary);
|
|
32
32
|
}
|
package/modern/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import './utils/format-phone-with-unclearable-country-code.js';
|
|
|
8
8
|
import './utils/preparePasteData.js';
|
|
9
9
|
import 'react-merge-refs';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
+
import './components/flag-icon/flagSprite.js';
|
|
11
12
|
import './components/flag-icon/component.js';
|
|
12
13
|
import './components/select-field/component.js';
|
|
13
14
|
import '@alfalab/core-components-select/modern';
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-intl-phone-input",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Phone input for international phones",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@alfalab/core-components-input": "^11.1.0",
|
|
21
|
-
"@alfalab/core-components-input-autocomplete": "9.1.
|
|
22
|
-
"@alfalab/core-components-select": "^13.1
|
|
21
|
+
"@alfalab/core-components-input-autocomplete": "9.1.4",
|
|
22
|
+
"@alfalab/core-components-select": "^13.2.1",
|
|
23
23
|
"@alfalab/hooks": "^1.4.1",
|
|
24
24
|
"@alfalab/utils": "^1.13.3",
|
|
25
25
|
"classnames": "^2.3.1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|