react-native-transformer-text-input 0.1.0 → 0.3.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.
@@ -11,6 +11,7 @@ export type CountryPhoneData = {
11
11
  code: string;
12
12
  callingCode: string;
13
13
  formats: PhoneFormat[];
14
+ nationalPrefix?: string;
14
15
  name: string;
15
16
  flag: string;
16
17
  };
@@ -67,6 +68,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
67
68
  leadingDigits: '5',
68
69
  },
69
70
  ],
71
+ nationalPrefix: '0',
70
72
  name: 'United Arab Emirates',
71
73
  flag: '🇦🇪',
72
74
  },
@@ -80,6 +82,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
80
82
  leadingDigits: '[2-7]',
81
83
  },
82
84
  ],
85
+ nationalPrefix: '0',
83
86
  name: 'Afghanistan',
84
87
  flag: '🇦🇫',
85
88
  },
@@ -141,6 +144,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
141
144
  leadingDigits: '6',
142
145
  },
143
146
  ],
147
+ nationalPrefix: '0',
144
148
  name: 'Albania',
145
149
  flag: '🇦🇱',
146
150
  },
@@ -165,6 +169,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
165
169
  leadingDigits: '[3-9]',
166
170
  },
167
171
  ],
172
+ nationalPrefix: '0',
168
173
  name: 'Armenia',
169
174
  flag: '🇦🇲',
170
175
  },
@@ -228,6 +233,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
228
233
  leadingDigits: '9',
229
234
  },
230
235
  ],
236
+ nationalPrefix: '0',
231
237
  name: 'Argentina',
232
238
  flag: '🇦🇷',
233
239
  },
@@ -282,6 +288,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
282
288
  leadingDigits: '5',
283
289
  },
284
290
  ],
291
+ nationalPrefix: '0',
285
292
  name: 'Austria',
286
293
  flag: '🇦🇹',
287
294
  },
@@ -311,6 +318,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
311
318
  leadingDigits: '1(?:30|[89])',
312
319
  },
313
320
  ],
321
+ nationalPrefix: '0',
314
322
  name: 'Australia',
315
323
  flag: '🇦🇺',
316
324
  },
@@ -349,6 +357,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
349
357
  leadingDigits: '(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9',
350
358
  },
351
359
  ],
360
+ nationalPrefix: '0',
352
361
  name: 'Åland Islands',
353
362
  flag: '🇦🇽',
354
363
  },
@@ -372,6 +381,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
372
381
  leadingDigits: '[13-9]',
373
382
  },
374
383
  ],
384
+ nationalPrefix: '0',
375
385
  name: 'Azerbaijan',
376
386
  flag: '🇦🇿',
377
387
  },
@@ -395,6 +405,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
395
405
  leadingDigits: '6',
396
406
  },
397
407
  ],
408
+ nationalPrefix: '0',
398
409
  name: 'Bosnia & Herzegovina',
399
410
  flag: '🇧🇦',
400
411
  },
@@ -434,6 +445,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
434
445
  },
435
446
  { pattern: '(\\d)(\\d{7,8})', template: '$1-$2', leadingDigits: '2' },
436
447
  ],
448
+ nationalPrefix: '0',
437
449
  name: 'Bangladesh',
438
450
  flag: '🇧🇩',
439
451
  },
@@ -462,6 +474,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
462
474
  leadingDigits: '4',
463
475
  },
464
476
  ],
477
+ nationalPrefix: '0',
465
478
  name: 'Belgium',
466
479
  flag: '🇧🇪',
467
480
  },
@@ -523,6 +536,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
523
536
  leadingDigits: '9',
524
537
  },
525
538
  ],
539
+ nationalPrefix: '0',
526
540
  name: 'Bulgaria',
527
541
  flag: '🇧🇬',
528
542
  },
@@ -577,7 +591,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
577
591
  {
578
592
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
579
593
  template: '$1 $2 $3 $4',
580
- leadingDigits: '[5-79]',
594
+ leadingDigits: '[5-79]|80[6-9]',
581
595
  },
582
596
  {
583
597
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
@@ -585,6 +599,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
585
599
  leadingDigits: '8',
586
600
  },
587
601
  ],
602
+ nationalPrefix: '0',
588
603
  name: 'St. Barthélemy',
589
604
  flag: '🇧🇱',
590
605
  },
@@ -622,9 +637,9 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
622
637
  {
623
638
  pattern: '(\\d)(\\d{7})',
624
639
  template: '$1 $2',
625
- leadingDigits: '[235]|4[46]',
640
+ leadingDigits: '[23]|4[46]|50',
626
641
  },
627
- { pattern: '(\\d{8})', template: '$1', leadingDigits: '[67]' },
642
+ { pattern: '(\\d{8})', template: '$1', leadingDigits: '[5-7]' },
628
643
  {
629
644
  pattern: '(\\d{3})(\\d{2})(\\d{4})',
630
645
  template: '$1 $2 $3',
@@ -678,6 +693,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
678
693
  leadingDigits: '[16][1-9]|[2-57-9]',
679
694
  },
680
695
  ],
696
+ nationalPrefix: '0',
681
697
  name: 'Brazil',
682
698
  flag: '🇧🇷',
683
699
  },
@@ -774,6 +790,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
774
790
  leadingDigits: '[89]',
775
791
  },
776
792
  ],
793
+ nationalPrefix: '8',
777
794
  name: 'Belarus',
778
795
  flag: '🇧🇾',
779
796
  },
@@ -835,6 +852,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
835
852
  leadingDigits: '1(?:30|[89])',
836
853
  },
837
854
  ],
855
+ nationalPrefix: '0',
838
856
  name: 'Cocos (Keeling) Islands',
839
857
  flag: '🇨🇨',
840
858
  },
@@ -873,6 +891,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
873
891
  leadingDigits: '5',
874
892
  },
875
893
  ],
894
+ nationalPrefix: '0',
876
895
  name: 'Congo - Kinshasa',
877
896
  flag: '🇨🇩',
878
897
  },
@@ -927,6 +946,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
927
946
  leadingDigits: '8',
928
947
  },
929
948
  ],
949
+ nationalPrefix: '0',
930
950
  name: 'Switzerland',
931
951
  flag: '🇨🇭',
932
952
  },
@@ -1083,6 +1103,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1083
1103
  leadingDigits: '[12]',
1084
1104
  },
1085
1105
  ],
1106
+ nationalPrefix: '0',
1086
1107
  name: 'China',
