@korsolutions/ui 0.0.53 → 0.0.54

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.
Files changed (225) hide show
  1. package/babel.config.js +1 -11
  2. package/dist/module/components/alert/components/alert-body.js.map +1 -1
  3. package/dist/module/components/alert/components/alert-description.js.map +1 -1
  4. package/dist/module/components/alert/components/alert-icon.js.map +1 -1
  5. package/dist/module/components/alert/components/alert-root.js.map +1 -1
  6. package/dist/module/components/alert/components/alert-title.js.map +1 -1
  7. package/dist/module/components/alert/index.js.map +1 -1
  8. package/dist/module/components/alert/variants/default.js.map +1 -1
  9. package/dist/module/components/alert/variants/destructive.js.map +1 -1
  10. package/dist/module/components/alert/variants/index.js.map +1 -1
  11. package/dist/module/components/alert-dialog/async-alert-dialog.js.map +1 -1
  12. package/dist/module/components/alert-dialog/components/alert-dialog-action.js.map +1 -1
  13. package/dist/module/components/alert-dialog/components/alert-dialog-cancel.js.map +1 -1
  14. package/dist/module/components/alert-dialog/components/alert-dialog-content.js.map +1 -1
  15. package/dist/module/components/alert-dialog/components/alert-dialog-description.js.map +1 -1
  16. package/dist/module/components/alert-dialog/components/alert-dialog-footer.js.map +1 -1
  17. package/dist/module/components/alert-dialog/components/alert-dialog-overlay.js.map +1 -1
  18. package/dist/module/components/alert-dialog/components/alert-dialog-portal.js.map +1 -1
  19. package/dist/module/components/alert-dialog/components/alert-dialog-root.js.map +1 -1
  20. package/dist/module/components/alert-dialog/components/alert-dialog-title.js.map +1 -1
  21. package/dist/module/components/alert-dialog/components/alert-dialog-trigger.js.map +1 -1
  22. package/dist/module/components/alert-dialog/index.js.map +1 -1
  23. package/dist/module/components/alert-dialog/variants/default.js.map +1 -1
  24. package/dist/module/components/alert-dialog/variants/index.js.map +1 -1
  25. package/dist/module/components/avatar/components/avatar-fallback.js.map +1 -1
  26. package/dist/module/components/avatar/components/avatar-image.js.map +1 -1
  27. package/dist/module/components/avatar/components/avatar-root.js.map +1 -1
  28. package/dist/module/components/avatar/index.js.map +1 -1
  29. package/dist/module/components/avatar/variants/default.js.map +1 -1
  30. package/dist/module/components/avatar/variants/index.js.map +1 -1
  31. package/dist/module/components/badge/components/badge-label.js.map +1 -1
  32. package/dist/module/components/badge/components/badge-root.js.map +1 -1
  33. package/dist/module/components/badge/index.js.map +1 -1
  34. package/dist/module/components/badge/variants/default.js.map +1 -1
  35. package/dist/module/components/badge/variants/index.js.map +1 -1
  36. package/dist/module/components/badge/variants/secondary.js.map +1 -1
  37. package/dist/module/components/button/components/button-label.js.map +1 -1
  38. package/dist/module/components/button/components/button-root.js.map +1 -1
  39. package/dist/module/components/button/components/button-spinner.js.map +1 -1
  40. package/dist/module/components/button/index.js.map +1 -1
  41. package/dist/module/components/button/variants/default.js.map +1 -1
  42. package/dist/module/components/button/variants/index.js.map +1 -1
  43. package/dist/module/components/button/variants/secondary.js.map +1 -1
  44. package/dist/module/components/calendar/components/calendar-day.js.map +1 -1
  45. package/dist/module/components/calendar/components/calendar-header.js.map +1 -1
  46. package/dist/module/components/calendar/components/calendar-nav-button.js.map +1 -1
  47. package/dist/module/components/calendar/components/calendar-root.js.map +1 -1
  48. package/dist/module/components/calendar/components/calendar-title.js.map +1 -1
  49. package/dist/module/components/calendar/components/calendar-week-labels.js.map +1 -1
  50. package/dist/module/components/calendar/components/calendar-weeks.js.map +1 -1
  51. package/dist/module/components/calendar/index.js.map +1 -1
  52. package/dist/module/components/calendar/variants/default.js.map +1 -1
  53. package/dist/module/components/calendar/variants/index.js.map +1 -1
  54. package/dist/module/components/card/card-body.js.map +1 -1
  55. package/dist/module/components/card/card-footer.js.map +1 -1
  56. package/dist/module/components/card/card-header.js.map +1 -1
  57. package/dist/module/components/card/card-root.js.map +1 -1
  58. package/dist/module/components/card/card-title.js.map +1 -1
  59. package/dist/module/components/card/index.js.map +1 -1
  60. package/dist/module/components/card/variants/default.js.map +1 -1
  61. package/dist/module/components/card/variants/index.js.map +1 -1
  62. package/dist/module/components/checkbox/components/checkbox-content.js.map +1 -1
  63. package/dist/module/components/checkbox/components/checkbox-description.js.map +1 -1
  64. package/dist/module/components/checkbox/components/checkbox-indicator.js.map +1 -1
  65. package/dist/module/components/checkbox/components/checkbox-root.js.map +1 -1
  66. package/dist/module/components/checkbox/components/checkbox-title.js.map +1 -1
  67. package/dist/module/components/checkbox/index.js.map +1 -1
  68. package/dist/module/components/checkbox/variants/default.js.map +1 -1
  69. package/dist/module/components/checkbox/variants/index.js.map +1 -1
  70. package/dist/module/components/checkbox/variants/outlined.js.map +1 -1
  71. package/dist/module/components/empty/components/empty-description.js.map +1 -1
  72. package/dist/module/components/empty/components/empty-media.js.map +1 -1
  73. package/dist/module/components/empty/components/empty-root.js.map +1 -1
  74. package/dist/module/components/empty/components/empty-title.js.map +1 -1
  75. package/dist/module/components/empty/index.js.map +1 -1
  76. package/dist/module/components/empty/variants/default.js.map +1 -1
  77. package/dist/module/components/empty/variants/index.js.map +1 -1
  78. package/dist/module/components/field/components/field-description.js.map +1 -1
  79. package/dist/module/components/field/components/field-error.js.map +1 -1
  80. package/dist/module/components/field/components/field-label.js.map +1 -1
  81. package/dist/module/components/field/components/field-root.js.map +1 -1
  82. package/dist/module/components/field/index.js.map +1 -1
  83. package/dist/module/components/field/variants/default.js.map +1 -1
  84. package/dist/module/components/field/variants/index.js.map +1 -1
  85. package/dist/module/components/icon/icon.js.map +1 -1
  86. package/dist/module/components/icon/index.js.map +1 -1
  87. package/dist/module/components/icon/variants/default.js.map +1 -1
  88. package/dist/module/components/icon/variants/index.js.map +1 -1
  89. package/dist/module/components/index.js.map +1 -1
  90. package/dist/module/components/input/index.js.map +1 -1
  91. package/dist/module/components/input/input.js.map +1 -1
  92. package/dist/module/components/input/numeric-input.js.map +1 -1
  93. package/dist/module/components/input/variants/default.js.map +1 -1
  94. package/dist/module/components/input/variants/index.js.map +1 -1
  95. package/dist/module/components/input/variants/secondary.js.map +1 -1
  96. package/dist/module/components/link/index.js.map +1 -1
  97. package/dist/module/components/link/link.js.map +1 -1
  98. package/dist/module/components/link/variants/default.js.map +1 -1
  99. package/dist/module/components/link/variants/index.js.map +1 -1
  100. package/dist/module/components/list/index.js.map +1 -1
  101. package/dist/module/components/menu/components/menu-content.js.map +1 -1
  102. package/dist/module/components/menu/components/menu-item.js.map +1 -1
  103. package/dist/module/components/menu/components/menu-overlay.js.map +1 -1
  104. package/dist/module/components/menu/components/menu-portal.js.map +1 -1
  105. package/dist/module/components/menu/components/menu-root.js.map +1 -1
  106. package/dist/module/components/menu/components/menu-trigger.js.map +1 -1
  107. package/dist/module/components/menu/index.js.map +1 -1
  108. package/dist/module/components/menu/variants/default.js.map +1 -1
  109. package/dist/module/components/menu/variants/index.js.map +1 -1
  110. package/dist/module/components/phone-input/components/country-picker.js +101 -0
  111. package/dist/module/components/phone-input/components/country-picker.js.map +1 -0
  112. package/dist/module/components/phone-input/components/phone-input-root.js +57 -0
  113. package/dist/module/components/phone-input/components/phone-input-root.js.map +1 -0
  114. package/dist/module/components/phone-input/components/phone-input.js +31 -0
  115. package/dist/module/components/phone-input/components/phone-input.js.map +1 -0
  116. package/dist/module/components/phone-input/context.js +12 -0
  117. package/dist/module/components/phone-input/context.js.map +1 -0
  118. package/dist/module/components/phone-input/index.js +8 -1
  119. package/dist/module/components/phone-input/index.js.map +1 -1
  120. package/dist/module/components/phone-input/variants/default.js +1 -1
  121. package/dist/module/components/phone-input/variants/default.js.map +1 -1
  122. package/dist/module/components/phone-input/variants/index.js.map +1 -1
  123. package/dist/module/components/popover/components/popover-close.js.map +1 -1
  124. package/dist/module/components/popover/components/popover-content.js.map +1 -1
  125. package/dist/module/components/popover/components/popover-overlay.js.map +1 -1
  126. package/dist/module/components/popover/components/popover-portal.js.map +1 -1
  127. package/dist/module/components/popover/components/popover-root.js.map +1 -1
  128. package/dist/module/components/popover/components/popover-trigger.js.map +1 -1
  129. package/dist/module/components/popover/index.js.map +1 -1
  130. package/dist/module/components/popover/variants/default.js.map +1 -1
  131. package/dist/module/components/popover/variants/index.js.map +1 -1
  132. package/dist/module/components/popover/variants/unstyled.js.map +1 -1
  133. package/dist/module/components/portal/index.js.map +1 -1
  134. package/dist/module/components/portal/portal.js.map +1 -1
  135. package/dist/module/components/portal/portal.web.js.map +1 -1
  136. package/dist/module/components/progress/components/progress-indicator.js.map +1 -1
  137. package/dist/module/components/progress/components/progress-root.js.map +1 -1
  138. package/dist/module/components/progress/index.js.map +1 -1
  139. package/dist/module/components/progress/variants/default.js.map +1 -1
  140. package/dist/module/components/progress/variants/index.js.map +1 -1
  141. package/dist/module/components/scroll-bar/index.js.map +1 -1
  142. package/dist/module/components/scroll-bar/scroll-bar.js.map +1 -1
  143. package/dist/module/components/select/components/select-content.js.map +1 -1
  144. package/dist/module/components/select/components/select-option.js.map +1 -1
  145. package/dist/module/components/select/components/select-overlay.js.map +1 -1
  146. package/dist/module/components/select/components/select-portal.js.map +1 -1
  147. package/dist/module/components/select/components/select-root.js.map +1 -1
  148. package/dist/module/components/select/components/select-trigger.js.map +1 -1
  149. package/dist/module/components/select/index.js.map +1 -1
  150. package/dist/module/components/select/variants/default.js.map +1 -1
  151. package/dist/module/components/select/variants/index.js.map +1 -1
  152. package/dist/module/components/tabs/components/tabs-list.js.map +1 -1
  153. package/dist/module/components/tabs/components/tabs-root.js.map +1 -1
  154. package/dist/module/components/tabs/components/tabs-trigger-text.js.map +1 -1
  155. package/dist/module/components/tabs/components/tabs-trigger.js.map +1 -1
  156. package/dist/module/components/tabs/index.js.map +1 -1
  157. package/dist/module/components/tabs/variants/default.js.map +1 -1
  158. package/dist/module/components/tabs/variants/index.js.map +1 -1
  159. package/dist/module/components/tabs/variants/line.js.map +1 -1
  160. package/dist/module/components/textarea/index.js.map +1 -1
  161. package/dist/module/components/textarea/textarea.js.map +1 -1
  162. package/dist/module/components/textarea/variants/default.js.map +1 -1
  163. package/dist/module/components/textarea/variants/index.js.map +1 -1
  164. package/dist/module/components/toast/components/toast-description.js.map +1 -1
  165. package/dist/module/components/toast/components/toast-icon.js.map +1 -1
  166. package/dist/module/components/toast/components/toast-root.js.map +1 -1
  167. package/dist/module/components/toast/components/toast-title.js.map +1 -1
  168. package/dist/module/components/toast/index.js.map +1 -1
  169. package/dist/module/components/toast/manager.js.map +1 -1
  170. package/dist/module/components/toast/variants/danger.js.map +1 -1
  171. package/dist/module/components/toast/variants/default.js.map +1 -1
  172. package/dist/module/components/toast/variants/index.js.map +1 -1
  173. package/dist/module/components/toast/variants/success.js.map +1 -1
  174. package/dist/module/components/typography/index.js.map +1 -1
  175. package/dist/module/components/typography/typography.js.map +1 -1
  176. package/dist/module/components/typography/variants/body-lg.js.map +1 -1
  177. package/dist/module/components/typography/variants/body-md.js.map +1 -1
  178. package/dist/module/components/typography/variants/body-sm.js.map +1 -1
  179. package/dist/module/components/typography/variants/heading-lg.js.map +1 -1
  180. package/dist/module/components/typography/variants/heading-md.js.map +1 -1
  181. package/dist/module/components/typography/variants/heading-sm.js.map +1 -1
  182. package/dist/module/components/typography/variants/index.js.map +1 -1
  183. package/dist/module/data/countries.js.map +1 -1
  184. package/dist/module/hooks/index.js.map +1 -1
  185. package/dist/module/hooks/use-phone-mask.js.map +1 -1
  186. package/dist/module/index.js.map +1 -1
  187. package/dist/module/safe-area/index.js.map +1 -1
  188. package/dist/module/safe-area/provider.js.map +1 -1
  189. package/dist/module/themes/adapters/index.js.map +1 -1
  190. package/dist/module/themes/adapters/react-navigation.js.map +1 -1
  191. package/dist/module/themes/default/index.js.map +1 -1
  192. package/dist/module/themes/index.js.map +1 -1
  193. package/dist/module/themes/provider.js.map +1 -1
  194. package/dist/module/utils/use-themed-styles.js.map +1 -1
  195. package/dist/typescript/babel.config.d.ts +1 -6
  196. package/dist/typescript/babel.config.d.ts.map +1 -1
  197. package/dist/typescript/src/components/phone-input/components/country-picker.d.ts +3 -0
  198. package/dist/typescript/src/components/phone-input/components/country-picker.d.ts.map +1 -0
  199. package/dist/typescript/src/components/phone-input/components/phone-input-root.d.ts +17 -0
  200. package/dist/typescript/src/components/phone-input/components/phone-input-root.d.ts.map +1 -0
  201. package/dist/typescript/src/components/phone-input/components/phone-input.d.ts +8 -0
  202. package/dist/typescript/src/components/phone-input/components/phone-input.d.ts.map +1 -0
  203. package/dist/typescript/src/components/phone-input/context.d.ts +17 -0
  204. package/dist/typescript/src/components/phone-input/context.d.ts.map +1 -0
  205. package/dist/typescript/src/components/phone-input/index.d.ts +8 -1
  206. package/dist/typescript/src/components/phone-input/index.d.ts.map +1 -1
  207. package/dist/typescript/src/data/countries.d.ts +2 -1
  208. package/dist/typescript/src/data/countries.d.ts.map +1 -1
  209. package/dist/typescript/src/hooks/use-phone-mask.d.ts +2 -2
  210. package/dist/typescript/src/hooks/use-phone-mask.d.ts.map +1 -1
  211. package/package.json +2 -7
  212. package/src/components/phone-input/components/country-picker.tsx +155 -0
  213. package/src/components/phone-input/components/phone-input-root.tsx +85 -0
  214. package/src/components/phone-input/components/phone-input.tsx +43 -0
  215. package/src/components/phone-input/context.ts +32 -0
  216. package/src/components/phone-input/index.ts +10 -1
  217. package/src/components/phone-input/variants/default.tsx +1 -1
  218. package/src/data/countries.ts +606 -68
  219. package/src/hooks/use-phone-mask.ts +2 -2
  220. package/dist/module/components/phone-input/phone-input.js +0 -165
  221. package/dist/module/components/phone-input/phone-input.js.map +0 -1
  222. package/dist/typescript/src/components/phone-input/phone-input.d.ts +0 -16
  223. package/dist/typescript/src/components/phone-input/phone-input.d.ts.map +0 -1
  224. package/scripts/build.sh +0 -2
  225. package/src/components/phone-input/phone-input.tsx +0 -220
