@alfalab/core-components-international-phone-input 1.0.2 → 1.0.3
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/components/base-international-phone-input/Component.js +1 -1
- package/components/base-international-phone-input/index.css +2 -2
- package/components/country-select/Component.js +1 -1
- package/components/country-select/index.css +8 -8
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +3 -3
- package/components/select-field/component.js +1 -1
- package/components/select-field/index.css +9 -9
- package/esm/components/base-international-phone-input/Component.js +1 -1
- package/esm/components/base-international-phone-input/index.css +2 -2
- package/esm/components/country-select/Component.js +1 -1
- package/esm/components/country-select/index.css +8 -8
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +3 -3
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +9 -9
- package/modern/Component-8b2c2707.d.ts +1 -1
- package/modern/Component.mobile-4cd3936b.d.ts +1 -1
- package/modern/Component.modal.mobile-4cd3936b.d.ts +1 -1
- package/modern/Component.responsive.d.ts +5 -5
- package/modern/components/base-international-phone-input/Component.d.ts +2 -2
- package/modern/components/base-international-phone-input/Component.js +1 -1
- package/modern/components/base-international-phone-input/index.css +2 -2
- package/modern/components/country-select/Component.js +1 -1
- package/modern/components/country-select/index.css +8 -8
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +3 -3
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +9 -9
- package/package.json +3 -3
|
@@ -25,7 +25,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
27
27
|
|
|
28
|
-
var styles = {"component":"international-phone-
|
|
28
|
+
var styles = {"component":"international-phone-input__component_1n025","addons":"international-phone-input__addons_1n025"};
|
|
29
29
|
require('./index.css')
|
|
30
30
|
|
|
31
31
|
var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
20
20
|
|
|
21
|
-
var styles = {"component":"international-phone-
|
|
21
|
+
var styles = {"component":"international-phone-input__component_1r31o","option":"international-phone-input__option_1r31o","flag":"international-phone-input__flag_1r31o","countryName":"international-phone-input__countryName_1r31o","dialCode":"international-phone-input__dialCode_1r31o","flagIconWrapper":"international-phone-input__flagIconWrapper_1r31o","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1r31o"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 52546 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #86868a;
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
21
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
22
|
-
} .international-phone-
|
|
22
|
+
} .international-phone-input__component_1r31o {
|
|
23
23
|
position: static;
|
|
24
24
|
display: flex;
|
|
25
25
|
min-width: initial;
|
|
26
26
|
height: 100%;
|
|
27
|
-
} .international-phone-
|
|
27
|
+
} .international-phone-input__option_1r31o {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: flex-start;
|
|
30
30
|
padding: var(--gap-s);
|
|
31
|
-
} .international-phone-
|
|
31
|
+
} .international-phone-input__flag_1r31o {
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
|
-
} .international-phone-
|
|
34
|
+
} .international-phone-input__countryName_1r31o {
|
|
35
35
|
margin-right: var(--gap-xs);
|
|
36
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__dialCode_1r31o {
|
|
37
37
|
color: var(--text-secondary-color);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__flagIconWrapper_1r31o {
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
width: 24px;
|
|
43
43
|
height: 24px;
|
|
44
44
|
margin-left: var(--gap-s);
|
|
45
|
-
} .international-phone-
|
|
45
|
+
} .international-phone-input__emptyCountryIcon_1r31o {
|
|
46
46
|
color: var(--color-light-graphic-secondary);
|
|
47
47
|
}
|
|
@@ -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":"international-phone-
|
|
14
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_52jpv","flagPlaceholder":"international-phone-input__flagPlaceholder_52jpv"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xisrv */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* 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
|
-
} .international-phone-
|
|
20
|
+
} .international-phone-input__flagIcon_52jpv {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_52jpv {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -17,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
17
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
18
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
19
|
|
|
20
|
-
var styles = {"component":"international-phone-
|
|
20
|
+
var styles = {"component":"international-phone-input__component_1f5zn","flagIconContainer":"international-phone-input__flagIconContainer_1f5zn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1f5zn","disabled":"international-phone-input__disabled_1f5zn","inner":"international-phone-input__inner_1f5zn","l":"international-phone-input__l_1f5zn","xl":"international-phone-input__xl_1f5zn","focusVisible":"international-phone-input__focusVisible_1f5zn"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lad2z */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .international-phone-
|
|
24
|
+
} .international-phone-input__component_1f5zn {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__emptyCountryIcon_1f5zn {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_1f5zn {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
48
|
-
.international-phone-
|
|
47
|
+
} .international-phone-input__l_1f5zn .international-phone-input__inner_1f5zn,
|
|
48
|
+
.international-phone-input__xl_1f5zn .international-phone-input__inner_1f5zn {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_1f5zn {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -16,7 +16,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
16
16
|
import '../select-field/component.js';
|
|
17
17
|
import '@alfalab/hooks';
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"international-phone-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_1n025","addons":"international-phone-input__addons_1n025"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
|
|
@@ -10,7 +10,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
10
10
|
import 'react-merge-refs';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
13
|
-
var styles = {"component":"international-phone-
|
|
13
|
+
var styles = {"component":"international-phone-input__component_1r31o","option":"international-phone-input__option_1r31o","flag":"international-phone-input__flag_1r31o","countryName":"international-phone-input__countryName_1r31o","dialCode":"international-phone-input__dialCode_1r31o","flagIconWrapper":"international-phone-input__flagIconWrapper_1r31o","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1r31o"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 52546 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #86868a;
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
21
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
22
|
-
} .international-phone-
|
|
22
|
+
} .international-phone-input__component_1r31o {
|
|
23
23
|
position: static;
|
|
24
24
|
display: flex;
|
|
25
25
|
min-width: initial;
|
|
26
26
|
height: 100%;
|
|
27
|
-
} .international-phone-
|
|
27
|
+
} .international-phone-input__option_1r31o {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: flex-start;
|
|
30
30
|
padding: var(--gap-s);
|
|
31
|
-
} .international-phone-
|
|
31
|
+
} .international-phone-input__flag_1r31o {
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
|
-
} .international-phone-
|
|
34
|
+
} .international-phone-input__countryName_1r31o {
|
|
35
35
|
margin-right: var(--gap-xs);
|
|
36
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__dialCode_1r31o {
|
|
37
37
|
color: var(--text-secondary-color);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__flagIconWrapper_1r31o {
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
width: 24px;
|
|
43
43
|
height: 24px;
|
|
44
44
|
margin-left: var(--gap-s);
|
|
45
|
-
} .international-phone-
|
|
45
|
+
} .international-phone-input__emptyCountryIcon_1r31o {
|
|
46
46
|
color: var(--color-light-graphic-secondary);
|
|
47
47
|
}
|
|
@@ -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":"international-phone-
|
|
5
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_52jpv","flagPlaceholder":"international-phone-input__flagPlaceholder_52jpv"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xisrv */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* 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
|
-
} .international-phone-
|
|
20
|
+
} .international-phone-input__flagIcon_52jpv {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_52jpv {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -7,7 +7,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
|
7
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
8
8
|
import '../flag-icon/flagSprite.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"international-phone-
|
|
10
|
+
var styles = {"component":"international-phone-input__component_1f5zn","flagIconContainer":"international-phone-input__flagIconContainer_1f5zn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1f5zn","disabled":"international-phone-input__disabled_1f5zn","inner":"international-phone-input__inner_1f5zn","l":"international-phone-input__l_1f5zn","xl":"international-phone-input__xl_1f5zn","focusVisible":"international-phone-input__focusVisible_1f5zn"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lad2z */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .international-phone-
|
|
24
|
+
} .international-phone-input__component_1f5zn {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__emptyCountryIcon_1f5zn {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_1f5zn {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
48
|
-
.international-phone-
|
|
47
|
+
} .international-phone-input__l_1f5zn .international-phone-input__inner_1f5zn,
|
|
48
|
+
.international-phone-input__xl_1f5zn .international-phone-input__inner_1f5zn {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_1f5zn {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
49
49
|
*/
|
|
50
50
|
Input?: ElementType;
|
|
51
51
|
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Обработчик выбора
|
|
55
55
|
*/
|
|
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
46
46
|
*/
|
|
47
47
|
Input?: ElementType;
|
|
48
48
|
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "
|
|
49
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Обработчик выбора
|
|
52
52
|
*/
|
|
@@ -12,8 +12,8 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
12
12
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
13
|
value: string;
|
|
14
14
|
}) => void) | undefined;
|
|
15
|
-
onBlur?: ((event: React.FocusEvent<
|
|
16
|
-
onFocus?: ((event: React.FocusEvent<
|
|
15
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
16
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
options?: undefined;
|
|
19
19
|
} & Omit<import("./Component.desktop-d873d97d").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "clear" | "onClear"> & {
|
|
@@ -33,13 +33,13 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
33
33
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
34
|
value: string;
|
|
35
35
|
}) => void) | undefined;
|
|
36
|
-
onBlur?: ((event: React.FocusEvent<
|
|
37
|
-
onFocus?: ((event: React.FocusEvent<
|
|
36
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
37
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
|
|
40
40
|
} & Omit<import("./Component.desktop-9cded6b9").InputAutocompleteDesktopProps, "onChange"> & {
|
|
41
41
|
options: (import("./typings-0f4b9bed").OptionShape | import("./typings-0f4b9bed").GroupShape)[];
|
|
42
|
-
} & Omit<import("./Component.mobile-4cd3936b").InputAutocompleteMobileProps, "
|
|
42
|
+
} & Omit<import("./Component.mobile-4cd3936b").InputAutocompleteMobileProps, "onChange" | "filter" | "onFilter" | "onClearFilter"> & {
|
|
43
43
|
breakpoint?: number | undefined;
|
|
44
44
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
45
45
|
})) & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -14,8 +14,8 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
15
|
value: string;
|
|
16
16
|
}) => void) | undefined;
|
|
17
|
-
onBlur?: ((event: React.FocusEvent<
|
|
18
|
-
onFocus?: ((event: React.FocusEvent<
|
|
17
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
18
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
19
19
|
} & {
|
|
20
20
|
Input: React.FC<import("@alfalab/core-components-input").InputProps>;
|
|
21
21
|
InputAutocomplete: React.FC<InputAutocompleteProps>;
|
|
@@ -15,7 +15,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
15
15
|
import '../select-field/component.js';
|
|
16
16
|
import '@alfalab/hooks';
|
|
17
17
|
|
|
18
|
-
const styles = {"component":"international-phone-
|
|
18
|
+
const styles = {"component":"international-phone-input__component_1n025","addons":"international-phone-input__addons_1n025"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
const BaseInternationalPhoneInput = forwardRef(({ clearableCountryCode, value, country, onChange, onCountryChange, countrySelectProps, countries, defaultIso2, disabled, options, size = 'm', Input, InputAutocomplete, SelectComponent, view, bottomSheetHeaderAddonsProps, countriesData, clear, ...restProps }, ref) => {
|
|
@@ -9,7 +9,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
9
9
|
import 'react-merge-refs';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
11
|
|
|
12
|
-
const styles = {"component":"international-phone-
|
|
12
|
+
const styles = {"component":"international-phone-input__component_1r31o","option":"international-phone-input__option_1r31o","flag":"international-phone-input__flag_1r31o","countryName":"international-phone-input__countryName_1r31o","dialCode":"international-phone-input__dialCode_1r31o","flagIconWrapper":"international-phone-input__flagIconWrapper_1r31o","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1r31o"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 52546 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #86868a;
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
21
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
22
|
-
} .international-phone-
|
|
22
|
+
} .international-phone-input__component_1r31o {
|
|
23
23
|
position: static;
|
|
24
24
|
display: flex;
|
|
25
25
|
min-width: initial;
|
|
26
26
|
height: 100%;
|
|
27
|
-
} .international-phone-
|
|
27
|
+
} .international-phone-input__option_1r31o {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: flex-start;
|
|
30
30
|
padding: var(--gap-s);
|
|
31
|
-
} .international-phone-
|
|
31
|
+
} .international-phone-input__flag_1r31o {
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
|
-
} .international-phone-
|
|
34
|
+
} .international-phone-input__countryName_1r31o {
|
|
35
35
|
margin-right: var(--gap-xs);
|
|
36
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__dialCode_1r31o {
|
|
37
37
|
color: var(--text-secondary-color);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__flagIconWrapper_1r31o {
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
width: 24px;
|
|
43
43
|
height: 24px;
|
|
44
44
|
margin-left: var(--gap-s);
|
|
45
|
-
} .international-phone-
|
|
45
|
+
} .international-phone-input__emptyCountryIcon_1r31o {
|
|
46
46
|
color: var(--color-light-graphic-secondary);
|
|
47
47
|
}
|
|
@@ -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":"international-phone-
|
|
5
|
+
const styles = {"flagIcon":"international-phone-input__flagIcon_52jpv","flagPlaceholder":"international-phone-input__flagPlaceholder_52jpv"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xisrv */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* 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
|
-
} .international-phone-
|
|
20
|
+
} .international-phone-input__flagIcon_52jpv {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_52jpv {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -6,7 +6,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
|
6
6
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
7
|
import '../flag-icon/flagSprite.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"international-phone-
|
|
9
|
+
const styles = {"component":"international-phone-input__component_1f5zn","flagIconContainer":"international-phone-input__flagIconContainer_1f5zn","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1f5zn","disabled":"international-phone-input__disabled_1f5zn","inner":"international-phone-input__inner_1f5zn","l":"international-phone-input__l_1f5zn","xl":"international-phone-input__xl_1f5zn","focusVisible":"international-phone-input__focusVisible_1f5zn"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lad2z */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .international-phone-
|
|
24
|
+
} .international-phone-input__component_1f5zn {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__emptyCountryIcon_1f5zn {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_1f5zn {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_1f5zn {
|
|
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
|
-
} .international-phone-
|
|
48
|
-
.international-phone-
|
|
47
|
+
} .international-phone-input__l_1f5zn .international-phone-input__inner_1f5zn,
|
|
48
|
+
.international-phone-input__xl_1f5zn .international-phone-input__inner_1f5zn {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_1f5zn {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-international-phone-input",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-input-autocomplete": "10.2.
|
|
17
|
+
"@alfalab/core-components-input-autocomplete": "10.2.2",
|
|
18
18
|
"@alfalab/core-components-input": "^12.2.1",
|
|
19
|
-
"@alfalab/core-components-select": "^15.2.
|
|
19
|
+
"@alfalab/core-components-select": "^15.2.2",
|
|
20
20
|
"@alfalab/core-components-shared": "^0.6.0",
|
|
21
21
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
22
22
|
"@alfalab/hooks": "^1.13.0",
|