@tcn/ui 0.10.0 → 0.11.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.
Files changed (165) hide show
  1. package/dist/form/field/h_field/h_field.d.ts.map +1 -1
  2. package/dist/form/field/h_field/h_field.js +33 -35
  3. package/dist/form/field/h_field/h_field.js.map +1 -1
  4. package/dist/form/field/v_field/v_field.d.ts.map +1 -1
  5. package/dist/form/field/v_field/v_field.js +34 -36
  6. package/dist/form/field/v_field/v_field.js.map +1 -1
  7. package/dist/frame.css +1 -1
  8. package/dist/inputs/color_input/color_input.d.ts.map +1 -1
  9. package/dist/inputs/color_input/color_input.js +47 -46
  10. package/dist/inputs/color_input/color_input.js.map +1 -1
  11. package/dist/inputs/combo_box/combo_box.d.ts.map +1 -1
  12. package/dist/inputs/combo_box/combo_box.js +61 -58
  13. package/dist/inputs/combo_box/combo_box.js.map +1 -1
  14. package/dist/inputs/index.d.ts +1 -0
  15. package/dist/inputs/index.d.ts.map +1 -1
  16. package/dist/inputs/index.js +34 -31
  17. package/dist/inputs/index.js.map +1 -1
  18. package/dist/inputs/input/input.js +9 -9
  19. package/dist/inputs/input/input.js.map +1 -1
  20. package/dist/inputs/input_group/input_group.d.ts +5 -0
  21. package/dist/inputs/input_group/input_group.d.ts.map +1 -0
  22. package/dist/inputs/input_group/input_group.js +20 -0
  23. package/dist/inputs/input_group/input_group.js.map +1 -0
  24. package/dist/inputs/phone_number_input/countries_phone_information.d.ts +2 -2
  25. package/dist/inputs/phone_number_input/countries_phone_information.d.ts.map +1 -1
  26. package/dist/inputs/phone_number_input/countries_phone_information.js +5 -353
  27. package/dist/inputs/phone_number_input/countries_phone_information.js.map +1 -1
  28. package/dist/inputs/phone_number_input/phone_number_context.d.ts +24 -0
  29. package/dist/inputs/phone_number_input/phone_number_context.d.ts.map +1 -0
  30. package/dist/inputs/phone_number_input/phone_number_context.js +23 -0
  31. package/dist/inputs/phone_number_input/phone_number_context.js.map +1 -0
  32. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.d.ts +19 -0
  33. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.d.ts.map +1 -0
  34. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.js +77 -0
  35. package/dist/inputs/phone_number_input/phone_number_country_select_adapter.js.map +1 -0
  36. package/dist/inputs/phone_number_input/phone_number_input.d.ts +16 -14
  37. package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
  38. package/dist/inputs/phone_number_input/phone_number_input.js +104 -274
  39. package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
  40. package/dist/inputs/phone_number_input/phone_number_input_adapter.d.ts +6 -0
  41. package/dist/inputs/phone_number_input/phone_number_input_adapter.d.ts.map +1 -0
  42. package/dist/inputs/phone_number_input/phone_number_input_adapter.js +95 -0
  43. package/dist/inputs/phone_number_input/phone_number_input_adapter.js.map +1 -0
  44. package/dist/inputs/phone_number_input/sip_input.d.ts +12 -0
  45. package/dist/inputs/phone_number_input/sip_input.d.ts.map +1 -0
  46. package/dist/inputs/phone_number_input/sip_input.js +111 -0
  47. package/dist/inputs/phone_number_input/sip_input.js.map +1 -0
  48. package/dist/inputs/select/select.d.ts.map +1 -1
  49. package/dist/inputs/select/select.js +3 -2
  50. package/dist/inputs/select/select.js.map +1 -1
  51. package/dist/inputs/suggestions/suggestion_list.d.ts +4 -1
  52. package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
  53. package/dist/inputs/suggestions/suggestion_list.js +120 -111
  54. package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
  55. package/dist/inputs/textarea/textarea.js +8 -8
  56. package/dist/inputs/textarea/textarea.js.map +1 -1
  57. package/dist/inputs/unit_input/unit_input.d.ts.map +1 -1
  58. package/dist/inputs/unit_input/unit_input.js +39 -39
  59. package/dist/inputs/unit_input/unit_input.js.map +1 -1
  60. package/dist/overlay/frame/frame.d.ts +8 -4
  61. package/dist/overlay/frame/frame.d.ts.map +1 -1
  62. package/dist/overlay/frame/frame.js +87 -23
  63. package/dist/overlay/frame/frame.js.map +1 -1
  64. package/dist/overlay/popper/base/dismissal_decorator.js.map +1 -1
  65. package/dist/overlay/popper/legacy/popper.d.ts.map +1 -1
  66. package/dist/overlay/popper/legacy/popper.js +52 -50
  67. package/dist/overlay/popper/legacy/popper.js.map +1 -1
  68. package/dist/phone_number_input.css +1 -1
  69. package/dist/stacks/box/bottom_resize_handle.d.ts +1 -1
  70. package/dist/stacks/box/bottom_resize_handle.d.ts.map +1 -1
  71. package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
  72. package/dist/stacks/box/box.d.ts +2 -2
  73. package/dist/stacks/box/box.d.ts.map +1 -1
  74. package/dist/stacks/box/box.js.map +1 -1
  75. package/dist/stacks/box/end_resize_handle.d.ts +1 -1
  76. package/dist/stacks/box/end_resize_handle.d.ts.map +1 -1
  77. package/dist/stacks/box/end_resize_handle.js.map +1 -1
  78. package/dist/stacks/box/left_resize_handle.d.ts +1 -1
  79. package/dist/stacks/box/left_resize_handle.d.ts.map +1 -1
  80. package/dist/stacks/box/left_resize_handle.js.map +1 -1
  81. package/dist/stacks/box/resize_handlers.d.ts +2 -2
  82. package/dist/stacks/box/resize_handlers.d.ts.map +1 -1
  83. package/dist/stacks/box/resize_handlers.js +32 -32
  84. package/dist/stacks/box/resize_handlers.js.map +1 -1
  85. package/dist/stacks/box/right_resize_handle.d.ts +1 -1
  86. package/dist/stacks/box/right_resize_handle.d.ts.map +1 -1
  87. package/dist/stacks/box/right_resize_handle.js.map +1 -1
  88. package/dist/stacks/box/start_resize_handle.d.ts +1 -1
  89. package/dist/stacks/box/start_resize_handle.d.ts.map +1 -1
  90. package/dist/stacks/box/start_resize_handle.js +4 -4
  91. package/dist/stacks/box/start_resize_handle.js.map +1 -1
  92. package/dist/stacks/box/top_resize_handle.d.ts +1 -1
  93. package/dist/stacks/box/top_resize_handle.d.ts.map +1 -1
  94. package/dist/stacks/box/top_resize_handle.js +4 -4
  95. package/dist/stacks/box/top_resize_handle.js.map +1 -1
  96. package/dist/stacks/h_collapsible_box.js +18 -18
  97. package/dist/stacks/h_collapsible_box.js.map +1 -1
  98. package/dist/stacks/v_collapsible_box.js +18 -18
  99. package/dist/stacks/v_collapsible_box.js.map +1 -1
  100. package/dist/suggestion_list.css +1 -1
  101. package/dist/surfaces/window/window.d.ts +1 -1
  102. package/dist/surfaces/window/window.d.ts.map +1 -1
  103. package/dist/surfaces/window/window.js +20 -10
  104. package/dist/surfaces/window/window.js.map +1 -1
  105. package/dist/themes/stylesheets/reset.css +1 -1
  106. package/dist/themes/stylesheets/reset.js +8 -1
  107. package/dist/themes/stylesheets/reset.js.map +1 -1
  108. package/dist/themes/themes/ergo/ergo_theme.css +1 -1
  109. package/dist/themes/themes/ergo/ergo_theme.js +183 -18
  110. package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
  111. package/dist/typography/body_text/body_text.d.ts.map +1 -1
  112. package/dist/typography/body_text/body_text.js +12 -10
  113. package/dist/typography/body_text/body_text.js.map +1 -1
  114. package/dist/utils/dnd/hooks/use_drag_container.d.ts.map +1 -1
  115. package/dist/utils/dnd/hooks/use_drag_container.js +22 -19
  116. package/dist/utils/dnd/hooks/use_drag_container.js.map +1 -1
  117. package/package.json +4 -2
  118. package/src/form/field/h_field/h_field.tsx +0 -4
  119. package/src/form/field/v_field/v_field.stories.tsx +8 -0
  120. package/src/form/field/v_field/v_field.tsx +1 -4
  121. package/src/form/field_set/field_set.stories.tsx +2 -1
  122. package/src/inputs/__docs__/inputs.mdx +81 -0
  123. package/src/inputs/__docs__/inputs.stories.tsx +268 -0
  124. package/src/inputs/color_input/color_input.tsx +17 -17
  125. package/src/inputs/combo_box/combo_box.tsx +17 -13
  126. package/src/inputs/index.ts +2 -0
  127. package/src/inputs/input/input.tsx +1 -1
  128. package/src/inputs/input_group/input_group.tsx +26 -0
  129. package/src/inputs/phone_number_input/countries_phone_information.ts +6 -353
  130. package/src/inputs/phone_number_input/phone_number_context.tsx +32 -0
  131. package/src/inputs/phone_number_input/phone_number_country_select_adapter.tsx +126 -0
  132. package/src/inputs/phone_number_input/phone_number_input.module.css +5 -63
  133. package/src/inputs/phone_number_input/phone_number_input.stories.tsx +180 -150
  134. package/src/inputs/phone_number_input/phone_number_input.tsx +133 -400
  135. package/src/inputs/phone_number_input/phone_number_input_adapter.tsx +123 -0
  136. package/src/inputs/phone_number_input/sip_input.tsx +147 -0
  137. package/src/inputs/select/select.tsx +13 -14
  138. package/src/inputs/suggestions/suggestion_list.module.css +1 -0
  139. package/src/inputs/suggestions/suggestion_list.stories.tsx +12 -8
  140. package/src/inputs/suggestions/suggestion_list.tsx +24 -3
  141. package/src/inputs/textarea/textarea.tsx +1 -1
  142. package/src/inputs/unit_input/unit_input.tsx +17 -17
  143. package/src/overlay/frame/frame.module.css +2 -4
  144. package/src/overlay/frame/frame.stories.tsx +13 -10
  145. package/src/overlay/frame/frame.tsx +123 -15
  146. package/src/overlay/popper/base/dismissal_decorator.tsx +1 -1
  147. package/src/overlay/popper/legacy/popper.tsx +5 -1
  148. package/src/stacks/box/bottom_resize_handle.tsx +6 -1
  149. package/src/stacks/box/box.tsx +12 -2
  150. package/src/stacks/box/end_resize_handle.tsx +6 -1
  151. package/src/stacks/box/left_resize_handle.tsx +6 -1
  152. package/src/stacks/box/resize_handlers.ts +20 -8
  153. package/src/stacks/box/right_resize_handle.tsx +6 -1
  154. package/src/stacks/box/start_resize_handle.tsx +7 -2
  155. package/src/stacks/box/top_resize_handle.tsx +7 -2
  156. package/src/stacks/h_collapsible_box.tsx +2 -2
  157. package/src/stacks/v_collapsible_box.tsx +2 -2
  158. package/src/surfaces/window/window.tsx +14 -4
  159. package/src/themes/stories/controls_fieldset.tsx +1 -1
  160. package/src/themes/stylesheets/reset.css +8 -1
  161. package/src/themes/themes/ergo/ergo_theme.css +183 -18
  162. package/src/typography/body_text/body_text.tsx +2 -0
  163. package/src/utils/dnd/__stories__/draggable.stories.tsx +14 -8
  164. package/src/utils/dnd/hooks/use_drag_container.ts +13 -3
  165. package/src/inputs/phone_number_input/__tests__/utils.test.ts +0 -52
