@rh-support/components 2.0.5 → 2.0.7-beta.1

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 (212) hide show
  1. package/lib/cjs/AlertMessage/AlertMessage.js +5 -5
  2. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  3. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  4. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +13 -41
  5. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  6. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  7. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +7 -6
  8. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -1
  9. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  10. package/lib/cjs/CoverSpinner/CoverSpinner.js +1 -1
  11. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +4 -4
  12. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -1
  13. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  14. package/lib/cjs/CustomTextInput/CustomTextInput.js +8 -19
  15. package/lib/cjs/DropDownList/AsyncDropDownList.js +5 -5
  16. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -1
  17. package/lib/cjs/DropDownList/DropDownList.d.ts.map +1 -1
  18. package/lib/cjs/DropDownList/DropDownList.js +45 -75
  19. package/lib/cjs/DropDownList/DropdownWrapper.js +7 -18
  20. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +3 -3
  21. package/lib/cjs/DropDownList/SearchableList.d.ts +1 -0
  22. package/lib/cjs/DropDownList/SearchableList.d.ts.map +1 -1
  23. package/lib/cjs/DropDownList/SearchableList.js +44 -56
  24. package/lib/cjs/DropDownList/SelectList.js +15 -26
  25. package/lib/cjs/DropDownList/async.js +28 -38
  26. package/lib/cjs/DropDownList/dropdownList.css +1 -1
  27. package/lib/cjs/DropDownList/dropdownUtils.js +9 -20
  28. package/lib/cjs/DropDownList/types.d.ts +1 -0
  29. package/lib/cjs/DropDownList/types.d.ts.map +1 -1
  30. package/lib/cjs/DropDownList/withMulti.js +15 -26
  31. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +18 -47
  32. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  33. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  34. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +10 -10
  35. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -1
  36. package/lib/cjs/ErrorPages/Generic403.d.ts.map +1 -1
  37. package/lib/cjs/ErrorPages/Generic403.js +2 -2
  38. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -1
  39. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  40. package/lib/cjs/FeedbackForm/FeedbackForm.js +24 -52
  41. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  42. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +81 -154
  43. package/lib/cjs/InlineEdit/InlineEdit.d.ts +1 -0
  44. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +1 -1
  45. package/lib/cjs/InlineEdit/InlineEdit.js +58 -144
  46. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +1 -0
  47. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  48. package/lib/cjs/InlineEdit/NewInlineEdit.js +62 -147
  49. package/lib/cjs/InlineEdit/inlineEdit.css +4 -0
  50. package/lib/cjs/InlineEdit/newInlineEdit.css +4 -0
  51. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -1
  52. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  53. package/lib/cjs/LanguageSelector/LanguageSelector.js +10 -26
  54. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -1
  55. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +1 -1
  56. package/lib/cjs/LoadingDots/LoadingDots.js +4 -4
  57. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  58. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  59. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +3 -3
  60. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -1
  61. package/lib/cjs/LoginModal/LoginModal.d.ts.map +1 -1
  62. package/lib/cjs/LoginModal/LoginModal.js +3 -3
  63. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +113 -165
  64. package/lib/cjs/MoreOrLess/MoreOrLess.js +20 -40
  65. package/lib/cjs/PaginatedList/PaginatedList.js +15 -31
  66. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -1
  67. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  68. package/lib/cjs/PaginationCompact/PaginationCompact.js +14 -31
  69. package/lib/cjs/PhoneInput/CountryData.d.ts +3 -0
  70. package/lib/cjs/PhoneInput/CountryData.d.ts.map +1 -0
  71. package/lib/cjs/PhoneInput/CountryData.js +583 -0
  72. package/lib/cjs/PhoneInput/PhoneInput.d.ts +19 -0
  73. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -0
  74. package/lib/cjs/PhoneInput/PhoneInput.js +284 -0
  75. package/lib/cjs/PhoneInput/PhoneInput.scss +753 -0
  76. package/lib/cjs/PhoneInput/flags.png +0 -0
  77. package/lib/cjs/PhoneInput/index.d.ts +2 -0
  78. package/lib/cjs/PhoneInput/index.d.ts.map +1 -0
  79. package/lib/cjs/PhoneInput/index.js +13 -0
  80. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  81. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  82. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +14 -14
  83. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +20 -18
  84. package/lib/cjs/ProgressBar/ProgressBar.js +8 -19
  85. package/lib/cjs/PromisifyModal/PromisifyModal.js +19 -36
  86. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  87. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  88. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +5 -5
  89. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -1
  90. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +1 -1
  91. package/lib/cjs/SubscriptionAbuse/const.js +3 -3
  92. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  93. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  94. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +8 -24
  95. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  96. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  97. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +50 -120
  98. package/lib/cjs/Table/PFTable.js +52 -89
  99. package/lib/cjs/Table/Table.js +12 -29
  100. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -1
  101. package/lib/cjs/Table/TableColumnSelector.d.ts.map +1 -1
  102. package/lib/cjs/Table/TableColumnSelector.js +14 -15
  103. package/lib/cjs/Table/TablePagination.d.ts +0 -1
  104. package/lib/cjs/Table/TablePagination.d.ts.map +1 -1
  105. package/lib/cjs/Table/TablePagination.js +8 -8
  106. package/lib/cjs/Table/TableProvider.js +6 -6
  107. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  108. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  109. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +46 -100
  110. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +35 -62
  111. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +9 -25
  112. package/lib/cjs/ToastNotification/ToastNotification.js +35 -70
  113. package/lib/cjs/TopContentSearch/TopContentSearch.js +48 -113
  114. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +13 -29
  115. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -1
  116. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +1 -1
  117. package/lib/cjs/helperFunctions/errorMessage.js +13 -13
  118. package/lib/cjs/hooks/useBreakpoint.js +26 -43
  119. package/lib/cjs/hooks/useCopyToClipboard.js +8 -24
  120. package/lib/cjs/hooks/useDebounce.js +13 -38
  121. package/lib/cjs/hooks/useFetch.js +47 -123
  122. package/lib/cjs/hooks/useForceUpdate.js +2 -18
  123. package/lib/cjs/hooks/useForkRef.js +3 -3
  124. package/lib/cjs/hooks/useIsMounted.js +4 -4
  125. package/lib/cjs/hooks/useLRUCache.js +11 -11
  126. package/lib/cjs/hooks/useLocalStorage.js +7 -23
  127. package/lib/cjs/hooks/useOnScreen.js +5 -24
  128. package/lib/cjs/hooks/usePolling.js +8 -30
  129. package/lib/cjs/hooks/usePrevious.js +3 -3
  130. package/lib/cjs/hooks/useTitle.js +4 -4
  131. package/lib/cjs/hooks/useUndo.js +49 -72
  132. package/lib/cjs/index.d.ts +1 -0
  133. package/lib/cjs/index.d.ts.map +1 -1
  134. package/lib/cjs/index.js +1 -0
  135. package/lib/esm/AlertMessage/AlertMessage.js +2 -2
  136. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  137. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  138. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  139. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  140. package/lib/esm/ConfirmationModal/ConfirmationDialog.js +3 -2
  141. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +0 -1
  142. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  143. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +0 -1
  144. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  145. package/lib/esm/DropDownList/DropDownList.d.ts +0 -1
  146. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  147. package/lib/esm/DropDownList/SearchableList.d.ts +1 -0
  148. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  149. package/lib/esm/DropDownList/SearchableList.js +4 -2
  150. package/lib/esm/DropDownList/dropdownList.css +1 -1
  151. package/lib/esm/DropDownList/types.d.ts +1 -0
  152. package/lib/esm/DropDownList/types.d.ts.map +1 -1
  153. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  154. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  155. package/lib/esm/ErrorPages/Generic403.d.ts +0 -1
  156. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  157. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +0 -1
  158. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  159. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  160. package/lib/esm/Functional/CaseContactsSelectorExternal.js +1 -1
  161. package/lib/esm/InlineEdit/InlineEdit.d.ts +1 -0
  162. package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
  163. package/lib/esm/InlineEdit/InlineEdit.js +2 -2
  164. package/lib/esm/InlineEdit/NewInlineEdit.d.ts +1 -0
  165. package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  166. package/lib/esm/InlineEdit/NewInlineEdit.js +2 -2
  167. package/lib/esm/InlineEdit/inlineEdit.css +4 -0
  168. package/lib/esm/InlineEdit/newInlineEdit.css +4 -0
  169. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +0 -1
  170. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  171. package/lib/esm/LoadingDots/LoadingDots.d.ts +0 -1
  172. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  173. package/lib/esm/LoadingDots/LoadingDots.js +1 -1
  174. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  175. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  176. package/lib/esm/LoginModal/LoginModal.d.ts +0 -1
  177. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  178. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +0 -1
  179. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  180. package/lib/esm/PhoneInput/CountryData.d.ts +3 -0
  181. package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -0
  182. package/lib/esm/PhoneInput/CountryData.js +580 -0
  183. package/lib/esm/PhoneInput/PhoneInput.d.ts +19 -0
  184. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -0
  185. package/lib/esm/PhoneInput/PhoneInput.js +257 -0
  186. package/lib/esm/PhoneInput/PhoneInput.scss +753 -0
  187. package/lib/esm/PhoneInput/flags.png +0 -0
  188. package/lib/esm/PhoneInput/index.d.ts +2 -0
  189. package/lib/esm/PhoneInput/index.d.ts.map +1 -0
  190. package/lib/esm/PhoneInput/index.js +1 -0
  191. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  192. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  193. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  194. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  195. package/lib/esm/SubscriptionAbuse/const.d.ts +0 -1
  196. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  197. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  198. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  199. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  200. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  201. package/lib/esm/Table/TableColumnSelector.d.ts +0 -1
  202. package/lib/esm/Table/TableColumnSelector.d.ts.map +1 -1
  203. package/lib/esm/Table/TablePagination.d.ts +0 -1
  204. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  205. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  206. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  207. package/lib/esm/helperFunctions/errorMessage.d.ts +0 -1
  208. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  209. package/lib/esm/index.d.ts +1 -0
  210. package/lib/esm/index.d.ts.map +1 -1
  211. package/lib/esm/index.js +1 -0
  212. package/package.json +15 -13
