react-simple-phone-input 3.1.3-beta → 3.1.5
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/README.md
CHANGED
|
@@ -18,7 +18,8 @@ $ npm i react-simple-phone-input --save
|
|
|
18
18
|
|
|
19
19
|
```jsx
|
|
20
20
|
import { PhoneInput } from "react-simple-phone-input";
|
|
21
|
-
|
|
21
|
+
//or
|
|
22
|
+
//const { PhoneInput } = require("react-simple-phone-input")
|
|
22
23
|
|
|
23
24
|
<PhoneInput
|
|
24
25
|
country="US"
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.simple-phone-input-sri198-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.simple-phone-input-sri198-container:focus,
|
|
6
|
+
.simple-phone-input-sri198-container:focus-visible,
|
|
7
|
+
.simple-phone-input-sri198-container:focus-within {
|
|
8
|
+
outline: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.simple-phone-input-sri198-main {
|
|
12
|
+
display: flex;
|
|
13
|
+
border: 1px solid rgba(0, 0, 0, 0.315);
|
|
14
|
+
user-select: none;
|
|
15
|
+
border-radius: 3px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.simple-phone-input-sri198-dropdown-container {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background: rgba(0, 0, 0, 0.144);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.simple-phone-input-sri198-dropdown-container img {
|
|
26
|
+
margin-right: 6px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.simple-phone-input-sri198-dropdown {
|
|
30
|
+
background: white;
|
|
31
|
+
list-style: none;
|
|
32
|
+
padding: 0;
|
|
33
|
+
margin: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 100%;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
height: 250px;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
box-shadow: 0 0 20px rgb(180, 180, 180);
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.simple-phone-input-sri198-dropdown.active {
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.simple-phone-input-sri198-dropdown li {
|
|
49
|
+
margin: 3px 0;
|
|
50
|
+
padding: 3px 8px;
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.simple-phone-input-sri198-dropdown li.active {
|
|
55
|
+
background: rgba(0, 0, 0, 0.116);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.simple-phone-input-sri198-dropdown li:hover {
|
|
59
|
+
background: rgba(0, 0, 0, 0.116);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.simple-phone-input-sri198-dropdown li img {
|
|
63
|
+
margin-right: 6px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.simple-phone-input-sri198-dropdown-container-button {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex: 1;
|
|
69
|
+
width: 92px;
|
|
70
|
+
padding: 5px 2px 5px 7px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.simple-phone-input-sri198-dropdown-container-button.dial {
|
|
74
|
+
width: unset;
|
|
75
|
+
padding: 8px 3px 8px 8px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.simple-phone-input-sri198-dropdown-text {
|
|
79
|
+
font-size: 15px;
|
|
80
|
+
flex: 1;
|
|
81
|
+
margin-top: 3px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.simple-phone-input-sri198-dropdown-country-code {
|
|
85
|
+
opacity: 0.6;
|
|
86
|
+
margin-top: 3px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.simple-phone-input-sri198-dropdown-icon {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.simple-phone-input-sri198-dropdown-icon svg {
|
|
96
|
+
transition: 0.3s ease;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.simple-phone-input-sri198-dropdown-icon.active svg {
|
|
100
|
+
transform: rotate(-180deg)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.simple-phone-input-sri198-selected-code {
|
|
104
|
+
flex: 1;
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
margin-top: 3px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.simple-phone-input-sri198-input {
|
|
110
|
+
width: 100%;
|
|
111
|
+
border: none;
|
|
112
|
+
padding: 0 10px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.simple-phone-input-sri198-input:focus {
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.simple-phone-input-sri198-search-container {
|
|
120
|
+
padding: 5px;
|
|
121
|
+
position: relative;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.simple-phone-input-sri198-search-container input {
|
|
125
|
+
border: 1px solid rgba(0, 0, 0, 0.116);
|
|
126
|
+
padding: 8px 10px;
|
|
127
|
+
width: 100%;
|
|
128
|
+
font-size: 15px;
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.simple-phone-input-sri198-search-icon {
|
|
133
|
+
position: absolute;
|
|
134
|
+
right: 10px;
|
|
135
|
+
top: 50%;
|
|
136
|
+
transform: translateY(-50%);
|
|
137
|
+
display: flex;
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.simple-phone-input-sri198-search-icon svg {
|
|
142
|
+
font-size: 20px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.simple-phone-input-sri198-not-found {
|
|
146
|
+
text-align: center;
|
|
147
|
+
margin-top: 10px;
|
|
148
|
+
font-size: 15px;
|
|
149
|
+
color: #f73131;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.simple-phone-input-sri198-search-container input:focus {
|
|
153
|
+
outline: none;
|
|
154
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.simple-phone-input-sri198-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.simple-phone-input-sri198-container:focus,
|
|
6
|
+
.simple-phone-input-sri198-container:focus-visible,
|
|
7
|
+
.simple-phone-input-sri198-container:focus-within {
|
|
8
|
+
outline: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.simple-phone-input-sri198-main {
|
|
12
|
+
display: flex;
|
|
13
|
+
border: 1px solid rgba(0, 0, 0, 0.315);
|
|
14
|
+
user-select: none;
|
|
15
|
+
border-radius: 3px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.simple-phone-input-sri198-dropdown-container {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background: rgba(0, 0, 0, 0.144);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.simple-phone-input-sri198-dropdown-container img {
|
|
26
|
+
margin-right: 6px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.simple-phone-input-sri198-dropdown {
|
|
30
|
+
background: white;
|
|
31
|
+
list-style: none;
|
|
32
|
+
padding: 0;
|
|
33
|
+
margin: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 100%;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
height: 250px;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
box-shadow: 0 0 20px rgb(180, 180, 180);
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.simple-phone-input-sri198-dropdown.active {
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.simple-phone-input-sri198-dropdown li {
|
|
49
|
+
margin: 3px 0;
|
|
50
|
+
padding: 3px 8px;
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.simple-phone-input-sri198-dropdown li.active {
|
|
55
|
+
background: rgba(0, 0, 0, 0.116);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.simple-phone-input-sri198-dropdown li:hover {
|
|
59
|
+
background: rgba(0, 0, 0, 0.116);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.simple-phone-input-sri198-dropdown li img {
|
|
63
|
+
margin-right: 6px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.simple-phone-input-sri198-dropdown-container-button {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex: 1;
|
|
69
|
+
width: 92px;
|
|
70
|
+
padding: 5px 2px 5px 7px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.simple-phone-input-sri198-dropdown-container-button.dial {
|
|
74
|
+
width: unset;
|
|
75
|
+
padding: 8px 3px 8px 8px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.simple-phone-input-sri198-dropdown-text {
|
|
79
|
+
font-size: 15px;
|
|
80
|
+
flex: 1;
|
|
81
|
+
margin-top: 3px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.simple-phone-input-sri198-dropdown-country-code {
|
|
85
|
+
opacity: 0.6;
|
|
86
|
+
margin-top: 3px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.simple-phone-input-sri198-dropdown-icon {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.simple-phone-input-sri198-dropdown-icon svg {
|
|
96
|
+
transition: 0.3s ease;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.simple-phone-input-sri198-dropdown-icon.active svg {
|
|
100
|
+
transform: rotate(-180deg)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.simple-phone-input-sri198-selected-code {
|
|
104
|
+
flex: 1;
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
margin-top: 3px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.simple-phone-input-sri198-input {
|
|
110
|
+
width: 100%;
|
|
111
|
+
border: none;
|
|
112
|
+
padding: 0 10px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.simple-phone-input-sri198-input:focus {
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.simple-phone-input-sri198-search-container {
|
|
120
|
+
padding: 5px;
|
|
121
|
+
position: relative;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.simple-phone-input-sri198-search-container input {
|
|
125
|
+
border: 1px solid rgba(0, 0, 0, 0.116);
|
|
126
|
+
padding: 8px 10px;
|
|
127
|
+
width: 100%;
|
|
128
|
+
font-size: 15px;
|
|
129
|
+
border-radius: 2px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.simple-phone-input-sri198-search-icon {
|
|
133
|
+
position: absolute;
|
|
134
|
+
right: 10px;
|
|
135
|
+
top: 50%;
|
|
136
|
+
transform: translateY(-50%);
|
|
137
|
+
display: flex;
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.simple-phone-input-sri198-search-icon svg {
|
|
142
|
+
font-size: 20px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.simple-phone-input-sri198-not-found {
|
|
146
|
+
text-align: center;
|
|
147
|
+
margin-top: 10px;
|
|
148
|
+
font-size: 15px;
|
|
149
|
+
color: #f73131;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.simple-phone-input-sri198-search-container input:focus {
|
|
153
|
+
outline: none;
|
|
154
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-simple-phone-input",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "A simple react phone input component with calling code dropdown🤷",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
40
40
|
"@rollup/plugin-typescript": "^10.0.1",
|
|
41
41
|
"@types/react": "^18.0.26",
|
|
42
|
+
"postcss": "^8.4.20",
|
|
42
43
|
"react": "^18.2.0",
|
|
43
44
|
"react-dom": "^18.2.0",
|
|
44
|
-
"rollup": "^3.7.5",
|
|
45
45
|
"rollup-plugin-dts": "^5.0.0",
|
|
46
46
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
47
47
|
"rollup-plugin-postcss": "^4.0.2",
|