@@ -1,23 +1,18 @@
1
- import { MaskConfig } from '../mask_input/mask_config.js';
1
+ import type { CountryCode } from 'libphonenumber-js';
2
2
 
3
3
  export interface CountryPhoneInformation {
4
4
  name: string;
5
5
  code: string;
6
6
  prefix: string;
7
- masks: MaskConfig[];
8
7
  unicodeFlag: string;
9
8
  keywords: string[];
10
9
  }
10
+
11
11
  export const countriesPhoneInformation: CountryPhoneInformation[] = [
12
12
  {
13
13
  name: 'United States',
14
14
  code: 'US',
15
15
  prefix: '+1',
16
- masks: [
17
- {
18
- mask: '(999) 999-9999',
19
- },
20
- ],
21
16
  unicodeFlag: '🇺🇸',
22
17
  keywords: ['united states', 'usa', 'us', 'america', 'american', 'states'],
23
18
  },
@@ -25,11 +20,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
25
20
  name: 'Canada',
26
21
  code: 'CA',
27
22
  prefix: '+1',
28
- masks: [
29
- {
30
- mask: '(999) 999-9999',
31
- },
32
- ],
33
23
  unicodeFlag: '🇨🇦',
34
24
  keywords: ['canada', 'canadian', 'ca', 'can'],
35
25
  },