@@ -1,6 +1,75 @@
1
+ export type CountryCode =
2
+ | "AF"
3
+ | "AL"
4
+ | "DZ"
5
+ | "AR"
6
+ | "AU"
7
+ | "AT"
8
+ | "BD"
9
+ | "BE"
10
+ | "BR"
11
+ | "CA"
12
+ | "CL"
13
+ | "CN"
14
+ | "CO"
15
+ | "CR"
16
+ | "CZ"
17
+ | "DK"
18
+ | "DO"
19
+ | "EC"
20
+ | "EG"
21
+ | "FI"
22
+ | "FR"
23
+ | "DE"
24
+ | "GH"
25
+ | "GR"
26
+ | "GT"
27
+ | "HK"
28
+ | "HU"
29
+ | "IN"
30
+ | "ID"
31
+ | "IE"
32
+ | "IL"
33
+ | "IT"
34
+ | "JM"
35
+ | "JP"
36
+ | "KE"
37
+ | "KR"
38
+ | "MY"
39
+ | "MX"
40
+ | "MA"
41
+ | "NL"
42
+ | "NZ"
43
+ | "NG"
44
+ | "NO"
45
+ | "PK"
46
+ | "PA"
47
+ | "PE"
48
+ | "PH"
49
+ | "PL"
50
+ | "PT"
51
+ | "PR"
52
+ | "RO"
53
+ | "RU"
54
+ | "SA"
55
+ | "SG"
56
+ | "ZA"
57
+ | "ES"
58
+ | "SE"
59
+ | "CH"
60
+ | "TW"
61
+ | "TH"
62
+ | "TR"
63
+ | "UA"
64
+ | "AE"
65
+ | "GB"
66
+ | "US"
67
+ | "VE"
68
+ | "VN";
69
+
1
70
  export interface CountryData {
2
71
  /** ISO 3166-1 alpha-2 code */
3
- code: string;
72
+ code: CountryCode;
4
73
  /** Display name */
5
74
  name: string;
6
75
  /** Dial code without plus sign */
@@ -14,73 +83,542 @@ export interface CountryData {
14
83
  }
15
84
 
16
85
  export const COUNTRIES: CountryData[] = [
17
- { code: "AF", name: "Afghanistan", dialCode: "93", flag: "🇦🇫", format: "## ### ####", priority: 0 },
18
- { code: "AL", name: "Albania", dialCode: "355", flag: "🇦🇱", format: "## ### ####", priority: 0 },
19
- { code: "DZ", name: "Algeria", dialCode: "213", flag: "🇩🇿", format: "### ## ## ##", priority: 0 },
20
- { code: "AR", name: "Argentina", dialCode: "54", flag: "🇦🇷", format: "## ####-####", priority: 0 },
21
- { code: "AU", name: "Australia", dialCode: "61", flag: "🇦🇺", format: "#### ### ###", priority: 0 },
22
- { code: "AT", name: "Austria", dialCode: "43", flag: "🇦🇹", format: "### #######", priority: 0 },
23
- { code: "BD", name: "Bangladesh", dialCode: "880", flag: "🇧🇩", format: "#### ######", priority: 0 },
24
- { code: "BE", name: "Belgium", dialCode: "32", flag: "🇧🇪", format: "### ## ## ##", priority: 0 },
25
- { code: "BR", name: "Brazil", dialCode: "55", flag: "🇧🇷", format: "(##) #####-####", priority: 0 },
26
- { code: "CA", name: "Canada", dialCode: "1", flag: "🇨🇦", format: "(###) ###-####", priority: 1 },
27
- { code: "CL", name: "Chile", dialCode: "56", flag: "🇨🇱", format: "# #### ####", priority: 0 },
28
- { code: "CN", name: "China", dialCode: "86", flag: "🇨🇳", format: "### #### ####", priority: 0 },
29
- { code: "CO", name: "Colombia", dialCode: "57", flag: "🇨🇴", format: "### ### ####", priority: 0 },
30
- { code: "CR", name: "Costa Rica", dialCode: "506", flag: "🇨🇷", format: "#### ####", priority: 0 },
31
- { code: "CZ", name: "Czech Republic", dialCode: "420", flag: "🇨🇿", format: "### ### ###", priority: 0 },
32
- { code: "DK", name: "Denmark", dialCode: "45", flag: "🇩🇰", format: "## ## ## ##", priority: 0 },
33
- { code: "DO", name: "Dominican Republic", dialCode: "1", flag: "🇩🇴", format: "(###) ###-####", priority: 2 },
34
- { code: "EC", name: "Ecuador", dialCode: "593", flag: "🇪🇨", format: "## ### ####", priority: 0 },
35
- { code: "EG", name: "Egypt", dialCode: "20", flag: "🇪🇬", format: "### ### ####", priority: 0 },
36
- { code: "FI", name: "Finland", dialCode: "358", flag: "🇫🇮", format: "## ### ## ##", priority: 0 },
37
- { code: "FR", name: "France", dialCode: "33", flag: "🇫🇷", format: "# ## ## ## ##", priority: 0 },
38
- { code: "DE", name: "Germany", dialCode: "49", flag: "🇩🇪", format: "#### #######", priority: 0 },
39
- { code: "GH", name: "Ghana", dialCode: "233", flag: "🇬🇭", format: "## ### ####", priority: 0 },
40
- { code: "GR", name: "Greece", dialCode: "30", flag: "🇬🇷", format: "### ### ####", priority: 0 },
41
- { code: "GT", name: "Guatemala", dialCode: "502", flag: "🇬🇹", format: "#### ####", priority: 0 },
42
- { code: "HK", name: "Hong Kong", dialCode: "852", flag: "🇭🇰", format: "#### ####", priority: 0 },
43
- { code: "HU", name: "Hungary", dialCode: "36", flag: "🇭🇺", format: "## ### ####", priority: 0 },
44
- { code: "IN", name: "India", dialCode: "91", flag: "🇮🇳", format: "#####-#####", priority: 0 },
45
- { code: "ID", name: "Indonesia", dialCode: "62", flag: "🇮🇩", format: "### #### ####", priority: 0 },
46
- { code: "IE", name: "Ireland", dialCode: "353", flag: "🇮🇪", format: "## ### ####", priority: 0 },
47
- { code: "IL", name: "Israel", dialCode: "972", flag: "🇮🇱", format: "##-###-####", priority: 0 },
48
- { code: "IT", name: "Italy", dialCode: "39", flag: "🇮🇹", format: "### ### ####", priority: 0 },
49
- { code: "JM", name: "Jamaica", dialCode: "1", flag: "🇯🇲", format: "(###) ###-####", priority: 3 },
50
- { code: "JP", name: "Japan", dialCode: "81", flag: "🇯🇵", format: "##-####-####", priority: 0 },
51
- { code: "KE", name: "Kenya", dialCode: "254", flag: "🇰🇪", format: "### ######", priority: 0 },
52
- { code: "KR", name: "South Korea", dialCode: "82", flag: "🇰🇷", format: "##-####-####", priority: 0 },
53
- { code: "MY", name: "Malaysia", dialCode: "60", flag: "🇲🇾", format: "##-### ####", priority: 0 },
54
- { code: "MX", name: "Mexico", dialCode: "52", flag: "🇲🇽", format: "## #### ####", priority: 0 },
55
- { code: "MA", name: "Morocco", dialCode: "212", flag: "🇲🇦", format: "##-### ####", priority: 0 },
56
- { code: "NL", name: "Netherlands", dialCode: "31", flag: "🇳🇱", format: "# ## ## ## ##", priority: 0 },
57
- { code: "NZ", name: "New Zealand", dialCode: "64", flag: "🇳🇿", format: "## ### ####", priority: 0 },
58
- { code: "NG", name: "Nigeria", dialCode: "234", flag: "🇳🇬", format: "### ### ####", priority: 0 },
59
- { code: "NO", name: "Norway", dialCode: "47", flag: "🇳🇴", format: "### ## ###", priority: 0 },
60
- { code: "PK", name: "Pakistan", dialCode: "92", flag: "🇵🇰", format: "### #######", priority: 0 },
61
- { code: "PA", name: "Panama", dialCode: "507", flag: "🇵🇦", format: "####-####", priority: 0 },
62
- { code: "PE", name: "Peru", dialCode: "51", flag: "🇵🇪", format: "### ### ###", priority: 0 },
63
- { code: "PH", name: "Philippines", dialCode: "63", flag: "🇵🇭", format: "### ### ####", priority: 0 },
64
- { code: "PL", name: "Poland", dialCode: "48", flag: "🇵🇱", format: "### ### ###", priority: 0 },
65
- { code: "PT", name: "Portugal", dialCode: "351", flag: "🇵🇹", format: "### ### ###", priority: 0 },
66
- { code: "PR", name: "Puerto Rico", dialCode: "1", flag: "🇵🇷", format: "(###) ###-####", priority: 4 },
67
- { code: "RO", name: "Romania", dialCode: "40", flag: "🇷🇴", format: "### ### ###", priority: 0 },
68
- { code: "RU", name: "Russia", dialCode: "7", flag: "🇷🇺", format: "### ###-##-##", priority: 0 },
69
- { code: "SA", name: "Saudi Arabia", dialCode: "966", flag: "🇸🇦", format: "## ### ####", priority: 0 },
70
- { code: "SG", name: "Singapore", dialCode: "65", flag: "🇸🇬", format: "#### ####", priority: 0 },
71
- { code: "ZA", name: "South Africa", dialCode: "27", flag: "🇿🇦", format: "## ### ####", priority: 0 },
72
- { code: "ES", name: "Spain", dialCode: "34", flag: "🇪🇸", format: "### ## ## ##", priority: 0 },
73
- { code: "SE", name: "Sweden", dialCode: "46", flag: "🇸🇪", format: "##-### ## ##", priority: 0 },
74
- { code: "CH", name: "Switzerland", dialCode: "41", flag: "🇨🇭", format: "## ### ## ##", priority: 0 },
75
- { code: "TW", name: "Taiwan", dialCode: "886", flag: "🇹🇼", format: "### ### ###", priority: 0 },
76
- { code: "TH", name: "Thailand", dialCode: "66", flag: "🇹🇭", format: "## ### ####", priority: 0 },
77
- { code: "TR", name: "Turkey", dialCode: "90", flag: "🇹🇷", format: "### ### ## ##", priority: 0 },
78
- { code: "UA", name: "Ukraine", dialCode: "380", flag: "🇺🇦", format: "## ### ## ##", priority: 0 },
79
- { code: "AE", name: "United Arab Emirates", dialCode: "971", flag: "🇦🇪", format: "## ### ####", priority: 0 },
80
- { code: "GB", name: "United Kingdom", dialCode: "44", flag: "🇬🇧", format: "#### ######", priority: 0 },
81
- { code: "US", name: "United States", dialCode: "1", flag: "🇺🇸", format: "(###) ###-####", priority: 0 },
82
- { code: "VE", name: "Venezuela", dialCode: "58", flag: "🇻🇪", format: "###-###-####", priority: 0 },
83
- { code: "VN", name: "Vietnam", dialCode: "84", flag: "🇻🇳", format: "## ### ## ##", priority: 0 },
86
+ {
87
+ code: "AF",
88
+ name: "Afghanistan",
89
+ dialCode: "93",
90
+ flag: "🇦🇫",
91
+ format: "## ### ####",
92
+ priority: 0,
93
+ },
94
+ {
95
+ code: "AL",
96
+ name: "Albania",
97
+ dialCode: "355",
98
+ flag: "🇦🇱",
99
+ format: "## ### ####",
100
+ priority: 0,
101
+ },
102
+ {
103
+ code: "DZ",
104
+ name: "Algeria",
105
+ dialCode: "213",
106
+ flag: "🇩🇿",
107
+ format: "### ## ## ##",
108
+ priority: 0,
109
+ },
110
+ {
111
+ code: "AR",
112
+ name: "Argentina",
113
+ dialCode: "54",
114
+ flag: "🇦🇷",
115
+ format: "## ####-####",
116
+ priority: 0,
117
+ },
118
+ {
119
+ code: "AU",
120
+ name: "Australia",
121
+ dialCode: "61",
122
+ flag: "🇦🇺",
123
+ format: "#### ### ###",
124
+ priority: 0,
125
+ },
126
+ {
127
+ code: "AT",
128
+ name: "Austria",
129
+ dialCode: "43",
130
+ flag: "🇦🇹",
131
+ format: "### #######",
132
+ priority: 0,
133
+ },
134
+ {
135
+ code: "BD",
136
+ name: "Bangladesh",
137
+ dialCode: "880",
138
+ flag: "🇧🇩",
139
+ format: "#### ######",
140
+ priority: 0,
141
+ },
142
+ {
143
+ code: "BE",
144
+ name: "Belgium",
145
+ dialCode: "32",
146
+ flag: "🇧🇪",
147
+ format: "### ## ## ##",
148
+ priority: 0,
149
+ },
150
+ {
151
+ code: "BR",
152
+ name: "Brazil",
153
+ dialCode: "55",
154
+ flag: "🇧🇷",
155
+ format: "(##) #####-####",
156
+ priority: 0,
157
+ },
158
+ {
159
+ code: "CA",
160
+ name: "Canada",
161
+ dialCode: "1",
162
+ flag: "🇨🇦",
163
+ format: "(###) ###-####",
164
+ priority: 1,
165
+ },
166
+ {
167
+ code: "CL",
168
+ name: "Chile",
169
+ dialCode: "56",
170
+ flag: "🇨🇱",
171
+ format: "# #### ####",
172
+ priority: 0,
173
+ },
174
+ {
175
+ code: "CN",
176
+ name: "China",
177
+ dialCode: "86",
178
+ flag: "🇨🇳",
179
+ format: "### #### ####",
180
+ priority: 0,
181
+ },
182
+ {
183
+ code: "CO",
184
+ name: "Colombia",
185
+ dialCode: "57",
186
+ flag: "🇨🇴",
187
+ format: "### ### ####",
188
+ priority: 0,
189
+ },
190
+ {
191
+ code: "CR",
192
+ name: "Costa Rica",
193
+ dialCode: "506",
194
+ flag: "🇨🇷",
195
+ format: "#### ####",
196
+ priority: 0,
197
+ },
198
+ {
199
+ code: "CZ",
200
+ name: "Czech Republic",
201
+ dialCode: "420",
202
+ flag: "🇨🇿",
203
+ format: "### ### ###",
204
+ priority: 0,
205
+ },
206
+ {
207
+ code: "DK",
208
+ name: "Denmark",
209
+ dialCode: "45",
210
+ flag: "🇩🇰",
211
+ format: "## ## ## ##",
212
+ priority: 0,
213
+ },
214
+ {
215
+ code: "DO",
216
+ name: "Dominican Republic",
217
+ dialCode: "1",
218
+ flag: "🇩🇴",
219
+ format: "(###) ###-####",
220
+ priority: 2,
221
+ },
222
+ {
223
+ code: "EC",
224
+ name: "Ecuador",
225
+ dialCode: "593",
226
+ flag: "🇪🇨",
227
+ format: "## ### ####",
228
+ priority: 0,
229
+ },
230
+ {
231
+ code: "EG",
232
+ name: "Egypt",
233
+ dialCode: "20",
234
+ flag: "🇪🇬",
235
+ format: "### ### ####",
236
+ priority: 0,
237
+ },
238
+ {
239
+ code: "FI",
240
+ name: "Finland",
241
+ dialCode: "358",
242
+ flag: "🇫🇮",
243
+ format: "## ### ## ##",
244
+ priority: 0,
245
+ },
246
+ {
247
+ code: "FR",
248
+ name: "France",
249
+ dialCode: "33",
250
+ flag: "🇫🇷",
251
+ format: "# ## ## ## ##",
252
+ priority: 0,
253
+ },
254
+ {
255
+ code: "DE",
256
+ name: "Germany",
257
+ dialCode: "49",
258
+ flag: "🇩🇪",
259
+ format: "#### #######",
260
+ priority: 0,
261
+ },
262
+ {
263
+ code: "GH",
264
+ name: "Ghana",
265
+ dialCode: "233",
266
+ flag: "🇬🇭",
267
+ format: "## ### ####",
268
+ priority: 0,
269
+ },
270
+ {
271
+ code: "GR",
272
+ name: "Greece",
273
+ dialCode: "30",
274
+ flag: "🇬🇷",
275
+ format: "### ### ####",
276
+ priority: 0,
277
+ },
278
+ {
279
+ code: "GT",
280
+ name: "Guatemala",
281
+ dialCode: "502",
282
+ flag: "🇬🇹",
283
+ format: "#### ####",
284
+ priority: 0,
285
+ },
286
+ {
287
+ code: "HK",
288
+ name: "Hong Kong",
289
+ dialCode: "852",
290
+ flag: "🇭🇰",
291
+ format: "#### ####",
292
+ priority: 0,
293
+ },
294
+ {
295
+ code: "HU",
296
+ name: "Hungary",
297
+ dialCode: "36",
298
+ flag: "🇭🇺",
299
+ format: "## ### ####",
300
+ priority: 0,
301
+ },
302
+ {
303
+ code: "IN",
304
+ name: "India",
305
+ dialCode: "91",
306
+ flag: "🇮🇳",
307
+ format: "#####-#####",
308
+ priority: 0,
309
+ },
310
+ {
311
+ code: "ID",
312
+ name: "Indonesia",
313
+ dialCode: "62",
314
+ flag: "🇮🇩",
315
+ format: "### #### ####",
316
+ priority: 0,
317
+ },
318
+ {
319
+ code: "IE",
320
+ name: "Ireland",
321
+ dialCode: "353",
322
+ flag: "🇮🇪",
323
+ format: "## ### ####",
324
+ priority: 0,
325
+ },
326
+ {
327
+ code: "IL",
328
+ name: "Israel",
329
+ dialCode: "972",
330
+ flag: "🇮🇱",
331
+ format: "##-###-####",
332
+ priority: 0,
333
+ },
334
+ {
335
+ code: "IT",
336
+ name: "Italy",
337
+ dialCode: "39",
338
+ flag: "🇮🇹",
339
+ format: "### ### ####",
340
+ priority: 0,
341
+ },
342
+ {
343
+ code: "JM",
344
+ name: "Jamaica",
345
+ dialCode: "1",
346
+ flag: "🇯🇲",
347
+ format: "(###) ###-####",
348
+ priority: 3,
349
+ },
350
+ {
351
+ code: "JP",
352
+ name: "Japan",
353
+ dialCode: "81",
354
+ flag: "🇯🇵",
355
+ format: "##-####-####",
356
+ priority: 0,
357
+ },
358
+ {
359
+ code: "KE",
360
+ name: "Kenya",
361
+ dialCode: "254",
362
+ flag: "🇰🇪",
363
+ format: "### ######",
364
+ priority: 0,
365
+ },
366
+ {
367
+ code: "KR",
368
+ name: "South Korea",
369
+ dialCode: "82",
370
+ flag: "🇰🇷",
371
+ format: "##-####-####",
372
+ priority: 0,
373
+ },
374
+ {
375
+ code: "MY",
376
+ name: "Malaysia",
377
+ dialCode: "60",
378
+ flag: "🇲🇾",
379
+ format: "##-### ####",
380
+ priority: 0,
381
+ },
382
+ {
383
+ code: "MX",
384
+ name: "Mexico",
385
+ dialCode: "52",
386
+ flag: "🇲🇽",
387
+ format: "## #### ####",
388
+ priority: 0,
389
+ },
390
+ {
391
+ code: "MA",
392
+ name: "Morocco",
393
+ dialCode: "212",
394
+ flag: "🇲🇦",
395
+ format: "##-### ####",
396
+ priority: 0,
397
+ },
398
+ {
399
+ code: "NL",
400
+ name: "Netherlands",
401
+ dialCode: "31",
402
+ flag: "🇳🇱",
403
+ format: "# ## ## ## ##",
404
+ priority: 0,
405
+ },
406
+ {
407
+ code: "NZ",
408
+ name: "New Zealand",
409
+ dialCode: "64",
410
+ flag: "🇳🇿",
411
+ format: "## ### ####",
412
+ priority: 0,
413
+ },
414
+ {
415
+ code: "NG",
416
+ name: "Nigeria",
417
+ dialCode: "234",
418
+ flag: "🇳🇬",
419
+ format: "### ### ####",
420
+ priority: 0,
421
+ },
422
+ {
423
+ code: "NO",
424
+ name: "Norway",
425
+ dialCode: "47",
426
+ flag: "🇳🇴",
427
+ format: "### ## ###",
428
+ priority: 0,
429
+ },
430
+ {
431
+ code: "PK",
432
+ name: "Pakistan",
433
+ dialCode: "92",
434
+ flag: "🇵🇰",
435
+ format: "### #######",
436
+ priority: 0,
437
+ },
438
+ {
439
+ code: "PA",
440
+ name: "Panama",
441
+ dialCode: "507",
442
+ flag: "🇵🇦",
443
+ format: "####-####",
444
+ priority: 0,
445
+ },
446
+ {
447
+ code: "PE",
448
+ name: "Peru",
449
+ dialCode: "51",
450
+ flag: "🇵🇪",
451
+ format: "### ### ###",
452
+ priority: 0,
453
+ },
454
+ {
455
+ code: "PH",
456
+ name: "Philippines",
457
+ dialCode: "63",
458
+ flag: "🇵🇭",
459
+ format: "### ### ####",
460
+ priority: 0,
461
+ },
462
+ {
463
+ code: "PL",
464
+ name: "Poland",
465
+ dialCode: "48",
466
+ flag: "🇵🇱",
467
+ format: "### ### ###",
468
+ priority: 0,
469
+ },
470
+ {
471
+ code: "PT",
472
+ name: "Portugal",
473
+ dialCode: "351",
474
+ flag: "🇵🇹",
475
+ format: "### ### ###",
476
+ priority: 0,
477
+ },
478
+ {
479
+ code: "PR",
480
+ name: "Puerto Rico",
481
+ dialCode: "1",
482
+ flag: "🇵🇷",
483
+ format: "(###) ###-####",
484
+ priority: 4,
485
+ },
486
+ {
487
+ code: "RO",
488
+ name: "Romania",
489
+ dialCode: "40",
490
+ flag: "🇷🇴",
491
+ format: "### ### ###",
492
+ priority: 0,
493
+ },
494
+ {
495
+ code: "RU",
496
+ name: "Russia",
497
+ dialCode: "7",
498
+ flag: "🇷🇺",
499
+ format: "### ###-##-##",
500
+ priority: 0,
501
+ },
502
+ {
503
+ code: "SA",
504
+ name: "Saudi Arabia",
505
+ dialCode: "966",
506
+ flag: "🇸🇦",
507
+ format: "## ### ####",
508
+ priority: 0,
509
+ },
510
+ {
511
+ code: "SG",
512
+ name: "Singapore",
513
+ dialCode: "65",
514
+ flag: "🇸🇬",
515
+ format: "#### ####",
516
+ priority: 0,
517
+ },
518
+ {
519
+ code: "ZA",
520
+ name: "South Africa",
521
+ dialCode: "27",
522
+ flag: "🇿🇦",
523
+ format: "## ### ####",
524
+ priority: 0,
525
+ },
526
+ {
527
+ code: "ES",
528
+ name: "Spain",
529
+ dialCode: "34",
530
+ flag: "🇪🇸",
531
+ format: "### ## ## ##",
532
+ priority: 0,
533
+ },
534
+ {
535
+ code: "SE",
536
+ name: "Sweden",
537
+ dialCode: "46",
538
+ flag: "🇸🇪",
539
+ format: "##-### ## ##",
540
+ priority: 0,
541
+ },
542
+ {
543
+ code: "CH",
544
+ name: "Switzerland",
545
+ dialCode: "41",
546
+ flag: "🇨🇭",
547
+ format: "## ### ## ##",
548
+ priority: 0,
549
+ },
550
+ {
551
+ code: "TW",
552
+ name: "Taiwan",
553
+ dialCode: "886",
554
+ flag: "🇹🇼",
555
+ format: "### ### ###",
556
+ priority: 0,
557
+ },
558
+ {
559
+ code: "TH",
560
+ name: "Thailand",
561
+ dialCode: "66",
562
+ flag: "🇹🇭",
563
+ format: "## ### ####",
564
+ priority: 0,
565
+ },
566
+ {
567
+ code: "TR",
568
+ name: "Turkey",
569
+ dialCode: "90",
570
+ flag: "🇹🇷",
571
+ format: "### ### ## ##",
572
+ priority: 0,
573
+ },
574
+ {
575
+ code: "UA",
576
+ name: "Ukraine",
577
+ dialCode: "380",
578
+ flag: "🇺🇦",
579
+ format: "## ### ## ##",
580
+ priority: 0,
581
+ },
582
+ {
583
+ code: "AE",
584
+ name: "United Arab Emirates",
585
+ dialCode: "971",
586
+ flag: "🇦🇪",
587
+ format: "## ### ####",
588
+ priority: 0,
589
+ },
590
+ {
591
+ code: "GB",
592
+ name: "United Kingdom",
593
+ dialCode: "44",
594
+ flag: "🇬🇧",
595
+ format: "#### ######",
596
+ priority: 0,
597
+ },
598
+ {
599
+ code: "US",
600
+ name: "United States",
601
+ dialCode: "1",
602
+ flag: "🇺🇸",
603
+ format: "(###) ###-####",
604
+ priority: 0,
605
+ },
606
+ {
607
+ code: "VE",
608
+ name: "Venezuela",
609
+ dialCode: "58",
610
+ flag: "🇻🇪",
611
+ format: "###-###-####",
612
+ priority: 0,
613
+ },
614
+ {
615
+ code: "VN",
616
+ name: "Vietnam",
617
+ dialCode: "84",
618
+ flag: "🇻🇳",
619
+ format: "## ### ## ##",
620
+ priority: 0,
621
+ },
84
622
  ];
85
623
 
86
624
  export function getCountryByCode(code: string): CountryData | undefined {