@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,214 +1,213 @@
1
- /// <reference types="react" />
2
- import { ColProps } from "@lifesg/react-design-system/layout";
3
- import { UseFormClearErrors, UseFormReset, UseFormSetValue, ValidationMode } from "react-hook-form";
4
- import { TAddFieldEventListener, TCustomComponents, TCustomValidationFunction, TDispatchFieldEvent, TRemoveFieldEventListener, TYupSchemaType } from "../../context-providers";
5
- import { RecursivePartial } from "../../utils";
6
- import { TCustomSchema } from "../custom";
7
- import { TElementSchema } from "../elements";
8
- import { ISectionSchema } from "../elements/section";
9
- import { TFieldSchema } from "../fields";
10
- export type { IYupValidationRule, TCustomComponents, TCustomValidationFunction } from "../../context-providers";
11
- export interface IFrontendEngineProps<V = undefined, C = undefined> {
12
- /** HTML class attribute that is applied on the `<form>` element */
13
- className?: string | undefined;
14
- /** Custom components defined outside Frontend Engine. Key denotes referenceKey in schema while value is the component to be used */
15
- components?: TCustomComponents | undefined;
16
- /**
17
- * JSON configuration to define the components and functionalities of the form
18
- *
19
- * Generics
20
- * - V = custom validation types
21
- * - C = custom component types
22
- * */
23
- data?: IFrontendEngineData<V, C> | undefined;
24
- /** Fires on mount and every time the schema or value changes */
25
- onChange?: ((values: TFrontendEngineValues, isValid?: boolean | undefined) => unknown) | undefined;
26
- /** Submit event handler, will receive the form data if form validation is successful */
27
- onSubmit?: (values: TFrontendEngineValues) => unknown | undefined;
28
- /** Submit error event handler, invoked when form fails validation on submissiohn. Will receive validation errors */
29
- onSubmitError?: (errors: TFrontendEngineValues) => unknown | undefined;
30
- /** Fires every time a value changes in any fields */
31
- onValueChange?: ((values: TFrontendEngineValues, isValid?: boolean | undefined) => unknown) | undefined;
32
- /** reCAPTCHA public site key. Only required if you are using reCAPTCHA with LocationField*/
33
- recaptchaSiteKey?: string | undefined;
34
- /** Indicates whether to wrap Frontend Engine fields within the `<form>` element, by default, fields will be rendered within the `<form>` element
35
- *
36
- * When false, the fields will be rendered within the `<div>` element instead
37
- *
38
- * This is for instances where Frontend Engine needs to be rendered within another <form> element
39
- *
40
- * Default: true */
41
- wrapInForm?: boolean | undefined;
42
- }
43
- /**
44
- * JSON configuration to define the components and functionalities of the form
45
- *
46
- * Generics
47
- * - V = custom validation types
48
- * - C = custom component types
49
- */
50
- export interface IFrontendEngineData<V = undefined, C = undefined> {
51
- /** HTML class attribute */
52
- className?: string | undefined;
53
- /** Fields' initial values on mount. The key of each field needs to match the id used in the field */
54
- defaultValues?: TFrontendEngineValues | undefined;
55
- /**
56
- * Specifies the components to be rendered
57
- *
58
- * All components within the form are in key-value format, key refers to the id of the components while value refers to its JSON schema
59
- *
60
- * Note: sections accept only section `uiType`, the subsequent children accepts uiType other than section
61
- * */
62
- sections: Record<string, ISectionSchema<V, C>>;
63
- /** Unique HTML id attribute that is applied on the `<form>` element */
64
- id?: string | undefined;
65
- /** Validation strategy when inputs with errors get re-validated after a user submits the form (onSubmit event) */
66
- revalidationMode?: TRevalidationMode | undefined;
67
- /** Validation strategy before a user submits the form (onSubmit event) */
68
- validationMode?: TValidationMode | undefined;
69
- /** Additional properties to mutate the sections schema on-the-fly */
70
- overrides?: Record<string, RecursivePartial<TFrontendEngineFieldSchema<V>>> | undefined;
71
- /**
72
- * Specifies how a conditionally rendered field gets populated when it is shown again
73
- * - `"none"`: cleared
74
- * - `"default-value"`: the initial value
75
- * - `"user-input"`: the latest value
76
- */
77
- restoreMode?: TRestoreMode | undefined;
78
- /**
79
- * Excludes values of fields that are not declared in the schema on submit / via getValues()
80
- */
81
- stripUnknown?: boolean | undefined;
82
- }
83
- export type TFrontendEngineValues<T = any> = {
84
- [P in keyof T]: T[P];
85
- };
86
- export type TRevalidationMode = Exclude<keyof ValidationMode, "onTouched" | "all">;
87
- export type TValidationMode = keyof ValidationMode;
88
- export type TRestoreMode = "none" | "default-value" | "user-input";
89
- export type TErrorMessage = string | string[] | {
90
- [key: string]: TErrorMessage;
91
- };
92
- export type TErrorPayload = Record<string, TErrorMessage>;
93
- export type TWarningPayload = Record<string, string>;
94
- export interface IFrontendEngineRef extends Omit<HTMLDivElement, "addEventListener" | "removeEventListener">, HTMLFormElement {
95
- /**
96
- * adds custom validation rule
97
- * @param type The schema type
98
- * @param name Name of the condition
99
- * @param fn Validation function, it must return a boolean
100
- * @param overwrite Whether to replace if the custom validation is already exists
101
- */
102
- addCustomValidation: (type: TYupSchemaType | "mixed", name: string, fn: TCustomValidationFunction, overwrite?: boolean | undefined) => void;
103
- addFieldEventListener: TAddFieldEventListener;
104
- dispatchFieldEvent: TDispatchFieldEvent;
105
- /**
106
- * gets form values
107
- * @param payload specify the value(s) by field id(s) to return
108
- * - undefined Returns the entire form values.
109
- * - string Gets the value at path of the form values.
110
- * - array Returns an array of the value at path of the form values.
111
- */
112
- getValues: (payload?: string | string[] | undefined) => TFrontendEngineValues;
113
- /**
114
- * checks if form has been changed by user
115
- *
116
- * defaultValues do not set this to true
117
- */
118
- isDirty: boolean;
119
- /** checks if form is valid */
120
- isValid: () => boolean;
121
- /**
122
- * triggers validation in the form or for specific field
123
- */
124
- validate: (name?: string | string[] | undefined) => Promise<boolean>;
125
- /** adds custom validation rule */
126
- removeFieldEventListener: TRemoveFieldEventListener;
127
- /** resets the form to the default state */
128
- reset: UseFormReset<TFrontendEngineValues>;
129
- /** allows setting of custom errors */
130
- setErrors: (errors: TErrorPayload) => void;
131
- /** clear form errors */
132
- clearErrors: UseFormClearErrors<TFrontendEngineValues>;
133
- /** allows setting of custom warnings */
134
- setWarnings: (warnings: TWarningPayload) => void;
135
- /** sets field value by id */
136
- setValue: UseFormSetValue<TFrontendEngineValues>;
137
- /** triggers form submission */
138
- submit: () => void;
139
- }
140
- export type TFrontendEngineFieldSchema<V = undefined, C = undefined> = TFieldSchema<V, C> | TCustomSchema<V, C> | TElementSchema<V, C>;
141
- type MobileCol = 1 | 2 | 3 | 4;
142
- type MobileColRange = MobileCol | 5;
143
- type TabletCol = MobileCol | 5 | 6 | 7 | 8;
144
- type TabletColRange = TabletCol | 9;
145
- type DesktopCol = TabletCol | 9 | 10 | 11 | 12;
146
- type DesktopColRange = DesktopCol | 13;
147
- export interface IColumns extends React.HTMLAttributes<HTMLDivElement> {
148
- "data-testid"?: string | undefined;
149
- /**
150
- * Specifies the number of columns to be span across in mobile viewports.
151
- * If an array is specified, the format is as such [startCol, endCol].
152
- * If `tabletCols` or `desktopCols` are not specified, this
153
- * setting will be applied to tablet and desktop viewports.
154
- *
155
- * If all column props are not specified, the div will span across a single
156
- * column.
157
- * @deprecated Use design system v3 columns: `xxs` / `xs` / `sm`
158
- */
159
- mobile?: MobileCol | [MobileColRange, MobileColRange] | undefined;
160
- /**
161
- * Specifies the number of columns to be span across in tablet viewports.
162
- * If an array is specified, the format is as such [startCol, endCol].
163
- * If `desktopCols` are not specified, this setting will be
164
- * applied to desktop viewports as well.
165
- *
166
- * If all column props are not specified, the div will span across a single
167
- * column.
168
- * @deprecated Use design system v3 columns: `lg`
169
- */
170
- tablet?: TabletCol | [TabletColRange, TabletColRange] | undefined;
171
- /**
172
- * Specifies the number of columns to be span across in desktop viewports.
173
- * If an array is specified, the format is as such [startCol, endCol].
174
- *
175
- * If all column props are not specified, the div will span across a single
176
- * column.
177
- * @deprecated Use design system v3 columns: `xl` / `xxl`
178
- */
179
- desktop?: DesktopCol | [DesktopColRange, DesktopColRange] | undefined;
180
- xxl?: never | undefined;
181
- xl?: never | undefined;
182
- lg?: never | undefined;
183
- md?: never | undefined;
184
- sm?: never | undefined;
185
- xs?: never | undefined;
186
- xxs?: never | undefined;
187
- }
188
- export interface IV3Columns extends React.HTMLAttributes<HTMLDivElement> {
189
- mobile?: never | undefined;
190
- tablet?: never | undefined;
191
- desktop?: never | undefined;
192
- /**
193
- * Specifies the number of columns to be spanned across for any breakpoint.
194
- * If an array is specified, the format is [startCol, endCol].
195
- */
196
- xxl?: ColProps["xxsCols"] | undefined;
197
- xl?: ColProps["xlCols"] | undefined;
198
- lg?: ColProps["lgCols"] | undefined;
199
- md?: ColProps["mdCols"] | undefined;
200
- sm?: ColProps["smCols"] | undefined;
201
- xs?: ColProps["xsCols"] | undefined;
202
- xxs?: ColProps["xxsCols"] | undefined;
203
- }
204
- /**
205
- * JSON keys to omit from field schema when extending from other interfaces
206
- * - keys already defined in `IFrontendEngineBaseFieldJsonSchema` to prevent collision
207
- * - some inherited HTML attributes
208
- */
209
- type JsonSchemaOmitKeys = "id" | "label" | "validation" | "uiType" | "showIf" | "children" | "value";
210
- type UnionOptionalKeys<T = undefined> = T extends string | number | symbol ? JsonSchemaOmitKeys | T : JsonSchemaOmitKeys;
211
- /**
212
- * Omits clashing keys between native props and frontend engine
213
- */
214
- export type TComponentOmitProps<T, V = undefined> = Omit<T, UnionOptionalKeys<V>>;
1
+ import { ColProps } from "@lifesg/react-design-system/layout";
2
+ import { UseFormClearErrors, UseFormReset, UseFormSetValue, ValidationMode } from "react-hook-form";
3
+ import { TAddFieldEventListener, TCustomComponents, TCustomValidationFunction, TDispatchFieldEvent, TRemoveFieldEventListener, TYupSchemaType } from "../../context-providers";
4
+ import { RecursivePartial } from "../../utils";
5
+ import { TCustomSchema } from "../custom";
6
+ import { TElementSchema } from "../elements";
7
+ import { ISectionSchema } from "../elements/section";
8
+ import { TFieldSchema } from "../fields";
9
+ export type { IYupValidationRule, TCustomComponents, TCustomValidationFunction } from "../../context-providers";
10
+ export interface IFrontendEngineProps<V = undefined, C = undefined> {
11
+ /** HTML class attribute that is applied on the `<form>` element */
12
+ className?: string | undefined;
13
+ /** Custom components defined outside Frontend Engine. Key denotes referenceKey in schema while value is the component to be used */
14
+ components?: TCustomComponents | undefined;
15
+ /**
16
+ * JSON configuration to define the components and functionalities of the form
17
+ *
18
+ * Generics
19
+ * - V = custom validation types
20
+ * - C = custom component types
21
+ * */
22
+ data?: IFrontendEngineData<V, C> | undefined;
23
+ /** Fires on mount and every time the schema or value changes */
24
+ onChange?: ((values: TFrontendEngineValues, isValid?: boolean | undefined) => unknown) | undefined;
25
+ /** Submit event handler, will receive the form data if form validation is successful */
26
+ onSubmit?: (values: TFrontendEngineValues) => unknown | undefined;
27
+ /** Submit error event handler, invoked when form fails validation on submissiohn. Will receive validation errors */
28
+ onSubmitError?: (errors: TFrontendEngineValues) => unknown | undefined;
29
+ /** Fires every time a value changes in any fields */
30
+ onValueChange?: ((values: TFrontendEngineValues, isValid?: boolean | undefined) => unknown) | undefined;
31
+ /** reCAPTCHA public site key. Only required if you are using reCAPTCHA with LocationField*/
32
+ recaptchaSiteKey?: string | undefined;
33
+ /** Indicates whether to wrap Frontend Engine fields within the `<form>` element, by default, fields will be rendered within the `<form>` element
34
+ *
35
+ * When false, the fields will be rendered within the `<div>` element instead
36
+ *
37
+ * This is for instances where Frontend Engine needs to be rendered within another <form> element
38
+ *
39
+ * Default: true */
40
+ wrapInForm?: boolean | undefined;
41
+ }
42
+ /**
43
+ * JSON configuration to define the components and functionalities of the form
44
+ *
45
+ * Generics
46
+ * - V = custom validation types
47
+ * - C = custom component types
48
+ */
49
+ export interface IFrontendEngineData<V = undefined, C = undefined> {
50
+ /** HTML class attribute */
51
+ className?: string | undefined;
52
+ /** Fields' initial values on mount. The key of each field needs to match the id used in the field */
53
+ defaultValues?: TFrontendEngineValues | undefined;
54
+ /**
55
+ * Specifies the components to be rendered
56
+ *
57
+ * All components within the form are in key-value format, key refers to the id of the components while value refers to its JSON schema
58
+ *
59
+ * Note: sections accept only section `uiType`, the subsequent children accepts uiType other than section
60
+ * */
61
+ sections: Record<string, ISectionSchema<V, C>>;
62
+ /** Unique HTML id attribute that is applied on the `<form>` element */
63
+ id?: string | undefined;
64
+ /** Validation strategy when inputs with errors get re-validated after a user submits the form (onSubmit event) */
65
+ revalidationMode?: TRevalidationMode | undefined;
66
+ /** Validation strategy before a user submits the form (onSubmit event) */
67
+ validationMode?: TValidationMode | undefined;
68
+ /** Additional properties to mutate the sections schema on-the-fly */
69
+ overrides?: Record<string, RecursivePartial<TFrontendEngineFieldSchema<V>>> | undefined;
70
+ /**
71
+ * Specifies how a conditionally rendered field gets populated when it is shown again
72
+ * - `"none"`: cleared
73
+ * - `"default-value"`: the initial value
74
+ * - `"user-input"`: the latest value
75
+ */
76
+ restoreMode?: TRestoreMode | undefined;
77
+ /**
78
+ * Excludes values of fields that are not declared in the schema on submit / via getValues()
79
+ */
80
+ stripUnknown?: boolean | undefined;
81
+ }
82
+ export type TFrontendEngineValues<T = any> = {
83
+ [P in keyof T]: T[P];
84
+ };
85
+ export type TRevalidationMode = Exclude<keyof ValidationMode, "onTouched" | "all">;
86
+ export type TValidationMode = keyof ValidationMode;
87
+ export type TRestoreMode = "none" | "default-value" | "user-input";
88
+ export type TErrorMessage = string | string[] | {
89
+ [key: string]: TErrorMessage;
90
+ };
91
+ export type TErrorPayload = Record<string, TErrorMessage>;
92
+ export type TWarningPayload = Record<string, string>;
93
+ export interface IFrontendEngineRef extends Omit<HTMLDivElement, "addEventListener" | "removeEventListener">, HTMLFormElement {
94
+ /**
95
+ * adds custom validation rule
96
+ * @param type The schema type
97
+ * @param name Name of the condition
98
+ * @param fn Validation function, it must return a boolean
99
+ * @param overwrite Whether to replace if the custom validation is already exists
100
+ */
101
+ addCustomValidation: (type: TYupSchemaType | "mixed", name: string, fn: TCustomValidationFunction, overwrite?: boolean | undefined) => void;
102
+ addFieldEventListener: TAddFieldEventListener;
103
+ dispatchFieldEvent: TDispatchFieldEvent;
104
+ /**
105
+ * gets form values
106
+ * @param payload specify the value(s) by field id(s) to return
107
+ * - undefined Returns the entire form values.
108
+ * - string Gets the value at path of the form values.
109
+ * - array Returns an array of the value at path of the form values.
110
+ */
111
+ getValues: (payload?: string | string[] | undefined) => TFrontendEngineValues;
112
+ /**
113
+ * checks if form has been changed by user
114
+ *
115
+ * defaultValues do not set this to true
116
+ */
117
+ isDirty: boolean;
118
+ /** checks if form is valid */
119
+ isValid: () => boolean;
120
+ /**
121
+ * triggers validation in the form or for specific field
122
+ */
123
+ validate: (name?: string | string[] | undefined) => Promise<boolean>;
124
+ /** adds custom validation rule */
125
+ removeFieldEventListener: TRemoveFieldEventListener;
126
+ /** resets the form to the default state */
127
+ reset: UseFormReset<TFrontendEngineValues>;
128
+ /** allows setting of custom errors */
129
+ setErrors: (errors: TErrorPayload) => void;
130
+ /** clear form errors */
131
+ clearErrors: UseFormClearErrors<TFrontendEngineValues>;
132
+ /** allows setting of custom warnings */
133
+ setWarnings: (warnings: TWarningPayload) => void;
134
+ /** sets field value by id */
135
+ setValue: UseFormSetValue<TFrontendEngineValues>;
136
+ /** triggers form submission */
137
+ submit: () => void;
138
+ }
139
+ export type TFrontendEngineFieldSchema<V = undefined, C = undefined> = TFieldSchema<V, C> | TCustomSchema<V, C> | TElementSchema<V, C>;
140
+ type MobileCol = 1 | 2 | 3 | 4;
141
+ type MobileColRange = MobileCol | 5;
142
+ type TabletCol = MobileCol | 5 | 6 | 7 | 8;
143
+ type TabletColRange = TabletCol | 9;
144
+ type DesktopCol = TabletCol | 9 | 10 | 11 | 12;
145
+ type DesktopColRange = DesktopCol | 13;
146
+ export interface IColumns extends React.HTMLAttributes<HTMLDivElement> {
147
+ "data-testid"?: string | undefined;
148
+ /**
149
+ * Specifies the number of columns to be span across in mobile viewports.
150
+ * If an array is specified, the format is as such [startCol, endCol].
151
+ * If `tabletCols` or `desktopCols` are not specified, this
152
+ * setting will be applied to tablet and desktop viewports.
153
+ *
154
+ * If all column props are not specified, the div will span across a single
155
+ * column.
156
+ * @deprecated Use design system v3 columns: `xxs` / `xs` / `sm`
157
+ */
158
+ mobile?: MobileCol | [MobileColRange, MobileColRange] | undefined;
159
+ /**
160
+ * Specifies the number of columns to be span across in tablet viewports.
161
+ * If an array is specified, the format is as such [startCol, endCol].
162
+ * If `desktopCols` are not specified, this setting will be
163
+ * applied to desktop viewports as well.
164
+ *
165
+ * If all column props are not specified, the div will span across a single
166
+ * column.
167
+ * @deprecated Use design system v3 columns: `lg`
168
+ */
169
+ tablet?: TabletCol | [TabletColRange, TabletColRange] | undefined;
170
+ /**
171
+ * Specifies the number of columns to be span across in desktop viewports.
172
+ * If an array is specified, the format is as such [startCol, endCol].
173
+ *
174
+ * If all column props are not specified, the div will span across a single
175
+ * column.
176
+ * @deprecated Use design system v3 columns: `xl` / `xxl`
177
+ */
178
+ desktop?: DesktopCol | [DesktopColRange, DesktopColRange] | undefined;
179
+ xxl?: never | undefined;
180
+ xl?: never | undefined;
181
+ lg?: never | undefined;
182
+ md?: never | undefined;
183
+ sm?: never | undefined;
184
+ xs?: never | undefined;
185
+ xxs?: never | undefined;
186
+ }
187
+ export interface IV3Columns extends React.HTMLAttributes<HTMLDivElement> {
188
+ mobile?: never | undefined;
189
+ tablet?: never | undefined;
190
+ desktop?: never | undefined;
191
+ /**
192
+ * Specifies the number of columns to be spanned across for any breakpoint.
193
+ * If an array is specified, the format is [startCol, endCol].
194
+ */
195
+ xxl?: ColProps["xxsCols"] | undefined;
196
+ xl?: ColProps["xlCols"] | undefined;
197
+ lg?: ColProps["lgCols"] | undefined;
198
+ md?: ColProps["mdCols"] | undefined;
199
+ sm?: ColProps["smCols"] | undefined;
200
+ xs?: ColProps["xsCols"] | undefined;
201
+ xxs?: ColProps["xxsCols"] | undefined;
202
+ }
203
+ /**
204
+ * JSON keys to omit from field schema when extending from other interfaces
205
+ * - keys already defined in `IFrontendEngineBaseFieldJsonSchema` to prevent collision
206
+ * - some inherited HTML attributes
207
+ */
208
+ type JsonSchemaOmitKeys = "id" | "label" | "validation" | "uiType" | "showIf" | "children" | "value";
209
+ type UnionOptionalKeys<T = undefined> = T extends string | number | symbol ? JsonSchemaOmitKeys | T : JsonSchemaOmitKeys;
210
+ /**
211
+ * Omits clashing keys between native props and frontend engine
212
+ */
213
+ export type TComponentOmitProps<T, V = undefined> = Omit<T, UnionOptionalKeys<V>>;
@@ -1,12 +1,12 @@
1
- import { UseFormReturn } from "react-hook-form";
2
- import { IFrontendEngineProps } from "./types";
3
- /**
4
- * Handles change in form values and validity. Updates consumer change handlers and error state.
5
- *
6
- * @param props
7
- * @param formMethods
8
- * @returns `checkIsFormValid`: helper to check current form validity
9
- */
10
- export declare const useFormChange: (props: IFrontendEngineProps, formMethods: UseFormReturn) => {
11
- checkIsFormValid: ((isAsync?: false | undefined) => boolean) & ((isAsync: true) => Promise<boolean>);
12
- };
1
+ import { UseFormReturn } from "react-hook-form";
2
+ import { IFrontendEngineProps } from "./types";
3
+ /**
4
+ * Handles change in form values and validity. Updates consumer change handlers and error state.
5
+ *
6
+ * @param props
7
+ * @param formMethods
8
+ * @returns `checkIsFormValid`: helper to check current form validity
9
+ */
10
+ export declare const useFormChange: (props: IFrontendEngineProps, formMethods: UseFormReturn) => {
11
+ checkIsFormValid: ((isAsync?: false | undefined) => boolean) & ((isAsync: true) => Promise<boolean>);
12
+ };
@@ -1,2 +1,2 @@
1
- export { FrontendEngine } from "./frontend-engine";
2
- export * from "./types";
1
+ export { FrontendEngine } from "./frontend-engine";
2
+ export * from "./types";
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import { IChipButtonProps } from "./types";
3
- interface IProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, IChipButtonProps {
4
- }
5
- export declare const Chip: ({ children, isActive, ...otherProps }: IProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
1
+ import React from "react";
2
+ import { IChipButtonProps } from "./types";
3
+ interface IProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, IChipButtonProps {
4
+ }
5
+ export declare const Chip: ({ children, isActive, ...otherProps }: IProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,17 +1,16 @@
1
- /// <reference types="react" />
2
- export declare const ChipButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$isActive"> & {
3
- $isActive?: boolean;
4
- }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$isActive"> & {
5
- $isActive?: boolean;
6
- }, never>>> & string;
7
- export declare const ChipText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@lifesg/react-design-system/typography").TypographyProps & {
8
- ref?: import("react").RefObject<HTMLParagraphElement>;
9
- } & {
10
- as?: import("styled-components").WebTarget;
11
- forwardedAs?: import("styled-components").WebTarget;
12
- }, never> & Partial<Pick<import("@lifesg/react-design-system/typography").TypographyProps & {
13
- ref?: import("react").RefObject<HTMLParagraphElement>;
14
- } & {
15
- as?: import("styled-components").WebTarget;
16
- forwardedAs?: import("styled-components").WebTarget;
17
- }, never>>> & string;
1
+ export declare const ChipButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$isActive"> & {
2
+ $isActive?: boolean;
3
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$isActive"> & {
4
+ $isActive?: boolean;
5
+ }, never>>> & string;
6
+ export declare const ChipText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@lifesg/react-design-system").TypographyProps & {
7
+ ref?: import("react").RefObject<HTMLParagraphElement> | undefined;
8
+ } & {
9
+ as?: import("styled-components").WebTarget;
10
+ forwardedAs?: import("styled-components").WebTarget;
11
+ }, never> & Partial<Pick<import("@lifesg/react-design-system").TypographyProps & {
12
+ ref?: import("react").RefObject<HTMLParagraphElement> | undefined;
13
+ } & {
14
+ as?: import("styled-components").WebTarget;
15
+ forwardedAs?: import("styled-components").WebTarget;
16
+ }, never>>> & string;
@@ -1,2 +1,2 @@
1
- export * from "./chip";
2
- export * from "./types";
1
+ export * from "./chip";
2
+ export * from "./types";
@@ -1,4 +1,4 @@
1
- export interface IChipButtonProps {
2
- isActive?: boolean | undefined;
3
- disabled?: boolean | undefined;
4
- }
1
+ export interface IChipButtonProps {
2
+ isActive?: boolean | undefined;
3
+ disabled?: boolean | undefined;
4
+ }