1087
1108
  flag: '🇨🇳',
1088
1109
  },
@@ -1103,6 +1124,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1103
1124
  leadingDigits: '1',
1104
1125
  },
1105
1126
  ],
1127
+ nationalPrefix: '0',
1106
1128
  name: 'Colombia',
1107
1129
  flag: '🇨🇴',
1108
1130
  },
@@ -1137,6 +1159,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1137
1159
  { pattern: '(\\d)(\\d{7})', template: '$1 $2', leadingDigits: '[56]' },
1138
1160
  { pattern: '(\\d{3})(\\d{7})', template: '$1 $2', leadingDigits: '8' },
1139
1161
  ],
1162
+ nationalPrefix: '0',
1140
1163
  name: 'Cuba',
1141
1164
  flag: '🇨🇺',
1142
1165
  },
@@ -1197,6 +1220,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1197
1220
  leadingDigits: '1(?:30|[89])',
1198
1221
  },
1199
1222
  ],
1223
+ nationalPrefix: '0',
1200
1224
  name: 'Christmas Island',
1201
1225
  flag: '🇨🇽',
1202
1226
  },
@@ -1322,6 +1346,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1322
1346
  leadingDigits: '15',
1323
1347
  },
1324
1348
  ],
1349
+ nationalPrefix: '0',
1325
1350
  name: 'Germany',
1326
1351
  flag: '🇩🇪',
1327
1352
  },
@@ -1399,6 +1424,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1399
1424
  leadingDigits: '[5-8]',
1400
1425
  },
1401
1426
  ],
1427
+ nationalPrefix: '0',
1402
1428
  name: 'Algeria',
1403
1429
  flag: '🇩🇿',
1404
1430
  },
@@ -1422,6 +1448,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1422
1448
  leadingDigits: '1',
1423
1449
  },
1424
1450
  ],
1451
+ nationalPrefix: '0',
1425
1452
  name: 'Ecuador',
1426
1453
  flag: '🇪🇨',
1427
1454
  },
@@ -1471,6 +1498,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1471
1498
  },
1472
1499
  { pattern: '(\\d{2})(\\d{8})', template: '$1 $2', leadingDigits: '1' },
1473
1500
  ],
1501
+ nationalPrefix: '0',
1474
1502
  name: 'Egypt',
1475
1503
  flag: '🇪🇬',
1476
1504
  },
@@ -1490,6 +1518,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1490
1518
  leadingDigits: '[5-8]',
1491
1519
  },
1492
1520
  ],
1521
+ nationalPrefix: '0',
1493
1522
  name: 'Western Sahara',
1494
1523
  flag: '🇪🇭',
1495
1524
  },
@@ -1503,6 +1532,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1503
1532
  leadingDigits: '[178]',
1504
1533
  },
1505
1534
  ],
1535
+ nationalPrefix: '0',
1506
1536
  name: 'Eritrea',
1507
1537
  flag: '🇪🇷',
1508
1538
  },
@@ -1531,9 +1561,10 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1531
1561
  {
1532
1562
  pattern: '(\\d{2})(\\d{3})(\\d{4})',
1533
1563
  template: '$1 $2 $3',
1534
- leadingDigits: '[1-579]',
1564
+ leadingDigits: '[1-57-9]',
1535
1565
  },
1536
1566
  ],
1567
+ nationalPrefix: '0',
1537
1568
  name: 'Ethiopia',
1538
1569
  flag: '🇪🇹',
1539
1570
  },
@@ -1559,6 +1590,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1559
1590
  leadingDigits: '(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9',
1560
1591
  },
1561
1592
  ],
1593
+ nationalPrefix: '0',
1562
1594
  name: 'Finland',
1563
1595
  flag: '🇫🇮',
1564
1596
  },
@@ -1622,6 +1654,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1622
1654
  leadingDigits: '[1-79]',
1623
1655
  },
1624
1656
  ],
1657
+ nationalPrefix: '0',
1625
1658
  name: 'France',
1626
1659
  flag: '🇫🇷',
1627
1660
  },
@@ -1685,6 +1718,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1685
1718
  leadingDigits: '[1389]',
1686
1719
  },
1687
1720
  ],
1721
+ nationalPrefix: '0',
1688
1722
  name: 'United Kingdom',
1689
1723
  flag: '🇬🇧',
1690
1724
  },
@@ -1727,6 +1761,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1727
1761
  leadingDigits: '[348]',
1728
1762
  },
1729
1763
  ],
1764
+ nationalPrefix: '0',
1730
1765
  name: 'Georgia',
1731
1766
  flag: '🇬🇪',
1732
1767
  },
@@ -1737,7 +1772,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1737
1772
  {
1738
1773
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
1739
1774
  template: '$1 $2 $3 $4',
1740
- leadingDigits: '[5-7]|9[47]',
1775
+ leadingDigits: '[5-7]|80[6-9]|9[47]',
1741
1776
  },
1742
1777
  {
1743
1778
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
@@ -1745,6 +1780,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1745
1780
  leadingDigits: '[89]',
1746
1781
  },
1747
1782
  ],
1783
+ nationalPrefix: '0',
1748
1784
  name: 'French Guiana',
1749
1785
  flag: '🇬🇫',
1750
1786
  },
@@ -1785,6 +1821,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1785
1821
  leadingDigits: '[1389]',
1786
1822
  },
1787
1823
  ],
1824
+ nationalPrefix: '0',
1788
1825
  name: 'Guernsey',
1789
1826
  flag: '🇬🇬',
1790
1827
  },
@@ -1796,9 +1833,10 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1796
1833
  {
1797
1834
  pattern: '(\\d{2})(\\d{3})(\\d{4})',
1798
1835
  template: '$1 $2 $3',
1799
- leadingDigits: '[235]',
1836
+ leadingDigits: '[2358]',
1800
1837
  },
1801
1838
  ],
1839
+ nationalPrefix: '0',
1802
1840
  name: 'Ghana',
1803
1841
  flag: '🇬🇭',
1804
1842
  },
@@ -1862,7 +1900,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1862
1900
  {
1863
1901
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
1864
1902
  template: '$1 $2 $3 $4',
1865
- leadingDigits: '[5-79]',
1903
+ leadingDigits: '[5-79]|80[6-9]',
1866
1904
  },
1867
1905
  {
1868
1906
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
@@ -1870,6 +1908,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
1870
1908
  leadingDigits: '8',
1871
1909
  },