@@ -0,0 +1,580 @@
1
+ // Country model:
2
+ // [
3
+ // Country name,
4
+ // Regions,
5
+ // iso2 code,
6
+ // International dial code,
7
+ // Format (if available),
8
+ // Order priority (if >1 country with same dial code),
9
+ // Area codes (if >1 country with same dial code)
10
+ // ]
11
+ //
12
+ // Regions:
13
+ // ['america', 'europe', 'asia', 'oceania', 'africa']
14
+ //
15
+ // Sub-regions:
16
+ // ['north-america', 'south-america', 'central-america', 'carribean',
17
+ // 'eu-union', 'ex-ussr', 'ex-yugos', 'baltic', 'middle-east', 'north-africa']
18
+ export const canadaAreaCodes = [
19
+ '204',
20
+ '226',
21
+ '236',
22
+ '249',
23
+ '250',
24
+ '289',
25
+ '306',
26
+ '343',
27
+ '365',
28
+ '387',
29
+ '403',
30
+ '416',
31
+ '418',
32
+ '431',
33
+ '437',
34
+ '438',
35
+ '450',
36
+ '506',
37
+ '514',
38
+ '519',
39
+ '548',
40
+ '579',
41
+ '581',
42
+ '587',
43
+ '604',
44
+ '613',
45
+ '639',
46
+ '647',
47
+ '672',
48
+ '705',
49
+ '709',
50
+ '742',
51
+ '778',
52
+ '780',
53
+ '782',
54
+ '807',
55
+ '819',
56
+ '825',
57
+ '867',
58
+ '873',
59
+ '902',
60
+ '905',
61
+ ];
62
+ export const COUNTRY_DATA = [
63
+ ['Afghanistan', ['asia'], 'af', '93'],
64
+ ['Albania', ['europe'], 'al', '355'],
65
+ ['Algeria', ['africa', 'north-africa'], 'dz', '213'],
66
+ ['Andorra', ['europe'], 'ad', '376'],
67
+ ['Angola', ['africa'], 'ao', '244'],
68
+ ['Antigua and Barbuda', ['america', 'carribean'], 'ag', '1268'],
69
+ [
70
+ 'Argentina',
71
+ ['america', 'south-america'],
72
+ 'ar',
73
+ '54',
74
+ '(..) ........',
75
+ 0,
76
+ [
77
+ '11',
78
+ '221',
79
+ '223',
80
+ '261',
81
+ '264',
82
+ '2652',
83
+ '280',
84
+ '2905',
85
+ '291',
86
+ '2920',
87
+ '2966',
88
+ '299',
89
+ '341',
90
+ '342',
91
+ '343',
92
+ '351',
93
+ '376',
94
+ '379',
95
+ '381',
96
+ '3833',
97
+ '385',
98
+ '387',
99
+ '388',
100
+ ],
101
+ ],
102
+ ['Armenia', ['asia', 'ex-ussr'], 'am', '374', '.. ......'],
103
+ ['Aruba', ['america', 'carribean'], 'aw', '297'],
104
+ [
105
+ 'Australia',
106
+ ['oceania'],
107
+ 'au',
108
+ '61',
109
+ '(..) .... ....',
110
+ 0,
111
+ ['2', '3', '4', '7', '8', '02', '03', '04', '07', '08'],
112
+ ],
113
+ ['Austria', ['europe', 'eu-union'], 'at', '43'],
114
+ ['Azerbaijan', ['asia', 'ex-ussr'], 'az', '994', '(..) ... .. ..'],
115
+ ['Bahamas', ['america', 'carribean'], 'bs', '1242'],
116
+ ['Bahrain', ['middle-east'], 'bh', '973'],
117
+ ['Bangladesh', ['asia'], 'bd', '880'],
118
+ ['Barbados', ['america', 'carribean'], 'bb', '1246'],
119
+ ['Belarus', ['europe', 'ex-ussr'], 'by', '375', '(..) ... .. ..'],
120
+ ['Belgium', ['europe', 'eu-union'], 'be', '32', '... .. .. ..'],
121
+ ['Belize', ['america', 'central-america'], 'bz', '501'],
122
+ ['Benin', ['africa'], 'bj', '229'],
123
+ ['Bhutan', ['asia'], 'bt', '975'],
124
+ ['Bolivia', ['america', 'south-america'], 'bo', '591'],
125
+ ['Bosnia and Herzegovina', ['europe', 'ex-yugos'], 'ba', '387'],
126
+ ['Botswana', ['africa'], 'bw', '267'],
127
+ ['Brazil', ['america', 'south-america'], 'br', '55', '(..) .........'],
128
+ ['British Indian Ocean Territory', ['asia'], 'io', '246'],
129
+ ['Brunei', ['asia'], 'bn', '673'],
130
+ ['Bulgaria', ['europe', 'eu-union'], 'bg', '359'],
131
+ ['Burkina Faso', ['africa'], 'bf', '226'],
132
+ ['Burundi', ['africa'], 'bi', '257'],
133
+ ['Cambodia', ['asia'], 'kh', '855'],
134
+ ['Cameroon', ['africa'], 'cm', '237'],
135
+ ['Canada', ['america', 'north-america'], 'ca', '1', '(...) ...-....', 1, canadaAreaCodes],
136
+ ['Cape Verde', ['africa'], 'cv', '238'],
137
+ ['Caribbean Netherlands', ['america', 'carribean'], 'bq', '599', '', 1],
138
+ ['Central African Republic', ['africa'], 'cf', '236'],
139
+ ['Chad', ['africa'], 'td', '235'],
140
+ ['Chile', ['america', 'south-america'], 'cl', '56'],
141
+ ['China', ['asia'], 'cn', '86', '..-.........'],
142
+ ['Colombia', ['america', 'south-america'], 'co', '57', '... ... ....'],
143
+ ['Comoros', ['africa'], 'km', '269'],
144
+ ['Congo', ['africa'], 'cd', '243'],
145
+ ['Congo', ['africa'], 'cg', '242'],
146
+ ['Costa Rica', ['america', 'central-america'], 'cr', '506', '....-....'],
147
+ ['Côte d’Ivoire', ['africa'], 'ci', '225', '.. .. .. ..'],
148
+ ['Croatia', ['europe', 'eu-union', 'ex-yugos'], 'hr', '385'],
149
+ ['Cuba', ['america', 'carribean'], 'cu', '53'],
150
+ ['Curaçao', ['america', 'carribean'], 'cw', '599', '', 0],
151
+ ['Cyprus', ['europe', 'eu-union'], 'cy', '357', '.. ......'],
152
+ ['Czech Republic', ['europe', 'eu-union'], 'cz', '420', '... ... ...'],
153
+ ['Denmark', ['europe', 'eu-union', 'baltic'], 'dk', '45', '.. .. .. ..'],
154
+ ['Djibouti', ['africa'], 'dj', '253'],
155
+ ['Dominica', ['america', 'carribean'], 'dm', '1767'],
156
+ ['Dominican Republic', ['america', 'carribean'], 'do', '1', '', 2, ['809', '829', '849']],
157
+ ['Ecuador', ['america', 'south-america'], 'ec', '593'],
158
+ ['Egypt', ['africa', 'north-africa'], 'eg', '20'],
159
+ ['El Salvador', ['america', 'central-america'], 'sv', '503', '....-....'],
160
+ ['Equatorial Guinea', ['africa'], 'gq', '240'],
161
+ ['Eritrea', ['africa'], 'er', '291'],
162
+ ['Estonia', ['europe', 'eu-union', 'ex-ussr', 'baltic'], 'ee', '372', '.... ......'],
163
+ ['Ethiopia', ['africa'], 'et', '251'],
164
+ ['Fiji', ['oceania'], 'fj', '679'],
165
+ ['Finland', ['europe', 'eu-union', 'baltic'], 'fi', '358', '.. ... .. ..'],
166
+ ['France', ['europe', 'eu-union'], 'fr', '33', '. .. .. .. ..'],
167
+ ['French Guiana', ['america', 'south-america'], 'gf', '594'],
168
+ ['French Polynesia', ['oceania'], 'pf', '689'],
169
+ ['Gabon', ['africa'], 'ga', '241'],
170
+ ['Gambia', ['africa'], 'gm', '220'],
171
+ ['Georgia', ['asia', 'ex-ussr'], 'ge', '995'],
172
+ ['Germany', ['europe', 'eu-union', 'baltic'], 'de', '49', '.... ........'],
173
+ ['Ghana', ['africa'], 'gh', '233'],
174
+ ['Greece', ['europe', 'eu-union'], 'gr', '30'],
175
+ ['Grenada', ['america', 'carribean'], 'gd', '1473'],
176
+ ['Guadeloupe', ['america', 'carribean'], 'gp', '590', '', 0],
177
+ ['Guam', ['oceania'], 'gu', '1671'],
178
+ ['Guatemala', ['america', 'central-america'], 'gt', '502', '....-....'],
179
+ ['Guinea', ['africa'], 'gn', '224'],
180
+ ['Guinea-Bissau', ['africa'], 'gw', '245'],
181
+ ['Guyana', ['america', 'south-america'], 'gy', '592'],
182
+ ['Haiti', ['america', 'carribean'], 'ht', '509', '....-....'],
183
+ ['Honduras', ['america', 'central-america'], 'hn', '504'],
184
+ ['Hong Kong', ['asia'], 'hk', '852', '.... ....'],
185
+ ['Hungary', ['europe', 'eu-union'], 'hu', '36'],
186
+ ['Iceland', ['europe'], 'is', '354', '... ....'],
187
+ ['India', ['asia'], 'in', '91', '.....-.....'],
188
+ ['Indonesia', ['asia'], 'id', '62'],
189
+ ['Iran', ['middle-east'], 'ir', '98', '... ... ....'],
190
+ ['Iraq', ['middle-east'], 'iq', '964'],
191
+ ['Ireland', ['europe', 'eu-union'], 'ie', '353', '.. .......'],
192
+ ['Israel', ['middle-east'], 'il', '972', '... ... ....'],
193
+ ['Italy', ['europe', 'eu-union'], 'it', '39', '... .......', 0],
194
+ ['Jamaica', ['america', 'carribean'], 'jm', '1876'],
195
+ ['Japan', ['asia'], 'jp', '81', '.. .... ....'],
196
+ ['Jordan', ['middle-east'], 'jo', '962'],
197
+ [
198
+ 'Kazakhstan',
199
+ ['asia', 'ex-ussr'],
200
+ 'kz',
201
+ '7',
202
+ '... ...-..-..',
203
+ 1,
204
+ ['310', '311', '312', '313', '315', '318', '321', '324', '325', '326', '327', '336', '7172', '73622'],
205
+ ],
206
+ ['Kenya', ['africa'], 'ke', '254'],
207
+ ['Kiribati', ['oceania'], 'ki', '686'],
208
+ ['Kosovo', ['europe', 'ex-yugos'], 'xk', '383'],
209
+ ['Kuwait', ['middle-east'], 'kw', '965'],
210
+ ['Kyrgyzstan', ['asia', 'ex-ussr'], 'kg', '996', '... ... ...'],
211
+ ['Laos', ['asia'], 'la', '856'],
212
+ ['Latvia', ['europe', 'eu-union', 'ex-ussr', 'baltic'], 'lv', '371', '.. ... ...'],
213
+ ['Lebanon', ['middle-east'], 'lb', '961'],
214
+ ['Lesotho', ['africa'], 'ls', '266'],
215
+ ['Liberia', ['africa'], 'lr', '231'],
216
+ ['Libya', ['africa', 'north-africa'], 'ly', '218'],
217
+ ['Liechtenstein', ['europe'], 'li', '423'],
218
+ ['Lithuania', ['europe', 'eu-union', 'ex-ussr', 'baltic'], 'lt', '370'],
219
+ ['Luxembourg', ['europe', 'eu-union'], 'lu', '352'],
220
+ ['Macau', ['asia'], 'mo', '853'],
221
+ ['Macedonia', ['europe', 'ex-yugos'], 'mk', '389'],
222
+ ['Madagascar', ['africa'], 'mg', '261'],
223
+ ['Malawi', ['africa'], 'mw', '265'],
224
+ ['Malaysia', ['asia'], 'my', '60', '..-....-....'],
225
+ ['Maldives', ['asia'], 'mv', '960'],
226
+ ['Mali', ['africa'], 'ml', '223'],
227
+ ['Malta', ['europe', 'eu-union'], 'mt', '356'],
228
+ ['Marshall Islands', ['oceania'], 'mh', '692'],
229
+ ['Martinique', ['america', 'carribean'], 'mq', '596'],
230
+ ['Mauritania', ['africa'], 'mr', '222'],
231
+ ['Mauritius', ['africa'], 'mu', '230'],
232
+ [
233
+ 'Mexico',
234
+ ['america', 'central-america'],
235
+ 'mx',
236
+ '52',
237
+ '... ... ....',
238
+ 0,
239
+ ['55', '81', '33', '656', '664', '998', '774', '229'],
240
+ ],
241
+ ['Micronesia', ['oceania'], 'fm', '691'],
242
+ ['Moldova', ['europe'], 'md', '373', '(..) ..-..-..'],
243
+ ['Monaco', ['europe'], 'mc', '377'],
244
+ ['Mongolia', ['asia'], 'mn', '976'],
245
+ ['Montenegro', ['europe', 'ex-yugos'], 'me', '382'],
246
+ ['Morocco', ['africa', 'north-africa'], 'ma', '212'],
247
+ ['Mozambique', ['africa'], 'mz', '258'],
248
+ ['Myanmar', ['asia'], 'mm', '95'],
249
+ ['Namibia', ['africa'], 'na', '264'],
250
+ ['Nauru', ['africa'], 'nr', '674'],
251
+ ['Nepal', ['asia'], 'np', '977'],
252
+ ['Netherlands', ['europe', 'eu-union'], 'nl', '31', '.. ........'],
253
+ ['New Caledonia', ['oceania'], 'nc', '687'],
254
+ ['New Zealand', ['oceania'], 'nz', '64', '...-...-....'],
255
+ ['Nicaragua', ['america', 'central-america'], 'ni', '505'],
256
+ ['Niger', ['africa'], 'ne', '227'],
257
+ ['Nigeria', ['africa'], 'ng', '234'],
258
+ ['North Korea', ['asia'], 'kp', '850'],
259
+ ['Norway', ['europe', 'baltic'], 'no', '47', '... .. ...'],
260
+ ['Oman', ['middle-east'], 'om', '968'],
261
+ ['Pakistan', ['asia'], 'pk', '92', '...-.......'],
262
+ ['Palau', ['oceania'], 'pw', '680'],
263
+ ['Palestine', ['middle-east'], 'ps', '970'],
264
+ ['Panama', ['america', 'central-america'], 'pa', '507'],
265
+ ['Papua New Guinea', ['oceania'], 'pg', '675'],
266
+ ['Paraguay', ['america', 'south-america'], 'py', '595'],
267
+ ['Peru', ['america', 'south-america'], 'pe', '51'],
268
+ ['Philippines', ['asia'], 'ph', '63', '.... .......'],
269
+ ['Poland', ['europe', 'eu-union', 'baltic'], 'pl', '48', '...-...-...'],
270
+ ['Portugal', ['europe', 'eu-union'], 'pt', '351'],
271
+ ['Puerto Rico', ['america', 'carribean'], 'pr', '1', '', 3, ['787', '939']],
272
+ ['Qatar', ['middle-east'], 'qa', '974'],
273
+ ['Réunion', ['africa'], 're', '262'],
274
+ ['Romania', ['europe', 'eu-union'], 'ro', '40'],
275
+ ['Russia', ['europe', 'asia', 'ex-ussr', 'baltic'], 'ru', '7', '(...) ...-..-..', 0],
276
+ ['Rwanda', ['africa'], 'rw', '250'],
277
+ ['Saint Kitts and Nevis', ['america', 'carribean'], 'kn', '1869'],
278
+ ['Saint Lucia', ['america', 'carribean'], 'lc', '1758'],
279
+ ['Saint Vincent and the Grenadines', ['america', 'carribean'], 'vc', '1784'],
280
+ ['Samoa', ['oceania'], 'ws', '685'],
281
+ ['San Marino', ['europe'], 'sm', '378'],
282
+ ['São Tomé and Príncipe', ['africa'], 'st', '239'],
283
+ ['Saudi Arabia', ['middle-east'], 'sa', '966'],
284
+ ['Senegal', ['africa'], 'sn', '221'],
285
+ ['Serbia', ['europe', 'ex-yugos'], 'rs', '381'],
286
+ ['Seychelles', ['africa'], 'sc', '248'],
287
+ ['Sierra Leone', ['africa'], 'sl', '232'],
288
+ ['Singapore', ['asia'], 'sg', '65', '....-....'],
289
+ ['Slovakia', ['europe', 'eu-union'], 'sk', '421'],
290
+ ['Slovenia', ['europe', 'eu-union', 'ex-yugos'], 'si', '386'],
291
+ ['Solomon Islands', ['oceania'], 'sb', '677'],
292
+ ['Somalia', ['africa'], 'so', '252'],
293
+ ['South Africa', ['africa'], 'za', '27'],
294
+ ['South Korea', ['asia'], 'kr', '82', '... .... ....'],
295
+ ['South Sudan', ['africa', 'north-africa'], 'ss', '211'],
296
+ ['Spain', ['europe', 'eu-union'], 'es', '34', '... ... ...'],
297
+ ['Sri Lanka', ['asia'], 'lk', '94'],
298
+ ['Sudan', ['africa'], 'sd', '249'],
299
+ ['Suriname', ['america', 'south-america'], 'sr', '597'],
300
+ ['Swaziland', ['africa'], 'sz', '268'],
301
+ ['Sweden', ['europe', 'eu-union', 'baltic'], 'se', '46', '(...) ...-...'],
302
+ ['Switzerland', ['europe'], 'ch', '41', '.. ... .. ..'],
303
+ ['Syria', ['middle-east'], 'sy', '963'],
304
+ ['Taiwan', ['asia'], 'tw', '886'],
305
+ ['Tajikistan', ['asia', 'ex-ussr'], 'tj', '992'],
306
+ ['Tanzania', ['africa'], 'tz', '255'],
307
+ ['Thailand', ['asia'], 'th', '66'],
308
+ ['Timor-Leste', ['asia'], 'tl', '670'],
309
+ ['Togo', ['africa'], 'tg', '228'],
310
+ ['Tonga', ['oceania'], 'to', '676'],
311
+ ['Trinidad and Tobago', ['america', 'carribean'], 'tt', '1868'],
312
+ ['Tunisia', ['africa', 'north-africa'], 'tn', '216'],
313
+ ['Turkey', ['europe'], 'tr', '90', '... ... .. ..'],
314
+ ['Turkmenistan', ['asia', 'ex-ussr'], 'tm', '993'],
315
+ ['Tuvalu', ['asia'], 'tv', '688'],
316
+ ['Uganda', ['africa'], 'ug', '256'],
317
+ ['Ukraine', ['europe', 'ex-ussr'], 'ua', '380', '(..) ... .. ..'],
318
+ ['United Arab Emirates', ['middle-east'], 'ae', '971'],
319
+ ['United Kingdom', ['europe', 'eu-union'], 'gb', '44', '.... ......'],
320
+ [
321
+ 'United States',
322
+ ['america', 'north-america'],
323
+ 'us',
324
+ '1',
325
+ '(...) ...-....',
326
+ 0,
327
+ [
328
+ '907',
329
+ '205',
330
+ '251',
331
+ '256',
332
+ '334',
333
+ '479',
334
+ '501',
335
+ '870',
336
+ '480',
337
+ '520',
338
+ '602',
339
+ '623',
340
+ '928',
341
+ '209',
342
+ '213',
343
+ '310',
344
+ '323',
345
+ '408',
346
+ '415',
347
+ '510',
348
+ '530',
349
+ '559',
350
+ '562',
351
+ '619',
352
+ '626',
353
+ '650',
354
+ '661',
355
+ '707',
356
+ '714',
357
+ '760',
358
+ '805',
359
+ '818',
360
+ '831',
361
+ '858',
362
+ '909',
363
+ '916',
364
+ '925',
365
+ '949',
366
+ '951',
367
+ '303',
368
+ '719',
369
+ '970',
370
+ '203',
371
+ '860',
372
+ '202',
373
+ '302',
374
+ '239',
375
+ '305',
376
+ '321',
377
+ '352',
378
+ '386',
379
+ '407',
380
+ '561',
381
+ '727',
382
+ '772',
383
+ '813',
384
+ '850',
385
+ '863',
386
+ '904',
387
+ '941',
388
+ '954',
389
+ '229',
390
+ '404',
391
+ '478',
392
+ '706',
393
+ '770',
394
+ '912',
395
+ '808',
396
+ '319',
397
+ '515',
398
+ '563',
399
+ '641',
400
+ '712',
401
+ '208',
402
+ '217',
403
+ '309',
404
+ '312',
405
+ '618',
406
+ '630',
407
+ '708',
408
+ '773',
409
+ '815',
410
+ '847',
411
+ '219',
412
+ '260',
413
+ '317',
414
+ '574',
415
+ '765',
416
+ '812',
417
+ '316',
418
+ '620',
419
+ '785',
420
+ '913',
421
+ '270',
422
+ '502',
423
+ '606',
424
+ '859',
425
+ '225',
426
+ '318',
427
+ '337',
428
+ '504',
429
+ '985',
430
+ '413',
431
+ '508',
432
+ '617',
433
+ '781',
434
+ '978',
435
+ '301',
436
+ '410',
437
+ '207',
438
+ '231',
439
+ '248',
440
+ '269',
441
+ '313',
442
+ '517',
443
+ '586',
444
+ '616',
445
+ '734',
446
+ '810',
447
+ '906',
448
+ '989',
449
+ '218',
450
+ '320',
451
+ '507',
452
+ '612',
453
+ '651',
454
+ '763',
455
+ '952',
456
+ '314',
457
+ '417',
458
+ '573',
459
+ '636',
460
+ '660',
461
+ '816',
462
+ '228',
463
+ '601',
464
+ '662',
465
+ '406',
466
+ '252',
467
+ '336',
468
+ '704',
469
+ '828',
470
+ '910',
471
+ '919',
472
+ '701',
473
+ '308',
474
+ '402',
475
+ '603',
476
+ '201',
477
+ '609',
478
+ '732',
479
+ '856',
480
+ '908',
481
+ '973',
482
+ '505',
483
+ '575',
484
+ '702',
485
+ '775',
486
+ '212',
487
+ '315',
488
+ '516',
489
+ '518',
490
+ '585',
491
+ '607',
492
+ '631',
493
+ '716',
494
+ '718',
495
+ '845',
496
+ '914',
497
+ '216',
498
+ '330',
499
+ '419',
500
+ '440',
501
+ '513',
502
+ '614',
503
+ '740',
504
+ '937',
505
+ '405',
506
+ '580',
507
+ '918',
508
+ '503',
509
+ '541',
510
+ '215',
511
+ '412',
512
+ '570',
513
+ '610',
514
+ '717',
515
+ '724',
516
+ '814',
517
+ '401',
518
+ '803',
519
+ '843',
520
+ '864',
521
+ '605',
522
+ '423',
523
+ '615',
524
+ '731',
525
+ '865',
526
+ '901',
527
+ '931',
528
+ '210',
529
+ '214',
530
+ '254',
531
+ '281',
532
+ '325',
533
+ '361',
534
+ '409',
535
+ '432',
536
+ '512',
537
+ '713',
538
+ '806',
539
+ '817',
540
+ '830',
541
+ '903',
542
+ '915',
543
+ '936',
544
+ '940',
545
+ '956',
546
+ '972',
547
+ '979',
548
+ '435',
549
+ '801',
550
+ '276',
551
+ '434',
552
+ '540',
553
+ '703',
554
+ '757',
555
+ '804',
556
+ '802',
557
+ '206',
558
+ '253',
559
+ '360',
560
+ '425',
561
+ '509',
562
+ '262',
563
+ '414',
564
+ '608',
565
+ '715',
566
+ '920',
567
+ '304',
568
+ '307',
569
+ ],
570
+ ],
571
+ ['Uruguay', ['america', 'south-america'], 'uy', '598'],
572
+ ['Uzbekistan', ['asia', 'ex-ussr'], 'uz', '998', '.. ... .. ..'],
573
+ ['Vanuatu', ['oceania'], 'vu', '678'],
574
+ ['Vatican City', ['europe'], 'va', '39', '.. .... ....', 1],
575
+ ['Venezuela', ['america', 'south-america'], 've', '58'],
576
+ ['Vietnam', ['asia'], 'vn', '84'],
577
+ ['Yemen', ['middle-east'], 'ye', '967'],
578
+ ['Zambia', ['africa'], 'zm', '260'],
579
+ ['Zimbabwe', ['africa'], 'zw', '263'],
580
+ ];
@@ -0,0 +1,19 @@
1
+ import './PhoneInput.scss';
2
+ interface IProps {
3
+ phoneValue: string;
4
+ countryCode?: string;
5
+ onPhoneValueChange: (string: any) => void;
6
+ validations?: 'default' | 'success' | 'warning' | 'error' | undefined;
7
+ onCountryCodeChange?: (string: any) => void;
8
+ invalid?: boolean;
9
+ setInvalid?: (boolean: any) => void;
10
+ isLoading?: boolean;
11
+ isDisabled?: boolean;
12
+ }
13
+ export declare const getPhoneObj: (phoneNumber: string) => {
14
+ countryCode: string;
15
+ phoneLine: string;
16
+ };
17
+ export declare function PhoneInput(props: IProps): JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=PhoneInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA2DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAgPvC"}