react-simple-phone-input 5.2.5 → 5.2.7
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 +6 -14
- package/dist/index.css +580 -0
- package/dist/{esm/types/components/PhoneInput/PhoneInput.d.ts → index.d.mts} +7 -5
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4596 -0
- package/dist/index.mjs +4562 -0
- package/package.json +27 -26
- package/dist/cjs/index.css +0 -162
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/Data/country-data.d.ts +0 -5
- package/dist/cjs/types/Helpers/country-helper.d.ts +0 -20
- package/dist/cjs/types/Helpers/hook.d.ts +0 -2
- package/dist/cjs/types/components/PhoneInput/PhoneInput.d.ts +0 -50
- package/dist/cjs/types/components/PhoneInput/index.d.ts +0 -1
- package/dist/cjs/types/components/index.d.ts +0 -1
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/index.css +0 -162
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/Data/country-data.d.ts +0 -5
- package/dist/esm/types/Helpers/country-helper.d.ts +0 -20
- package/dist/esm/types/Helpers/hook.d.ts +0 -2
- package/dist/esm/types/components/PhoneInput/index.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +0 -1
- package/dist/esm/types/index.d.ts +0 -1
- /package/{LICENSE.md → LICENSE} +0 -0
package/README.md
CHANGED
|
@@ -9,11 +9,7 @@ React Simple Phone Input
|
|
|
9
9
|
|
|
10
10
|
A simple and customizable react phone number dropdown component. It can mix up with your designed theme and give a fluent vibe able dropdown area in your next project.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
[](https://www.npmjs.com/package/react-simple-phone-input)
|
|
14
|
-
[](https://github.com/siamahnaf198/react-simple-phone-input)
|
|
15
|
-
[](https://github.com/siamahnaf198/react-simple-phone-input/blob/main/LICENSE)
|
|
16
|
-
|
|
12
|
+
## Features
|
|
17
13
|
- SSR Friendly
|
|
18
14
|
- Customizable
|
|
19
15
|
- Multi Design
|
|
@@ -24,14 +20,14 @@ A simple and customizable react phone number dropdown component. It can mix up w
|
|
|
24
20
|
## Installation
|
|
25
21
|
|
|
26
22
|
```shell-script
|
|
27
|
-
$
|
|
23
|
+
$ pnpm i react-simple-phone-input
|
|
28
24
|
```
|
|
29
25
|
|
|
30
26
|
## Usage
|
|
31
27
|
|
|
32
28
|
```jsx
|
|
33
29
|
import { PhoneInput, PhoneInputResponseType } from "react-simple-phone-input";
|
|
34
|
-
import "react-simple-phone-input/dist/
|
|
30
|
+
import "react-simple-phone-input/dist/index.css";
|
|
35
31
|
|
|
36
32
|
<PhoneInput
|
|
37
33
|
country="US"
|
|
@@ -39,7 +35,7 @@ import "react-simple-phone-input/dist/style.css";
|
|
|
39
35
|
onChange={(data: PhoneInputResponseType) => console.log(data)}
|
|
40
36
|
/>
|
|
41
37
|
```
|
|
42
|
-
#### [See Demo](https://react-
|
|
38
|
+
#### [See Demo](https://react-phone-input.siamahnaf.com/)
|
|
43
39
|
|
|
44
40
|
## Options
|
|
45
41
|
<table width="100%">
|
|
@@ -161,7 +157,7 @@ import "react-simple-phone-input/dist/style.css";
|
|
|
161
157
|
<tr>
|
|
162
158
|
<td> dialCodeInputField </td>
|
|
163
159
|
<td> false </td>
|
|
164
|
-
<td> Show calling code into into field or show beside country flag. For more, see <a href="https://react-
|
|
160
|
+
<td> Show calling code into into field or show beside country flag. For more, see <a href="https://react-phone-input.siamahnaf.com/">example</a> </td>
|
|
165
161
|
</tr>
|
|
166
162
|
<tr>
|
|
167
163
|
<td> search </td>
|
|
@@ -307,11 +303,7 @@ import "react-simple-phone-input/dist/style.css";
|
|
|
307
303
|
</tr>
|
|
308
304
|
</table>
|
|
309
305
|
|
|
310
|
-
`note:` version
|
|
311
|
-
|
|
312
|
-
## Contributing
|
|
313
|
-
- Code style changes not allowed
|
|
314
|
-
- Do not create issues about incorrect or missing country data
|
|
306
|
+
`note:` version 6 released. see the [changelogs](https://github.com/siamahnaf198/react-simple-phone-input/releases/tag/v6.0.0)
|
|
315
307
|
|
|
316
308
|
## Issues or correction
|
|
317
309
|
If you face any issues, missing data or wrong data about country, you are welcome to create an issue.
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
/* src/global.css */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root,
|
|
6
|
+
:host {
|
|
7
|
+
--font-sans:
|
|
8
|
+
ui-sans-serif,
|
|
9
|
+
system-ui,
|
|
10
|
+
sans-serif,
|
|
11
|
+
"Apple Color Emoji",
|
|
12
|
+
"Segoe UI Emoji",
|
|
13
|
+
"Segoe UI Symbol",
|
|
14
|
+
"Noto Color Emoji";
|
|
15
|
+
--font-mono:
|
|
16
|
+
ui-monospace,
|
|
17
|
+
SFMono-Regular,
|
|
18
|
+
Menlo,
|
|
19
|
+
Monaco,
|
|
20
|
+
Consolas,
|
|
21
|
+
"Liberation Mono",
|
|
22
|
+
"Courier New",
|
|
23
|
+
monospace;
|
|
24
|
+
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
25
|
+
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
26
|
+
--color-gray-500: oklch(55.1% 0.027 264.364);
|
|
27
|
+
--color-white: #fff;
|
|
28
|
+
--spacing: 0.25rem;
|
|
29
|
+
--text-sm: 0.875rem;
|
|
30
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
31
|
+
--radius-lg: 0.5rem;
|
|
32
|
+
--radius-xl: 0.75rem;
|
|
33
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
--default-transition-duration: 150ms;
|
|
35
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
36
|
+
--default-font-family: var(--font-sans);
|
|
37
|
+
--default-mono-font-family: var(--font-mono);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
@layer base {
|
|
41
|
+
*,
|
|
42
|
+
::after,
|
|
43
|
+
::before,
|
|
44
|
+
::backdrop,
|
|
45
|
+
::file-selector-button {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0 solid;
|
|
50
|
+
}
|
|
51
|
+
html,
|
|
52
|
+
:host {
|
|
53
|
+
line-height: 1.5;
|
|
54
|
+
-webkit-text-size-adjust: 100%;
|
|
55
|
+
tab-size: 4;
|
|
56
|
+
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
57
|
+
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
58
|
+
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
59
|
+
-webkit-tap-highlight-color: transparent;
|
|
60
|
+
}
|
|
61
|
+
hr {
|
|
62
|
+
height: 0;
|
|
63
|
+
color: inherit;
|
|
64
|
+
border-top-width: 1px;
|
|
65
|
+
}
|
|
66
|
+
abbr:where([title]) {
|
|
67
|
+
-webkit-text-decoration: underline dotted;
|
|
68
|
+
text-decoration: underline dotted;
|
|
69
|
+
}
|
|
70
|
+
h1,
|
|
71
|
+
h2,
|
|
72
|
+
h3,
|
|
73
|
+
h4,
|
|
74
|
+
h5,
|
|
75
|
+
h6 {
|
|
76
|
+
font-size: inherit;
|
|
77
|
+
font-weight: inherit;
|
|
78
|
+
}
|
|
79
|
+
a {
|
|
80
|
+
color: inherit;
|
|
81
|
+
-webkit-text-decoration: inherit;
|
|
82
|
+
text-decoration: inherit;
|
|
83
|
+
}
|
|
84
|
+
b,
|
|
85
|
+
strong {
|
|
86
|
+
font-weight: bolder;
|
|
87
|
+
}
|
|
88
|
+
code,
|
|
89
|
+
kbd,
|
|
90
|
+
samp,
|
|
91
|
+
pre {
|
|
92
|
+
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
93
|
+
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
94
|
+
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
95
|
+
font-size: 1em;
|
|
96
|
+
}
|
|
97
|
+
small {
|
|
98
|
+
font-size: 80%;
|
|
99
|
+
}
|
|
100
|
+
sub,
|
|
101
|
+
sup {
|
|
102
|
+
font-size: 75%;
|
|
103
|
+
line-height: 0;
|
|
104
|
+
position: relative;
|
|
105
|
+
vertical-align: baseline;
|
|
106
|
+
}
|
|
107
|
+
sub {
|
|
108
|
+
bottom: -0.25em;
|
|
109
|
+
}
|
|
110
|
+
sup {
|
|
111
|
+
top: -0.5em;
|
|
112
|
+
}
|
|
113
|
+
table {
|
|
114
|
+
text-indent: 0;
|
|
115
|
+
border-color: inherit;
|
|
116
|
+
border-collapse: collapse;
|
|
117
|
+
}
|
|
118
|
+
:-moz-focusring {
|
|
119
|
+
outline: auto;
|
|
120
|
+
}
|
|
121
|
+
progress {
|
|
122
|
+
vertical-align: baseline;
|
|
123
|
+
}
|
|
124
|
+
summary {
|
|
125
|
+
display: list-item;
|
|
126
|
+
}
|
|
127
|
+
ol,
|
|
128
|
+
ul,
|
|
129
|
+
menu {
|
|
130
|
+
list-style: none;
|
|
131
|
+
}
|
|
132
|
+
img,
|
|
133
|
+
svg,
|
|
134
|
+
video,
|
|
135
|
+
canvas,
|
|
136
|
+
audio,
|
|
137
|
+
iframe,
|
|
138
|
+
embed,
|
|
139
|
+
object {
|
|
140
|
+
display: block;
|
|
141
|
+
vertical-align: middle;
|
|
142
|
+
}
|
|
143
|
+
img,
|
|
144
|
+
video {
|
|
145
|
+
max-width: 100%;
|
|
146
|
+
height: auto;
|
|
147
|
+
}
|
|
148
|
+
button,
|
|
149
|
+
input,
|
|
150
|
+
select,
|
|
151
|
+
optgroup,
|
|
152
|
+
textarea,
|
|
153
|
+
::file-selector-button {
|
|
154
|
+
font: inherit;
|
|
155
|
+
font-feature-settings: inherit;
|
|
156
|
+
font-variation-settings: inherit;
|
|
157
|
+
letter-spacing: inherit;
|
|
158
|
+
color: inherit;
|
|
159
|
+
border-radius: 0;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
opacity: 1;
|
|
162
|
+
}
|
|
163
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
164
|
+
font-weight: bolder;
|
|
165
|
+
}
|
|
166
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
167
|
+
padding-inline-start: 20px;
|
|
168
|
+
}
|
|
169
|
+
::file-selector-button {
|
|
170
|
+
margin-inline-end: 4px;
|
|
171
|
+
}
|
|
172
|
+
::placeholder {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
}
|
|
175
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
176
|
+
::placeholder {
|
|
177
|
+
color: currentcolor;
|
|
178
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
179
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
textarea {
|
|
184
|
+
resize: vertical;
|
|
185
|
+
}
|
|
186
|
+
::-webkit-search-decoration {
|
|
187
|
+
-webkit-appearance: none;
|
|
188
|
+
}
|
|
189
|
+
::-webkit-date-and-time-value {
|
|
190
|
+
min-height: 1lh;
|
|
191
|
+
text-align: inherit;
|
|
192
|
+
}
|
|
193
|
+
::-webkit-datetime-edit {
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
}
|
|
196
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
197
|
+
padding: 0;
|
|
198
|
+
}
|
|
199
|
+
::-webkit-datetime-edit,
|
|
200
|
+
::-webkit-datetime-edit-year-field,
|
|
201
|
+
::-webkit-datetime-edit-month-field,
|
|
202
|
+
::-webkit-datetime-edit-day-field,
|
|
203
|
+
::-webkit-datetime-edit-hour-field,
|
|
204
|
+
::-webkit-datetime-edit-minute-field,
|
|
205
|
+
::-webkit-datetime-edit-second-field,
|
|
206
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
207
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
208
|
+
padding-block: 0;
|
|
209
|
+
}
|
|
210
|
+
::-webkit-calendar-picker-indicator {
|
|
211
|
+
line-height: 1;
|
|
212
|
+
}
|
|
213
|
+
:-moz-ui-invalid {
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
button,
|
|
217
|
+
input:where([type=button], [type=reset], [type=submit]),
|
|
218
|
+
::file-selector-button {
|
|
219
|
+
appearance: button;
|
|
220
|
+
}
|
|
221
|
+
::-webkit-inner-spin-button,
|
|
222
|
+
::-webkit-outer-spin-button {
|
|
223
|
+
height: auto;
|
|
224
|
+
}
|
|
225
|
+
[hidden]:where(:not([hidden=until-found])) {
|
|
226
|
+
display: none !important;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
@layer utilities {
|
|
230
|
+
.pointer-events-none {
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
.invisible {
|
|
234
|
+
visibility: hidden;
|
|
235
|
+
}
|
|
236
|
+
.visible {
|
|
237
|
+
visibility: visible;
|
|
238
|
+
}
|
|
239
|
+
.absolute {
|
|
240
|
+
position: absolute;
|
|
241
|
+
}
|
|
242
|
+
.relative {
|
|
243
|
+
position: relative;
|
|
244
|
+
}
|
|
245
|
+
.top-1\/2 {
|
|
246
|
+
top: calc(1/2 * 100%);
|
|
247
|
+
}
|
|
248
|
+
.top-full {
|
|
249
|
+
top: 100%;
|
|
250
|
+
}
|
|
251
|
+
.right-0 {
|
|
252
|
+
right: calc(var(--spacing) * 0);
|
|
253
|
+
}
|
|
254
|
+
.right-2\.5 {
|
|
255
|
+
right: calc(var(--spacing) * 2.5);
|
|
256
|
+
}
|
|
257
|
+
.left-0 {
|
|
258
|
+
left: calc(var(--spacing) * 0);
|
|
259
|
+
}
|
|
260
|
+
.z-99 {
|
|
261
|
+
z-index: 99;
|
|
262
|
+
}
|
|
263
|
+
.container {
|
|
264
|
+
width: 100%;
|
|
265
|
+
@media (width >= 40rem) {
|
|
266
|
+
max-width: 40rem;
|
|
267
|
+
}
|
|
268
|
+
@media (width >= 48rem) {
|
|
269
|
+
max-width: 48rem;
|
|
270
|
+
}
|
|
271
|
+
@media (width >= 64rem) {
|
|
272
|
+
max-width: 64rem;
|
|
273
|
+
}
|
|
274
|
+
@media (width >= 80rem) {
|
|
275
|
+
max-width: 80rem;
|
|
276
|
+
}
|
|
277
|
+
@media (width >= 96rem) {
|
|
278
|
+
max-width: 96rem;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
.m-0 {
|
|
282
|
+
margin: calc(var(--spacing) * 0);
|
|
283
|
+
}
|
|
284
|
+
.m-2\.5 {
|
|
285
|
+
margin: calc(var(--spacing) * 2.5);
|
|
286
|
+
}
|
|
287
|
+
.mt-0\.5 {
|
|
288
|
+
margin-top: calc(var(--spacing) * 0.5);
|
|
289
|
+
}
|
|
290
|
+
.mt-1\.5 {
|
|
291
|
+
margin-top: calc(var(--spacing) * 1.5);
|
|
292
|
+
}
|
|
293
|
+
.mt-4 {
|
|
294
|
+
margin-top: calc(var(--spacing) * 4);
|
|
295
|
+
}
|
|
296
|
+
.mr-1\.5 {
|
|
297
|
+
margin-right: calc(var(--spacing) * 1.5);
|
|
298
|
+
}
|
|
299
|
+
.flex {
|
|
300
|
+
display: flex;
|
|
301
|
+
}
|
|
302
|
+
.h-75 {
|
|
303
|
+
height: calc(var(--spacing) * 75);
|
|
304
|
+
}
|
|
305
|
+
.h-auto {
|
|
306
|
+
height: auto;
|
|
307
|
+
}
|
|
308
|
+
.w-5 {
|
|
309
|
+
width: calc(var(--spacing) * 5);
|
|
310
|
+
}
|
|
311
|
+
.w-24 {
|
|
312
|
+
width: calc(var(--spacing) * 24);
|
|
313
|
+
}
|
|
314
|
+
.w-auto {
|
|
315
|
+
width: auto;
|
|
316
|
+
}
|
|
317
|
+
.w-full {
|
|
318
|
+
width: 100%;
|
|
319
|
+
}
|
|
320
|
+
.flex-1 {
|
|
321
|
+
flex: 1;
|
|
322
|
+
}
|
|
323
|
+
.-translate-y-1\.25 {
|
|
324
|
+
--tw-translate-y: calc(var(--spacing) * -1.25);
|
|
325
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
326
|
+
}
|
|
327
|
+
.-translate-y-1\/2 {
|
|
328
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
329
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
330
|
+
}
|
|
331
|
+
.translate-y-0 {
|
|
332
|
+
--tw-translate-y: calc(var(--spacing) * 0);
|
|
333
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
334
|
+
}
|
|
335
|
+
.-rotate-180 {
|
|
336
|
+
rotate: calc(180deg * -1);
|
|
337
|
+
}
|
|
338
|
+
.cursor-pointer {
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
}
|
|
341
|
+
.list-none {
|
|
342
|
+
list-style-type: none;
|
|
343
|
+
}
|
|
344
|
+
.items-center {
|
|
345
|
+
align-items: center;
|
|
346
|
+
}
|
|
347
|
+
.justify-center {
|
|
348
|
+
justify-content: center;
|
|
349
|
+
}
|
|
350
|
+
.gap-x-2 {
|
|
351
|
+
column-gap: calc(var(--spacing) * 2);
|
|
352
|
+
}
|
|
353
|
+
.overflow-auto {
|
|
354
|
+
overflow: auto;
|
|
355
|
+
}
|
|
356
|
+
.rounded-lg {
|
|
357
|
+
border-radius: var(--radius-lg);
|
|
358
|
+
}
|
|
359
|
+
.rounded-xl {
|
|
360
|
+
border-radius: var(--radius-xl);
|
|
361
|
+
}
|
|
362
|
+
.border {
|
|
363
|
+
border-style: var(--tw-border-style);
|
|
364
|
+
border-width: 1px;
|
|
365
|
+
}
|
|
366
|
+
.border-r {
|
|
367
|
+
border-right-style: var(--tw-border-style);
|
|
368
|
+
border-right-width: 1px;
|
|
369
|
+
}
|
|
370
|
+
.border-solid {
|
|
371
|
+
--tw-border-style: solid;
|
|
372
|
+
border-style: solid;
|
|
373
|
+
}
|
|
374
|
+
.border-\[\#0000001e\] {
|
|
375
|
+
border-color: #0000001e;
|
|
376
|
+
}
|
|
377
|
+
.border-gray-200 {
|
|
378
|
+
border-color: var(--color-gray-200);
|
|
379
|
+
}
|
|
380
|
+
.bg-gray-100\/60 {
|
|
381
|
+
background-color: color-mix(in srgb, oklch(96.7% 0.003 264.542) 60%, transparent);
|
|
382
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
383
|
+
background-color: color-mix(in oklab, var(--color-gray-100) 60%, transparent);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
.bg-gray-200\/70 {
|
|
387
|
+
background-color: color-mix(in srgb, oklch(92.8% 0.006 264.531) 70%, transparent);
|
|
388
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
389
|
+
background-color: color-mix(in oklab, var(--color-gray-200) 70%, transparent);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
.bg-white {
|
|
393
|
+
background-color: var(--color-white);
|
|
394
|
+
}
|
|
395
|
+
.p-0 {
|
|
396
|
+
padding: calc(var(--spacing) * 0);
|
|
397
|
+
}
|
|
398
|
+
.px-2\.5 {
|
|
399
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
400
|
+
}
|
|
401
|
+
.px-3 {
|
|
402
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
403
|
+
}
|
|
404
|
+
.py-1\.75 {
|
|
405
|
+
padding-block: calc(var(--spacing) * 1.75);
|
|
406
|
+
}
|
|
407
|
+
.py-2 {
|
|
408
|
+
padding-block: calc(var(--spacing) * 2);
|
|
409
|
+
}
|
|
410
|
+
.py-2\.5 {
|
|
411
|
+
padding-block: calc(var(--spacing) * 2.5);
|
|
412
|
+
}
|
|
413
|
+
.pr-4 {
|
|
414
|
+
padding-right: calc(var(--spacing) * 4);
|
|
415
|
+
}
|
|
416
|
+
.pr-px {
|
|
417
|
+
padding-right: 1px;
|
|
418
|
+
}
|
|
419
|
+
.pl-2\.5 {
|
|
420
|
+
padding-left: calc(var(--spacing) * 2.5);
|
|
421
|
+
}
|
|
422
|
+
.text-center {
|
|
423
|
+
text-align: center;
|
|
424
|
+
}
|
|
425
|
+
.text-sm {
|
|
426
|
+
font-size: var(--text-sm);
|
|
427
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
428
|
+
}
|
|
429
|
+
.text-\[15px\] {
|
|
430
|
+
font-size: 15px;
|
|
431
|
+
}
|
|
432
|
+
.font-\[15px\] {
|
|
433
|
+
--tw-font-weight: 15px;
|
|
434
|
+
font-weight: 15px;
|
|
435
|
+
}
|
|
436
|
+
.text-\[\#f73131\] {
|
|
437
|
+
color: #f73131;
|
|
438
|
+
}
|
|
439
|
+
.text-gray-500 {
|
|
440
|
+
color: var(--color-gray-500);
|
|
441
|
+
}
|
|
442
|
+
.opacity-0 {
|
|
443
|
+
opacity: 0%;
|
|
444
|
+
}
|
|
445
|
+
.opacity-100 {
|
|
446
|
+
opacity: 100%;
|
|
447
|
+
}
|
|
448
|
+
.shadow-\[0_1px_2px_rgba\(0\,0\,0\,0\.06\)\,0_10px_25px_rgba\(0\,0\,0\,0\.08\)\] {
|
|
449
|
+
--tw-shadow: 0 1px 2px var(--tw-shadow-color, rgba(0,0,0,0.06)), 0 10px 25px var(--tw-shadow-color, rgba(0,0,0,0.08));
|
|
450
|
+
box-shadow:
|
|
451
|
+
var(--tw-inset-shadow),
|
|
452
|
+
var(--tw-inset-ring-shadow),
|
|
453
|
+
var(--tw-ring-offset-shadow),
|
|
454
|
+
var(--tw-ring-shadow),
|
|
455
|
+
var(--tw-shadow);
|
|
456
|
+
}
|
|
457
|
+
.filter {
|
|
458
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
459
|
+
}
|
|
460
|
+
.transition-all {
|
|
461
|
+
transition-property: all;
|
|
462
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
463
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
464
|
+
}
|
|
465
|
+
.duration-300 {
|
|
466
|
+
--tw-duration: 300ms;
|
|
467
|
+
transition-duration: 300ms;
|
|
468
|
+
}
|
|
469
|
+
.ease-in-out {
|
|
470
|
+
--tw-ease: var(--ease-in-out);
|
|
471
|
+
transition-timing-function: var(--ease-in-out);
|
|
472
|
+
}
|
|
473
|
+
.select-none {
|
|
474
|
+
-webkit-user-select: none;
|
|
475
|
+
user-select: none;
|
|
476
|
+
}
|
|
477
|
+
.focus-within\:outline-none {
|
|
478
|
+
&:focus-within {
|
|
479
|
+
--tw-outline-style: none;
|
|
480
|
+
outline-style: none;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
.hover\:bg-gray-100 {
|
|
484
|
+
&:hover {
|
|
485
|
+
@media (hover: hover) {
|
|
486
|
+
background-color: var(--color-gray-100);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
.focus\:outline-none {
|
|
491
|
+
&:focus {
|
|
492
|
+
--tw-outline-style: none;
|
|
493
|
+
outline-style: none;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
.focus-visible\:outline-none {
|
|
497
|
+
&:focus-visible {
|
|
498
|
+
--tw-outline-style: none;
|
|
499
|
+
outline-style: none;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
504
|
+
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
505
|
+
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
|
|
506
|
+
@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
507
|
+
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
508
|
+
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
509
|
+
@property --tw-shadow-color { syntax: "*"; inherits: false; }
|
|
510
|
+
@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
511
|
+
@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
512
|
+
@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
|
|
513
|
+
@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
514
|
+
@property --tw-ring-color { syntax: "*"; inherits: false; }
|
|
515
|
+
@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
516
|
+
@property --tw-inset-ring-color { syntax: "*"; inherits: false; }
|
|
517
|
+
@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
518
|
+
@property --tw-ring-inset { syntax: "*"; inherits: false; }
|
|
519
|
+
@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
520
|
+
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
|
|
521
|
+
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
522
|
+
@property --tw-blur { syntax: "*"; inherits: false; }
|
|
523
|
+
@property --tw-brightness { syntax: "*"; inherits: false; }
|
|
524
|
+
@property --tw-contrast { syntax: "*"; inherits: false; }
|
|
525
|
+
@property --tw-grayscale { syntax: "*"; inherits: false; }
|
|
526
|
+
@property --tw-hue-rotate { syntax: "*"; inherits: false; }
|
|
527
|
+
@property --tw-invert { syntax: "*"; inherits: false; }
|
|
528
|
+
@property --tw-opacity { syntax: "*"; inherits: false; }
|
|
529
|
+
@property --tw-saturate { syntax: "*"; inherits: false; }
|
|
530
|
+
@property --tw-sepia { syntax: "*"; inherits: false; }
|
|
531
|
+
@property --tw-drop-shadow { syntax: "*"; inherits: false; }
|
|
532
|
+
@property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
|
|
533
|
+
@property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
534
|
+
@property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
|
|
535
|
+
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
536
|
+
@property --tw-ease { syntax: "*"; inherits: false; }
|
|
537
|
+
@layer properties {
|
|
538
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
539
|
+
*,
|
|
540
|
+
::before,
|
|
541
|
+
::after,
|
|
542
|
+
::backdrop {
|
|
543
|
+
--tw-translate-x: 0;
|
|
544
|
+
--tw-translate-y: 0;
|
|
545
|
+
--tw-translate-z: 0;
|
|
546
|
+
--tw-border-style: solid;
|
|
547
|
+
--tw-font-weight: initial;
|
|
548
|
+
--tw-shadow: 0 0 #0000;
|
|
549
|
+
--tw-shadow-color: initial;
|
|
550
|
+
--tw-shadow-alpha: 100%;
|
|
551
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
552
|
+
--tw-inset-shadow-color: initial;
|
|
553
|
+
--tw-inset-shadow-alpha: 100%;
|
|
554
|
+
--tw-ring-color: initial;
|
|
555
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
556
|
+
--tw-inset-ring-color: initial;
|
|
557
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
558
|
+
--tw-ring-inset: initial;
|
|
559
|
+
--tw-ring-offset-width: 0px;
|
|
560
|
+
--tw-ring-offset-color: #fff;
|
|
561
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
562
|
+
--tw-blur: initial;
|
|
563
|
+
--tw-brightness: initial;
|
|
564
|
+
--tw-contrast: initial;
|
|
565
|
+
--tw-grayscale: initial;
|
|
566
|
+
--tw-hue-rotate: initial;
|
|
567
|
+
--tw-invert: initial;
|
|
568
|
+
--tw-opacity: initial;
|
|
569
|
+
--tw-saturate: initial;
|
|
570
|
+
--tw-sepia: initial;
|
|
571
|
+
--tw-drop-shadow: initial;
|
|
572
|
+
--tw-drop-shadow-color: initial;
|
|
573
|
+
--tw-drop-shadow-alpha: 100%;
|
|
574
|
+
--tw-drop-shadow-size: initial;
|
|
575
|
+
--tw-duration: initial;
|
|
576
|
+
--tw-ease: initial;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface PhoneInputResponseType {
|
|
4
5
|
country: string;
|
|
5
6
|
code: string;
|
|
6
7
|
dialCode: string;
|
|
@@ -46,5 +47,6 @@ interface Props {
|
|
|
46
47
|
searchIconStyle?: React.CSSProperties;
|
|
47
48
|
inputStyle?: React.CSSProperties;
|
|
48
49
|
}
|
|
49
|
-
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, disableDropdownOnly, disableInput, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound, containerClass, buttonClass, dropdownClass, dropdownListClass, dropdownIconClass, searchContainerClass, searchInputClass, searchIconClass, inputClass, containerStyle, buttonStyle, dropdownStyle, dropdownListStyle, dropdownIconStyle, searchContainerStyle, searchInputStyle, searchIconStyle, inputStyle }: Props) => JSX.Element;
|
|
50
|
-
|
|
50
|
+
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, disableDropdownOnly, disableInput, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound, containerClass, buttonClass, dropdownClass, dropdownListClass, dropdownIconClass, searchContainerClass, searchInputClass, searchIconClass, inputClass, containerStyle, buttonStyle, dropdownStyle, dropdownListStyle, dropdownIconStyle, searchContainerStyle, searchInputStyle, searchIconStyle, inputStyle }: Props) => react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
export { PhoneInput, type PhoneInputResponseType };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
|
|
3
4
|
interface PhoneInputResponseType {
|
|
@@ -46,6 +47,6 @@ interface Props {
|
|
|
46
47
|
searchIconStyle?: React.CSSProperties;
|
|
47
48
|
inputStyle?: React.CSSProperties;
|
|
48
49
|
}
|
|
49
|
-
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, disableDropdownOnly, disableInput, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound, containerClass, buttonClass, dropdownClass, dropdownListClass, dropdownIconClass, searchContainerClass, searchInputClass, searchIconClass, inputClass, containerStyle, buttonStyle, dropdownStyle, dropdownListStyle, dropdownIconStyle, searchContainerStyle, searchInputStyle, searchIconStyle, inputStyle }: Props) => JSX.Element;
|
|
50
|
+
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, disableDropdownOnly, disableInput, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound, containerClass, buttonClass, dropdownClass, dropdownListClass, dropdownIconClass, searchContainerClass, searchInputClass, searchIconClass, inputClass, containerStyle, buttonStyle, dropdownStyle, dropdownListStyle, dropdownIconStyle, searchContainerStyle, searchInputStyle, searchIconStyle, inputStyle }: Props) => react_jsx_runtime.JSX.Element;
|
|
50
51
|
|
|
51
|
-
export { PhoneInput };
|
|
52
|
+
export { PhoneInput, type PhoneInputResponseType };
|