@@ -37,11 +27,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
37
27
  name: 'Dominican Republic',
38
28
  code: 'DO',
39
29
  prefix: '+1',
40
- masks: [
41
- {
42
- mask: '(999) 999-9999',
43
- },
44
- ],
45
30
  unicodeFlag: '🇩🇴',
46
31
  keywords: ['dominican republic', 'dominican', 'do', 'dom'],
47
32
  },
@@ -49,11 +34,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
49
34
  name: 'Jamaica',
50
35
  code: 'JM',
51
36
  prefix: '+1',
52
- masks: [
53
- {
54
- mask: '(999) 999-9999',
55
- },
56
- ],
57
37
  unicodeFlag: '🇯🇲',
58
38
  keywords: ['jamaica', 'jamaican', 'jm', 'jam'],
59
39
  },
@@ -61,11 +41,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
61
41
  name: 'Trinidad and Tobago',
62
42
  code: 'TT',
63
43
  prefix: '+1',
64
- masks: [
65
- {
66
- mask: '(999) 999-9999',
67
- },
68
- ],
69
44
  unicodeFlag: '🇹🇹',
70
45
  keywords: ['trinidad and tobago', 'trinidad', 'tobago', 'tt', 'tto'],
71
46
  },
@@ -73,11 +48,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
73
48
  name: 'Kazakhstan',
74
49
  code: 'KZ',
75
50
  prefix: '+7',
76
- masks: [
77
- {
78
- mask: '(999) 999-9999',
79
- },
80
- ],
81
51
  unicodeFlag: '🇰🇿',
82
52
  keywords: ['kazakhstan', 'kazakh', 'kz', 'kaz'],