1872
1910
  ],
1911
+ nationalPrefix: '0',
1873
1912
  name: 'Guadeloupe',
1874
1913
  flag: '🇬🇵',
1875
1914
  },
@@ -2056,6 +2095,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2056
2095
  leadingDigits: '8',
2057
2096
  },
2058
2097
  ],
2098
+ nationalPrefix: '0',
2059
2099
  name: 'Croatia',
2060
2100
  flag: '🇭🇷',
2061
2101
  },
@@ -2092,6 +2132,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2092
2132
  leadingDigits: '[2-9]',
2093
2133
  },
2094
2134
  ],
2135
+ nationalPrefix: '06',
2095
2136
  name: 'Hungary',
2096
2137
  flag: '🇭🇺',
2097
2138
  },
@@ -2141,6 +2182,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2141
2182
  leadingDigits: '8',
2142
2183
  },
2143
2184
  ],
2185
+ nationalPrefix: '0',
2144
2186
  name: 'Indonesia',
2145
2187
  flag: '🇮🇩',
2146
2188
  },
@@ -2199,6 +2241,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2199
2241
  leadingDigits: '8',
2200
2242
  },
2201
2243
  ],
2244
+ nationalPrefix: '0',
2202
2245
  name: 'Ireland',
2203
2246
  flag: '🇮🇪',
2204
2247
  },
@@ -2239,6 +2282,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2239
2282
  leadingDigits: '15',
2240
2283
  },
2241
2284
  ],
2285
+ nationalPrefix: '0',
2242
2286
  name: 'Israel',
2243
2287
  flag: '🇮🇱',
2244
2288
  },
@@ -2279,6 +2323,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2279
2323
  leadingDigits: '[1389]',
2280
2324
  },
2281
2325
  ],
2326
+ nationalPrefix: '0',
2282
2327
  name: 'Isle of Man',
2283
2328
  flag: '🇮🇲',
2284
2329
  },
@@ -2311,13 +2356,13 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2311
2356
  pattern: '(\\d{3})(\\d{3})(\\d{4})',
2312
2357
  template: '$1 $2 $3',
2313
2358
  leadingDigits:
2314
- '1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]',
2359
+ '1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]',
2315
2360
  },
2316
2361
  {
2317
2362
  pattern: '(\\d{4})(\\d{3})(\\d{3})',
2318
2363
  template: '$1 $2 $3',
2319
2364
  leadingDigits:
2320
- '1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]',
2365
+ '1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]',
2321
2366
  },
2322
2367
  {
2323
2368
  pattern: '(\\d{5})(\\d{5})',
@@ -2335,6 +2380,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2335
2380
  leadingDigits: '18',
2336
2381
  },
2337
2382
  ],
2383
+ nationalPrefix: '0',
2338
2384
  name: 'India',
2339
2385
  flag: '🇮🇳',
2340
2386
  },
@@ -2367,6 +2413,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2367
2413
  leadingDigits: '7',
2368
2414
  },
2369
2415
  ],
2416
+ nationalPrefix: '0',
2370
2417
  name: 'Iraq',
2371
2418
  flag: '🇮🇶',
2372
2419
  },
@@ -2392,6 +2439,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2392
2439
  leadingDigits: '[1-8]',
2393
2440
  },
2394
2441
  ],
2442
+ nationalPrefix: '0',
2395
2443
  name: 'Iran',
2396
2444
  flag: '🇮🇷',
2397
2445
  },
@@ -2504,6 +2552,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2504
2552
  leadingDigits: '[1389]',
2505
2553
  },
2506
2554
  ],
2555
+ nationalPrefix: '0',
2507
2556
  name: 'Jersey',
2508
2557
  flag: '🇯🇪',
2509
2558
  },
@@ -2542,6 +2591,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2542
2591
  leadingDigits: '[47]',
2543
2592
  },
2544
2593
  ],
2594
+ nationalPrefix: '0',
2545
2595
  name: 'Jordan',
2546
2596
  flag: '🇯🇴',
2547
2597
  },
@@ -2592,6 +2642,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2592
2642
  leadingDigits: '[25-9]',
2593
2643
  },
2594
2644
  ],
2645
+ nationalPrefix: '0',
2595
2646
  name: 'Japan',
2596
2647
  flag: '🇯🇵',
2597
2648
  },
@@ -2611,6 +2662,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2611
2662
  leadingDigits: '[89]',
2612
2663
  },
2613
2664
  ],
2665
+ nationalPrefix: '0',
2614
2666
  name: 'Kenya',
2615
2667
  flag: '🇰🇪',
2616
2668
  },
@@ -2634,6 +2686,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2634
2686
  leadingDigits: '8',
2635
2687
  },
2636
2688
  ],
2689
+ nationalPrefix: '0',
2637
2690
  name: 'Kyrgyzstan',
2638
2691
  flag: '🇰🇬',
2639
2692
  },
@@ -2652,6 +2705,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2652
2705
  leadingDigits: '1',
2653
2706
  },
2654
2707
  ],
2708
+ nationalPrefix: '0',
2655
2709
  name: 'Cambodia',
2656
2710
  flag: '🇰🇭',
2657
2711
  },
@@ -2709,6 +2763,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2709
2763
  leadingDigits: '1',
2710
2764
  },
2711
2765
  ],
2766
+ nationalPrefix: '0',
2712
2767
  name: 'North Korea',
2713
2768
  flag: '🇰🇵',
2714
2769
  },
@@ -2748,6 +2803,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2748
2803
  leadingDigits: '5',
2749
2804
  },
2750
2805
  ],
2806
+ nationalPrefix: '0',
2751
2807
  name: 'South Korea',
2752
2808
  flag: '🇰🇷',
2753
2809
  },
@@ -2815,6 +2871,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2815
2871
  leadingDigits: '8',
2816
2872
  },
2817
2873
  ],
2874
+ nationalPrefix: '8',
2818
2875
  name: 'Kazakhstan',
2819
2876
  flag: '🇰🇿',
2820
2877
  },
@@ -2838,6 +2895,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2838
2895
  leadingDigits: '[23]',
2839
2896
  },
2840
2897
  ],
2898
+ nationalPrefix: '0',
2841
2899
  name: 'Laos',
2842
2900
  flag: '🇱🇦',
2843
2901
  },
@@ -2856,6 +2914,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2856
2914
  leadingDigits: '[27-9]',
2857
2915
  },
2858
2916
  ],
