@lifesg/web-frontend-engine 2.2.4 → 2.2.5

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 (335) hide show
  1. package/chunks/file-upload-manager.817b80cc.js +2 -0
  2. package/chunks/file-upload-manager.817b80cc.js.map +1 -0
  3. package/chunks/{index.ac3b6195.js → index.44b5e2a5.js} +10 -10
  4. package/chunks/{index.ac3b6195.js.map → index.44b5e2a5.js.map} +1 -1
  5. package/chunks/{index.a24b1857.js → index.51ad1607.js} +2 -2
  6. package/chunks/{index.a24b1857.js.map → index.51ad1607.js.map} +1 -1
  7. package/chunks/{index.8edac70b.js → index.f1de2e77.js} +2 -2
  8. package/chunks/{index.8edac70b.js.map → index.f1de2e77.js.map} +1 -1
  9. package/chunks/{location-modal.6475a4db.js → location-modal.1859f93a.js} +2 -2
  10. package/chunks/{location-modal.6475a4db.js.map → location-modal.1859f93a.js.map} +1 -1
  11. package/cjs/chunks/file-upload-manager.85af8429.js +2 -0
  12. package/cjs/chunks/file-upload-manager.85af8429.js.map +1 -0
  13. package/cjs/chunks/{index.d136a8bd.js → index.48f1a1f1.js} +2 -2
  14. package/cjs/chunks/{index.d136a8bd.js.map → index.48f1a1f1.js.map} +1 -1
  15. package/cjs/chunks/{index.6a929030.js → index.c2370225.js} +7 -7
  16. package/cjs/chunks/{index.6a929030.js.map → index.c2370225.js.map} +1 -1
  17. package/cjs/chunks/{index.6e0e20f7.js → index.efc005fc.js} +2 -2
  18. package/cjs/chunks/{index.6e0e20f7.js.map → index.efc005fc.js.map} +1 -1
  19. package/cjs/chunks/{location-modal.e5989ca3.js → location-modal.6885ccea.js} +2 -2
  20. package/cjs/chunks/{location-modal.e5989ca3.js.map → location-modal.6885ccea.js.map} +1 -1
  21. package/cjs/index.js +1 -1
  22. package/components/custom/array-field/array-field-element.d.ts +10 -11
  23. package/components/custom/array-field/array-field.d.ts +3 -3
  24. package/components/custom/array-field/array-field.styles.d.ts +22 -23
  25. package/components/custom/array-field/index.d.ts +2 -2
  26. package/components/custom/array-field/types.d.ts +39 -39
  27. package/components/custom/filter/filter/filter.d.ts +3 -3
  28. package/components/custom/filter/filter/types.d.ts +12 -12
  29. package/components/custom/filter/filter-checkbox/filter-checkbox.d.ts +3 -3
  30. package/components/custom/filter/filter-checkbox/types.d.ts +23 -23
  31. package/components/custom/filter/filter-helper.d.ts +8 -8
  32. package/components/custom/filter/filter-item/filter-item.d.ts +3 -3
  33. package/components/custom/filter/filter-item/types.d.ts +13 -13
  34. package/components/custom/filter/index.d.ts +3 -3
  35. package/components/custom/filter/types.d.ts +11 -11
  36. package/components/custom/iframe/iframe.d.ts +3 -3
  37. package/components/custom/iframe/index.d.ts +2 -2
  38. package/components/custom/iframe/types.d.ts +28 -29
  39. package/components/custom/index.d.ts +6 -6
  40. package/components/custom/review/index.d.ts +2 -2
  41. package/components/custom/review/review.d.ts +3 -3
  42. package/components/custom/review/review.styles.d.ts +12 -13
  43. package/components/custom/review/types.d.ts +60 -60
  44. package/components/custom/timeline/index.d.ts +2 -2
  45. package/components/custom/timeline/timeline.d.ts +3 -3
  46. package/components/custom/timeline/types.d.ts +19 -19
  47. package/components/custom/types.d.ts +87 -87
  48. package/components/elements/accordion/accordion.d.ts +6 -6
  49. package/components/elements/accordion/accordion.styles.d.ts +1 -2
  50. package/components/elements/accordion/index.d.ts +2 -2
  51. package/components/elements/accordion/types.d.ts +27 -27
  52. package/components/elements/alert/alert.d.ts +3 -3
  53. package/components/elements/alert/index.d.ts +2 -2
  54. package/components/elements/alert/types.d.ts +9 -10
  55. package/components/elements/divider/divider.d.ts +3 -3
  56. package/components/elements/divider/index.d.ts +2 -2
  57. package/components/elements/divider/types.d.ts +6 -6
  58. package/components/elements/grid/grid.d.ts +3 -3
  59. package/components/elements/grid/index.d.ts +2 -2
  60. package/components/elements/grid/types.d.ts +11 -11
  61. package/components/elements/index.d.ts +9 -9
  62. package/components/elements/list/data.d.ts +3 -3
  63. package/components/elements/list/index.d.ts +3 -3
  64. package/components/elements/list/list-item.d.ts +3 -3
  65. package/components/elements/list/list.d.ts +3 -3
  66. package/components/elements/list/types.d.ts +17 -17
  67. package/components/elements/popover/index.d.ts +2 -2
  68. package/components/elements/popover/popover.d.ts +3 -3
  69. package/components/elements/popover/types.d.ts +15 -15
  70. package/components/elements/section/index.d.ts +2 -2
  71. package/components/elements/section/section.d.ts +2 -2
  72. package/components/elements/section/section.styles.d.ts +11 -12
  73. package/components/elements/section/types.d.ts +16 -16
  74. package/components/elements/sections/index.d.ts +1 -1
  75. package/components/elements/sections/sections.d.ts +13 -13
  76. package/components/elements/tab/index.d.ts +2 -2
  77. package/components/elements/tab/tab.d.ts +3 -3
  78. package/components/elements/tab/types.d.ts +23 -23
  79. package/components/elements/text/data.d.ts +121 -122
  80. package/components/elements/text/index.d.ts +2 -2
  81. package/components/elements/text/text.d.ts +3 -3
  82. package/components/elements/text/types.d.ts +18 -18
  83. package/components/elements/types.d.ts +97 -97
  84. package/components/elements/wrapper/col-wrapper.d.ts +12 -12
  85. package/components/elements/wrapper/conditional-renderer.d.ts +16 -16
  86. package/components/elements/wrapper/field-wrapper.d.ts +9 -10
  87. package/components/elements/wrapper/index.d.ts +2 -2
  88. package/components/elements/wrapper/types.d.ts +29 -30
  89. package/components/elements/wrapper/wrapper.d.ts +2 -3
  90. package/components/fields/button/button.d.ts +3 -3
  91. package/components/fields/button/index.d.ts +2 -2
  92. package/components/fields/button/types.d.ts +17 -17
  93. package/components/fields/checkbox-group/checkbox-group.d.ts +3 -3
  94. package/components/fields/checkbox-group/checkbox-group.styles.d.ts +23 -24
  95. package/components/fields/checkbox-group/index.d.ts +2 -2
  96. package/components/fields/checkbox-group/types.d.ts +33 -33
  97. package/components/fields/chips/chips.d.ts +3 -3
  98. package/components/fields/chips/chips.styles.d.ts +5 -6
  99. package/components/fields/chips/index.d.ts +2 -2
  100. package/components/fields/chips/types.d.ts +18 -19
  101. package/components/fields/contact-field/contact-field.d.ts +3 -3
  102. package/components/fields/contact-field/data.d.ts +6 -6
  103. package/components/fields/contact-field/index.d.ts +2 -2
  104. package/components/fields/contact-field/types.d.ts +31 -31
  105. package/components/fields/contact-field/utils.d.ts +7 -7
  106. package/components/fields/date-field/date-field.d.ts +3 -3
  107. package/components/fields/date-field/index.d.ts +2 -2
  108. package/components/fields/date-field/types.d.ts +20 -20
  109. package/components/fields/date-range-field/date-range-field.d.ts +3 -3
  110. package/components/fields/date-range-field/index.d.ts +2 -2
  111. package/components/fields/date-range-field/types.d.ts +32 -32
  112. package/components/fields/e-signature-field/e-signature-field.d.ts +3 -3
  113. package/components/fields/e-signature-field/e-signature-field.styles.d.ts +4 -5
  114. package/components/fields/e-signature-field/index.d.ts +2 -2
  115. package/components/fields/e-signature-field/types.d.ts +22 -22
  116. package/components/fields/error-field/error-field.d.ts +3 -3
  117. package/components/fields/error-field/index.d.ts +2 -2
  118. package/components/fields/error-field/types.d.ts +11 -11
  119. package/components/fields/file-upload/file-upload-context.d.ts +14 -14
  120. package/components/fields/file-upload/file-upload-helper.d.ts +10 -10
  121. package/components/fields/file-upload/file-upload-manager.d.ts +14 -14
  122. package/components/fields/file-upload/file-upload.d.ts +4 -4
  123. package/components/fields/file-upload/index.d.ts +2 -2
  124. package/components/fields/file-upload/types.d.ts +78 -78
  125. package/components/fields/hidden-field/hidden-field.d.ts +3 -3
  126. package/components/fields/hidden-field/index.d.ts +2 -2
  127. package/components/fields/hidden-field/types.d.ts +29 -29
  128. package/components/fields/histogram-slider/histogram-slider.d.ts +3 -3
  129. package/components/fields/histogram-slider/index.d.ts +2 -2
  130. package/components/fields/histogram-slider/types.d.ts +20 -20
  131. package/components/fields/image-upload/image-context/image-context.d.ts +16 -16
  132. package/components/fields/image-upload/image-context/index.d.ts +1 -1
  133. package/components/fields/image-upload/image-input/drag-upload/drag-upload.d.ts +2 -3
  134. package/components/fields/image-upload/image-input/drag-upload/drag-upload.styles.d.ts +14 -15
  135. package/components/fields/image-upload/image-input/drag-upload/index.d.ts +2 -2
  136. package/components/fields/image-upload/image-input/drag-upload/types.d.ts +15 -16
  137. package/components/fields/image-upload/image-input/file-item/file-item.d.ts +11 -11
  138. package/components/fields/image-upload/image-input/file-item/file-item.styles.d.ts +48 -49
  139. package/components/fields/image-upload/image-input/file-item/index.d.ts +1 -1
  140. package/components/fields/image-upload/image-input/image-input.d.ts +26 -26
  141. package/components/fields/image-upload/image-input/image-input.styles.d.ts +47 -48
  142. package/components/fields/image-upload/image-input/index.d.ts +1 -1
  143. package/components/fields/image-upload/image-manager/image-manager.d.ts +25 -25
  144. package/components/fields/image-upload/image-manager/index.d.ts +2 -2
  145. package/components/fields/image-upload/image-review/image-editor/image-editor.d.ts +2 -3
  146. package/components/fields/image-upload/image-review/image-editor/image-editor.styles.d.ts +6 -7
  147. package/components/fields/image-upload/image-review/image-editor/index.d.ts +3 -3
  148. package/components/fields/image-upload/image-review/image-editor/types.d.ts +17 -17
  149. package/components/fields/image-upload/image-review/image-error/image-error.d.ts +10 -10
  150. package/components/fields/image-upload/image-review/image-error/image-error.styles.d.ts +31 -32
  151. package/components/fields/image-upload/image-review/image-error/index.d.ts +1 -1
  152. package/components/fields/image-upload/image-review/image-prompts/image-prompts.d.ts +11 -11
  153. package/components/fields/image-upload/image-review/image-prompts/index.d.ts +1 -1
  154. package/components/fields/image-upload/image-review/image-review.d.ts +18 -18
  155. package/components/fields/image-upload/image-review/image-review.styles.d.ts +128 -129
  156. package/components/fields/image-upload/image-review/image-thumbnails/image-thumbnails.d.ts +11 -11
  157. package/components/fields/image-upload/image-review/image-thumbnails/image-thumbnails.styles.d.ts +29 -30
  158. package/components/fields/image-upload/image-review/image-thumbnails/index.d.ts +1 -1
  159. package/components/fields/image-upload/image-review/index.d.ts +1 -1
  160. package/components/fields/image-upload/image-upload-helper.d.ts +12 -10
  161. package/components/fields/image-upload/image-upload.d.ts +4 -4
  162. package/components/fields/image-upload/index.d.ts +2 -2
  163. package/components/fields/image-upload/types.d.ts +151 -151
  164. package/components/fields/index.d.ts +30 -30
  165. package/components/fields/location-field/index.d.ts +2 -2
  166. package/components/fields/location-field/location-field.d.ts +3 -3
  167. package/components/fields/location-field/location-helper.d.ts +38 -39
  168. package/components/fields/location-field/location-input/dummy-location-field.d.ts +13 -14
  169. package/components/fields/location-field/location-input/index.d.ts +1 -1
  170. package/components/fields/location-field/location-input/location-input.d.ts +6 -7
  171. package/components/fields/location-field/location-input/location-input.styles.d.ts +22 -23
  172. package/components/fields/location-field/location-modal/infinite-scroll/index.d.ts +1 -1
  173. package/components/fields/location-field/location-modal/infinite-scroll/infinite-scroll.d.ts +11 -12
  174. package/components/fields/location-field/location-modal/infinite-scroll/infinite-scroll.style.d.ts +1 -2
  175. package/components/fields/location-field/location-modal/infinite-scroll/loading-indicator/config.d.ts +5 -5
  176. package/components/fields/location-field/location-modal/infinite-scroll/loading-indicator/index.d.ts +1 -1
  177. package/components/fields/location-field/location-modal/infinite-scroll/loading-indicator/loading-indicator.d.ts +5 -5
  178. package/components/fields/location-field/location-modal/infinite-scroll/loading-indicator/loading-indicator.styles.d.ts +2 -3
  179. package/components/fields/location-field/location-modal/location-modal.d.ts +8 -8
  180. package/components/fields/location-field/location-modal/location-modal.data.d.ts +3 -3
  181. package/components/fields/location-field/location-modal/location-modal.styles.d.ts +16 -17
  182. package/components/fields/location-field/location-modal/location-picker/helper.d.ts +4 -4
  183. package/components/fields/location-field/location-modal/location-picker/index.d.ts +1 -1
  184. package/components/fields/location-field/location-modal/location-picker/legend/index.d.ts +1 -1
  185. package/components/fields/location-field/location-modal/location-picker/legend/legend.d.ts +8 -8
  186. package/components/fields/location-field/location-modal/location-picker/legend/legend.styles.d.ts +10 -11
  187. package/components/fields/location-field/location-modal/location-picker/location-picker.d.ts +3 -3
  188. package/components/fields/location-field/location-modal/location-picker/location-picker.styles.d.ts +17 -18
  189. package/components/fields/location-field/location-modal/location-picker/types.d.ts +34 -35
  190. package/components/fields/location-field/location-modal/location-search/helper.d.ts +14 -14
  191. package/components/fields/location-field/location-modal/location-search/index.d.ts +1 -1
  192. package/components/fields/location-field/location-modal/location-search/location-search.d.ts +2 -2
  193. package/components/fields/location-field/location-modal/location-search/location-search.styles.d.ts +84 -85
  194. package/components/fields/location-field/location-modal/location-search/types.d.ts +30 -30
  195. package/components/fields/location-field/location-modal/no-network-modal/no-network-modal.d.ts +7 -7
  196. package/components/fields/location-field/location-modal/no-network-modal/no-network-modal.styles.d.ts +29 -30
  197. package/components/fields/location-field/location-modal/types.d.ts +18 -18
  198. package/components/fields/location-field/types.d.ts +163 -163
  199. package/components/fields/masked-field/index.d.ts +2 -2
  200. package/components/fields/masked-field/masked-field.d.ts +3 -3
  201. package/components/fields/masked-field/types.d.ts +12 -12
  202. package/components/fields/multi-select/index.d.ts +2 -2
  203. package/components/fields/multi-select/multi-select.d.ts +3 -3
  204. package/components/fields/multi-select/types.d.ts +9 -9
  205. package/components/fields/nested-multi-select/index.d.ts +2 -2
  206. package/components/fields/nested-multi-select/nested-multi-select.d.ts +3 -3
  207. package/components/fields/nested-multi-select/types.d.ts +33 -34
  208. package/components/fields/otp-verification-field/index.d.ts +2 -2
  209. package/components/fields/otp-verification-field/otp-verification-field.d.ts +3 -3
  210. package/components/fields/otp-verification-field/types.d.ts +46 -46
  211. package/components/fields/radio-button/index.d.ts +2 -2
  212. package/components/fields/radio-button/radio-button.d.ts +3 -3
  213. package/components/fields/radio-button/radio-button.styles.d.ts +29 -30
  214. package/components/fields/radio-button/types.d.ts +41 -41
  215. package/components/fields/range-select/index.d.ts +2 -2
  216. package/components/fields/range-select/range-select.d.ts +3 -3
  217. package/components/fields/range-select/types.d.ts +9 -9
  218. package/components/fields/reset-button/index.d.ts +2 -2
  219. package/components/fields/reset-button/reset-button.d.ts +3 -3
  220. package/components/fields/reset-button/types.d.ts +8 -8
  221. package/components/fields/select/index.d.ts +2 -2
  222. package/components/fields/select/select.d.ts +3 -3
  223. package/components/fields/select/types.d.ts +9 -9
  224. package/components/fields/select-histogram/index.d.ts +2 -2
  225. package/components/fields/select-histogram/select-histogram.d.ts +3 -3
  226. package/components/fields/select-histogram/types.d.ts +17 -17
  227. package/components/fields/slider/index.d.ts +2 -2
  228. package/components/fields/slider/slider.d.ts +3 -3
  229. package/components/fields/slider/types.d.ts +11 -11
  230. package/components/fields/submit-button/index.d.ts +2 -2
  231. package/components/fields/submit-button/submit-button.d.ts +3 -3
  232. package/components/fields/submit-button/types.d.ts +7 -7
  233. package/components/fields/switch/index.d.ts +2 -2
  234. package/components/fields/switch/switch.d.ts +3 -3
  235. package/components/fields/switch/switch.styles.d.ts +1 -2
  236. package/components/fields/switch/types.d.ts +10 -10
  237. package/components/fields/text-field/index.d.ts +2 -2
  238. package/components/fields/text-field/text-field.d.ts +3 -3
  239. package/components/fields/text-field/types.d.ts +37 -37
  240. package/components/fields/textarea/index.d.ts +2 -2
  241. package/components/fields/textarea/textarea.d.ts +3 -3
  242. package/components/fields/textarea/textarea.styles.d.ts +19 -20
  243. package/components/fields/textarea/types.d.ts +8 -8
  244. package/components/fields/time-field/index.d.ts +2 -2
  245. package/components/fields/time-field/time-field.d.ts +3 -3
  246. package/components/fields/time-field/types.d.ts +7 -7
  247. package/components/fields/types.d.ts +122 -122
  248. package/components/fields/unit-number-field/index.d.ts +2 -2
  249. package/components/fields/unit-number-field/types.d.ts +8 -8
  250. package/components/fields/unit-number-field/unit-number-field.d.ts +3 -3
  251. package/components/frontend-engine/frontend-engine.d.ts +23 -23
  252. package/components/frontend-engine/index.d.ts +2 -2
  253. package/components/frontend-engine/types.d.ts +213 -214
  254. package/components/frontend-engine/use-form-change.d.ts +12 -12
  255. package/components/index.d.ts +2 -2
  256. package/components/shared/chip/chip.d.ts +6 -6
  257. package/components/shared/chip/chip.styles.d.ts +16 -17
  258. package/components/shared/chip/index.d.ts +2 -2
  259. package/components/shared/chip/types.d.ts +4 -4
  260. package/components/shared/error-messages.d.ts +102 -102
  261. package/components/shared/index.d.ts +6 -6
  262. package/components/shared/prompt/index.d.ts +2 -2
  263. package/components/shared/prompt/prompt.d.ts +2 -2
  264. package/components/shared/prompt/prompt.styles.d.ts +40 -41
  265. package/components/shared/prompt/types.d.ts +16 -16
  266. package/components/shared/sanitize/index.d.ts +1 -1
  267. package/components/shared/sanitize/sanitize.d.ts +13 -14
  268. package/components/shared/static-map/index.d.ts +1 -1
  269. package/components/shared/static-map/static-map.d.ts +12 -12
  270. package/components/shared/static-map/static-map.styles.d.ts +12 -13
  271. package/components/shared/warning/index.d.ts +1 -1
  272. package/components/shared/warning/warning.d.ts +6 -6
  273. package/components/types.d.ts +4 -4
  274. package/context-providers/context-providers.d.ts +7 -7
  275. package/context-providers/custom-components/context-provider.d.ts +14 -14
  276. package/context-providers/custom-components/index.d.ts +1 -1
  277. package/context-providers/event/context-provider.d.ts +14 -14
  278. package/context-providers/event/index.d.ts +2 -2
  279. package/context-providers/event/types.d.ts +10 -10
  280. package/context-providers/form-schema/context-provider.d.ts +12 -12
  281. package/context-providers/form-schema/index.d.ts +1 -1
  282. package/context-providers/form-values/context-provider.d.ts +23 -23
  283. package/context-providers/form-values/index.d.ts +1 -1
  284. package/context-providers/frontend-engine-form/context-provider.d.ts +13 -13
  285. package/context-providers/frontend-engine-form/index.d.ts +1 -1
  286. package/context-providers/index.d.ts +7 -7
  287. package/context-providers/recaptcha/index.d.ts +3 -3
  288. package/context-providers/recaptcha/recaptcha-hook.d.ts +5 -5
  289. package/context-providers/recaptcha/recaptcha-provider.d.ts +10 -11
  290. package/context-providers/recaptcha/types.d.ts +14 -14
  291. package/context-providers/yup/context-provider.d.ts +16 -16
  292. package/context-providers/yup/custom-conditions/html-safe.d.ts +1 -1
  293. package/context-providers/yup/custom-conditions/index.d.ts +3 -3
  294. package/context-providers/yup/custom-conditions/uen.d.ts +1 -1
  295. package/context-providers/yup/custom-conditions/uinfin.d.ts +1 -1
  296. package/context-providers/yup/helper.d.ts +44 -44
  297. package/context-providers/yup/index.d.ts +4 -4
  298. package/context-providers/yup/types.d.ts +82 -82
  299. package/index.d.ts +3 -3
  300. package/index.js +1 -1
  301. package/package.json +1 -1
  302. package/services/index.d.ts +1 -1
  303. package/services/onemap/onemap-service.d.ts +21 -21
  304. package/services/onemap/types.d.ts +48 -48
  305. package/utils/api-client/api-client.d.ts +65 -65
  306. package/utils/api-client/index.d.ts +1 -1
  307. package/utils/date-time-helper.d.ts +22 -22
  308. package/utils/file-helper.d.ts +45 -47
  309. package/utils/geolocation-helper.d.ts +17 -17
  310. package/utils/hooks/index.d.ts +12 -12
  311. package/utils/hooks/use-custom-components.d.ts +5 -6
  312. package/utils/hooks/use-deep-layout-effect.d.ts +3 -3
  313. package/utils/hooks/use-field-event.d.ts +10 -10
  314. package/utils/hooks/use-form-schema.d.ts +6 -7
  315. package/utils/hooks/use-form-values.d.ts +11 -12
  316. package/utils/hooks/use-frontend-engine-component.d.ts +17 -17
  317. package/utils/hooks/use-frontend-engine-form.d.ts +6 -7
  318. package/utils/hooks/use-iframe-message.d.ts +5 -5
  319. package/utils/hooks/use-previous.d.ts +4 -4
  320. package/utils/hooks/use-validation-config.d.ts +10 -10
  321. package/utils/hooks/use-validation-schema.d.ts +15 -15
  322. package/utils/hooks/use-window-helper.d.ts +1 -1
  323. package/utils/id-helper.d.ts +1 -1
  324. package/utils/image-helper.d.ts +49 -49
  325. package/utils/index.d.ts +11 -11
  326. package/utils/math-helper.d.ts +5 -5
  327. package/utils/object-helper.d.ts +15 -15
  328. package/utils/prop-helper.d.ts +8 -8
  329. package/utils/test-helper.d.ts +4 -4
  330. package/utils/ts-helper.d.ts +1 -1
  331. package/utils/types.d.ts +9 -9
  332. package/chunks/file-upload-manager.ddb44c1f.js +0 -2
  333. package/chunks/file-upload-manager.ddb44c1f.js.map +0 -1
  334. package/cjs/chunks/file-upload-manager.b22d56d4.js +0 -2
  335. package/cjs/chunks/file-upload-manager.b22d56d4.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import { IGenericFieldProps } from "..";