83
53
  },
@@ -85,11 +55,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
85
55
  name: 'Russia',
86
56
  code: 'RU',
87
57
  prefix: '+7',
88
- masks: [
89
- {
90
- mask: '999 999-99-99',
91
- },
92
- ],
93
58
  unicodeFlag: '🇷🇺',
94
59
  keywords: ['russia', 'russian', 'ru', 'rus'],
95
60
  },
@@ -97,14 +62,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
97
62
  name: 'Egypt',
98
63
  code: 'EG',
99
64
  prefix: '+20',
100
- masks: [
101
- {
102
- mask: '9999 999 9999',
103
- },
104
- {
105
- mask: '999 999 9999',
106
- },
107
- ],
108
65
  unicodeFlag: '🇪🇬',
109
66
  keywords: ['egypt', 'egyptian', 'eg', 'egy'],
110
67
  },
@@ -112,11 +69,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
112
69
  name: 'South Africa',
113
70
  code: 'ZA',
114
71
  prefix: '+27',
115
- masks: [
116
- {
117
- mask: '999 999 9999',
118
- },
119
- ],
120
72
  unicodeFlag: '🇿🇦',
121
73
  keywords: ['south africa', 'south african', 'za', 'sa'],
122
74
  },
@@ -124,11 +76,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
124
76
  name: 'Greece',
125
77
  code: 'GR',
126
78
  prefix: '+30',
127
- masks: [
128
- {
129
- mask: '999 9999 9999',
130
- },
131
- ],
132
79
  unicodeFlag: '🇬🇷',
133
80
  keywords: ['greece', 'greek', 'gr', 'gre'],
134
81
  },
@@ -136,11 +83,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
136
83
  name: 'Netherlands',
137
84
  code: 'NL',
138
85
  prefix: '+31',
139
- masks: [
140
- {
141
- mask: '999 999 9999',
142
- },
143
- ],
144
86
  unicodeFlag: '🇳🇱',
145
87
  keywords: ['netherlands', 'dutch', 'nl', 'holland'],
146
88
  },
@@ -148,11 +90,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
148
90
  name: 'Belgium',
149
91
  code: 'BE',
150
92
  prefix: '+32',
151
- masks: [
152
- {
153
- mask: '999 99 99 99',
154
- },
155
- ],
156
93
  unicodeFlag: '🇧🇪',
157
94
  keywords: ['belgium', 'belgian', 'be', 'bel'],
158
95
  },
@@ -160,11 +97,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
160
97
  name: 'France',
161
98
  code: 'FR',
162
99
  prefix: '+33',
163
- masks: [
164
- {
165
- mask: '99 99 99 99 99',
166
- },
167
- ],
168
100
  unicodeFlag: '🇫🇷',
169
101
  keywords: ['france', 'french', 'fr', 'fra'],
170
102
  },
@@ -172,11 +104,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
172
104
  name: 'Spain',
173
105
  code: 'ES',
174
106
  prefix: '+34',
175
- masks: [
176
- {
177
- mask: '99 999 99 99',
178
- },
179
- ],
180
107
  unicodeFlag: '🇪🇸',
181
108
  keywords: ['spain', 'spanish', 'es', 'spa'],
182
109
  },
@@ -184,11 +111,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
184
111
  name: 'Hungary',
185
112
  code: 'HU',
186
113
  prefix: '+36',
187
- masks: [
188
- {
189
- mask: '(99) 999 9999',
190
- },
191
- ],
192
114
  unicodeFlag: '🇭🇺',
193
115
  keywords: ['hungary', 'hungarian', 'hu', 'hun'],
194
116
  },
@@ -196,11 +118,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
196
118
  name: 'Italy',
197
119
  code: 'IT',
198
120
  prefix: '+39',
199
- masks: [
200
- {
201
- mask: '999 999 9999',
202
- },
203
- ],
204
121
  unicodeFlag: '🇮🇹',
205
122
  keywords: ['italy', 'italian', 'it', 'ita'],
206
123
  },
@@ -208,11 +125,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
208
125
  name: 'Romania',
209
126
  code: 'RO',
210
127
  prefix: '+40',
211
- masks: [
212
- {
213
- mask: '999 999 999',
214
- },
215
- ],
216
128
  unicodeFlag: '🇷🇴',
217
129
  keywords: ['romania', 'romanian', 'ro', 'rou'],
218
130
  },
@@ -220,11 +132,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
220
132
  name: 'Switzerland',
221
133
  code: 'CH',
222
134
  prefix: '+41',
223
- masks: [
224
- {
225
- mask: '99 999 99 99',
226
- },
227
- ],
228
135
  unicodeFlag: '🇨🇭',
229
136
  keywords: ['switzerland', 'swiss', 'ch', 'che'],
230
137
  },
@@ -232,11 +139,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
232
139
  name: 'Austria',
233
140
  code: 'AT',
234
141
  prefix: '+43',
235
- masks: [
236
- {
237
- mask: '(99) 999 9999',
238
- },
239
- ],
240
142
  unicodeFlag: '🇦🇹',