2917
+ nationalPrefix: '0',
2859
2918
  name: 'Lebanon',
2860
2919
  flag: '🇱🇧',
2861
2920
  },
@@ -2916,6 +2975,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2916
2975
  leadingDigits: '[1-689]',
2917
2976
  },
2918
2977
  ],
2978
+ nationalPrefix: '0',
2919
2979
  name: 'Sri Lanka',
2920
2980
  flag: '🇱🇰',
2921
2981
  },
@@ -2939,6 +2999,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2939
2999
  leadingDigits: '[2-578]',
2940
3000
  },
2941
3001
  ],
3002
+ nationalPrefix: '0',
2942
3003
  name: 'Liberia',
2943
3004
  flag: '🇱🇷',
2944
3005
  },
@@ -2980,6 +3041,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
2980
3041
  leadingDigits: '[3-6]',
2981
3042
  },
2982
3043
  ],
3044
+ nationalPrefix: '0',
2983
3045
  name: 'Lithuania',
2984
3046
  flag: '🇱🇹',
2985
3047
  },
@@ -3061,6 +3123,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3061
3123
  leadingDigits: '[2-9]',
3062
3124
  },
3063
3125
  ],
3126
+ nationalPrefix: '0',
3064
3127
  name: 'Libya',
3065
3128
  flag: '🇱🇾',
3066
3129
  },
@@ -3080,6 +3143,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3080
3143
  leadingDigits: '[5-8]',
3081
3144
  },
3082
3145
  ],
3146
+ nationalPrefix: '0',
3083
3147
  name: 'Morocco',
3084
3148
  flag: '🇲🇦',
3085
3149
  },
@@ -3103,6 +3167,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3103
3167
  leadingDigits: '[67]',
3104
3168
  },
3105
3169
  ],
3170
+ nationalPrefix: '0',
3106
3171
  name: 'Monaco',
3107
3172
  flag: '🇲🇨',
3108
3173
  },
@@ -3122,6 +3187,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3122
3187
  leadingDigits: '[25-7]',
3123
3188
  },
3124
3189
  ],
3190
+ nationalPrefix: '0',
3125
3191
  name: 'Moldova',
3126
3192
  flag: '🇲🇩',
3127
3193
  },
@@ -3135,6 +3201,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3135
3201
  leadingDigits: '[2-9]',
3136
3202
  },
3137
3203
  ],
3204
+ nationalPrefix: '0',
3138
3205
  name: 'Montenegro',
3139
3206
  flag: '🇲🇪',
3140
3207
  },
@@ -3145,7 +3212,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3145
3212
  {
3146
3213
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
3147
3214
  template: '$1 $2 $3 $4',
3148
- leadingDigits: '[5-79]',
3215
+ leadingDigits: '[5-79]|80[6-9]',
3149
3216
  },
3150
3217
  {
3151
3218
  pattern: '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
@@ -3153,6 +3220,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3153
3220
  leadingDigits: '8',
3154
3221
  },
3155
3222
  ],
3223
+ nationalPrefix: '0',
3156
3224
  name: 'St. Martin',
3157
3225
  flag: '🇲🇫',
3158
3226
  },
@@ -3166,6 +3234,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3166
3234
  leadingDigits: '[23]',
3167
3235
  },
3168
3236
  ],
3237
+ nationalPrefix: '0',
3169
3238
  name: 'Madagascar',
3170
3239
  flag: '🇲🇬',
3171
3240
  },
@@ -3202,6 +3271,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3202
3271
  leadingDigits: '[58]',
3203
3272
  },
3204
3273
  ],
3274
+ nationalPrefix: '0',
3205
3275
  name: 'North Macedonia',
3206
3276
  flag: '🇲🇰',
3207
3277
  },
@@ -3269,6 +3339,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3269
3339
  leadingDigits: '9',
3270
3340
  },
3271
3341
  ],
3342
+ nationalPrefix: '0',
3272
3343
  name: 'Myanmar (Burma)',
3273
3344
  flag: '🇲🇲',
3274
3345
  },
@@ -3279,7 +3350,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3279
3350
  {
3280
3351
  pattern: '(\\d{2})(\\d{2})(\\d{4})',
3281
3352
  template: '$1 $2 $3',
3282
- leadingDigits: '[12]1',
3353
+ leadingDigits: '11|2[16]',
3283
3354
  },
3284
3355
  {
3285
3356
  pattern: '(\\d{4})(\\d{4})',
@@ -3302,6 +3373,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3302
3373
  leadingDigits: '[12]',
3303
3374
  },
3304
3375
  ],
3376
+ nationalPrefix: '0',
3305
3377
  name: 'Mongolia',
3306
3378
  flag: '🇲🇳',
3307
3379
  },
@@ -3348,6 +3420,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3348
3420
  leadingDigits: '8',
3349
3421
  },
3350
3422
  ],
3423
+ nationalPrefix: '0',
3351
3424
  name: 'Martinique',
3352
3425
  flag: '🇲🇶',
3353
3426
  },
@@ -3444,6 +3517,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3444
3517
  leadingDigits: '[137-9]',
3445
3518
  },
3446
3519
  ],
3520
+ nationalPrefix: '0',
3447
3521
  name: 'Malawi',
3448
3522
  flag: '🇲🇼',
3449
3523
  },
@@ -3500,6 +3574,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3500
3574
  leadingDigits: '1',
3501
3575
  },
3502
3576
  ],
3577
+ nationalPrefix: '0',
3503
3578
  name: 'Malaysia',
3504
3579
  flag: '🇲🇾',
3505
3580
  },
@@ -3546,6 +3621,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3546
3621
  leadingDigits: '8',
3547
3622
  },
3548
3623
  ],
3624
+ nationalPrefix: '0',
3549
3625
  name: 'Namibia',
3550
3626
  flag: '🇳🇦',
3551
3627
  },
@@ -3624,6 +3700,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3624
3700
  leadingDigits: '[78]',
3625
3701
  },
3626
3702
  ],
3703
+ nationalPrefix: '0',
3627
3704
  name: 'Nigeria',
3628
3705
  flag: '🇳🇬',
3629
3706
  },
@@ -3667,6 +3744,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3667
3744
  leadingDigits: '9',
3668
3745
  },
3669
3746
  ],
3747
+ nationalPrefix: '0',
3670
3748
  name: 'Netherlands',
3671
3749
  flag: '🇳🇱',
3672
3750
  },