2
- import { IContactFieldSchema } from "./types";
3
- export declare const ContactField: (props: IGenericFieldProps<IContactFieldSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "..";
2
+ import { IContactFieldSchema } from "./types";
3
+ export declare const ContactField: (props: IGenericFieldProps<IContactFieldSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { TCallingCodeMap, TCountry } from "./types";
2
- export declare const CountryData: readonly [readonly ["Afghanistan", readonly ["asia"], "af", "93"], readonly ["Albania", readonly ["europe"], "al", "355"], readonly ["Algeria", readonly ["africa", "north-africa"], "dz", "213"], readonly ["Andorra", readonly ["europe"], "ad", "376"], readonly ["Angola", readonly ["africa"], "ao", "244"], readonly ["Antigua and Barbuda", readonly ["america", "carribean"], "ag", "1268"], readonly ["Argentina", readonly ["america", "south-america"], "ar", "54", "(..) ........"], readonly ["Armenia", readonly ["asia", "ex-ussr"], "am", "374", ".. ......"], readonly ["Aruba", readonly ["america", "carribean"], "aw", "297"], readonly ["Australia", readonly ["oceania"], "au", "61", "(..) .... ...."], readonly ["Austria", readonly ["europe", "eu-union"], "at", "43"], readonly ["Azerbaijan", readonly ["asia", "ex-ussr"], "az", "994", "(..) ... .. .."], readonly ["Bahamas", readonly ["america", "carribean"], "bs", "1242"], readonly ["Bahrain", readonly ["middle-east"], "bh", "973"], readonly ["Bangladesh", readonly ["asia"], "bd", "880"], readonly ["Barbados", readonly ["america", "carribean"], "bb", "1246"], readonly ["Belarus", readonly ["europe", "ex-ussr"], "by", "375", "(..) ... .. .."], readonly ["Belgium", readonly ["europe", "eu-union"], "be", "32", "... .. .. .."], readonly ["Belize", readonly ["america", "central-america"], "bz", "501"], readonly ["Benin", readonly ["africa"], "bj", "229"], readonly ["Bhutan", readonly ["asia"], "bt", "975"], readonly ["Bolivia", readonly ["america", "south-america"], "bo", "591"], readonly ["Bosnia and Herzegovina", readonly ["europe", "ex-yugos"], "ba", "387"], readonly ["Botswana", readonly ["africa"], "bw", "267"], readonly ["Brazil", readonly ["america", "south-america"], "br", "55", "(..) ........."], readonly ["British Indian Ocean Territory", readonly ["asia"], "io", "246"], readonly ["Brunei", readonly ["asia"], "bn", "673"], readonly ["Bulgaria", readonly ["europe", "eu-union"], "bg", "359"], readonly ["Burkina Faso", readonly ["africa"], "bf", "226"], readonly ["Burundi", readonly ["africa"], "bi", "257"], readonly ["Cambodia", readonly ["asia"], "kh", "855"], readonly ["Cameroon", readonly ["africa"], "cm", "237"], readonly ["Canada", readonly ["america", "north-america"], "ca", "1", "(...) ... ...."], readonly ["Cape Verde", readonly ["africa"], "cv", "238"], readonly ["Caribbean Netherlands", readonly ["america", "carribean"], "bq", "599", ""], readonly ["Central African Republic", readonly ["africa"], "cf", "236"], readonly ["Chad", readonly ["africa"], "td", "235"], readonly ["Chile", readonly ["america", "south-america"], "cl", "56"], readonly ["China", readonly ["asia"], "cn", "86", ".. ........."], readonly ["Colombia", readonly ["america", "south-america"], "co", "57", "... ... ...."], readonly ["Comoros", readonly ["africa"], "km", "269"], readonly ["Congo", readonly ["africa"], "cd", "243"], readonly ["Congo", readonly ["africa"], "cg", "242"], readonly ["Costa Rica", readonly ["america", "central-america"], "cr", "506", ".... ...."], readonly ["Côte d’Ivoire", readonly ["africa"], "ci", "225", ".. .. .. .."], readonly ["Croatia", readonly ["europe", "eu-union", "ex-yugos"], "hr", "385"], readonly ["Cuba", readonly ["america", "carribean"], "cu", "53"], readonly ["Curaçao", readonly ["america", "carribean"], "cw", "599", ""], readonly ["Cyprus", readonly ["europe", "eu-union"], "cy", "357", ".. ......"], readonly ["Czech Republic", readonly ["europe", "eu-union"], "cz", "420", "... ... ..."], readonly ["Denmark", readonly ["europe", "eu-union", "baltic"], "dk", "45", ".. .. .. .."], readonly ["Djibouti", readonly ["africa"], "dj", "253"], readonly ["Dominica", readonly ["america", "carribean"], "dm", "1767"], readonly ["Dominican Republic", readonly ["america", "carribean"], "do", "1", ""], readonly ["Ecuador", readonly ["america", "south-america"], "ec", "593"], readonly ["Egypt", readonly ["africa", "north-africa"], "eg", "20"], readonly ["El Salvador", readonly ["america", "central-america"], "sv", "503", ".... ...."], readonly ["Equatorial Guinea", readonly ["africa"], "gq", "240"], readonly ["Eritrea", readonly ["africa"], "er", "291"], readonly ["Estonia", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "ee", "372", ".... ......"], readonly ["Ethiopia", readonly ["africa"], "et", "251"], readonly ["Fiji", readonly ["oceania"], "fj", "679"], readonly ["Finland", readonly ["europe", "eu-union", "baltic"], "fi", "358", ".. ... .. .."], readonly ["France", readonly ["europe", "eu-union"], "fr", "33", ". .. .. .. .."], readonly ["French Guiana", readonly ["america", "south-america"], "gf", "594"], readonly ["French Polynesia", readonly ["oceania"], "pf", "689"], readonly ["Gabon", readonly ["africa"], "ga", "241"], readonly ["Gambia", readonly ["africa"], "gm", "220"], readonly ["Georgia", readonly ["asia", "ex-ussr"], "ge", "995"], readonly ["Germany", readonly ["europe", "eu-union", "baltic"], "de", "49", ".... ........"], readonly ["Ghana", readonly ["africa"], "gh", "233"], readonly ["Greece", readonly ["europe", "eu-union"], "gr", "30"], readonly ["Grenada", readonly ["america", "carribean"], "gd", "1473"], readonly ["Guadeloupe", readonly ["america", "carribean"], "gp", "590", "", 0], readonly ["Guam", readonly ["oceania"], "gu", "1671"], readonly ["Guatemala", readonly ["america", "central-america"], "gt", "502", ".... ...."], readonly ["Guinea", readonly ["africa"], "gn", "224"], readonly ["Guinea-Bissau", readonly ["africa"], "gw", "245"], readonly ["Guyana", readonly ["america", "south-america"], "gy", "592"], readonly ["Haiti", readonly ["america", "carribean"], "ht", "509", ".... ...."], readonly ["Honduras", readonly ["america", "central-america"], "hn", "504"], readonly ["Hong Kong", readonly ["asia"], "hk", "852", ".... ...."], readonly ["Hungary", readonly ["europe", "eu-union"], "hu", "36"], readonly ["Iceland", readonly ["europe"], "is", "354", "... ...."], readonly ["India", readonly ["asia"], "in", "91", "..... ....."], readonly ["Indonesia", readonly ["asia"], "id", "62"], readonly ["Iran", readonly ["middle-east"], "ir", "98", "... ... ...."], readonly ["Iraq", readonly ["middle-east"], "iq", "964"], readonly ["Ireland", readonly ["europe", "eu-union"], "ie", "353", ".. ......."], readonly ["Israel", readonly ["middle-east"], "il", "972", "... ... ...."], readonly ["Italy", readonly ["europe", "eu-union"], "it", "39", "... ......."], readonly ["Jamaica", readonly ["america", "carribean"], "jm", "1876"], readonly ["Japan", readonly ["asia"], "jp", "81", ".. .... ...."], readonly ["Jordan", readonly ["middle-east"], "jo", "962"], readonly ["Kazakhstan", readonly ["asia", "ex-ussr"], "kz", "7", "... ... .. .."], readonly ["Kenya", readonly ["africa"], "ke", "254"], readonly ["Kiribati", readonly ["oceania"], "ki", "686"], readonly ["Kosovo", readonly ["europe", "ex-yugos"], "xk", "383"], readonly ["Kuwait", readonly ["middle-east"], "kw", "965"], readonly ["Kyrgyzstan", readonly ["asia", "ex-ussr"], "kg", "996", "... ... ..."], readonly ["Laos", readonly ["asia"], "la", "856"], readonly ["Latvia", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "lv", "371", ".. ... ..."], readonly ["Lebanon", readonly ["middle-east"], "lb", "961"], readonly ["Lesotho", readonly ["africa"], "ls", "266"], readonly ["Liberia", readonly ["africa"], "lr", "231"], readonly ["Libya", readonly ["africa", "north-africa"], "ly", "218"], readonly ["Liechtenstein", readonly ["europe"], "li", "423"], readonly ["Lithuania", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "lt", "370"], readonly ["Luxembourg", readonly ["europe", "eu-union"], "lu", "352"], readonly ["Macau", readonly ["asia"], "mo", "853"], readonly ["Macedonia", readonly ["europe", "ex-yugos"], "mk", "389"], readonly ["Madagascar", readonly ["africa"], "mg", "261"], readonly ["Malawi", readonly ["africa"], "mw", "265"], readonly ["Malaysia", readonly ["asia"], "my", "60", ".. .... ...."], readonly ["Maldives", readonly ["asia"], "mv", "960"], readonly ["Mali", readonly ["africa"], "ml", "223"], readonly ["Malta", readonly ["europe", "eu-union"], "mt", "356"], readonly ["Marshall Islands", readonly ["oceania"], "mh", "692"], readonly ["Martinique", readonly ["america", "carribean"], "mq", "596"], readonly ["Mauritania", readonly ["africa"], "mr", "222"], readonly ["Mauritius", readonly ["africa"], "mu", "230"], readonly ["Mexico", readonly ["america", "central-america"], "mx", "52", "... ... ...."], readonly ["Micronesia", readonly ["oceania"], "fm", "691"], readonly ["Moldova", readonly ["europe"], "md", "373", "(..) .. .. .."], readonly ["Monaco", readonly ["europe"], "mc", "377"], readonly ["Mongolia", readonly ["asia"], "mn", "976"], readonly ["Montenegro", readonly ["europe", "ex-yugos"], "me", "382"], readonly ["Morocco", readonly ["africa", "north-africa"], "ma", "212"], readonly ["Mozambique", readonly ["africa"], "mz", "258"], readonly ["Myanmar", readonly ["asia"], "mm", "95"], readonly ["Namibia", readonly ["africa"], "na", "264"], readonly ["Nauru", readonly ["africa"], "nr", "674"], readonly ["Nepal", readonly ["asia"], "np", "977"], readonly ["Netherlands", readonly ["europe", "eu-union"], "nl", "31", ".. ........"], readonly ["New Caledonia", readonly ["oceania"], "nc", "687"], readonly ["New Zealand", readonly ["oceania"], "nz", "64", "... ... ...."], readonly ["Nicaragua", readonly ["america", "central-america"], "ni", "505"], readonly ["Niger", readonly ["africa"], "ne", "227"], readonly ["Nigeria", readonly ["africa"], "ng", "234"], readonly ["North Korea", readonly ["asia"], "kp", "850"], readonly ["Norway", readonly ["europe", "baltic"], "no", "47", "... .. ..."], readonly ["Oman", readonly ["middle-east"], "om", "968"], readonly ["Pakistan", readonly ["asia"], "pk", "92", "... ......."], readonly ["Palau", readonly ["oceania"], "pw", "680"], readonly ["Palestine", readonly ["middle-east"], "ps", "970"], readonly ["Panama", readonly ["america", "central-america"], "pa", "507"], readonly ["Papua New Guinea", readonly ["oceania"], "pg", "675"], readonly ["Paraguay", readonly ["america", "south-america"], "py", "595"], readonly ["Peru", readonly ["america", "south-america"], "pe", "51"], readonly ["Philippines", readonly ["asia"], "ph", "63", ".... ......."], readonly ["Poland", readonly ["europe", "eu-union", "baltic"], "pl", "48", "... ... ..."], readonly ["Portugal", readonly ["europe", "eu-union"], "pt", "351"], readonly ["Puerto Rico", readonly ["america", "carribean"], "pr", "1", ""], readonly ["Qatar", readonly ["middle-east"], "qa", "974"], readonly ["Réunion", readonly ["africa"], "re", "262"], readonly ["Romania", readonly ["europe", "eu-union"], "ro", "40"], readonly ["Russia", readonly ["europe", "asia", "ex-ussr", "baltic"], "ru", "7", "(...) ... .. .."], readonly ["Rwanda", readonly ["africa"], "rw", "250"], readonly ["Saint Kitts and Nevis", readonly ["america", "carribean"], "kn", "1869"], readonly ["Saint Lucia", readonly ["america", "carribean"], "lc", "1758"], readonly ["Saint Vincent and the Grenadines", readonly ["america", "carribean"], "vc", "1784"], readonly ["Samoa", readonly ["oceania"], "ws", "685"], readonly ["San Marino", readonly ["europe"], "sm", "378"], readonly ["São Tomé and Príncipe", readonly ["africa"], "st", "239"], readonly ["Saudi Arabia", readonly ["middle-east"], "sa", "966"], readonly ["Senegal", readonly ["africa"], "sn", "221"], readonly ["Serbia", readonly ["europe", "ex-yugos"], "rs", "381"], readonly ["Seychelles", readonly ["africa"], "sc", "248"], readonly ["Sierra Leone", readonly ["africa"], "sl", "232"], readonly ["Singapore", readonly ["asia"], "sg", "65", ".... ...."], readonly ["Slovakia", readonly ["europe", "eu-union"], "sk", "421"], readonly ["Slovenia", readonly ["europe", "eu-union", "ex-yugos"], "si", "386"], readonly ["Solomon Islands", readonly ["oceania"], "sb", "677"], readonly ["Somalia", readonly ["africa"], "so", "252"], readonly ["South Africa", readonly ["africa"], "za", "27"], readonly ["South Korea", readonly ["asia"], "kr", "82", "... .... ...."], readonly ["South Sudan", readonly ["africa", "north-africa"], "ss", "211"], readonly ["Spain", readonly ["europe", "eu-union"], "es", "34", "... ... ..."], readonly ["Sri Lanka", readonly ["asia"], "lk", "94"], readonly ["Sudan", readonly ["africa"], "sd", "249"], readonly ["Suriname", readonly ["america", "south-america"], "sr", "597"], readonly ["Swaziland", readonly ["africa"], "sz", "268"], readonly ["Sweden", readonly ["europe", "eu-union", "baltic"], "se", "46", "(...) ... ..."], readonly ["Switzerland", readonly ["europe"], "ch", "41", ".. ... .. .."], readonly ["Syria", readonly ["middle-east"], "sy", "963"], readonly ["Taiwan", readonly ["asia"], "tw", "886"], readonly ["Tajikistan", readonly ["asia", "ex-ussr"], "tj", "992"], readonly ["Tanzania", readonly ["africa"], "tz", "255"], readonly ["Thailand", readonly ["asia"], "th", "66"], readonly ["Timor-Leste", readonly ["asia"], "tl", "670"], readonly ["Togo", readonly ["africa"], "tg", "228"], readonly ["Tonga", readonly ["oceania"], "to", "676"], readonly ["Trinidad and Tobago", readonly ["america", "carribean"], "tt", "1868"], readonly ["Tunisia", readonly ["africa", "north-africa"], "tn", "216"], readonly ["Turkey", readonly ["europe"], "tr", "90", "... ... .. .."], readonly ["Turkmenistan", readonly ["asia", "ex-ussr"], "tm", "993"], readonly ["Tuvalu", readonly ["asia"], "tv", "688"], readonly ["Uganda", readonly ["africa"], "ug", "256"], readonly ["Ukraine", readonly ["europe", "ex-ussr"], "ua", "380", "(..) ... .. .."], readonly ["United Arab Emirates", readonly ["middle-east"], "ae", "971"], readonly ["United Kingdom", readonly ["europe", "eu-union"], "gb", "44", ".... ......"], readonly ["United States", readonly ["america", "north-america"], "us", "1", "(...) ... ...."], readonly ["Uruguay", readonly ["america", "south-america"], "uy", "598"], readonly ["Uzbekistan", readonly ["asia", "ex-ussr"], "uz", "998", ".. ... .. .."], readonly ["Vanuatu", readonly ["oceania"], "vu", "678"], readonly ["Vatican City", readonly ["europe"], "va", "39", ".. .... ...."], readonly ["Venezuela", readonly ["america", "south-america"], "ve", "58"], readonly ["Vietnam", readonly ["asia"], "vn", "84"], readonly ["Yemen", readonly ["middle-east"], "ye", "967"], readonly ["Zambia", readonly ["africa"], "zm", "260"], readonly ["Zimbabwe", readonly ["africa"], "zw", "263"]];
3
- export declare const getCountryMap: () => TCallingCodeMap;
4
- export declare const getCountries: () => string[];
5
- export declare const getCountryFromPrefix: (prefix: string, country: Map<TCountry, string>) => TCountry | undefined;
6
- export declare const getPrefixFromCountry: (country: string) => "93" | "355" | "213" | "376" | "244" | "1268" | "54" | "374" | "297" | "61" | "43" | "994" | "1242" | "973" | "880" | "1246" | "375" | "32" | "501" | "229" | "975" | "591" | "387" | "267" | "55" | "246" | "673" | "359" | "226" | "257" | "855" | "237" | "1" | "238" | "599" | "236" | "235" | "56" | "86" | "57" | "269" | "243" | "242" | "506" | "225" | "385" | "53" | "357" | "420" | "45" | "253" | "1767" | "593" | "20" | "503" | "240" | "291" | "372" | "251" | "679" | "358" | "33" | "594" | "689" | "241" | "220" | "995" | "49" | "233" | "30" | "1473" | "590" | "1671" | "502" | "224" | "245" | "592" | "509" | "504" | "852" | "36" | "354" | "91" | "62" | "98" | "964" | "353" | "972" | "39" | "1876" | "81" | "962" | "7" | "254" | "686" | "383" | "965" | "996" | "856" | "371" | "961" | "266" | "231" | "218" | "423" | "370" | "352" | "853" | "389" | "261" | "265" | "60" | "960" | "223" | "356" | "692" | "596" | "222" | "230" | "52" | "691" | "373" | "377" | "976" | "382" | "212" | "258" | "95" | "264" | "674" | "977" | "31" | "687" | "64" | "505" | "227" | "234" | "850" | "47" | "968" | "92" | "680" | "970" | "507" | "675" | "595" | "51" | "63" | "48" | "351" | "974" | "262" | "40" | "250" | "1869" | "1758" | "1784" | "685" | "378" | "239" | "966" | "221" | "381" | "248" | "232" | "65" | "421" | "386" | "677" | "252" | "27" | "82" | "211" | "34" | "94" | "249" | "597" | "268" | "46" | "41" | "963" | "886" | "992" | "255" | "66" | "670" | "228" | "676" | "1868" | "216" | "90" | "993" | "688" | "256" | "380" | "971" | "44" | "598" | "998" | "678" | "58" | "84" | "967" | "260" | "263";
1
+ import { TCallingCodeMap, TCountry } from "./types";
2
+ export declare const CountryData: readonly [readonly ["Afghanistan", readonly ["asia"], "af", "93"], readonly ["Albania", readonly ["europe"], "al", "355"], readonly ["Algeria", readonly ["africa", "north-africa"], "dz", "213"], readonly ["Andorra", readonly ["europe"], "ad", "376"], readonly ["Angola", readonly ["africa"], "ao", "244"], readonly ["Antigua and Barbuda", readonly ["america", "carribean"], "ag", "1268"], readonly ["Argentina", readonly ["america", "south-america"], "ar", "54", "(..) ........"], readonly ["Armenia", readonly ["asia", "ex-ussr"], "am", "374", ".. ......"], readonly ["Aruba", readonly ["america", "carribean"], "aw", "297"], readonly ["Australia", readonly ["oceania"], "au", "61", "(..) .... ...."], readonly ["Austria", readonly ["europe", "eu-union"], "at", "43"], readonly ["Azerbaijan", readonly ["asia", "ex-ussr"], "az", "994", "(..) ... .. .."], readonly ["Bahamas", readonly ["america", "carribean"], "bs", "1242"], readonly ["Bahrain", readonly ["middle-east"], "bh", "973"], readonly ["Bangladesh", readonly ["asia"], "bd", "880"], readonly ["Barbados", readonly ["america", "carribean"], "bb", "1246"], readonly ["Belarus", readonly ["europe", "ex-ussr"], "by", "375", "(..) ... .. .."], readonly ["Belgium", readonly ["europe", "eu-union"], "be", "32", "... .. .. .."], readonly ["Belize", readonly ["america", "central-america"], "bz", "501"], readonly ["Benin", readonly ["africa"], "bj", "229"], readonly ["Bhutan", readonly ["asia"], "bt", "975"], readonly ["Bolivia", readonly ["america", "south-america"], "bo", "591"], readonly ["Bosnia and Herzegovina", readonly ["europe", "ex-yugos"], "ba", "387"], readonly ["Botswana", readonly ["africa"], "bw", "267"], readonly ["Brazil", readonly ["america", "south-america"], "br", "55", "(..) ........."], readonly ["British Indian Ocean Territory", readonly ["asia"], "io", "246"], readonly ["Brunei", readonly ["asia"], "bn", "673"], readonly ["Bulgaria", readonly ["europe", "eu-union"], "bg", "359"], readonly ["Burkina Faso", readonly ["africa"], "bf", "226"], readonly ["Burundi", readonly ["africa"], "bi", "257"], readonly ["Cambodia", readonly ["asia"], "kh", "855"], readonly ["Cameroon", readonly ["africa"], "cm", "237"], readonly ["Canada", readonly ["america", "north-america"], "ca", "1", "(...) ... ...."], readonly ["Cape Verde", readonly ["africa"], "cv", "238"], readonly ["Caribbean Netherlands", readonly ["america", "carribean"], "bq", "599", ""], readonly ["Central African Republic", readonly ["africa"], "cf", "236"], readonly ["Chad", readonly ["africa"], "td", "235"], readonly ["Chile", readonly ["america", "south-america"], "cl", "56"], readonly ["China", readonly ["asia"], "cn", "86", ".. ........."], readonly ["Colombia", readonly ["america", "south-america"], "co", "57", "... ... ...."], readonly ["Comoros", readonly ["africa"], "km", "269"], readonly ["Congo", readonly ["africa"], "cd", "243"], readonly ["Congo", readonly ["africa"], "cg", "242"], readonly ["Costa Rica", readonly ["america", "central-america"], "cr", "506", ".... ...."], readonly ["Côte d’Ivoire", readonly ["africa"], "ci", "225", ".. .. .. .."], readonly ["Croatia", readonly ["europe", "eu-union", "ex-yugos"], "hr", "385"], readonly ["Cuba", readonly ["america", "carribean"], "cu", "53"], readonly ["Curaçao", readonly ["america", "carribean"], "cw", "599", ""], readonly ["Cyprus", readonly ["europe", "eu-union"], "cy", "357", ".. ......"], readonly ["Czech Republic", readonly ["europe", "eu-union"], "cz", "420", "... ... ..."], readonly ["Denmark", readonly ["europe", "eu-union", "baltic"], "dk", "45", ".. .. .. .."], readonly ["Djibouti", readonly ["africa"], "dj", "253"], readonly ["Dominica", readonly ["america", "carribean"], "dm", "1767"], readonly ["Dominican Republic", readonly ["america", "carribean"], "do", "1", ""], readonly ["Ecuador", readonly ["america", "south-america"], "ec", "593"], readonly ["Egypt", readonly ["africa", "north-africa"], "eg", "20"], readonly ["El Salvador", readonly ["america", "central-america"], "sv", "503", ".... ...."], readonly ["Equatorial Guinea", readonly ["africa"], "gq", "240"], readonly ["Eritrea", readonly ["africa"], "er", "291"], readonly ["Estonia", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "ee", "372", ".... ......"], readonly ["Ethiopia", readonly ["africa"], "et", "251"], readonly ["Fiji", readonly ["oceania"], "fj", "679"], readonly ["Finland", readonly ["europe", "eu-union", "baltic"], "fi", "358", ".. ... .. .."], readonly ["France", readonly ["europe", "eu-union"], "fr", "33", ". .. .. .. .."], readonly ["French Guiana", readonly ["america", "south-america"], "gf", "594"], readonly ["French Polynesia", readonly ["oceania"], "pf", "689"], readonly ["Gabon", readonly ["africa"], "ga", "241"], readonly ["Gambia", readonly ["africa"], "gm", "220"], readonly ["Georgia", readonly ["asia", "ex-ussr"], "ge", "995"], readonly ["Germany", readonly ["europe", "eu-union", "baltic"], "de", "49", ".... ........"], readonly ["Ghana", readonly ["africa"], "gh", "233"], readonly ["Greece", readonly ["europe", "eu-union"], "gr", "30"], readonly ["Grenada", readonly ["america", "carribean"], "gd", "1473"], readonly ["Guadeloupe", readonly ["america", "carribean"], "gp", "590", "", 0], readonly ["Guam", readonly ["oceania"], "gu", "1671"], readonly ["Guatemala", readonly ["america", "central-america"], "gt", "502", ".... ...."], readonly ["Guinea", readonly ["africa"], "gn", "224"], readonly ["Guinea-Bissau", readonly ["africa"], "gw", "245"], readonly ["Guyana", readonly ["america", "south-america"], "gy", "592"], readonly ["Haiti", readonly ["america", "carribean"], "ht", "509", ".... ...."], readonly ["Honduras", readonly ["america", "central-america"], "hn", "504"], readonly ["Hong Kong", readonly ["asia"], "hk", "852", ".... ...."], readonly ["Hungary", readonly ["europe", "eu-union"], "hu", "36"], readonly ["Iceland", readonly ["europe"], "is", "354", "... ...."], readonly ["India", readonly ["asia"], "in", "91", "..... ....."], readonly ["Indonesia", readonly ["asia"], "id", "62"], readonly ["Iran", readonly ["middle-east"], "ir", "98", "... ... ...."], readonly ["Iraq", readonly ["middle-east"], "iq", "964"], readonly ["Ireland", readonly ["europe", "eu-union"], "ie", "353", ".. ......."], readonly ["Israel", readonly ["middle-east"], "il", "972", "... ... ...."], readonly ["Italy", readonly ["europe", "eu-union"], "it", "39", "... ......."], readonly ["Jamaica", readonly ["america", "carribean"], "jm", "1876"], readonly ["Japan", readonly ["asia"], "jp", "81", ".. .... ...."], readonly ["Jordan", readonly ["middle-east"], "jo", "962"], readonly ["Kazakhstan", readonly ["asia", "ex-ussr"], "kz", "7", "... ... .. .."], readonly ["Kenya", readonly ["africa"], "ke", "254"], readonly ["Kiribati", readonly ["oceania"], "ki", "686"], readonly ["Kosovo", readonly ["europe", "ex-yugos"], "xk", "383"], readonly ["Kuwait", readonly ["middle-east"], "kw", "965"], readonly ["Kyrgyzstan", readonly ["asia", "ex-ussr"], "kg", "996", "... ... ..."], readonly ["Laos", readonly ["asia"], "la", "856"], readonly ["Latvia", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "lv", "371", ".. ... ..."], readonly ["Lebanon", readonly ["middle-east"], "lb", "961"], readonly ["Lesotho", readonly ["africa"], "ls", "266"], readonly ["Liberia", readonly ["africa"], "lr", "231"], readonly ["Libya", readonly ["africa", "north-africa"], "ly", "218"], readonly ["Liechtenstein", readonly ["europe"], "li", "423"], readonly ["Lithuania", readonly ["europe", "eu-union", "ex-ussr", "baltic"], "lt", "370"], readonly ["Luxembourg", readonly ["europe", "eu-union"], "lu", "352"], readonly ["Macau", readonly ["asia"], "mo", "853"], readonly ["Macedonia", readonly ["europe", "ex-yugos"], "mk", "389"], readonly ["Madagascar", readonly ["africa"], "mg", "261"], readonly ["Malawi", readonly ["africa"], "mw", "265"], readonly ["Malaysia", readonly ["asia"], "my", "60", ".. .... ...."], readonly ["Maldives", readonly ["asia"], "mv", "960"], readonly ["Mali", readonly ["africa"], "ml", "223"], readonly ["Malta", readonly ["europe", "eu-union"], "mt", "356"], readonly ["Marshall Islands", readonly ["oceania"], "mh", "692"], readonly ["Martinique", readonly ["america", "carribean"], "mq", "596"], readonly ["Mauritania", readonly ["africa"], "mr", "222"], readonly ["Mauritius", readonly ["africa"], "mu", "230"], readonly ["Mexico", readonly ["america", "central-america"], "mx", "52", "... ... ...."], readonly ["Micronesia", readonly ["oceania"], "fm", "691"], readonly ["Moldova", readonly ["europe"], "md", "373", "(..) .. .. .."], readonly ["Monaco", readonly ["europe"], "mc", "377"], readonly ["Mongolia", readonly ["asia"], "mn", "976"], readonly ["Montenegro", readonly ["europe", "ex-yugos"], "me", "382"], readonly ["Morocco", readonly ["africa", "north-africa"], "ma", "212"], readonly ["Mozambique", readonly ["africa"], "mz", "258"], readonly ["Myanmar", readonly ["asia"], "mm", "95"], readonly ["Namibia", readonly ["africa"], "na", "264"], readonly ["Nauru", readonly ["africa"], "nr", "674"], readonly ["Nepal", readonly ["asia"], "np", "977"], readonly ["Netherlands", readonly ["europe", "eu-union"], "nl", "31", ".. ........"], readonly ["New Caledonia", readonly ["oceania"], "nc", "687"], readonly ["New Zealand", readonly ["oceania"], "nz", "64", "... ... ...."], readonly ["Nicaragua", readonly ["america", "central-america"], "ni", "505"], readonly ["Niger", readonly ["africa"], "ne", "227"], readonly ["Nigeria", readonly ["africa"], "ng", "234"], readonly ["North Korea", readonly ["asia"], "kp", "850"], readonly ["Norway", readonly ["europe", "baltic"], "no", "47", "... .. ..."], readonly ["Oman", readonly ["middle-east"], "om", "968"], readonly ["Pakistan", readonly ["asia"], "pk", "92", "... ......."], readonly ["Palau", readonly ["oceania"], "pw", "680"], readonly ["Palestine", readonly ["middle-east"], "ps", "970"], readonly ["Panama", readonly ["america", "central-america"], "pa", "507"], readonly ["Papua New Guinea", readonly ["oceania"], "pg", "675"], readonly ["Paraguay", readonly ["america", "south-america"], "py", "595"], readonly ["Peru", readonly ["america", "south-america"], "pe", "51"], readonly ["Philippines", readonly ["asia"], "ph", "63", ".... ......."], readonly ["Poland", readonly ["europe", "eu-union", "baltic"], "pl", "48", "... ... ..."], readonly ["Portugal", readonly ["europe", "eu-union"], "pt", "351"], readonly ["Puerto Rico", readonly ["america", "carribean"], "pr", "1", ""], readonly ["Qatar", readonly ["middle-east"], "qa", "974"], readonly ["Réunion", readonly ["africa"], "re", "262"], readonly ["Romania", readonly ["europe", "eu-union"], "ro", "40"], readonly ["Russia", readonly ["europe", "asia", "ex-ussr", "baltic"], "ru", "7", "(...) ... .. .."], readonly ["Rwanda", readonly ["africa"], "rw", "250"], readonly ["Saint Kitts and Nevis", readonly ["america", "carribean"], "kn", "1869"], readonly ["Saint Lucia", readonly ["america", "carribean"], "lc", "1758"], readonly ["Saint Vincent and the Grenadines", readonly ["america", "carribean"], "vc", "1784"], readonly ["Samoa", readonly ["oceania"], "ws", "685"], readonly ["San Marino", readonly ["europe"], "sm", "378"], readonly ["São Tomé and Príncipe", readonly ["africa"], "st", "239"], readonly ["Saudi Arabia", readonly ["middle-east"], "sa", "966"], readonly ["Senegal", readonly ["africa"], "sn", "221"], readonly ["Serbia", readonly ["europe", "ex-yugos"], "rs", "381"], readonly ["Seychelles", readonly ["africa"], "sc", "248"], readonly ["Sierra Leone", readonly ["africa"], "sl", "232"], readonly ["Singapore", readonly ["asia"], "sg", "65", ".... ...."], readonly ["Slovakia", readonly ["europe", "eu-union"], "sk", "421"], readonly ["Slovenia", readonly ["europe", "eu-union", "ex-yugos"], "si", "386"], readonly ["Solomon Islands", readonly ["oceania"], "sb", "677"], readonly ["Somalia", readonly ["africa"], "so", "252"], readonly ["South Africa", readonly ["africa"], "za", "27"], readonly ["South Korea", readonly ["asia"], "kr", "82", "... .... ...."], readonly ["South Sudan", readonly ["africa", "north-africa"], "ss", "211"], readonly ["Spain", readonly ["europe", "eu-union"], "es", "34", "... ... ..."], readonly ["Sri Lanka", readonly ["asia"], "lk", "94"], readonly ["Sudan", readonly ["africa"], "sd", "249"], readonly ["Suriname", readonly ["america", "south-america"], "sr", "597"], readonly ["Swaziland", readonly ["africa"], "sz", "268"], readonly ["Sweden", readonly ["europe", "eu-union", "baltic"], "se", "46", "(...) ... ..."], readonly ["Switzerland", readonly ["europe"], "ch", "41", ".. ... .. .."], readonly ["Syria", readonly ["middle-east"], "sy", "963"], readonly ["Taiwan", readonly ["asia"], "tw", "886"], readonly ["Tajikistan", readonly ["asia", "ex-ussr"], "tj", "992"], readonly ["Tanzania", readonly ["africa"], "tz", "255"], readonly ["Thailand", readonly ["asia"], "th", "66"], readonly ["Timor-Leste", readonly ["asia"], "tl", "670"], readonly ["Togo", readonly ["africa"], "tg", "228"], readonly ["Tonga", readonly ["oceania"], "to", "676"], readonly ["Trinidad and Tobago", readonly ["america", "carribean"], "tt", "1868"], readonly ["Tunisia", readonly ["africa", "north-africa"], "tn", "216"], readonly ["Turkey", readonly ["europe"], "tr", "90", "... ... .. .."], readonly ["Turkmenistan", readonly ["asia", "ex-ussr"], "tm", "993"], readonly ["Tuvalu", readonly ["asia"], "tv", "688"], readonly ["Uganda", readonly ["africa"], "ug", "256"], readonly ["Ukraine", readonly ["europe", "ex-ussr"], "ua", "380", "(..) ... .. .."], readonly ["United Arab Emirates", readonly ["middle-east"], "ae", "971"], readonly ["United Kingdom", readonly ["europe", "eu-union"], "gb", "44", ".... ......"], readonly ["United States", readonly ["america", "north-america"], "us", "1", "(...) ... ...."], readonly ["Uruguay", readonly ["america", "south-america"], "uy", "598"], readonly ["Uzbekistan", readonly ["asia", "ex-ussr"], "uz", "998", ".. ... .. .."], readonly ["Vanuatu", readonly ["oceania"], "vu", "678"], readonly ["Vatican City", readonly ["europe"], "va", "39", ".. .... ...."], readonly ["Venezuela", readonly ["america", "south-america"], "ve", "58"], readonly ["Vietnam", readonly ["asia"], "vn", "84"], readonly ["Yemen", readonly ["middle-east"], "ye", "967"], readonly ["Zambia", readonly ["africa"], "zm", "260"], readonly ["Zimbabwe", readonly ["africa"], "zw", "263"]];
3
+ export declare const getCountryMap: () => TCallingCodeMap;
4
+ export declare const getCountries: () => string[];
5
+ export declare const getCountryFromPrefix: (prefix: string, country: Map<TCountry, string>) => TCountry | undefined;
6
+ export declare const getPrefixFromCountry: (country: string) => "93" | "355" | "213" | "376" | "244" | "1268" | "54" | "374" | "297" | "61" | "43" | "994" | "1242" | "973" | "880" | "1246" | "375" | "32" | "501" | "229" | "975" | "591" | "387" | "267" | "55" | "246" | "673" | "359" | "226" | "257" | "855" | "237" | "1" | "238" | "599" | "236" | "235" | "56" | "86" | "57" | "269" | "243" | "242" | "506" | "225" | "385" | "53" | "357" | "420" | "45" | "253" | "1767" | "593" | "20" | "503" | "240" | "291" | "372" | "251" | "679" | "358" | "33" | "594" | "689" | "241" | "220" | "995" | "49" | "233" | "30" | "1473" | "590" | "1671" | "502" | "224" | "245" | "592" | "509" | "504" | "852" | "36" | "354" | "91" | "62" | "98" | "964" | "353" | "972" | "39" | "1876" | "81" | "962" | "7" | "254" | "686" | "383" | "965" | "996" | "856" | "371" | "961" | "266" | "231" | "218" | "423" | "370" | "352" | "853" | "389" | "261" | "265" | "60" | "960" | "223" | "356" | "692" | "596" | "222" | "230" | "52" | "691" | "373" | "377" | "976" | "382" | "212" | "258" | "95" | "264" | "674" | "977" | "31" | "687" | "64" | "505" | "227" | "234" | "850" | "47" | "968" | "92" | "680" | "970" | "507" | "675" | "595" | "51" | "63" | "48" | "351" | "974" | "262" | "40" | "250" | "1869" | "1758" | "1784" | "685" | "378" | "239" | "966" | "221" | "381" | "248" | "232" | "65" | "421" | "386" | "677" | "252" | "27" | "82" | "211" | "34" | "94" | "249" | "597" | "268" | "46" | "41" | "963" | "886" | "992" | "255" | "66" | "670" | "228" | "676" | "1868" | "216" | "90" | "993" | "688" | "256" | "380" | "971" | "44" | "598" | "998" | "678" | "58" | "84" | "967" | "260" | "263";
@@ -1,2 +1,2 @@
1
- export * from "./contact-field";
2
- export * from "./types";
1
+ export * from "./contact-field";
2
+ export * from "./types";
@@ -1,31 +1,31 @@
1
- import { TComponentOmitProps } from "../../frontend-engine";
2
- import { IBaseFieldSchema } from "../types";
3
- import { CountryData } from "./data";
4
- import { PhoneNumberInputProps } from "@lifesg/react-design-system/phone-number-input";
5
- interface IContactFieldProps extends PhoneNumberInputProps {
6
- defaultCountry?: TCountry;
7
- enableSearch?: boolean | undefined;
8
- }
9
- export type TSingaporeNumberRule = "default" | "house" | "mobile";
10
- export type TCountry = (typeof CountryData)[number][0];
11
- export type TCallingCodeMap = Map<TCountry, string>;
12
- export interface IContactFieldValidationRule {
13
- contactNumber?: {
14
- internationalNumber: boolean | Omit<TCountry, "Singapore">;
15
- singaporeNumber?: never;
16
- } | {
17
- internationalNumber?: never;
18
- singaporeNumber: TSingaporeNumberRule;
19
- };
20
- }
21
- export interface ISelectedCountry {
22
- prefix: string | undefined;
23
- name: TCountry;
24
- }
25
- export interface IParsedPhoneNumber {
26
- prefix: string;
27
- number: string;
28
- }
29
- export interface IContactFieldSchema<V = undefined> extends IBaseFieldSchema<"contact-field", V, IContactFieldValidationRule>, TComponentOmitProps<IContactFieldProps> {
30
- }
31
- export {};
1
+ import { TComponentOmitProps } from "../../frontend-engine";
2
+ import { IBaseFieldSchema } from "../types";
3
+ import { CountryData } from "./data";
4
+ import { PhoneNumberInputProps } from "@lifesg/react-design-system/phone-number-input";
5
+ interface IContactFieldProps extends PhoneNumberInputProps {
6
+ defaultCountry?: TCountry;
7
+ enableSearch?: boolean | undefined;
8
+ }
9
+ export type TSingaporeNumberRule = "default" | "house" | "mobile";
10
+ export type TCountry = (typeof CountryData)[number][0];
11
+ export type TCallingCodeMap = Map<TCountry, string>;
12
+ export interface IContactFieldValidationRule {
13
+ contactNumber?: {
14
+ internationalNumber: boolean | Omit<TCountry, "Singapore">;
15
+ singaporeNumber?: never;
16
+ } | {
17
+ internationalNumber?: never;
18
+ singaporeNumber: TSingaporeNumberRule;
19
+ };
20
+ }
21
+ export interface ISelectedCountry {
22
+ prefix: string | undefined;
23
+ name: TCountry;
24
+ }
25
+ export interface IParsedPhoneNumber {
26
+ prefix: string;
27
+ number: string;
28
+ }
29
+ export interface IContactFieldSchema<V = undefined> extends IBaseFieldSchema<"contact-field", V, IContactFieldValidationRule>, TComponentOmitProps<IContactFieldProps> {
30
+ }
31
+ export {};
@@ -1,7 +1,7 @@
1
- import { IParsedPhoneNumber } from "./types";
2
- export declare namespace PhoneHelper {
3
- const getParsedPhoneNumber: (value: string) => IParsedPhoneNumber;
4
- const isSingaporeNumber: (value: string, validateMode?: "default" | "house" | "mobile") => boolean;
5
- const isInternationalNumber: (country: string, value: string) => boolean;
6
- const formatPhoneNumber: (prefix: string, value: string) => string | undefined;
7
- }
1
+ import { IParsedPhoneNumber } from "./types";
2
+ export declare namespace PhoneHelper {
3
+ const getParsedPhoneNumber: (value: string) => IParsedPhoneNumber;
4
+ const isSingaporeNumber: (value: string, validateMode?: "default" | "house" | "mobile") => boolean;
5
+ const isInternationalNumber: (country: string, value: string) => boolean;
6
+ const formatPhoneNumber: (prefix: string, value: string) => string | undefined;
7
+ }
@@ -1,3 +1,3 @@
1
- import { IGenericFieldProps } from "../types";
2
- import { IDateFieldSchema } from "./types";
3
- export declare const DateField: (props: IGenericFieldProps<IDateFieldSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "../types";
2
+ import { IDateFieldSchema } from "./types";
3
+ export declare const DateField: (props: IGenericFieldProps<IDateFieldSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from "./date-field";
2
- export * from "./types";
1
+ export * from "./date-field";
2
+ export * from "./types";
@@ -1,20 +1,20 @@
1
- import { DateInputProps } from "@lifesg/react-design-system/date-input";
2
- import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine";
3
- import { IBaseFieldSchema } from "../types";
4
- import { IDaysRangeRule, IWithinDaysRangeRule } from "../../../context-providers";
5
- export interface IDateFieldValidationRule extends IYupValidationRule {
6
- dateFormat?: boolean | undefined;
7
- future?: boolean | undefined;
8
- past?: boolean | undefined;
9
- notFuture?: boolean | undefined;
10
- notPast?: boolean | undefined;
11
- minDate?: string | undefined;
12
- maxDate?: string | undefined;
13
- excludedDates?: string[] | undefined;
14
- withinDays?: Omit<IWithinDaysRangeRule, "dateFormat"> | undefined;
15
- beyondDays?: Omit<IDaysRangeRule, "dateFormat"> | undefined;
16
- }
17
- export interface IDateFieldSchema<V = undefined> extends IBaseFieldSchema<"date-field", V, IDateFieldValidationRule>, TComponentOmitProps<DateInputProps, "minDate" | "maxDate" | "disabledDates"> {
18
- useCurrentDate?: boolean | undefined;
19
- dateFormat?: string | undefined;
20
- }
1
+ import { DateInputProps } from "@lifesg/react-design-system/date-input";
2
+ import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine";
3
+ import { IBaseFieldSchema } from "../types";
4
+ import { IDaysRangeRule, IWithinDaysRangeRule } from "../../../context-providers";
5
+ export interface IDateFieldValidationRule extends IYupValidationRule {
6
+ dateFormat?: boolean | undefined;
7
+ future?: boolean | undefined;
8
+ past?: boolean | undefined;
9
+ notFuture?: boolean | undefined;
10
+ notPast?: boolean | undefined;
11
+ minDate?: string | undefined;
12
+ maxDate?: string | undefined;
13
+ excludedDates?: string[] | undefined;
14
+ withinDays?: Omit<IWithinDaysRangeRule, "dateFormat"> | undefined;
15
+ beyondDays?: Omit<IDaysRangeRule, "dateFormat"> | undefined;
16
+ }
17
+ export interface IDateFieldSchema<V = undefined> extends IBaseFieldSchema<"date-field", V, IDateFieldValidationRule>, TComponentOmitProps<DateInputProps, "minDate" | "maxDate" | "disabledDates"> {
18
+ useCurrentDate?: boolean | undefined;
19
+ dateFormat?: string | undefined;
20
+ }
@@ -1,3 +1,3 @@
1
- import { IGenericFieldProps } from "..";
2
- import { TDateRangeFieldSchema } from "./types";
3
- export declare const DateRangeField: (props: IGenericFieldProps<TDateRangeFieldSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "..";
2
+ import { TDateRangeFieldSchema } from "./types";
3
+ export declare const DateRangeField: (props: IGenericFieldProps<TDateRangeFieldSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from "./date-range-field";
2
- export * from "./types";
1
+ export * from "./date-range-field";
2
+ export * from "./types";
@@ -1,32 +1,32 @@
1
- import { DateRangeInputProps } from "@lifesg/react-design-system/date-range-input";
2
- import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine";
3
- import { IBaseFieldSchema } from "../types";
4
- export interface IDateRangeFieldValidationRule extends IYupValidationRule {
5
- dateFormat?: boolean | undefined;
6
- future?: boolean | undefined;
7
- past?: boolean | undefined;
8
- notFuture?: boolean | undefined;
9
- notPast?: boolean | undefined;
10
- minDate?: string | undefined;
11
- maxDate?: string | undefined;
12
- excludedDates?: string[] | undefined;
13
- numberOfDays?: number | undefined;
14
- }
15
- interface WeekSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
16
- variant: "week";
17
- dateFormat?: string | undefined;
18
- }
19
- interface RangeSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
20
- variant: "range";
21
- dateFormat?: string | undefined;
22
- }
23
- interface FixedRangeSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
24
- variant: "fixed-range";
25
- dateFormat?: string | undefined;
26
- }
27
- export type TDateRangeFieldSchema<V = undefined> = RangeSchema<V> | WeekSchema<V> | FixedRangeSchema<V>;
28
- export declare enum TDateRangeInputType {
29
- START = "start",
30
- END = "end"
31
- }
32
- export {};
1
+ import { DateRangeInputProps } from "@lifesg/react-design-system/date-range-input";
2
+ import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine";
3
+ import { IBaseFieldSchema } from "../types";
4
+ export interface IDateRangeFieldValidationRule extends IYupValidationRule {
5
+ dateFormat?: boolean | undefined;
6
+ future?: boolean | undefined;
7
+ past?: boolean | undefined;
8
+ notFuture?: boolean | undefined;
9
+ notPast?: boolean | undefined;
10
+ minDate?: string | undefined;
11
+ maxDate?: string | undefined;
12
+ excludedDates?: string[] | undefined;
13
+ numberOfDays?: number | undefined;
14
+ }
15
+ interface WeekSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
16
+ variant: "week";
17
+ dateFormat?: string | undefined;
18
+ }
19
+ interface RangeSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
20
+ variant: "range";
21
+ dateFormat?: string | undefined;
22
+ }
23
+ interface FixedRangeSchema<V = undefined> extends IBaseFieldSchema<"date-range-field", V, IDateRangeFieldValidationRule>, TComponentOmitProps<DateRangeInputProps, "valueEnd"> {
24
+ variant: "fixed-range";
25
+ dateFormat?: string | undefined;
26
+ }
27
+ export type TDateRangeFieldSchema<V = undefined> = RangeSchema<V> | WeekSchema<V> | FixedRangeSchema<V>;
28
+ export declare enum TDateRangeInputType {
29
+ START = "start",
30
+ END = "end"
31
+ }
32
+ export {};
@@ -1,3 +1,3 @@
1
- import { IGenericFieldProps } from "../types";
2
- import { IESignatureFieldSchema } from "./types";
3
- export declare const ESignatureField: (props: IGenericFieldProps<IESignatureFieldSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "../types";
2
+ import { IESignatureFieldSchema } from "./types";
3
+ export declare const ESignatureField: (props: IGenericFieldProps<IESignatureFieldSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ESignatureWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
3
- export declare const ErrorWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
4
- export declare const TryAgain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
5
- export declare const RefreshAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@lifesg/react-design-system/alert").AlertProps, never> & Partial<Pick<import("@lifesg/react-design-system/alert").AlertProps, never>>> & string & Omit<({ type, className, children, actionLink, actionLinkIcon, sizeType, showIcon, customIcon, maxCollapsedHeight, role, ...otherProps }: import("@lifesg/react-design-system/alert").AlertProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
1
+ export declare const ESignatureWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
2
+ export declare const ErrorWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
3
+ export declare const TryAgain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
4
+ export declare const RefreshAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@lifesg/react-design-system").AlertProps, never> & Partial<Pick<import("@lifesg/react-design-system").AlertProps, never>>> & string & Omit<({ type, className, children, actionLink, actionLinkIcon, sizeType, showIcon, customIcon, maxCollapsedHeight, role, ...otherProps }: import("@lifesg/react-design-system").AlertProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
@@ -1,2 +1,2 @@
1
- export * from "./e-signature-field";
2
- export * from "./types";
1
+ export * from "./e-signature-field";
2
+ export * from "./types";
@@ -1,22 +1,22 @@
1
- import { EsignatureProps } from "@lifesg/react-design-system/e-signature";
2
- import { AxiosRequestConfig } from "axios";
3
- import { IBaseFieldSchema } from "..";
4
- import { IYupValidationRule } from "../../frontend-engine";
5
- export interface IESignatureFieldValidationRule extends IYupValidationRule {
6
- /** for customising upload error message */
7
- upload?: boolean | undefined;
8
- }
9
- export interface IESignatureFieldSchema<V = undefined> extends IBaseFieldSchema<"e-signature-field", V, IESignatureFieldValidationRule>, Pick<EsignatureProps, "className" | "data-testid" | "description"> {
10
- upload?: {
11
- url: string;
12
- type: "base64" | "multipart";
13
- headers?: AxiosRequestConfig["headers"] | undefined;
14
- sessionId?: string | undefined;
15
- } | undefined;
16
- }
17
- export interface IESignatureValue {
18
- dataURL?: string | undefined;
19
- fileId: string;
20
- fileUrl?: string | undefined;
21
- uploadResponse?: unknown | undefined;
22
- }
1
+ import { EsignatureProps } from "@lifesg/react-design-system/e-signature";
2
+ import { AxiosRequestConfig } from "axios";
3
+ import { IBaseFieldSchema } from "..";
4
+ import { IYupValidationRule } from "../../frontend-engine";
5
+ export interface IESignatureFieldValidationRule extends IYupValidationRule {
6
+ /** for customising upload error message */
7
+ upload?: boolean | undefined;
8
+ }
9
+ export interface IESignatureFieldSchema<V = undefined> extends IBaseFieldSchema<"e-signature-field", V, IESignatureFieldValidationRule>, Pick<EsignatureProps, "className" | "data-testid" | "description"> {
10
+ upload?: {
11
+ url: string;
12
+ type: "base64" | "multipart";
13
+ headers?: AxiosRequestConfig["headers"] | undefined;
14
+ sessionId?: string | undefined;
15
+ } | undefined;
16
+ }
17
+ export interface IESignatureValue {
18
+ dataURL?: string | undefined;
19
+ fileId: string;
20
+ fileUrl?: string | undefined;
21
+ uploadResponse?: unknown | undefined;
22
+ }
@@ -1,3 +1,3 @@
1
- import { IGenericFieldProps } from "../types";
2
- import { IErrorFieldSchema } from "./types";
3
- export declare const ErrorField: (props: IGenericFieldProps<IErrorFieldSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "../types";
2
+ import { IErrorFieldSchema } from "./types";
3
+ export declare const ErrorField: (props: IGenericFieldProps<IErrorFieldSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from "./error-field";
2
- export * from "./types";
1
+ export * from "./error-field";
2
+ export * from "./types";
@@ -1,11 +1,11 @@
1
- import type { TBlockElementSchema, TInlineElementSchema } from "../../elements";
2
- import { IBaseFieldSchema } from "../types";
3
- export interface IErrorFieldValidationRule {
4
- /** for customising error message when field is present, not visible to user */
5
- error?: boolean | undefined;
6
- errorMessage?: string | undefined;
7
- }
8
- export interface IErrorFieldSchema extends Pick<IBaseFieldSchema<"error-field", undefined, IErrorFieldValidationRule>, "showIf" | "uiType"> {
9
- validation?: [IErrorFieldValidationRule] | undefined;
10
- children?: Record<string, TBlockElementSchema | TInlineElementSchema> | undefined;
11
- }
1
+ import type { TBlockElementSchema, TInlineElementSchema } from "../../elements";
2
+ import { IBaseFieldSchema } from "../types";
3
+ export interface IErrorFieldValidationRule {
4
+ /** for customising error message when field is present, not visible to user */
5
+ error?: boolean | undefined;
6
+ errorMessage?: string | undefined;
7
+ }
8
+ export interface IErrorFieldSchema extends Pick<IBaseFieldSchema<"error-field", undefined, IErrorFieldValidationRule>, "showIf" | "uiType"> {
9
+ validation?: [IErrorFieldValidationRule] | undefined;
10
+ children?: Record<string, TBlockElementSchema | TInlineElementSchema> | undefined;
11
+ }
@@ -1,14 +1,14 @@
1
- import { Dispatch, SetStateAction } from "react";
2
- import { IFile } from "./types";
3
- interface IFileUploadContext {
4
- files: IFile[];
5
- setFiles: Dispatch<SetStateAction<IFile[]>>;
6
- currentFileIds: string[];
7
- setCurrentFileIds: Dispatch<SetStateAction<string[]>>;
8
- }
9
- interface Props {
10
- children: (string | boolean | JSX.Element)[] | (string | boolean | JSX.Element);
11
- }
12
- export declare const FileUploadContext: import("react").Context<IFileUploadContext>;
13
- export declare const FileUploadProvider: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export {};
1
+ import { Dispatch, SetStateAction } from "react";
2
+ import { IFile } from "./types";
3
+ interface IFileUploadContext {
4
+ files: IFile[];
5
+ setFiles: Dispatch<SetStateAction<IFile[]>>;
6
+ currentFileIds: string[];
7
+ setCurrentFileIds: Dispatch<SetStateAction<string[]>>;
8
+ }
9
+ interface Props {
10
+ children: (string | boolean | JSX.Element)[] | (string | boolean | JSX.Element);
11
+ }
12
+ export declare const FileUploadContext: import("react").Context<IFileUploadContext>;
13
+ export declare const FileUploadProvider: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -1,10 +1,10 @@
1
- import { IFile } from "./types";
2
- export declare namespace FileUploadHelper {
3
- /**
4
- * picks an available slot
5
- * slot refers to the index of the file selected
6
- * this is for tracking so we can remove the correct file when user removes it
7
- * NOTE: validation for max no. of files should be carried out outside this function, this function will only look for the next available slot
8
- */
9
- const findAvailableSlot: (files: IFile[]) => number;
10
- }
1
+ import { IFile } from "./types";
2
+ export declare namespace FileUploadHelper {
3
+ /**
4
+ * picks an available slot
5
+ * slot refers to the index of the file selected
6
+ * this is for tracking so we can remove the correct file when user removes it
7
+ * NOTE: validation for max no. of files should be carried out outside this function, this function will only look for the next available slot
8
+ */
9
+ const findAvailableSlot: (files: IFile[]) => number;
10
+ }
@@ -1,14 +1,14 @@
1
- import { IFileUploadSchema, IFileUploadValidationRule, IFileUploadValue } from "./types";
2
- interface IProps {
3
- compressImages: boolean;
4
- fileTypeRule: IFileUploadValidationRule;
5
- fileExtensionRule: IFileUploadValidationRule;
6
- hideThumbnail?: boolean | undefined;
7
- id: string;
8
- maxFileSizeRule: IFileUploadValidationRule;
9
- upload: IFileUploadSchema["uploadOnAddingFile"];
10
- uploadRule: IFileUploadValidationRule;
11
- value: IFileUploadValue[];
12
- }
13
- declare const FileUploadManager: (props: IProps) => any;
14
- export default FileUploadManager;
1
+ import { IFileUploadSchema, IFileUploadValidationRule, IFileUploadValue } from "./types";
2
+ interface IProps {
3
+ compressImages: boolean;
4
+ fileTypeRule: IFileUploadValidationRule;
5
+ fileExtensionRule: IFileUploadValidationRule;
6
+ hideThumbnail?: boolean | undefined;
7
+ id: string;
8
+ maxFileSizeRule: IFileUploadValidationRule;
9
+ upload: IFileUploadSchema["uploadOnAddingFile"];
10
+ uploadRule: IFileUploadValidationRule;
11
+ value: IFileUploadValue[];
12
+ }
13
+ declare const FileUploadManager: (props: IProps) => any;
14
+ export default FileUploadManager;
@@ -1,4 +1,4 @@
1
- import { IGenericFieldProps } from "..";
2
- import { IFileUploadSchema } from "./types";
3
- export declare const FileUploadInner: (props: IGenericFieldProps<IFileUploadSchema>) => import("react/jsx-runtime").JSX.Element;
4
- export declare const FileUpload: (props: IGenericFieldProps<IFileUploadSchema>) => import("react/jsx-runtime").JSX.Element;
1
+ import { IGenericFieldProps } from "..";
2
+ import { IFileUploadSchema } from "./types";
3
+ export declare const FileUploadInner: (props: IGenericFieldProps<IFileUploadSchema>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const FileUpload: (props: IGenericFieldProps<IFileUploadSchema>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from "./file-upload";
2
- export * from "./types";
1
+ export * from "./file-upload";
2
+ export * from "./types";