241
143
  keywords: ['austria', 'austrian', 'at', 'aut'],
242
144
  },
@@ -244,14 +146,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
244
146
  name: 'United Kingdom',
245
147
  code: 'GB',
246
148
  prefix: '+44',
247
- masks: [
248
- {
249
- mask: '99999 999999',
250
- },
251
- {
252
- mask: '9999 9999',
253
- },
254
- ],
255
149
  unicodeFlag: '🇬🇧',
256
150
  keywords: ['united kingdom', 'uk', 'britain', 'british', 'gb', 'england'],
257
151
  },
@@ -259,11 +153,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
259
153
  name: 'Denmark',
260
154
  code: 'DK',
261
155
  prefix: '+45',
262
- masks: [
263
- {
264
- mask: '99 99 99 99',
265
- },
266
- ],
267
156
  unicodeFlag: '🇩🇰',
268
157
  keywords: ['denmark', 'danish', 'dk', 'den'],
269
158
  },
@@ -271,11 +160,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
271
160
  name: 'Sweden',
272
161
  code: 'SE',
273
162
  prefix: '+46',
274
- masks: [
275
- {
276
- mask: '99 999 9999',
277
- },
278
- ],
279
163
  unicodeFlag: '🇸🇪',
280
164
  keywords: ['sweden', 'swedish', 'se', 'swe'],
281
165
  },
@@ -283,11 +167,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
283
167
  name: 'Norway',
284
168
  code: 'NO',
285
169
  prefix: '+47',
286
- masks: [
287
- {
288
- mask: '999 99 999',
289
- },
290
- ],
291
170
  unicodeFlag: '🇳🇴',
292
171
  keywords: ['norway', 'norwegian', 'no', 'nor'],
293
172
  },
@@ -295,11 +174,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
295
174
  name: 'Poland',
296
175
  code: 'PL',
297
176
  prefix: '+48',
298
- masks: [
299
- {
300
- mask: '999 999 999',
301
- },
302
- ],
303
177
  unicodeFlag: '🇵🇱',
304
178
  keywords: ['poland', 'polish', 'pl', 'pol'],
305
179
  },
@@ -307,11 +181,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
307
181
  name: 'Germany',
308
182
  code: 'DE',
309
183
  prefix: '+49',
310
- masks: [
311
- {
312
- mask: '999 9999 9999',
313
- },
314
- ],
315
184
  unicodeFlag: '🇩🇪',
316
185
  keywords: ['germany', 'german', 'de', 'deu'],
317
186
  },
@@ -319,11 +188,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
319
188
  name: 'Peru',
320
189
  code: 'PE',
321
190
  prefix: '+51',
322
- masks: [
323
- {
324
- mask: '(99) 999 9999',
325
- },
326
- ],
327
191
  unicodeFlag: '🇵🇪',
328
192
  keywords: ['peru', 'peruvian', 'pe', 'per'],
329
193
  },
@@ -331,11 +195,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
331
195
  name: 'Mexico',
332
196
  code: 'MX',
333
197
  prefix: '+52',
334
- masks: [
335
- {
336
- mask: '(999) 999 9999',
337
- },
338
- ],
339
198
  unicodeFlag: '🇲🇽',
340
199
  keywords: ['mexico', 'mexican', 'mx', 'mex'],
341
200
  },
@@ -343,11 +202,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
343
202
  name: 'Cuba',
344
203
  code: 'CU',
345
204
  prefix: '+53',
346
- masks: [
347
- {
348
- mask: '(99) 999 9999',
349
- },
350
- ],
351
205
  unicodeFlag: '🇨🇺',
352
206
  keywords: ['cuba', 'cuban', 'cu', 'cub'],
353
207
  },
@@ -355,11 +209,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
355
209
  name: 'Argentina',
356
210
  code: 'AR',
357
211
  prefix: '+54',
358
- masks: [
359
- {
360
- mask: '(99) 9999-9999',
361
- },
362
- ],
363
212
  unicodeFlag: '🇦🇷',
364
213
  keywords: ['argentina', 'argentine', 'ar', 'arg'],
365
214
  },
@@ -367,11 +216,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
367
216
  name: 'Brazil',
368
217
  code: 'BR',
369
218
  prefix: '+55',
370
- masks: [
371
- {
372
- mask: '(99) 99999-9999',
373
- },
374
- ],
375
219
  unicodeFlag: '🇧🇷',
376
220
  keywords: ['brazil', 'brazilian', 'br', 'bra'],
377
221
  },
@@ -379,11 +223,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
379
223
  name: 'Chile',
380
224
  code: 'CL',
381
225
  prefix: '+56',
382
- masks: [
383
- {
384
- mask: '999 999 999',
385
- },
386
- ],
387
226
  unicodeFlag: '🇨🇱',
388
227
  keywords: ['chile', 'chilean', 'cl', 'chl'],
389
228
  },
@@ -391,11 +230,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
391
230
  name: 'Colombia',
392
231
  code: 'CO',
393
232
  prefix: '+57',