@@ -3700,6 +3778,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3700
3778
  },
3701
3779
  { pattern: '(\\d{3})(\\d{7})', template: '$1-$2', leadingDigits: '9' },
3702
3780
  ],
3781
+ nationalPrefix: '0',
3703
3782
  name: 'Nepal',
3704
3783
  flag: '🇳🇵',
3705
3784
  },
@@ -3760,6 +3839,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3760
3839
  leadingDigits: '2(?:[169]|7[0-35-9])|7',
3761
3840
  },
3762
3841
  ],
3842
+ nationalPrefix: '0',
3763
3843
  name: 'New Zealand',
3764
3844
  flag: '🇳🇿',
3765
3845
  },
@@ -3818,6 +3898,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3818
3898
  leadingDigits: '9',
3819
3899
  },
3820
3900
  ],
3901
+ nationalPrefix: '0',
3821
3902
  name: 'Peru',
3822
3903
  flag: '🇵🇪',
3823
3904
  },
@@ -3900,6 +3981,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3900
3981
  leadingDigits: '1',
3901
3982
  },
3902
3983
  ],
3984
+ nationalPrefix: '0',
3903
3985
  name: 'Philippines',
3904
3986
  flag: '🇵🇭',
3905
3987
  },
@@ -3938,6 +4020,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3938
4020
  leadingDigits: '[24-9]',
3939
4021
  },
3940
4022
  ],
4023
+ nationalPrefix: '0',
3941
4024
  name: 'Pakistan',
3942
4025
  flag: '🇵🇰',
3943
4026
  },
@@ -3955,7 +4038,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3955
4038
  pattern: '(\\d{2})(\\d{2})(\\d{3})',
3956
4039
  template: '$1 $2 $3',
3957
4040
  leadingDigits:
3958
- '(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19',
4041
+ '30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19',
3959
4042
  },
3960
4043
  {
3961
4044
  pattern: '(\\d{3})(\\d{2})(\\d{2,3})',
@@ -3988,7 +4071,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
3988
4071
  {
3989
4072
  pattern: '(\\d{2})(\\d{2})(\\d{2})',
3990
4073
  template: '$1 $2 $3',
3991
- leadingDigits: '[45]',
4074
+ leadingDigits: '[2-9]',
3992
4075
  },
3993
4076
  {
3994
4077
  pattern: '(\\d{3})(\\d{3})(\\d{3})',
@@ -4001,6 +4084,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4001
4084
  leadingDigits: '8',
4002
4085
  },
4003
4086
  ],
4087
+ nationalPrefix: '0',
4004
4088
  name: 'St. Pierre & Miquelon',
4005
4089
  flag: '🇵🇲',
4006
4090
  },
@@ -4038,6 +4122,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4038
4122
  leadingDigits: '1',
4039
4123
  },
4040
4124
  ],
4125
+ nationalPrefix: '0',
4041
4126
  name: 'Palestinian Territories',
4042
4127
  flag: '🇵🇸',
4043
4128
  },
@@ -4117,6 +4202,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4117
4202
  leadingDigits: '9',
4118
4203
  },
4119
4204
  ],
4205
+ nationalPrefix: '0',
4120
4206
  name: 'Paraguay',
4121
4207
  flag: '🇵🇾',
4122
4208
  },
@@ -4148,6 +4234,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4148
4234
  leadingDigits: '[26-9]',
4149
4235
  },
4150
4236
  ],
4237
+ nationalPrefix: '0',
4151
4238
  name: 'Réunion',
4152
4239
  flag: '🇷🇪',
4153
4240
  },
@@ -4176,6 +4263,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4176
4263
  leadingDigits: '[236-9]',
4177
4264
  },
4178
4265
  ],
4266
+ nationalPrefix: '0',
4179
4267
  name: 'Romania',
4180
4268
  flag: '🇷🇴',
4181
4269
  },
@@ -4194,6 +4282,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4194
4282
  leadingDigits: '[1-36]',
4195
4283
  },
4196
4284
  ],
4285
+ nationalPrefix: '0',
4197
4286
  name: 'Serbia',
4198
4287
  flag: '🇷🇸',
4199
4288
  },
@@ -4229,6 +4318,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4229
4318
  leadingDigits: '8',
4230
4319
  },
4231
4320
  ],
4321
+ nationalPrefix: '8',
4232
4322
  name: 'Russia',
4233
4323
  flag: '🇷🇺',
4234
4324
  },
@@ -4252,6 +4342,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4252
4342
  leadingDigits: '[7-9]',
4253
4343
  },
4254
4344
  ],
4345
+ nationalPrefix: '0',
4255
4346
  name: 'Rwanda',
4256
4347
  flag: '🇷🇼',
4257
4348
  },
@@ -4276,6 +4367,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4276
4367
  leadingDigits: '8',
4277
4368
  },
4278
4369
  ],
4370
+ nationalPrefix: '0',
4279
4371
  name: 'Saudi Arabia',
4280
4372
  flag: '🇸🇦',
4281
4373
  },
@@ -4315,6 +4407,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4315
4407
  leadingDigits: '[19]',
4316
4408
  },
4317
4409
  ],
4410
+ nationalPrefix: '0',
4318
4411
  name: 'Sudan',
4319
4412
  flag: '🇸🇩',
4320
4413
  },
@@ -4385,6 +4478,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4385
4478
  leadingDigits: '[26]',
4386
4479
  },
4387
4480
  ],
4481
+ nationalPrefix: '0',
4388
4482
  name: 'Sweden',
4389
4483
  flag: '🇸🇪',
4390
4484
  },
@@ -4444,6 +4538,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4444
4538
  leadingDigits: '[1-57]',
4445
4539
  },
4446
4540
  ],
4541
+ nationalPrefix: '0',
4447
4542
  name: 'Slovenia',
4448
4543
  flag: '🇸🇮',
4449
4544
  },
@@ -4481,7 +4576,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4481
4576
  },
4482
4577
  {
4483
4578
  pattern: '(\\d)(\\d{3})(\\d{3})(\\d{2})',
4484
- template: '$1/$2 $3 $4',
4579
+ template: '$1 $2 $3 $4',
4485
4580
  leadingDigits: '2',
4486
4581
  },
4487
4582
  {
@@ -4491,10 +4586,11 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4491
4586
  },
4492
4587
  {
4493
4588
  pattern: '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
4494
- template: '$1/$2 $3 $4',
4589
+ template: '$1 $2 $3 $4',
4495
4590
  leadingDigits: '[3-5]',
4496
4591
  },
