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