394
- masks: [
395
- {
396
- mask: '999 999 9999',
397
- },
398
- ],
399
233
  unicodeFlag: '🇨🇴',
400
234
  keywords: ['colombia', 'colombian', 'co', 'col'],
401
235
  },
@@ -403,11 +237,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
403
237
  name: 'Venezuela',
404
238
  code: 'VE',
405
239
  prefix: '+58',
406
- masks: [
407
- {
408
- mask: '999 999 9999',
409
- },
410
- ],
411
240
  unicodeFlag: '🇻🇪',
412
241
  keywords: ['venezuela', 'venezuelan', 've', 'ven'],
413
242
  },
@@ -415,11 +244,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
415
244
  name: 'Malaysia',
416
245
  code: 'MY',
417
246
  prefix: '+60',
418
- masks: [
419
- {
420
- mask: '999 999 999',
421
- },
422
- ],
423
247
  unicodeFlag: '🇲🇾',
424
248
  keywords: ['malaysia', 'malaysian', 'my', 'mys'],
425
249
  },
@@ -427,11 +251,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
427
251
  name: 'Australia',
428
252
  code: 'AU',
429
253
  prefix: '+61',
430
- masks: [
431
- {
432
- mask: '999 999 999',
433
- },
434
- ],
435
254
  unicodeFlag: '🇦🇺',
436
255
  keywords: ['australia', 'australian', 'au', 'aus'],
437
256
  },
@@ -439,11 +258,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
439
258
  name: 'Indonesia',
440
259
  code: 'ID',
441
260
  prefix: '+62',
442
- masks: [
443
- {
444
- mask: '999 999 999',
445
- },
446
- ],
447
261
  unicodeFlag: '🇮🇩',
448
262
  keywords: ['indonesia', 'indonesian', 'id', 'idn'],
449
263
  },
@@ -451,11 +265,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
451
265
  name: 'Philippines',
452
266
  code: 'PH',
453
267
  prefix: '+63',
454
- masks: [
455
- {
456
- mask: '999 999 9999',
457
- },
458
- ],
459
268
  unicodeFlag: '🇵🇭',
460
269
  keywords: ['philippines', 'filipino', 'ph', 'phl'],
461
270
  },
@@ -463,11 +272,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
463
272
  name: 'New Zealand',
464
273
  code: 'NZ',
465
274
  prefix: '+64',
466
- masks: [
467
- {
468
- mask: '999 999 999',
469
- },
470
- ],
471
275
  unicodeFlag: '🇳🇿',
472
276
  keywords: ['new zealand', 'kiwi', 'nz', 'nze'],
473
277
  },
@@ -475,11 +279,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
475
279
  name: 'Singapore',
476
280
  code: 'SG',
477
281
  prefix: '+65',
478
- masks: [
479
- {
480
- mask: '9999 9999',
481
- },
482
- ],
483
282
  unicodeFlag: '🇸🇬',
484
283
  keywords: ['singapore', 'singaporean', 'sg', 'sgp'],
485
284
  },
@@ -487,11 +286,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
487
286
  name: 'Thailand',
488
287
  code: 'TH',
489
288
  prefix: '+66',
490
- masks: [
491
- {
492
- mask: '999 999 999',
493
- },
494
- ],
495
289
  unicodeFlag: '🇹🇭',
496
290
  keywords: ['thailand', 'thai', 'th', 'tha'],
497
291
  },
@@ -499,11 +293,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
499
293
  name: 'Japan',
500
294
  code: 'JP',
501
295
  prefix: '+81',
502
- masks: [
503
- {
504
- mask: '99-9999-9999',
505
- },
506
- ],
507
296
  unicodeFlag: '🇯🇵',
508
297
  keywords: ['japan', 'japanese', 'jp', 'jpn'],
509
298
  },
@@ -511,11 +300,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
511
300
  name: 'South Korea',
512
301
  code: 'KR',
513
302
  prefix: '+82',
514
- masks: [
515
- {
516
- mask: '(999) 9999-9999',
517
- },
518
- ],
519
303
  unicodeFlag: '🇰🇷',
520
304
  keywords: ['south korea', 'korean', 'kr', 'kor'],
521
305
  },
@@ -523,11 +307,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
523
307
  name: 'Vietnam',
524
308
  code: 'VN',
525
309
  prefix: '+84',
526
- masks: [
527
- {
528
- mask: '999 999 9999',
529
- },
530
- ],
531
310
  unicodeFlag: '🇻🇳',
532
311
  keywords: ['vietnam', 'vietnamese', 'vn', 'vnm'],
533
312
  },
@@ -535,11 +314,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
535
314
  name: 'China',
536
315
  code: 'CN',
537
316
  prefix: '+86',
538
- masks: [
539
- {
540
- mask: '999 9999 9999',
541
- },
542
- ],
543
317
  unicodeFlag: '🇨🇳',
544
318
  keywords: ['china', 'chinese', 'cn', 'chn'],
545
319
  },
@@ -547,11 +321,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
547
321
  name: 'Turkey',
548
322
  code: 'TR',
549
323
  prefix: '+90',