4497
4592
  ],
4593
+ nationalPrefix: '0',
4498
4594
  name: 'Slovakia',
4499
4595
  flag: '🇸🇰',
4500
4596
  },
@@ -4508,6 +4604,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4508
4604
  leadingDigits: '[236-9]',
4509
4605
  },
4510
4606
  ],
4607
+ nationalPrefix: '0',
4511
4608
  name: 'Sierra Leone',
4512
4609
  flag: '🇸🇱',
4513
4610
  },
@@ -4559,19 +4656,19 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4559
4656
  leadingDigits: '[15]|2[0-79]|3[0-46-8]|4[0-7]',
4560
4657
  },
4561
4658
  {
4562
- pattern: '(\\d)(\\d{7})',
4659
+ pattern: '(\\d{2})(\\d{5,7})',
4563
4660
  template: '$1 $2',
4564
- leadingDigits: '(?:2|90)4|[67]',
4661
+ leadingDigits: '1|28|9[2-9]',
4565
4662
  },
4566
4663
  {
4567
- pattern: '(\\d{3})(\\d{3})(\\d{3})',
4568
- template: '$1 $2 $3',
4569
- leadingDigits: '[348]|64|79|90',
4664
+ pattern: '(\\d)(\\d{7})',
4665
+ template: '$1 $2',
4666
+ leadingDigits: '[267]|904',
4570
4667
  },
4571
4668
  {
4572
- pattern: '(\\d{2})(\\d{5,7})',
4573
- template: '$1 $2',
4574
- leadingDigits: '1|28|6[0-35-9]|7[67]|9[2-9]',
4669
+ pattern: '(\\d{2})(\\d{3})(\\d{4})',
4670
+ template: '$1 $2 $3',
4671
+ leadingDigits: '[346-9]',
4575
4672
  },
4576
4673
  ],
4577
4674
  name: 'Somalia',
@@ -4610,6 +4707,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4610
4707
  leadingDigits: '[19]',
4611
4708
  },
4612
4709
  ],
4710
+ nationalPrefix: '0',
4613
4711
  name: 'South Sudan',
4614
4712
  flag: '🇸🇸',
4615
4713
  },
@@ -4670,6 +4768,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4670
4768
  leadingDigits: '[59]',
4671
4769
  },
4672
4770
  ],
4771
+ nationalPrefix: '0',
4673
4772
  name: 'Syria',
4674
4773
  flag: '🇸🇾',
4675
4774
  },
@@ -4754,6 +4853,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4754
4853
  leadingDigits: '1',
4755
4854
  },
4756
4855
  ],
4856
+ nationalPrefix: '0',
4757
4857
  name: 'Thailand',
4758
4858
  flag: '🇹🇭',
4759
4859
  },
@@ -4822,6 +4922,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4822
4922
  },
4823
4923
  { pattern: '(\\d{2})(\\d{6})', template: '$1 $2', leadingDigits: '[67]' },
4824
4924
  ],
4925
+ nationalPrefix: '8',
4825
4926
  name: 'Turkmenistan',
4826
4927
  flag: '🇹🇲',
4827
4928
  },
@@ -4869,7 +4970,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4869
4970
  {
4870
4971
  pattern: '(\\d{3})(\\d{3})(\\d{2})(\\d{2})',
4871
4972
  template: '$1 $2 $3 $4',
4872
- leadingDigits: '5(?:[0-579]|61[06]1)',
4973
+ leadingDigits: '5[0-79]',
4873
4974
  },
4874
4975
  {
4875
4976
  pattern: '(\\d{3})(\\d{3})(\\d{2})(\\d{2})',
@@ -4882,6 +4983,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4882
4983
  leadingDigits: '80',
4883
4984
  },
4884
4985
  ],
4986
+ nationalPrefix: '0',
4885
4987
  name: 'Türkiye',
4886
4988
  flag: '🇹🇷',
4887
4989
  },
@@ -4919,15 +5021,26 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4919
5021
  template: '$1 $2 $3',
4920
5022
  leadingDigits: '202',
4921
5023
  },
5024
+ { pattern: '(\\d{3})(\\d{5})', template: '$1 $2', leadingDigits: '826' },
5025
+ {
5026
+ pattern: '(\\d{3})(\\d{2})(\\d{3})',
5027
+ template: '$1 $2 $3',
5028
+ leadingDigits: '83',
5029
+ },
5030
+ {
5031
+ pattern: '(\\d{2})(\\d{2})(\\d{4})',
5032
+ template: '$1 $2 $3',
5033
+ leadingDigits: '82',
5034
+ },
4922
5035
  {
4923
5036
  pattern: '(\\d{2})(\\d{3})(\\d{3,4})',
4924
5037
  template: '$1 $2 $3',
4925
- leadingDigits: '[258]0',
5038
+ leadingDigits: '[25]0|37|49|8[09]',
4926
5039
  },
4927
5040
  {
4928
5041
  pattern: '(\\d)(\\d{3,4})(\\d{4})',
4929
5042
  template: '$1 $2 $3',
4930
- leadingDigits: '[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]',
5043
+ leadingDigits: '[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]',
4931
5044
  },
4932
5045
  {
4933
5046
  pattern: '(\\d{3})(\\d{3})(\\d{3})',
@@ -4940,6 +5053,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4940
5053
  leadingDigits: '7',
4941
5054
  },
4942
5055
  ],
5056
+ nationalPrefix: '0',
4943
5057
  name: 'Taiwan',
4944
5058
  flag: '🇹🇼',
4945
5059
  },
@@ -4964,6 +5078,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4964
5078
  leadingDigits: '[67]',
4965
5079
  },
4966
5080
  ],
5081
+ nationalPrefix: '0',
4967
5082
  name: 'Tanzania',
4968
5083
  flag: '🇹🇿',
4969
5084
  },
@@ -4994,6 +5109,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
4994
5109
  leadingDigits: '[89]',
4995
5110
  },
4996
5111
  ],
5112
+ nationalPrefix: '0',
4997
5113
  name: 'Ukraine',
4998
5114
  flag: '🇺🇦',
4999
5115
  },
@@ -5009,6 +5125,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5009
5125
  },
5010
5126
  { pattern: '(\\d{2})(\\d{7})', template: '$1 $2', leadingDigits: '[34]' },
5011
5127
  ],
