react-native-country-select 0.1.1 → 0.1.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/LICENSE.md +7 -7
- package/README.md +319 -296
- package/lib/assets/images/preview.png +0 -0
- package/lib/components/CountryItem/index.tsx +59 -41
- package/lib/components/CountrySelect/index.tsx +319 -159
- package/lib/components/index.ts +2 -2
- package/lib/components/styles.ts +98 -83
- package/lib/index.d.ts +23 -21
- package/lib/index.tsx +18 -18
- package/lib/interface/country.ts +111 -111
- package/lib/interface/countryCca2.ts +251 -251
- package/lib/interface/countryItemProps.ts +12 -10
- package/lib/interface/countrySelectLanguages.ts +34 -34
- package/lib/interface/countrySelectProps.ts +31 -11
- package/lib/interface/countrySelectStyles.ts +28 -0
- package/lib/interface/index.ts +1 -2
- package/lib/interface/itemList.ts +4 -0
- package/lib/interface/sectionTitle.ts +4 -0
- package/lib/utils/getTranslation.ts +74 -1
- package/package.json +42 -42
@@ -1,6 +1,9 @@
|
|
1
1
|
import {ICountrySelectLanguages} from '../interface';
|
2
2
|
|
3
|
-
type TranslationKey =
|
3
|
+
type TranslationKey =
|
4
|
+
| 'searchPlaceholder'
|
5
|
+
| 'popularCountriesTitle'
|
6
|
+
| 'allCountriesTitle';
|
4
7
|
type TranslationMap = Record<
|
5
8
|
TranslationKey,
|
6
9
|
Record<ICountrySelectLanguages, string>
|
@@ -42,4 +45,74 @@ export const translations: TranslationMap = {
|
|
42
45
|
'zho-Hans': '搜索国家...',
|
43
46
|
'zho-Hant': '搜尋國家...',
|
44
47
|
},
|
48
|
+
popularCountriesTitle: {
|
49
|
+
ara: 'البلدان الشائعة',
|
50
|
+
bel: 'Папулярныя краіны',
|
51
|
+
bre: 'Broioù Poblus',
|
52
|
+
bul: 'Популярни държави',
|
53
|
+
ces: 'Populární země',
|
54
|
+
deu: 'Beliebte Länder',
|
55
|
+
ell: 'Δημοφιλείς χώρες',
|
56
|
+
eng: 'Popular Countries',
|
57
|
+
est: 'Populaarsed riigid',
|
58
|
+
fin: 'Suositut maat',
|
59
|
+
fra: 'Pays Populaires',
|
60
|
+
heb: 'מדינות פופולריות',
|
61
|
+
hrv: 'Popularne države',
|
62
|
+
hun: 'Népszerű országok',
|
63
|
+
ita: 'Paesi Popolari',
|
64
|
+
jpn: '人気の国',
|
65
|
+
kor: '인기 국가',
|
66
|
+
nld: 'Populaire landen',
|
67
|
+
per: 'کشورهای محبوب',
|
68
|
+
pol: 'Popularne kraje',
|
69
|
+
por: 'Países Populares',
|
70
|
+
ron: 'Țări populare',
|
71
|
+
rus: 'Популярные страны',
|
72
|
+
slk: 'Populárne krajiny',
|
73
|
+
spa: 'Países Populares',
|
74
|
+
srp: 'Популарне државе',
|
75
|
+
swe: 'Populära länder',
|
76
|
+
tur: 'Popüler Ülkeler',
|
77
|
+
ukr: 'Популярні країни',
|
78
|
+
urd: 'مقبول ممالک',
|
79
|
+
zho: '热门国家',
|
80
|
+
'zho-Hans': '热门国家',
|
81
|
+
'zho-Hant': '熱門國家',
|
82
|
+
},
|
83
|
+
allCountriesTitle: {
|
84
|
+
ara: 'كل البلدان',
|
85
|
+
bel: 'Усе краіны',
|
86
|
+
bre: 'An Holl Vroioù',
|
87
|
+
bul: 'Всички държави',
|
88
|
+
ces: 'Všechny země',
|
89
|
+
deu: 'Alle Länder',
|
90
|
+
ell: 'Όλες οι χώρες',
|
91
|
+
eng: 'All Countries',
|
92
|
+
est: 'Kõik riigid',
|
93
|
+
fin: 'Kaikki maat',
|
94
|
+
fra: 'Tous les Pays',
|
95
|
+
heb: 'כל המדינות',
|
96
|
+
hrv: 'Sve države',
|
97
|
+
hun: 'Minden ország',
|
98
|
+
ita: 'Tutti i Paesi',
|
99
|
+
jpn: 'すべての国',
|
100
|
+
kor: '모든 국가',
|
101
|
+
nld: 'Alle landen',
|
102
|
+
per: 'همه کشورها',
|
103
|
+
pol: 'Wszystkie kraje',
|
104
|
+
por: 'Todos os Países',
|
105
|
+
ron: 'Toate țările',
|
106
|
+
rus: 'Все страны',
|
107
|
+
slk: 'Všetky krajiny',
|
108
|
+
spa: 'Todos los Países',
|
109
|
+
srp: 'Све државе',
|
110
|
+
swe: 'Alla länder',
|
111
|
+
tur: 'Tüm Ülkeler',
|
112
|
+
ukr: 'Всі країни',
|
113
|
+
urd: 'تمام ممالک',
|
114
|
+
zho: '所有国家',
|
115
|
+
'zho-Hans': '所有国家',
|
116
|
+
'zho-Hant': '所有國家',
|
117
|
+
},
|
45
118
|
} as const;
|
package/package.json
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
{
|
2
|
-
"name": "react-native-country-select",
|
3
|
-
"version": "0.1.
|
4
|
-
"description": "🌍 A lightweight and customizable country picker for React Native with modern UI, flags, search engine, and i18n support. Includes TypeScript types, offline support and no dependencies.",
|
5
|
-
"main": "lib/index.tsx",
|
6
|
-
"types": "lib/index.d.ts",
|
7
|
-
"keywords": [
|
8
|
-
"react-native",
|
9
|
-
"cross-platform",
|
10
|
-
"ios",
|
11
|
-
"android",
|
12
|
-
"web",
|
13
|
-
"flags",
|
14
|
-
"countries",
|
15
|
-
"country-picker",
|
16
|
-
"country-select",
|
17
|
-
"country-codes",
|
18
|
-
"i18n",
|
19
|
-
"international",
|
20
|
-
"offline-support",
|
21
|
-
"custom-lib"
|
22
|
-
],
|
23
|
-
"repository": {
|
24
|
-
"type": "git",
|
25
|
-
"url": "git+https://github.com/AstrOOnauta/react-native-country-select.git"
|
26
|
-
},
|
27
|
-
"author": "AstrOOnauta (https://github.com/AstrOOnauta)",
|
28
|
-
"license": "ISC",
|
29
|
-
"bugs": {
|
30
|
-
"url": "https://github.com/AstrOOnauta/react-native-country-select/issues"
|
31
|
-
},
|
32
|
-
"homepage": "https://github.com/AstrOOnauta/react-native-country-select#readme",
|
33
|
-
"publishConfig": {
|
34
|
-
"registry": "https://registry.npmjs.org/"
|
35
|
-
},
|
36
|
-
"dependencies": {},
|
37
|
-
"devDependencies": {},
|
38
|
-
"peerDependencies": {
|
39
|
-
"react": "*",
|
40
|
-
"react-native": "*"
|
41
|
-
}
|
42
|
-
}
|
1
|
+
{
|
2
|
+
"name": "react-native-country-select",
|
3
|
+
"version": "0.1.3",
|
4
|
+
"description": "🌍 A lightweight and customizable country picker for React Native with modern UI, flags, search engine, and i18n support. Includes TypeScript types, offline support and no dependencies.",
|
5
|
+
"main": "lib/index.tsx",
|
6
|
+
"types": "lib/index.d.ts",
|
7
|
+
"keywords": [
|
8
|
+
"react-native",
|
9
|
+
"cross-platform",
|
10
|
+
"ios",
|
11
|
+
"android",
|
12
|
+
"web",
|
13
|
+
"flags",
|
14
|
+
"countries",
|
15
|
+
"country-picker",
|
16
|
+
"country-select",
|
17
|
+
"country-codes",
|
18
|
+
"i18n",
|
19
|
+
"international",
|
20
|
+
"offline-support",
|
21
|
+
"custom-lib"
|
22
|
+
],
|
23
|
+
"repository": {
|
24
|
+
"type": "git",
|
25
|
+
"url": "git+https://github.com/AstrOOnauta/react-native-country-select.git"
|
26
|
+
},
|
27
|
+
"author": "AstrOOnauta (https://github.com/AstrOOnauta)",
|
28
|
+
"license": "ISC",
|
29
|
+
"bugs": {
|
30
|
+
"url": "https://github.com/AstrOOnauta/react-native-country-select/issues"
|
31
|
+
},
|
32
|
+
"homepage": "https://github.com/AstrOOnauta/react-native-country-select#readme",
|
33
|
+
"publishConfig": {
|
34
|
+
"registry": "https://registry.npmjs.org/"
|
35
|
+
},
|
36
|
+
"dependencies": {},
|
37
|
+
"devDependencies": {},
|
38
|
+
"peerDependencies": {
|
39
|
+
"react": "*",
|
40
|
+
"react-native": "*"
|
41
|
+
}
|
42
|
+
}
|