550
- masks: [
551
- {
552
- mask: '(999) 999 99 99',
553
- },
554
- ],
555
324
  unicodeFlag: '🇹🇷',
556
325
  keywords: ['turkey', 'turkish', 'tr', 'tur'],
557
326
  },
@@ -559,11 +328,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
559
328
  name: 'India',
560
329
  code: 'IN',
561
330
  prefix: '+91',
562
- masks: [
563
- {
564
- mask: '99999-99999',
565
- },
566
- ],
567
331
  unicodeFlag: '🇮🇳',
568
332
  keywords: ['india', 'indian', 'in', 'ind'],
569
333
  },
@@ -571,11 +335,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
571
335
  name: 'Pakistan',
572
336
  code: 'PK',
573
337
  prefix: '+92',
574
- masks: [
575
- {
576
- mask: '999 9999999',
577
- },
578
- ],
579
338
  unicodeFlag: '🇵🇰',
580
339
  keywords: ['pakistan', 'pakistani', 'pk', 'pak'],
581
340
  },
@@ -583,11 +342,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
583
342
  name: 'Afghanistan',
584
343
  code: 'AF',
585
344
  prefix: '+93',
586
- masks: [
587
- {
588
- mask: '999 999 999',
589
- },
590
- ],
591
345
  unicodeFlag: '🇦🇫',
592
346
  keywords: ['afghanistan', 'afghan', 'af', 'afg'],
593
347
  },
@@ -595,11 +349,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
595
349
  name: 'Sri Lanka',
596
350
  code: 'LK',
597
351
  prefix: '+94',
598
- masks: [
599
- {
600
- mask: '999 999 999',
601
- },
602
- ],
603
352
  unicodeFlag: '🇱🇰',
604
353
  keywords: ['sri lanka', 'lankan', 'lk', 'lka'],
605
354
  },
@@ -607,11 +356,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
607
356
  name: 'Myanmar',
608
357
  code: 'MM',
609
358
  prefix: '+95',
610
- masks: [
611
- {
612
- mask: '999 999 999',
613
- },
614
- ],
615
359
  unicodeFlag: '🇲🇲',
616
360
  keywords: ['myanmar', 'burma', 'burmese', 'mm', 'mmr'],
617
361
  },
@@ -619,11 +363,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
619
363
  name: 'Iran',
620
364
  code: 'IR',
621
365
  prefix: '+98',
622
- masks: [
623
- {
624
- mask: '999 999 9999',
625
- },
626
- ],
627
366
  unicodeFlag: '🇮🇷',
628
367
  keywords: ['iran', 'iranian', 'ir', 'irn'],
629
368
  },
@@ -631,11 +370,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
631
370
  name: 'Morocco',
632
371
  code: 'MA',
633
372
  prefix: '+212',
634
- masks: [
635
- {
636
- mask: '999 999 999',
637
- },
638
- ],
639
373
  unicodeFlag: '🇲🇦',
640
374
  keywords: ['morocco', 'moroccan', 'ma', 'mar'],
641
375
  },
@@ -643,11 +377,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
643
377
  name: 'Iraq',
644
378
  code: 'IQ',
645
379
  prefix: '+964',
646
- masks: [
647
- {
648
- mask: '999 999 9999',
649
- },
650
- ],
651
380
  unicodeFlag: '🇮🇶',
652
381
  keywords: ['iraq', 'iraqi', 'iq', 'irq'],
653
382
  },
@@ -655,11 +384,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
655
384
  name: 'Kuwait',
656
385
  code: 'KW',
657
386
  prefix: '+965',
658
- masks: [
659
- {
660
- mask: '9999 9999',
661
- },
662
- ],
663
387
  unicodeFlag: '🇰🇼',
664
388
  keywords: ['kuwait', 'kuwaiti', 'kw', 'kwt'],
665
389
  },
@@ -667,11 +391,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
667
391
  name: 'Saudi Arabia',
668
392
  code: 'SA',
669
393
  prefix: '+966',
670
- masks: [
671
- {
672
- mask: '999 999 9999',
673
- },
674
- ],
675
394
  unicodeFlag: '🇸🇦',
676
395
  keywords: ['saudi arabia', 'saudi', 'sa', 'sau'],
677
396
  },
@@ -679,11 +398,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
679
398
  name: 'Yemen',
680
399
  code: 'YE',
681
400
  prefix: '+967',
682
- masks: [
683
- {
684
- mask: '999 999 999',
685
- },
686
- ],
687
401
  unicodeFlag: '🇾🇪',
688
402
  keywords: ['yemen', 'yemeni', 'ye', 'yem'],
689
403
  },
@@ -691,11 +405,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
691
405
  name: 'Oman',
692
406
  code: 'OM',
693
407
  prefix: '+968',
694
- masks: [
695
- {
696
- mask: '9999 9999',
697
- },
698
- ],
699
408
  unicodeFlag: '🇴🇲',
700
409
  keywords: ['oman', 'omani', 'om', 'omn'],
701
410
  },