5128
+ nationalPrefix: '0',
5012
5129
  name: 'Uganda',
5013
5130
  flag: '🇺🇬',
5014
5131
  },
@@ -5058,6 +5175,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5058
5175
  leadingDigits: '0',
5059
5176
  },
5060
5177
  ],
5178
+ nationalPrefix: '0',
5061
5179
  name: 'Uruguay',
5062
5180
  flag: '🇺🇾',
5063
5181
  },
@@ -5152,6 +5270,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5152
5270
  leadingDigits: '[24-689]',
5153
5271
  },
5154
5272
  ],
5273
+ nationalPrefix: '0',
5155
5274
  name: 'Venezuela',
5156
5275
  flag: '🇻🇪',
5157
5276
  },
@@ -5188,11 +5307,15 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5188
5307
  callingCode: '84',
5189
5308
  formats: [
5190
5309
  { pattern: '(\\d{2})(\\d{5})', template: '$1 $2', leadingDigits: '80' },
5191
- { pattern: '(\\d{4})(\\d{4,6})', template: '$1 $2', leadingDigits: '1' },
5310
+ {
5311
+ pattern: '(\\d{4})(\\d{4,6})',
5312
+ template: '$1 $2',
5313
+ leadingDigits: '1(?:2[02]|[89])',
5314
+ },
5192
5315
  {
5193
5316
  pattern: '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
5194
5317
  template: '$1 $2 $3 $4',
5195
- leadingDigits: '6',
5318
+ leadingDigits: '1[26]|6',
5196
5319
  },
5197
5320
  {
5198
5321
  pattern: '(\\d{3})(\\d{3})(\\d{3})',
@@ -5210,6 +5333,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5210
5333
  leadingDigits: '2',
5211
5334
  },
5212
5335
  ],
5336
+ nationalPrefix: '0',
5213
5337
  name: 'Vietnam',
5214
5338
  flag: '🇻🇳',
5215
5339
  },
@@ -5276,6 +5400,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5276
5400
  },
5277
5401
  { pattern: '(\\d{2})(\\d{7,10})', template: '$1 $2', leadingDigits: '3' },
5278
5402
  ],
5403
+ nationalPrefix: '0',
5279
5404
  name: 'Kosovo',
5280
5405
  flag: '🇽🇰',
5281
5406
  },
@@ -5294,6 +5419,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5294
5419
  leadingDigits: '7',
5295
5420
  },
5296
5421
  ],
5422
+ nationalPrefix: '0',
5297
5423
  name: 'Yemen',
5298
5424
  flag: '🇾🇪',
5299
5425
  },
@@ -5307,6 +5433,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5307
5433
  leadingDigits: '[26-9]',
5308
5434
  },
5309
5435
  ],
5436
+ nationalPrefix: '0',
5310
5437
  name: 'Mayotte',
5311
5438
  flag: '🇾🇹',
5312
5439
  },
@@ -5340,6 +5467,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5340
5467
  leadingDigits: '8',
5341
5468
  },
5342
5469
  ],
5470
+ nationalPrefix: '0',
5343
5471
  name: 'South Africa',
5344
5472
  flag: '🇿🇦',
5345
5473
  },
@@ -5358,6 +5486,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5358
5486
  leadingDigits: '[579]',
5359
5487
  },
5360
5488
  ],
5489
+ nationalPrefix: '0',
5361
5490
  name: 'Zambia',
5362
5491
  flag: '🇿🇲',
5363
5492
  },
@@ -5411,6 +5540,7 @@ export const COUNTRY_PHONE_DATA: Record<string, CountryPhoneData> = {
5411
5540
  leadingDigits: '258|5483',
5412
5541
  },
5413
5542
  ],
5543
+ nationalPrefix: '0',
5414
5544
  name: 'Zimbabwe',
5415
5545
  flag: '🇿🇼',
5416
5546
  },
@@ -5663,3 +5793,238 @@ export const COUNTRY_LIST: CountryPhoneData[] = [
5663
5793
  COUNTRY_PHONE_DATA['ZM']!,
5664
5794
  COUNTRY_PHONE_DATA['ZW']!,
5665
5795
  ];
