@alfalab/core-components-intl-phone-input 6.4.0 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/{component-7d88f33a.d.ts → component-fbf58e08.d.ts} +0 -0
- package/dist/{component-7d88f33a.js → component-fbf58e08.js} +1 -1
- package/dist/component.d.ts +9 -0
- package/dist/component.js +133 -64
- package/dist/components/flag-icon/component.js +1 -1
- package/dist/components/flag-icon/index.css +261 -261
- package/dist/components/index.js +1 -1
- package/dist/components/select/component.js +2 -2
- package/dist/components/select/index.css +6 -6
- package/dist/components/select/index.js +1 -1
- package/dist/components/select-field/component.js +1 -1
- package/dist/components/select-field/index.css +8 -8
- package/dist/components/select-field/index.d.ts +1 -1
- package/dist/components/select-field/index.js +1 -1
- package/dist/cssm/component.d.ts +9 -0
- package/dist/cssm/component.js +131 -62
- package/dist/cssm/index.js +1 -1
- package/dist/cssm/{libphonenumber-js.min-d3a9d490.d.ts → libphonenumber-js.min-903db150.d.ts} +0 -0
- package/dist/cssm/libphonenumber-js.min-903db150.js +2227 -0
- package/dist/cssm/useCaretAvoidCountryCode.js +24 -20
- package/dist/cssm/utils/calculateCaretPos.d.ts +7 -0
- package/dist/cssm/utils/calculateCaretPos.js +27 -0
- package/dist/esm/{component-32da0c87.d.ts → component-25b3eb47.d.ts} +0 -0
- package/dist/esm/{component-32da0c87.js → component-25b3eb47.js} +1 -1
- package/dist/esm/component.d.ts +9 -0
- package/dist/esm/component.js +134 -65
- package/dist/esm/components/flag-icon/component.js +1 -1
- package/dist/esm/components/flag-icon/index.css +261 -261
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/select/component.js +2 -2
- package/dist/esm/components/select/index.css +6 -6
- package/dist/esm/components/select/index.js +1 -1
- package/dist/esm/components/select-field/component.js +1 -1
- package/dist/esm/components/select-field/index.css +8 -8
- package/dist/esm/components/select-field/index.d.ts +1 -1
- package/dist/esm/components/select-field/index.js +1 -1
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/{libphonenumber-js.min-c49027d7.d.ts → libphonenumber-js.min-24f2609b.d.ts} +0 -0
- package/dist/esm/libphonenumber-js.min-24f2609b.js +2225 -0
- package/dist/esm/useCaretAvoidCountryCode.js +25 -21
- package/dist/esm/utils/calculateCaretPos.d.ts +7 -0
- package/dist/esm/utils/calculateCaretPos.js +23 -0
- package/dist/index.css +3 -3
- package/dist/index.js +2 -2
- package/dist/{libphonenumber-js.min-13d3dc00.d.ts → libphonenumber-js.min-6d8f77f6.d.ts} +0 -0
- package/dist/libphonenumber-js.min-6d8f77f6.js +2227 -0
- package/dist/modern/component.d.ts +9 -0
- package/dist/modern/component.js +131 -61
- package/dist/modern/components/flag-icon/component.js +1 -1
- package/dist/modern/components/flag-icon/index.css +261 -261
- package/dist/modern/components/select/component.js +1 -1
- package/dist/modern/components/select/index.css +6 -6
- package/dist/modern/components/select-field/component.js +1 -1
- package/dist/modern/components/select-field/index.css +8 -8
- package/dist/modern/index.css +3 -3
- package/dist/modern/index.js +1 -1
- package/dist/modern/{libphonenumber-js.min-c49027d7.d.ts → libphonenumber-js.min-24f2609b.d.ts} +0 -0
- package/dist/modern/libphonenumber-js.min-24f2609b.js +2225 -0
- package/dist/modern/useCaretAvoidCountryCode.js +25 -21
- package/dist/modern/utils/calculateCaretPos.d.ts +7 -0
- package/dist/modern/utils/calculateCaretPos.js +23 -0
- package/dist/useCaretAvoidCountryCode.js +24 -20
- package/dist/utils/calculateCaretPos.d.ts +7 -0
- package/dist/utils/calculateCaretPos.js +27 -0
- package/package.json +6 -6
- package/dist/cssm/libphonenumber-js.min-d3a9d490.js +0 -1569
- package/dist/cssm/usePreventCaretReset.d.ts +0 -8
- package/dist/cssm/usePreventCaretReset.js +0 -36
- package/dist/esm/libphonenumber-js.min-c49027d7.js +0 -1567
- package/dist/esm/usePreventCaretReset.d.ts +0 -8
- package/dist/esm/usePreventCaretReset.js +0 -32
- package/dist/libphonenumber-js.min-13d3dc00.js +0 -1569
- package/dist/modern/libphonenumber-js.min-c49027d7.js +0 -1567
- package/dist/modern/usePreventCaretReset.d.ts +0 -8
- package/dist/modern/usePreventCaretReset.js +0 -31
- package/dist/usePreventCaretReset.d.ts +0 -8
- package/dist/usePreventCaretReset.js +0 -36
|
@@ -6,7 +6,7 @@ import { FlagIcon } from '../flag-icon/component.js';
|
|
|
6
6
|
import { SelectField } from '../select-field/component.js';
|
|
7
7
|
import { VirtualOptionsList, Select } from '@alfalab/core-components-select/dist/modern';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"intl-phone-
|
|
9
|
+
var styles = {"component":"intl-phone-input__component_1c2vg","option":"intl-phone-input__option_1c2vg","flag":"intl-phone-input__flag_1c2vg","countryName":"intl-phone-input__countryName_1c2vg","dialCode":"intl-phone-input__dialCode_1c2vg"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yz6kc */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
:root {
|
|
18
18
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
19
19
|
}
|
|
20
|
-
.intl-phone-
|
|
20
|
+
.intl-phone-input__component_1c2vg {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
.intl-phone-
|
|
26
|
+
.intl-phone-input__option_1c2vg {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
}
|
|
30
|
-
.intl-phone-
|
|
30
|
+
.intl-phone-input__flag_1c2vg {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-top: var(--gap-2xs);
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
34
|
}
|
|
35
|
-
.intl-phone-
|
|
35
|
+
.intl-phone-input__countryName_1c2vg {
|
|
36
36
|
margin-right: var(--gap-xs);
|
|
37
37
|
}
|
|
38
|
-
.intl-phone-
|
|
38
|
+
.intl-phone-input__dialCode_1c2vg {
|
|
39
39
|
color: var(--text-secondary-color);
|
|
40
40
|
}
|
|
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"intl-phone-
|
|
7
|
+
var styles = {"component":"intl-phone-input__component_14z08","flagIconContainer":"intl-phone-input__flagIconContainer_14z08","disabled":"intl-phone-input__disabled_14z08","inner":"intl-phone-input__inner_14z08","l":"intl-phone-input__l_14z08","xl":"intl-phone-input__xl_14z08","focusVisible":"intl-phone-input__focusVisible_14z08"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const SelectField = ({ selected, Arrow, size, disabled, innerProps = {}, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1eegc */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
}
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
21
|
}
|
|
22
|
-
.intl-phone-
|
|
22
|
+
.intl-phone-input__component_14z08 {
|
|
23
23
|
height: 100%;
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
outline: none;
|
|
26
26
|
position: relative;
|
|
27
27
|
}
|
|
28
|
-
.intl-phone-
|
|
28
|
+
.intl-phone-input__flagIconContainer_14z08 {
|
|
29
29
|
display: flex;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
align-items: center;
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
height: 24px;
|
|
34
34
|
margin-right: var(--gap-2xs);
|
|
35
35
|
}
|
|
36
|
-
.intl-phone-
|
|
36
|
+
.intl-phone-input__disabled_14z08 {
|
|
37
37
|
cursor: var(--disabled-cursor);
|
|
38
38
|
}
|
|
39
|
-
.intl-phone-
|
|
39
|
+
.intl-phone-input__inner_14z08 {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
padding-left: var(--gap-s);
|
|
45
45
|
outline: none;
|
|
46
46
|
}
|
|
47
|
-
.intl-phone-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
.intl-phone-input__l_14z08 .intl-phone-input__inner_14z08,
|
|
48
|
+
.intl-phone-input__xl_14z08 .intl-phone-input__inner_14z08 {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
50
|
}
|
|
51
|
-
.intl-phone-
|
|
51
|
+
.intl-phone-input__focusVisible_14z08 {
|
|
52
52
|
outline: 2px solid var(--focus-color);
|
|
53
53
|
outline-offset: 2px;
|
|
54
54
|
}
|
package/dist/modern/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.intl-phone-
|
|
1
|
+
/* hash: qasyq */
|
|
2
|
+
.intl-phone-input__addons_rhr68 {
|
|
3
3
|
padding-left: 0;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.intl-phone-
|
|
6
|
+
.intl-phone-input__l_rhr68 .intl-phone-input__addons_rhr68, .intl-phone-input__xl_rhr68 .intl-phone-input__addons_rhr68 {
|
|
7
7
|
padding-left: 0;
|
|
8
8
|
}
|
package/dist/modern/index.js
CHANGED
|
@@ -9,6 +9,6 @@ import './components/select-field/component.js';
|
|
|
9
9
|
import '@alfalab/core-components-select/dist/modern';
|
|
10
10
|
import './components/select/component.js';
|
|
11
11
|
import './utils/format-phone-with-unclearable-country-code.js';
|
|
12
|
+
import './utils/calculateCaretPos.js';
|
|
12
13
|
import './useCaretAvoidCountryCode.js';
|
|
13
|
-
import './usePreventCaretReset.js';
|
|
14
14
|
export { IntlPhoneInput } from './component.js';
|
package/dist/modern/{libphonenumber-js.min-c49027d7.d.ts → libphonenumber-js.min-24f2609b.d.ts}
RENAMED
|
File without changes
|