@@ -703,11 +412,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
703
412
  name: 'United Arab Emirates',
704
413
  code: 'AE',
705
414
  prefix: '+971',
706
- masks: [
707
- {
708
- mask: '999 999 9999',
709
- },
710
- ],
711
415
  unicodeFlag: '🇦🇪',
712
416
  keywords: ['united arab emirates', 'uae', 'emirates', 'ae', 'are'],
713
417
  },
@@ -715,11 +419,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
715
419
  name: 'Israel',
716
420
  code: 'IL',
717
421
  prefix: '+972',
718
- masks: [
719
- {
720
- mask: '99 999 9999',
721
- },
722
- ],
723
422
  unicodeFlag: '🇮🇱',
724
423
  keywords: ['israel', 'israeli', 'il', 'isr'],
725
424
  },
@@ -727,11 +426,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
727
426
  name: 'Bahrain',
728
427
  code: 'BH',
729
428
  prefix: '+973',
730
- masks: [
731
- {
732
- mask: '9999 9999',
733
- },
734
- ],
735
429
  unicodeFlag: '🇧🇭',
736
430
  keywords: ['bahrain', 'bahraini', 'bh', 'bhr'],
737
431
  },
@@ -739,11 +433,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
739
433
  name: 'Qatar',
740
434
  code: 'QA',
741
435
  prefix: '+974',
742
- masks: [
743
- {
744
- mask: '9999 9999',
745
- },
746
- ],
747
436
  unicodeFlag: '🇶🇦',
748
437
  keywords: ['qatar', 'qatari', 'qa', 'qat'],
749
438
  },
@@ -751,11 +440,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
751
440
  name: 'Mongolia',
752
441
  code: 'MN',
753
442
  prefix: '+976',
754
- masks: [
755
- {
756
- mask: '9999 9999',
757
- },
758
- ],
759
443
  unicodeFlag: '🇲🇳',
760
444
  keywords: ['mongolia', 'mongolian', 'mn', 'mng'],
761
445
  },
@@ -763,11 +447,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
763
447
  name: 'Nepal',
764
448
  code: 'NP',
765
449
  prefix: '+977',
766
- masks: [
767
- {
768
- mask: '999 999 9999',
769
- },
770
- ],
771
450
  unicodeFlag: '🇳🇵',
772
451
  keywords: ['nepal', 'nepalese', 'np', 'npl'],
773
452
  },
@@ -775,11 +454,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
775
454
  name: 'Tajikistan',
776
455
  code: 'TJ',
777
456
  prefix: '+992',
778
- masks: [
779
- {
780
- mask: '999 999 999',
781
- },
782
- ],
783
457
  unicodeFlag: '🇹🇯',
784
458
  keywords: ['tajikistan', 'tajik', 'tj', 'tjk'],
785
459
  },
@@ -787,11 +461,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
787
461
  name: 'Turkmenistan',
788
462
  code: 'TM',
789
463
  prefix: '+993',
790
- masks: [
791
- {
792
- mask: '999 999 999',
793
- },
794
- ],
795
464
  unicodeFlag: '🇹🇲',
796
465
  keywords: ['turkmenistan', 'turkmen', 'tm', 'tkm'],
797
466
  },
@@ -799,11 +468,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
799
468
  name: 'Azerbaijan',
800
469
  code: 'AZ',
801
470
  prefix: '+994',
802
- masks: [
803
- {
804
- mask: '999 999 9999',
805
- },
806
- ],
807
471
  unicodeFlag: '🇦🇿',
808
472
  keywords: ['azerbaijan', 'azerbaijani', 'az', 'aze'],
809
473
  },
@@ -811,11 +475,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
811
475
  name: 'Georgia',
812
476
  code: 'GE',
813
477
  prefix: '+995',
814
- masks: [
815
- {
816
- mask: '999 999 999',
817
- },
818
- ],
819
478
  unicodeFlag: '🇬🇪',
820
479
  keywords: ['georgia', 'georgian', 'ge', 'geo'],
821
480
  },
@@ -823,11 +482,6 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
823
482
  name: 'Kyrgyzstan',
824
483
  code: 'KG',
825
484
  prefix: '+996',
826
- masks: [
827
- {
828
- mask: '999 999 999',
829
- },
830
- ],
831
485
  unicodeFlag: '🇰🇬',
832
486
  keywords: ['kyrgyzstan', 'kyrgyz', 'kg', 'kgz'],
833
487
  },
@@ -835,12 +489,11 @@ export const countriesPhoneInformation: CountryPhoneInformation[] = [
835
489
  name: 'Uzbekistan',
836
490
  code: 'UZ',
837
491
  prefix: '+998',
838
- masks: [
839
- {
840
- mask: '999 999 9999',
841
- },
842
- ],
843
492
  unicodeFlag: '🇺🇿',
844
493
  keywords: ['uzbekistan', 'uzbek', 'uz', 'uzb'],
845
494
  },
846
495
  ];
496
+
497
+ export const defaultCountries: CountryCode[] = countriesPhoneInformation.map(
498
+ c => c.code as CountryCode
499
+ );