5796
+
5797
+ export const COUNTRY_CALLING_CODES: Record<string, string[]> = {
5798
+ '1': [
5799
+ 'US',
5800
+ 'AG',
5801
+ 'AI',
5802
+ 'AS',
5803
+ 'BB',
5804
+ 'BM',
5805
+ 'BS',
5806
+ 'CA',
5807
+ 'DM',
5808
+ 'DO',
5809
+ 'GD',
5810
+ 'GU',
5811
+ 'JM',
5812
+ 'KN',
5813
+ 'KY',
5814
+ 'LC',
5815
+ 'MP',
5816
+ 'MS',
5817
+ 'PR',
5818
+ 'SX',
5819
+ 'TC',
5820
+ 'TT',
5821
+ 'VC',
5822
+ 'VG',
5823
+ 'VI',
5824
+ ],
5825
+ '7': ['RU', 'KZ'],
5826
+ '20': ['EG'],
5827
+ '27': ['ZA'],
5828
+ '30': ['GR'],
5829
+ '31': ['NL'],
5830
+ '32': ['BE'],
5831
+ '33': ['FR'],
5832
+ '34': ['ES'],
5833
+ '36': ['HU'],
5834
+ '39': ['IT', 'VA'],
5835
+ '40': ['RO'],
5836
+ '41': ['CH'],
5837
+ '43': ['AT'],
5838
+ '44': ['GB', 'GG', 'IM', 'JE'],
5839
+ '45': ['DK'],
5840
+ '46': ['SE'],
5841
+ '47': ['NO', 'SJ'],
5842
+ '48': ['PL'],
5843
+ '49': ['DE'],
5844
+ '51': ['PE'],
5845
+ '52': ['MX'],
5846
+ '53': ['CU'],
5847
+ '54': ['AR'],
5848
+ '55': ['BR'],
5849
+ '56': ['CL'],
5850
+ '57': ['CO'],
5851
+ '58': ['VE'],
5852
+ '60': ['MY'],
5853
+ '61': ['AU', 'CC', 'CX'],
5854
+ '62': ['ID'],
5855
+ '63': ['PH'],
5856
+ '64': ['NZ'],
5857
+ '65': ['SG'],
5858
+ '66': ['TH'],
5859
+ '81': ['JP'],
5860
+ '82': ['KR'],
5861
+ '84': ['VN'],
5862
+ '86': ['CN'],
5863
+ '90': ['TR'],
5864
+ '91': ['IN'],
5865
+ '92': ['PK'],
5866
+ '93': ['AF'],
5867
+ '94': ['LK'],
5868
+ '95': ['MM'],
5869
+ '98': ['IR'],
5870
+ '211': ['SS'],
5871
+ '212': ['MA', 'EH'],
5872
+ '213': ['DZ'],
5873
+ '216': ['TN'],
5874
+ '218': ['LY'],
5875
+ '220': ['GM'],
5876
+ '221': ['SN'],
5877
+ '222': ['MR'],
5878
+ '223': ['ML'],
5879
+ '224': ['GN'],
5880
+ '225': ['CI'],
5881
+ '226': ['BF'],
5882
+ '227': ['NE'],
5883
+ '228': ['TG'],
5884
+ '229': ['BJ'],
5885
+ '230': ['MU'],
5886
+ '231': ['LR'],
5887
+ '232': ['SL'],
5888
+ '233': ['GH'],
5889
+ '234': ['NG'],
5890
+ '235': ['TD'],
5891
+ '236': ['CF'],
5892
+ '237': ['CM'],
5893
+ '238': ['CV'],
5894
+ '239': ['ST'],
5895
+ '240': ['GQ'],
5896
+ '241': ['GA'],
5897
+ '242': ['CG'],
5898
+ '243': ['CD'],
5899
+ '244': ['AO'],
5900
+ '245': ['GW'],
5901
+ '246': ['IO'],
5902
+ '247': ['AC'],
5903
+ '248': ['SC'],
5904
+ '249': ['SD'],
5905
+ '250': ['RW'],
5906
+ '251': ['ET'],
5907
+ '252': ['SO'],
5908
+ '253': ['DJ'],
5909
+ '254': ['KE'],
5910
+ '255': ['TZ'],
5911
+ '256': ['UG'],
5912
+ '257': ['BI'],
5913
+ '258': ['MZ'],
5914
+ '260': ['ZM'],
5915
+ '261': ['MG'],
5916
+ '262': ['RE', 'YT'],
5917
+ '263': ['ZW'],
5918
+ '264': ['NA'],
5919
+ '265': ['MW'],
5920
+ '266': ['LS'],
5921
+ '267': ['BW'],
5922
+ '268': ['SZ'],
5923
+ '269': ['KM'],
5924
+ '290': ['SH', 'TA'],
5925
+ '291': ['ER'],
5926
+ '297': ['AW'],
5927
+ '298': ['FO'],
5928
+ '299': ['GL'],
5929
+ '350': ['GI'],
5930
+ '351': ['PT'],
5931
+ '352': ['LU'],
5932
+ '353': ['IE'],
5933
+ '354': ['IS'],
5934
+ '355': ['AL'],
5935
+ '356': ['MT'],
5936
+ '357': ['CY'],
5937
+ '358': ['FI', 'AX'],
5938
+ '359': ['BG'],
5939
+ '370': ['LT'],
5940
+ '371': ['LV'],
5941
+ '372': ['EE'],
5942
+ '373': ['MD'],
5943
+ '374': ['AM'],
5944
+ '375': ['BY'],
5945
+ '376': ['AD'],
5946
+ '377': ['MC'],
5947
+ '378': ['SM'],
5948
+ '380': ['UA'],
5949
+ '381': ['RS'],
5950
+ '382': ['ME'],
5951
+ '383': ['XK'],
5952
+ '385': ['HR'],
5953
+ '386': ['SI'],
5954
+ '387': ['BA'],
5955
+ '389': ['MK'],
5956
+ '420': ['CZ'],
5957
+ '421': ['SK'],
5958
+ '423': ['LI'],
5959
+ '500': ['FK'],
5960
+ '501': ['BZ'],
5961
+ '502': ['GT'],
5962
+ '503': ['SV'],
5963
+ '504': ['HN'],
5964
+ '505': ['NI'],
5965
+ '506': ['CR'],
5966
+ '507': ['PA'],
5967
+ '508': ['PM'],
5968
+ '509': ['HT'],
5969
+ '590': ['GP', 'BL', 'MF'],
5970
+ '591': ['BO'],
5971
+ '592': ['GY'],
5972
+ '593': ['EC'],
5973
+ '594': ['GF'],
5974
+ '595': ['PY'],
5975
+ '596': ['MQ'],
5976
+ '597': ['SR'],
5977
+ '598': ['UY'],
5978
+ '599': ['CW', 'BQ'],
5979
+ '670': ['TL'],
5980
+ '672': ['NF'],
5981
+ '673': ['BN'],
5982
+ '674': ['NR'],
5983
+ '675': ['PG'],
5984
+ '676': ['TO'],
5985
+ '677': ['SB'],
5986
+ '678': ['VU'],
5987
+ '679': ['FJ'],
5988
+ '680': ['PW'],
5989
+ '681': ['WF'],
5990
+ '682': ['CK'],
5991
+ '683': ['NU'],
5992
+ '685': ['WS'],
5993
+ '686': ['KI'],
5994
+ '687': ['NC'],
5995
+ '688': ['TV'],
5996
+ '689': ['PF'],
5997
+ '690': ['TK'],
5998
+ '691': ['FM'],
5999
+ '692': ['MH'],
6000
+ '850': ['KP'],
6001
+ '852': ['HK'],
6002
+ '853': ['MO'],
6003
+ '855': ['KH'],
6004
+ '856': ['LA'],
6005
+ '880': ['BD'],
6006
+ '886': ['TW'],
6007
+ '960': ['MV'],
6008
+ '961': ['LB'],
6009
+ '962': ['JO'],
6010
+ '963': ['SY'],
6011
+ '964': ['IQ'],
6012
+ '965': ['KW'],
6013
+ '966': ['SA'],
6014
+ '967': ['YE'],
6015
+ '968': ['OM'],
6016
+ '970': ['PS'],
6017
+ '971': ['AE'],
6018
+ '972': ['IL'],
6019
+ '973': ['BH'],
6020
+ '974': ['QA'],
6021
+ '975': ['BT'],
6022
+ '976': ['MN'],
6023
+ '977': ['NP'],
6024
+ '992': ['TJ'],
6025
+ '993': ['TM'],
6026
+ '994': ['AZ'],
6027
+ '995': ['GE'],
6028
+ '996': ['KG'],
6029
+ '998': ['UZ'],
6030
+ };