@fuf-stack/uniform 1.24.11 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/Checkboxes/{index.d.ts → index.d.mts} +110 -117
  2. package/dist/Checkboxes/index.d.mts.map +1 -0
  3. package/dist/Checkboxes/{index.js → index.mjs} +2 -2
  4. package/dist/Checkboxes/index.mjs.map +1 -0
  5. package/dist/DatePicker/{index.d.cts → index.d.mts} +420 -412
  6. package/dist/{Slider/index.d.cts.map → DatePicker/index.d.mts.map} +1 -1
  7. package/dist/DatePicker/{index.js → index.mjs} +2 -2
  8. package/dist/DatePicker/index.mjs.map +1 -0
  9. package/dist/FieldArray/{index.d.cts → index.d.mts} +175 -162
  10. package/dist/FieldArray/index.d.mts.map +1 -0
  11. package/dist/FieldArray/{index.js → index.mjs} +6 -6
  12. package/dist/FieldArray/index.mjs.map +1 -0
  13. package/dist/FieldCard/{index.d.cts → index.d.mts} +82 -78
  14. package/dist/FieldCard/index.d.mts.map +1 -0
  15. package/dist/FieldCard/{index.js → index.mjs} +4 -4
  16. package/dist/FieldCard/index.mjs.map +1 -0
  17. package/dist/{FieldCopyTestIdButton-CRJBix9D.js → FieldCopyTestIdButton-CRJBix9D.mjs} +1 -1
  18. package/dist/FieldCopyTestIdButton-CRJBix9D.mjs.map +1 -0
  19. package/dist/{FieldValidationError-ByRoIxaM.js → FieldValidationError-ByRoIxaM.mjs} +1 -1
  20. package/dist/FieldValidationError-ByRoIxaM.mjs.map +1 -0
  21. package/dist/Form/{index.d.ts → index.d.mts} +3 -14
  22. package/dist/Form/index.d.mts.map +1 -0
  23. package/dist/Form/{index.js → index.mjs} +3 -4
  24. package/dist/Form/index.mjs.map +1 -0
  25. package/dist/{FormContext-LgzrDWu1.d.ts → FormContext-CsFiNvuJ.d.mts} +1 -2
  26. package/dist/FormContext-CsFiNvuJ.d.mts.map +1 -0
  27. package/dist/{FormContext-DjJOJKxj.js → FormContext-gHSwOlcy.mjs} +2 -2
  28. package/dist/FormContext-gHSwOlcy.mjs.map +1 -0
  29. package/dist/Grid/{index.d.ts → index.d.mts} +2 -7
  30. package/dist/Grid/index.d.mts.map +1 -0
  31. package/dist/Grid/index.mjs +2 -0
  32. package/dist/{Grid-CTs-Rb9G.js → Grid-CTs-Rb9G.mjs} +1 -1
  33. package/dist/{Grid-BbqCRkuY.cjs.map → Grid-CTs-Rb9G.mjs.map} +1 -1
  34. package/dist/Input/{index.d.cts → index.d.mts} +177 -182
  35. package/dist/Input/index.d.mts.map +1 -0
  36. package/dist/Input/{index.js → index.mjs} +3 -3
  37. package/dist/Input/index.mjs.map +1 -0
  38. package/dist/RadioBoxes/{index.d.cts → index.d.mts} +361 -366
  39. package/dist/{Switch/index.d.ts.map → RadioBoxes/index.d.mts.map} +1 -1
  40. package/dist/RadioBoxes/{index.js → index.mjs} +3 -3
  41. package/dist/RadioBoxes/{index.cjs.map → index.mjs.map} +1 -1
  42. package/dist/RadioTabs/{index.d.cts → index.d.mts} +114 -123
  43. package/dist/RadioTabs/index.d.mts.map +1 -0
  44. package/dist/RadioTabs/{index.js → index.mjs} +3 -3
  45. package/dist/RadioTabs/index.mjs.map +1 -0
  46. package/dist/Radios/{index.d.cts → index.d.mts} +355 -360
  47. package/dist/{DatePicker/index.d.ts.map → Radios/index.d.mts.map} +1 -1
  48. package/dist/Radios/{index.js → index.mjs} +3 -3
  49. package/dist/Radios/index.mjs.map +1 -0
  50. package/dist/Select/{index.d.cts → index.d.mts} +1027 -1044
  51. package/dist/Select/{index.d.ts.map → index.d.mts.map} +1 -1
  52. package/dist/Select/{index.js → index.mjs} +5 -6
  53. package/dist/Select/index.mjs.map +1 -0
  54. package/dist/Slider/{index.d.cts → index.d.mts} +450 -463
  55. package/dist/Slider/{index.d.ts.map → index.d.mts.map} +1 -1
  56. package/dist/Slider/{index.js → index.mjs} +2 -2
  57. package/dist/Slider/index.mjs.map +1 -0
  58. package/dist/SubmitButton/{index.d.ts → index.d.mts} +2 -12
  59. package/dist/SubmitButton/index.d.mts.map +1 -0
  60. package/dist/SubmitButton/{index.js → index.mjs} +2 -2
  61. package/dist/SubmitButton/index.mjs.map +1 -0
  62. package/dist/Switch/{index.d.cts → index.d.mts} +318 -327
  63. package/dist/Switch/{index.d.cts.map → index.d.mts.map} +1 -1
  64. package/dist/Switch/{index.js → index.mjs} +2 -2
  65. package/dist/Switch/index.mjs.map +1 -0
  66. package/dist/SwitchBox/{index.d.cts → index.d.mts} +86 -95
  67. package/dist/SwitchBox/index.d.mts.map +1 -0
  68. package/dist/SwitchBox/{index.js → index.mjs} +2 -2
  69. package/dist/SwitchBox/index.mjs.map +1 -0
  70. package/dist/TextArea/{index.d.cts → index.d.mts} +176 -176
  71. package/dist/TextArea/index.d.mts.map +1 -0
  72. package/dist/TextArea/{index.js → index.mjs} +3 -3
  73. package/dist/TextArea/index.mjs.map +1 -0
  74. package/dist/Time/{index.d.cts → index.d.mts} +284 -281
  75. package/dist/Time/index.d.mts.map +1 -0
  76. package/dist/Time/{index.js → index.mjs} +2 -2
  77. package/dist/Time/index.mjs.map +1 -0
  78. package/dist/helpers/{index.d.ts → index.d.mts} +1 -2
  79. package/dist/helpers/index.d.mts.map +1 -0
  80. package/dist/helpers/{index.js → index.mjs} +1 -1
  81. package/dist/helpers/{index.cjs.map → index.mjs.map} +1 -1
  82. package/dist/hooks/useClientValidation/{index.d.ts → index.d.mts} +1 -2
  83. package/dist/hooks/useClientValidation/index.d.mts.map +1 -0
  84. package/dist/hooks/useClientValidation/{index.js → index.mjs} +3 -3
  85. package/dist/hooks/useClientValidation/index.mjs.map +1 -0
  86. package/dist/hooks/useController/{index.d.cts → index.d.mts} +2 -1
  87. package/dist/hooks/useController/index.mjs +7 -0
  88. package/dist/hooks/useController/{index.cjs.map → index.mjs.map} +1 -1
  89. package/dist/hooks/useFormContext/index.d.mts +3 -0
  90. package/dist/hooks/useFormContext/{index.js → index.mjs} +2 -2
  91. package/dist/hooks/useFormContext/{index.cjs.map → index.mjs.map} +1 -1
  92. package/dist/hooks/useInput/index.d.mts +2 -0
  93. package/dist/hooks/useInput/index.mjs +7 -0
  94. package/dist/hooks/useInput/{index.cjs.map → index.mjs.map} +1 -1
  95. package/dist/hooks/useInputValueDebounce/{index.d.ts → index.d.mts} +2 -8
  96. package/dist/hooks/useInputValueDebounce/index.d.mts.map +1 -0
  97. package/dist/hooks/useInputValueDebounce/{index.js → index.mjs} +2 -2
  98. package/dist/hooks/useInputValueDebounce/index.mjs.map +1 -0
  99. package/dist/hooks/useInputValueTransform/{index.d.cts → index.d.mts} +2 -1
  100. package/dist/hooks/useInputValueTransform/{index.js → index.mjs} +2 -2
  101. package/dist/hooks/useInputValueTransform/{index.cjs.map → index.mjs.map} +1 -1
  102. package/dist/hooks/useUniformField/{index.d.ts → index.d.mts} +5 -6
  103. package/dist/hooks/useUniformField/index.d.mts.map +1 -0
  104. package/dist/hooks/useUniformField/{index.js → index.mjs} +8 -8
  105. package/dist/hooks/useUniformField/index.mjs.map +1 -0
  106. package/dist/hooks/useUniformFieldArray/{index.d.ts → index.d.mts} +6 -13
  107. package/dist/hooks/useUniformFieldArray/index.d.mts.map +1 -0
  108. package/dist/hooks/useUniformFieldArray/{index.js → index.mjs} +5 -5
  109. package/dist/hooks/useUniformFieldArray/index.mjs.map +1 -0
  110. package/dist/hooks/useWatchFormReset/{index.d.ts → index.d.mts} +2 -4
  111. package/dist/hooks/useWatchFormReset/index.d.mts.map +1 -0
  112. package/dist/hooks/useWatchFormReset/{index.js → index.mjs} +2 -2
  113. package/dist/hooks/useWatchFormReset/index.mjs.map +1 -0
  114. package/dist/hooks/useWatchUserChange/{index.d.ts → index.d.mts} +2 -6
  115. package/dist/hooks/useWatchUserChange/index.d.mts.map +1 -0
  116. package/dist/hooks/useWatchUserChange/{index.js → index.mjs} +2 -2
  117. package/dist/hooks/useWatchUserChange/index.mjs.map +1 -0
  118. package/dist/index-CAdGtKE_.d.mts +1 -0
  119. package/dist/index-CwJo1b4Z.d.mts +1 -0
  120. package/dist/partials/FieldCopyTestIdButton/{index.d.ts → index.d.mts} +2 -5
  121. package/dist/partials/FieldCopyTestIdButton/index.d.mts.map +1 -0
  122. package/dist/partials/FieldCopyTestIdButton/{index.js → index.mjs} +1 -1
  123. package/dist/partials/FieldValidationError/{index.d.ts → index.d.mts} +2 -7
  124. package/dist/partials/FieldValidationError/index.d.mts.map +1 -0
  125. package/dist/partials/FieldValidationError/{index.js → index.mjs} +1 -1
  126. package/dist/{useController-DxFS0u7c.js → useController-CK39i6HI.mjs} +3 -3
  127. package/dist/useController-CK39i6HI.mjs.map +1 -0
  128. package/dist/{useController-CvQqCvFJ.d.ts → useController-DcK2YHbw.d.mts} +1 -2
  129. package/dist/useController-DcK2YHbw.d.mts.map +1 -0
  130. package/dist/{useFormContext-CJ9027lh.d.ts → useFormContext-BegmYvGA.d.mts} +4 -5
  131. package/dist/useFormContext-BegmYvGA.d.mts.map +1 -0
  132. package/dist/{useFormContext-BUSoUBUP.js → useFormContext-Bw4LokAf.mjs} +3 -3
  133. package/dist/useFormContext-Bw4LokAf.mjs.map +1 -0
  134. package/dist/{useInputValueTransform-DJ5zkqSy.js → useInputValueTransform-DJ5zkqSy.mjs} +1 -1
  135. package/dist/{useInputValueTransform-P62UUZBl.cjs.map → useInputValueTransform-DJ5zkqSy.mjs.map} +1 -1
  136. package/dist/{useInputValueTransform-DCXXb2Lp.d.ts → useInputValueTransform-LOaEim7k.d.mts} +2 -5
  137. package/dist/useInputValueTransform-LOaEim7k.d.mts.map +1 -0
  138. package/package.json +38 -128
  139. package/dist/Checkboxes/index.cjs +0 -129
  140. package/dist/Checkboxes/index.cjs.map +0 -1
  141. package/dist/Checkboxes/index.d.cts +0 -551
  142. package/dist/Checkboxes/index.d.cts.map +0 -1
  143. package/dist/Checkboxes/index.d.ts.map +0 -1
  144. package/dist/Checkboxes/index.js.map +0 -1
  145. package/dist/DatePicker/index.cjs +0 -202
  146. package/dist/DatePicker/index.cjs.map +0 -1
  147. package/dist/DatePicker/index.d.cts.map +0 -1
  148. package/dist/DatePicker/index.d.ts +0 -1532
  149. package/dist/DatePicker/index.js.map +0 -1
  150. package/dist/FieldArray/index.cjs +0 -499
  151. package/dist/FieldArray/index.cjs.map +0 -1
  152. package/dist/FieldArray/index.d.cts.map +0 -1
  153. package/dist/FieldArray/index.d.ts +0 -539
  154. package/dist/FieldArray/index.d.ts.map +0 -1
  155. package/dist/FieldArray/index.js.map +0 -1
  156. package/dist/FieldCard/index.cjs +0 -231
  157. package/dist/FieldCard/index.cjs.map +0 -1
  158. package/dist/FieldCard/index.d.cts.map +0 -1
  159. package/dist/FieldCard/index.d.ts +0 -314
  160. package/dist/FieldCard/index.d.ts.map +0 -1
  161. package/dist/FieldCard/index.js.map +0 -1
  162. package/dist/FieldCopyTestIdButton-CRJBix9D.js.map +0 -1
  163. package/dist/FieldCopyTestIdButton-D3D_LmJh.cjs +0 -31
  164. package/dist/FieldCopyTestIdButton-D3D_LmJh.cjs.map +0 -1
  165. package/dist/FieldValidationError-ByRoIxaM.js.map +0 -1
  166. package/dist/FieldValidationError-CfYKzl7P.cjs +0 -61
  167. package/dist/FieldValidationError-CfYKzl7P.cjs.map +0 -1
  168. package/dist/Form/index.cjs +0 -121
  169. package/dist/Form/index.cjs.map +0 -1
  170. package/dist/Form/index.d.cts +0 -43
  171. package/dist/Form/index.d.cts.map +0 -1
  172. package/dist/Form/index.d.ts.map +0 -1
  173. package/dist/Form/index.js.map +0 -1
  174. package/dist/FormContext-BLWS7bhO.d.cts +0 -20
  175. package/dist/FormContext-BLWS7bhO.d.cts.map +0 -1
  176. package/dist/FormContext-DjJOJKxj.js.map +0 -1
  177. package/dist/FormContext-LgzrDWu1.d.ts.map +0 -1
  178. package/dist/FormContext-eCnp-y2P.cjs +0 -319
  179. package/dist/FormContext-eCnp-y2P.cjs.map +0 -1
  180. package/dist/Grid/index.cjs +0 -6
  181. package/dist/Grid/index.d.cts +0 -22
  182. package/dist/Grid/index.d.cts.map +0 -1
  183. package/dist/Grid/index.d.ts.map +0 -1
  184. package/dist/Grid/index.js +0 -2
  185. package/dist/Grid-BbqCRkuY.cjs +0 -25
  186. package/dist/Grid-CTs-Rb9G.js.map +0 -1
  187. package/dist/Input/index.cjs +0 -100
  188. package/dist/Input/index.cjs.map +0 -1
  189. package/dist/Input/index.d.cts.map +0 -1
  190. package/dist/Input/index.d.ts +0 -677
  191. package/dist/Input/index.d.ts.map +0 -1
  192. package/dist/Input/index.js.map +0 -1
  193. package/dist/RadioBoxes/index.cjs +0 -147
  194. package/dist/RadioBoxes/index.d.cts.map +0 -1
  195. package/dist/RadioBoxes/index.d.ts +0 -1477
  196. package/dist/RadioBoxes/index.d.ts.map +0 -1
  197. package/dist/RadioBoxes/index.js.map +0 -1
  198. package/dist/RadioTabs/index.cjs +0 -132
  199. package/dist/RadioTabs/index.cjs.map +0 -1
  200. package/dist/RadioTabs/index.d.cts.map +0 -1
  201. package/dist/RadioTabs/index.d.ts +0 -585
  202. package/dist/RadioTabs/index.d.ts.map +0 -1
  203. package/dist/RadioTabs/index.js.map +0 -1
  204. package/dist/Radios/index.cjs +0 -97
  205. package/dist/Radios/index.cjs.map +0 -1
  206. package/dist/Radios/index.d.cts.map +0 -1
  207. package/dist/Radios/index.d.ts +0 -1399
  208. package/dist/Radios/index.d.ts.map +0 -1
  209. package/dist/Radios/index.js.map +0 -1
  210. package/dist/Select/index.cjs +0 -303
  211. package/dist/Select/index.cjs.map +0 -1
  212. package/dist/Select/index.d.cts.map +0 -1
  213. package/dist/Select/index.d.ts +0 -3920
  214. package/dist/Select/index.js.map +0 -1
  215. package/dist/Slider/index.cjs +0 -117
  216. package/dist/Slider/index.cjs.map +0 -1
  217. package/dist/Slider/index.d.ts +0 -1760
  218. package/dist/Slider/index.js.map +0 -1
  219. package/dist/SubmitButton/index.cjs +0 -35
  220. package/dist/SubmitButton/index.cjs.map +0 -1
  221. package/dist/SubmitButton/index.d.cts +0 -38
  222. package/dist/SubmitButton/index.d.cts.map +0 -1
  223. package/dist/SubmitButton/index.d.ts.map +0 -1
  224. package/dist/SubmitButton/index.js.map +0 -1
  225. package/dist/Switch/index.cjs +0 -86
  226. package/dist/Switch/index.cjs.map +0 -1
  227. package/dist/Switch/index.d.ts +0 -1257
  228. package/dist/Switch/index.js.map +0 -1
  229. package/dist/SwitchBox/index.cjs +0 -158
  230. package/dist/SwitchBox/index.cjs.map +0 -1
  231. package/dist/SwitchBox/index.d.cts.map +0 -1
  232. package/dist/SwitchBox/index.d.ts +0 -473
  233. package/dist/SwitchBox/index.d.ts.map +0 -1
  234. package/dist/SwitchBox/index.js.map +0 -1
  235. package/dist/TextArea/index.cjs +0 -70
  236. package/dist/TextArea/index.cjs.map +0 -1
  237. package/dist/TextArea/index.d.cts.map +0 -1
  238. package/dist/TextArea/index.d.ts +0 -659
  239. package/dist/TextArea/index.d.ts.map +0 -1
  240. package/dist/TextArea/index.js.map +0 -1
  241. package/dist/Time/index.cjs +0 -228
  242. package/dist/Time/index.cjs.map +0 -1
  243. package/dist/Time/index.d.cts.map +0 -1
  244. package/dist/Time/index.d.ts +0 -1028
  245. package/dist/Time/index.d.ts.map +0 -1
  246. package/dist/Time/index.js.map +0 -1
  247. package/dist/helpers/index.cjs +0 -430
  248. package/dist/helpers/index.d.cts +0 -238
  249. package/dist/helpers/index.d.cts.map +0 -1
  250. package/dist/helpers/index.d.ts.map +0 -1
  251. package/dist/helpers/index.js.map +0 -1
  252. package/dist/hooks/useClientValidation/index.cjs +0 -185
  253. package/dist/hooks/useClientValidation/index.cjs.map +0 -1
  254. package/dist/hooks/useClientValidation/index.d.cts +0 -148
  255. package/dist/hooks/useClientValidation/index.d.cts.map +0 -1
  256. package/dist/hooks/useClientValidation/index.d.ts.map +0 -1
  257. package/dist/hooks/useClientValidation/index.js.map +0 -1
  258. package/dist/hooks/useController/index.cjs +0 -8
  259. package/dist/hooks/useController/index.d.ts +0 -2
  260. package/dist/hooks/useController/index.js +0 -7
  261. package/dist/hooks/useController/index.js.map +0 -1
  262. package/dist/hooks/useFormContext/index.cjs +0 -9
  263. package/dist/hooks/useFormContext/index.d.cts +0 -2
  264. package/dist/hooks/useFormContext/index.d.ts +0 -2
  265. package/dist/hooks/useFormContext/index.js.map +0 -1
  266. package/dist/hooks/useInput/index.cjs +0 -13
  267. package/dist/hooks/useInput/index.d.cts +0 -2
  268. package/dist/hooks/useInput/index.d.ts +0 -2
  269. package/dist/hooks/useInput/index.js +0 -7
  270. package/dist/hooks/useInput/index.js.map +0 -1
  271. package/dist/hooks/useInputValueDebounce/index.cjs +0 -92
  272. package/dist/hooks/useInputValueDebounce/index.cjs.map +0 -1
  273. package/dist/hooks/useInputValueDebounce/index.d.cts +0 -66
  274. package/dist/hooks/useInputValueDebounce/index.d.cts.map +0 -1
  275. package/dist/hooks/useInputValueDebounce/index.d.ts.map +0 -1
  276. package/dist/hooks/useInputValueDebounce/index.js.map +0 -1
  277. package/dist/hooks/useInputValueTransform/index.cjs +0 -8
  278. package/dist/hooks/useInputValueTransform/index.d.ts +0 -2
  279. package/dist/hooks/useInputValueTransform/index.js.map +0 -1
  280. package/dist/hooks/useUniformField/index.cjs +0 -139
  281. package/dist/hooks/useUniformField/index.cjs.map +0 -1
  282. package/dist/hooks/useUniformField/index.d.cts +0 -100
  283. package/dist/hooks/useUniformField/index.d.cts.map +0 -1
  284. package/dist/hooks/useUniformField/index.d.ts.map +0 -1
  285. package/dist/hooks/useUniformField/index.js.map +0 -1
  286. package/dist/hooks/useUniformFieldArray/index.cjs +0 -102
  287. package/dist/hooks/useUniformFieldArray/index.cjs.map +0 -1
  288. package/dist/hooks/useUniformFieldArray/index.d.cts +0 -81
  289. package/dist/hooks/useUniformFieldArray/index.d.cts.map +0 -1
  290. package/dist/hooks/useUniformFieldArray/index.d.ts.map +0 -1
  291. package/dist/hooks/useUniformFieldArray/index.js.map +0 -1
  292. package/dist/hooks/useWatchFormReset/index.cjs +0 -38
  293. package/dist/hooks/useWatchFormReset/index.cjs.map +0 -1
  294. package/dist/hooks/useWatchFormReset/index.d.cts +0 -38
  295. package/dist/hooks/useWatchFormReset/index.d.cts.map +0 -1
  296. package/dist/hooks/useWatchFormReset/index.d.ts.map +0 -1
  297. package/dist/hooks/useWatchFormReset/index.js.map +0 -1
  298. package/dist/hooks/useWatchUserChange/index.cjs +0 -88
  299. package/dist/hooks/useWatchUserChange/index.cjs.map +0 -1
  300. package/dist/hooks/useWatchUserChange/index.d.cts +0 -80
  301. package/dist/hooks/useWatchUserChange/index.d.cts.map +0 -1
  302. package/dist/hooks/useWatchUserChange/index.d.ts.map +0 -1
  303. package/dist/hooks/useWatchUserChange/index.js.map +0 -1
  304. package/dist/index-BKZ67WMa.d.ts +0 -1
  305. package/dist/index-BVVgDSdq.d.cts +0 -1
  306. package/dist/index-BVVgDSdq.d.ts +0 -1
  307. package/dist/index-DmtQKWjk.d.cts +0 -1
  308. package/dist/index-DmtQKWjk.d.ts +0 -1
  309. package/dist/partials/FieldCopyTestIdButton/index.cjs +0 -6
  310. package/dist/partials/FieldCopyTestIdButton/index.d.cts +0 -14
  311. package/dist/partials/FieldCopyTestIdButton/index.d.cts.map +0 -1
  312. package/dist/partials/FieldCopyTestIdButton/index.d.ts.map +0 -1
  313. package/dist/partials/FieldValidationError/index.cjs +0 -6
  314. package/dist/partials/FieldValidationError/index.d.cts +0 -22
  315. package/dist/partials/FieldValidationError/index.d.cts.map +0 -1
  316. package/dist/partials/FieldValidationError/index.d.ts.map +0 -1
  317. package/dist/useController-CvQqCvFJ.d.ts.map +0 -1
  318. package/dist/useController-D87H3etM.cjs +0 -50
  319. package/dist/useController-D87H3etM.cjs.map +0 -1
  320. package/dist/useController-DxFS0u7c.js.map +0 -1
  321. package/dist/useController-fblEApv_.d.cts +0 -33
  322. package/dist/useController-fblEApv_.d.cts.map +0 -1
  323. package/dist/useFormContext-BSIXyfbo.cjs +0 -146
  324. package/dist/useFormContext-BSIXyfbo.cjs.map +0 -1
  325. package/dist/useFormContext-BUSoUBUP.js.map +0 -1
  326. package/dist/useFormContext-CJ9027lh.d.ts.map +0 -1
  327. package/dist/useFormContext-D84GPAdx.d.cts +0 -67
  328. package/dist/useFormContext-D84GPAdx.d.cts.map +0 -1
  329. package/dist/useInput-ClpHDPdr.d.ts +0 -2
  330. package/dist/useInputValueTransform-DCXXb2Lp.d.cts +0 -108
  331. package/dist/useInputValueTransform-DCXXb2Lp.d.cts.map +0 -1
  332. package/dist/useInputValueTransform-DCXXb2Lp.d.ts.map +0 -1
  333. package/dist/useInputValueTransform-DJ5zkqSy.js.map +0 -1
  334. package/dist/useInputValueTransform-P62UUZBl.cjs +0 -115
  335. /package/dist/{index-BKZ67WMa.d.cts → index-BVVgDSdq.d.mts} +0 -0
  336. /package/dist/{useInput-C0aJaAGe.js → useInput-C0aJaAGe.mjs} +0 -0
  337. /package/dist/{useInput-ClpHDPdr.d.cts → useInput-ClpHDPdr.d.mts} +0 -0
@@ -30,9 +30,7 @@ interface UseWatchFormResetOptions {
30
30
  * placeholder rows. It normalizes only on reset and does not collapse rows
31
31
  * during normal editing.
32
32
  */
33
- declare const useWatchFormReset: ({
34
- onReset
35
- }: UseWatchFormResetOptions) => void;
33
+ declare const useWatchFormReset: ({ onReset }: UseWatchFormResetOptions) => void;
36
34
  //#endregion
37
35
  export { UseWatchFormResetOptions, useWatchFormReset };
38
- //# sourceMappingURL=index.d.ts.map
36
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchFormReset/useWatchFormReset.ts"],"mappings":";UAIiB;;;;;;;;;;;EAWf;;;;;;;;;;;;;;;;;;;;cAqBW,sBAAqB,WAAa"}
@@ -1,4 +1,4 @@
1
- import { n as useFormContext } from "../../useFormContext-BUSoUBUP.js";
1
+ import { n as useFormContext } from "../../useFormContext-Bw4LokAf.mjs";
2
2
  import { useEffect } from "react";
3
3
  //#region src/hooks/useWatchFormReset/useWatchFormReset.ts
4
4
  /**
@@ -34,4 +34,4 @@ const useWatchFormReset = ({ onReset }) => {
34
34
  //#endregion
35
35
  export { useWatchFormReset };
36
36
 
37
- //# sourceMappingURL=index.js.map
37
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/hooks/useWatchFormReset/useWatchFormReset.ts","../../../src/hooks/useWatchFormReset/index.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchFormResetOptions {\n /**\n * Callback that runs whenever a programmatic form reset is observed.\n *\n * Resets are signalled via the uniform `formReset` pub/sub channel. The event\n * is emitted by the wrapped `reset()` method in `useFormContext`.\n *\n * Current primary use case:\n * - `useUniformFieldArray` listens for reset events to normalize stale\n * placeholder rows left by RHF after reset when array defaults are missing.\n */\n onReset: () => void;\n}\n\n/**\n * Hook that watches for programmatic form reset events.\n *\n * It lets consumers run a callback when a programmatic form reset is triggered\n * through the wrapped `reset()` from `useFormContext`.\n *\n * Why this exists:\n * - Components should not infer \"a reset happened\" from field values alone.\n * Value-based heuristics can conflict with valid user interactions.\n * - This hook provides an explicit reset signal so components can run\n * reset-only logic safely.\n *\n * Current usage:\n * - `useUniformFieldArray` uses this hook to handle resets when no default\n * array value was provided. In that case, RHF can leave stale empty\n * placeholder rows. It normalizes only on reset and does not collapse rows\n * during normal editing.\n */\nexport const useWatchFormReset = ({ onReset }: UseWatchFormResetOptions) => {\n const { formReset } = useFormContext();\n\n useEffect(() => {\n const listener = () => {\n onReset();\n };\n\n const unsubscribe = formReset.subscribe(listener);\n return unsubscribe;\n }, [formReset, onReset]);\n};\n","/* v8 ignore start */\n\nexport * from './useWatchFormReset';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAa,qBAAqB,EAAE,cAAwC;CAC1E,MAAM,EAAE,cAAc,eAAe;CAErC,gBAAgB;EACd,MAAM,iBAAiB;GACrB,QAAQ;EACV;EAGA,OADoB,UAAU,UAAU,QACvB;CACnB,GAAG,CAAC,WAAW,OAAO,CAAC;AACzB"}
@@ -1,5 +1,4 @@
1
1
  import { FieldValues, Path, UseFormReset, UseFormResetField, UseFormSetValue } from "react-hook-form";
2
-
3
2
  //#region src/hooks/useWatchUserChange/useWatchUserChange.d.ts
4
3
  interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
5
4
  /** Field name to watch for user changes */
@@ -71,10 +70,7 @@ interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
71
70
  * });
72
71
  * ```
73
72
  */
74
- declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValues>({
75
- watch: watchField,
76
- onChange
77
- }: UseWatchUserChangeOptions<TFieldValues>) => void;
73
+ declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValues>({ watch: watchField, onChange }: UseWatchUserChangeOptions<TFieldValues>) => void;
78
74
  //#endregion
79
75
  export { UseWatchUserChangeOptions, useWatchUserChange };
80
- //# sourceMappingURL=index.d.ts.map
76
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";;UAYiB,0BAA0B,qBAAqB;;EAE9D,OAAO,KAAK;;;;;EAKZ,WACE,gBACA;IACE,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8Db,qBACX,qBAAqB,cAAc,eACnC,OAAA,YAAA,YAGC,0BAA0B"}
@@ -1,4 +1,4 @@
1
- import { n as useFormContext } from "../../useFormContext-BUSoUBUP.js";
1
+ import { n as useFormContext } from "../../useFormContext-Bw4LokAf.mjs";
2
2
  import { useEffect } from "react";
3
3
  //#region src/hooks/useWatchUserChange/useWatchUserChange.ts
4
4
  /**
@@ -84,4 +84,4 @@ const useWatchUserChange = ({ watch: watchField, onChange }) => {
84
84
  //#endregion
85
85
  export { useWatchUserChange };
86
86
 
87
- //# sourceMappingURL=index.js.map
87
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts","../../../src/hooks/useWatchUserChange/index.ts"],"sourcesContent":["import type {\n FieldValues,\n Path,\n UseFormReset,\n UseFormResetField,\n UseFormSetValue,\n} from 'react-hook-form';\n\nimport { useEffect } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {\n /** Field name to watch for user changes */\n watch: Path<TFieldValues>;\n /**\n * Callback when watched field is changed by user input.\n * Receives the new value and form helpers (setValue, resetField, reset).\n */\n onChange: (\n value: unknown,\n helpers: {\n setValue: UseFormSetValue<TFieldValues>;\n resetField: UseFormResetField<TFieldValues>;\n reset: UseFormReset<TFieldValues>;\n },\n ) => void;\n}\n\n/**\n * Hook that watches for user changes on a specific form field.\n *\n * Only triggers on manual user input (typing, clicking, selecting),\n * NOT on programmatic changes like form.reset() or form.setValue().\n * Also does NOT trigger when selecting the same value (e.g., clicking\n * an already-selected option in a Select).\n *\n * This hook subscribes to field changes at the source (useController),\n * ensuring immediate and accurate detection of user interactions.\n *\n * Use cases:\n * - Reset dependent fields when parent field changes\n * - Set mode-specific default values when a toggle changes\n * - Clear form sections based on user selections\n * - Trigger side effects only on user interaction\n *\n * Note: To watch multiple fields, call this hook multiple times.\n *\n * @example\n * ```tsx\n * // Reset city and address when user changes country\n * useWatchUserChange({\n * watch: 'country',\n * onChange: (value, { resetField }) => {\n * resetField('city');\n * resetField('address');\n * },\n * });\n *\n * // Set defaults when user changes payment method\n * useWatchUserChange({\n * watch: 'paymentMethod',\n * onChange: (value, { setValue }) => {\n * if (value === 'credit') {\n * setValue('installments', 3);\n * } else {\n * setValue('installments', 1);\n * }\n * },\n * });\n *\n * // Watch multiple fields by calling the hook multiple times\n * useWatchUserChange({\n * watch: 'category',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * useWatchUserChange({\n * watch: 'brand',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * ```\n */\nexport const useWatchUserChange = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n watch: watchField,\n onChange,\n}: UseWatchUserChangeOptions<TFieldValues>) => {\n const { setValue, resetField, reset, userChange } =\n useFormContext<TFieldValues>();\n\n useEffect(() => {\n // Create listener that checks if changed field is the one we're watching\n const listener = (fieldName: Path<TFieldValues>, value: unknown) => {\n // Check if this is the field we're watching\n if (fieldName === watchField) {\n // Call the onChange callback with helpers\n onChange(value, { setValue, resetField, reset });\n }\n };\n\n // Subscribe to user changes\n const unsubscribe = userChange.subscribe(listener);\n\n // Cleanup on unmount\n return unsubscribe;\n }, [watchField, onChange, setValue, resetField, reset, userChange]);\n};\n","/* v8 ignore start */\n\nexport * from './useWatchUserChange';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,sBAEX,EACA,OAAO,YACP,eAC6C;CAC7C,MAAM,EAAE,UAAU,YAAY,OAAO,eACnC,eAA6B;CAE/B,gBAAgB;EAEd,MAAM,YAAY,WAA+B,UAAmB;GAElE,IAAI,cAAc,YAEhB,SAAS,OAAO;IAAE;IAAU;IAAY;GAAM,CAAC;EAEnD;EAMA,OAHoB,WAAW,UAAU,QAGxB;CACnB,GAAG;EAAC;EAAY;EAAU;EAAU;EAAY;EAAO;CAAU,CAAC;AACpE"}
@@ -0,0 +1 @@
1
+ import "./useController-DcK2YHbw.mjs";
@@ -0,0 +1 @@
1
+ import "./useFormContext-BegmYvGA.mjs";
@@ -5,10 +5,7 @@ interface FieldCopyTestIdButtonProps {
5
5
  /** HTML data-testid attribute used in e2e tests */
6
6
  testId: string;
7
7
  }
8
- declare const FieldCopyTestIdButton: ({
9
- className,
10
- testId
11
- }: FieldCopyTestIdButtonProps) => import("react").JSX.Element;
8
+ declare const FieldCopyTestIdButton: ({ className, testId }: FieldCopyTestIdButtonProps) => import("react").JSX.Element;
12
9
  //#endregion
13
10
  export { type FieldCopyTestIdButtonProps, FieldCopyTestIdButton as default };
14
- //# sourceMappingURL=index.d.ts.map
11
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":";UAKiB;;EAEf;;EAEA;;cAGI,0BAAyB,WAAA,UAG5B,+CAA0B,IAAA"}
@@ -1,2 +1,2 @@
1
- import { t as FieldCopyTestIdButton_default } from "../../FieldCopyTestIdButton-CRJBix9D.js";
1
+ import { t as FieldCopyTestIdButton_default } from "../../FieldCopyTestIdButton-CRJBix9D.mjs";
2
2
  export { FieldCopyTestIdButton_default as default };
@@ -1,5 +1,4 @@
1
1
  import { FieldError } from "react-hook-form";
2
-
3
2
  //#region src/partials/FieldValidationError/FieldValidationError.d.ts
4
3
  interface FieldValidationErrorProps {
5
4
  /** CSS class name */
@@ -12,11 +11,7 @@ interface FieldValidationErrorProps {
12
11
  /**
13
12
  * Renders a validation error of a field
14
13
  */
15
- declare const FieldValidationError: ({
16
- className,
17
- error,
18
- testId
19
- }: FieldValidationErrorProps) => import("react").JSX.Element;
14
+ declare const FieldValidationError: ({ className, error, testId }: FieldValidationErrorProps) => import("react").JSX.Element;
20
15
  //#endregion
21
16
  export { type FieldValidationErrorProps, FieldValidationError as default };
22
- //# sourceMappingURL=index.d.ts.map
17
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/partials/FieldValidationError/FieldValidationError.tsx"],"mappings":";;UASiB;;EAEf;;EAEA,QAAQ;;EAER;;;;;cAMI,yBAAwB,WAAA,OAAA,UAI3B,8CAAyB,IAAA"}
@@ -1,2 +1,2 @@
1
- import { t as FieldValidationError_default } from "../../FieldValidationError-ByRoIxaM.js";
1
+ import { t as FieldValidationError_default } from "../../FieldValidationError-ByRoIxaM.mjs";
2
2
  export { FieldValidationError_default as default };
@@ -1,5 +1,5 @@
1
- import { fromNullishString, toNullishString } from "./helpers/index.js";
2
- import { n as UniformContext } from "./FormContext-DjJOJKxj.js";
1
+ import { fromNullishString, toNullishString } from "./helpers/index.mjs";
2
+ import { n as UniformContext } from "./FormContext-gHSwOlcy.mjs";
3
3
  import { useContext } from "react";
4
4
  import { useController } from "react-hook-form";
5
5
  //#region src/hooks/useController/useController.ts
@@ -42,4 +42,4 @@ const useController$1 = (props) => {
42
42
  //#endregion
43
43
  export { useController$1 as t };
44
44
 
45
- //# sourceMappingURL=useController-DxFS0u7c.js.map
45
+ //# sourceMappingURL=useController-CK39i6HI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useController-CK39i6HI.mjs","names":["useController","useRHFController"],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":["import type {\n ControllerFieldState,\n ControllerRenderProps,\n UseControllerProps as RHFUseControllerProps,\n UseFormStateReturn,\n} from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useController as useRHFController } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { fromNullishString, toNullishString } from '../../helpers';\n\nexport type UseControllerProps<TFieldValues extends object = object> =\n RHFUseControllerProps<TFieldValues>;\n\nexport interface UseControllerReturn<TFieldValues extends object = object> {\n field: Omit<ControllerRenderProps<TFieldValues>, 'onChange' | 'value'> & {\n // Using any[] to support both direct value changes and React synthetic events\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => void;\n value: string;\n };\n formState: UseFormStateReturn<TFieldValues>;\n fieldState: ControllerFieldState;\n}\n\n/**\n * A wrapper around react-hook-form's useController that transparently handles nullish string conversions.\n *\n * Key features:\n * 1. Empty strings ('') in the UI are stored as null in form state\n * 2. Null/undefined values in form state are displayed as empty strings in the UI\n * 3. Handles both direct value changes and React synthetic events\n * 4. Maintains the same API as react-hook-form's useController\n * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)\n * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value\n * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)\n *\n * This enables consistent handling of empty/null values while keeping a clean API\n * for form inputs that expect string values.\n *\n * @see https://react-hook-form.com/docs/usecontroller\n */\nexport const useController = <TFieldValues extends object = object>(\n props: UseControllerProps<TFieldValues>,\n): UseControllerReturn<TFieldValues> => {\n const { field, formState, fieldState } = useRHFController(props);\n const { userChange } = useContext(UniformContext);\n\n return {\n field: {\n ...field,\n // Handles both direct values (onChange(\"value\")) and events (onChange(event))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => {\n const value = event[0]?.target?.value ?? event[0];\n const formattedValue = value === '' ? '' : toNullishString(value);\n\n // Skip if value hasn't changed (e.g., user re-selects same option)\n // We compare formattedValue (the new value after nullish conversion) with\n // field.value (the current stored value, also in nullish format)\n if (formattedValue === field.value) {\n return;\n }\n\n // Update form state first\n field.onChange(formattedValue);\n\n // Then notify userChange listeners (for useWatchUserChange hook)\n // This ensures getValues() in listeners returns the updated value\n // Guard against undefined userChange (when used outside FormProvider)\n // NOTE: We notify with the original value (not formattedValue) so that\n // listeners receive the actual value (false, 0, null) instead of marker\n // strings like '__FALSE__', '__ZERO__', '__NULL__'\n userChange?.notify(field.name, value);\n },\n // Convert null/undefined to empty string for UI display\n value: fromNullishString(field.value) as string,\n },\n formState,\n fieldState,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAaA,mBACX,UACsC;CACtC,MAAM,EAAE,OAAO,WAAW,eAAeC,cAAiB,KAAK;CAC/D,MAAM,EAAE,eAAe,WAAW,cAAc;CAEhD,OAAO;EACL,OAAO;GACL,GAAG;GAGH,WAAW,GAAG,UAAiB;IAC7B,MAAM,QAAQ,MAAM,EAAE,EAAE,QAAQ,SAAS,MAAM;IAC/C,MAAM,iBAAiB,UAAU,KAAK,KAAK,gBAAgB,KAAK;IAKhE,IAAI,mBAAmB,MAAM,OAC3B;IAIF,MAAM,SAAS,cAAc;IAQ7B,YAAY,OAAO,MAAM,MAAM,KAAK;GACtC;GAEA,OAAO,kBAAkB,MAAM,KAAK;EACtC;EACA;EACA;CACF;AACF"}
@@ -1,5 +1,4 @@
1
1
  import { ControllerFieldState, ControllerRenderProps, UseControllerProps, UseFormStateReturn } from "react-hook-form";
2
-
3
2
  //#region src/hooks/useController/useController.d.ts
4
3
  type UseControllerProps$1<TFieldValues extends object = object> = UseControllerProps<TFieldValues>;
5
4
  interface UseControllerReturn<TFieldValues extends object = object> {
@@ -30,4 +29,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
30
29
  declare const useController$1: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
31
30
  //#endregion
32
31
  export { UseControllerReturn as n, useController$1 as r, UseControllerProps$1 as t };
33
- //# sourceMappingURL=useController-CvQqCvFJ.d.ts.map
32
+ //# sourceMappingURL=useController-DcK2YHbw.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useController-DcK2YHbw.d.mts","names":[],"sources":["../src/hooks/useController/useController.ts"],"mappings":";;KAaY,qBAAmB,wCAC7B,mBAAsB;UAEP,oBAAoB;EACnC,OAAO,KAAK,sBAAsB;IAGhC,cAAc;IACd;;EAEF,WAAW,mBAAmB;EAC9B,YAAY;;;;;;;;;;;;;;;;;;;cAoBD,kBAAiB,sCAC5B,OAAO,qBAAmB,kBACzB,oBAAoB"}
@@ -1,7 +1,6 @@
1
- import { n as FormResetListener, r as UserChangeListener, t as DebugModeSettings } from "./FormContext-LgzrDWu1.js";
1
+ import { n as FormResetListener, r as UserChangeListener, t as DebugModeSettings } from "./FormContext-CsFiNvuJ.mjs";
2
2
  import { FieldError, FieldValues, Path } from "react-hook-form";
3
3
  import { VetoFormattedError, VetoInstance } from "@fuf-stack/veto";
4
-
5
4
  //#region src/hooks/useFormContext/useFormContext.d.ts
6
5
  /** Schema check whether a field is required or optional */
7
6
  declare const checkFieldIsRequired: (validation: VetoInstance, path: string[]) => boolean;
@@ -30,14 +29,14 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
30
29
  reset: import("react-hook-form").UseFormReset<TFieldValues>;
31
30
  subscribe: import("react-hook-form").UseFormSubscribe<TFieldValues>;
32
31
  watch: import("react-hook-form").UseFormWatch<TFieldValues>;
33
- debugMode: "disabled" | "debug" | "debug-testids" | "off";
32
+ debugMode: "debug" | "debug-testids" | "off" | "disabled";
34
33
  debugModeSettings?: DebugModeSettings;
35
34
  formReset: {
36
35
  subscribe: (listener: FormResetListener) => () => void;
37
36
  notify: () => void;
38
37
  };
39
38
  preventSubmit: (prevent: boolean) => void;
40
- setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
39
+ setDebugMode: (debugMode: "debug" | "debug-testids" | "off" | "disabled") => void;
41
40
  triggerSubmit: (e?: import("react").BaseSyntheticEvent) => Promise<void> | void;
42
41
  userChange: {
43
42
  subscribe: (listener: UserChangeListener) => () => void;
@@ -64,4 +63,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
64
63
  };
65
64
  //#endregion
66
65
  export { useFormContext$1 as n, checkFieldIsRequired as t };
67
- //# sourceMappingURL=useFormContext-CJ9027lh.d.ts.map
66
+ //# sourceMappingURL=useFormContext-BegmYvGA.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormContext-BegmYvGA.d.mts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"mappings":";;;;;cAYa,uBACX,YAAY,cACZ;;;;;;;;;;;cAmEW,mBACX,qBAAqB,cAAc,aACnC,gBACA,qBAAqB;;wBAoCQ,KAAK,eAAa;;;;;;;;;;;;;;;;;;;;;sCAwB3C,uBAAA;;0BAAA;;;;mBAiBa;eAEE;aAC6B"}
@@ -1,5 +1,5 @@
1
- import { flatArrayKey, nameToTestId, toValidationFormat } from "./helpers/index.js";
2
- import { n as UniformContext } from "./FormContext-DjJOJKxj.js";
1
+ import { flatArrayKey, nameToTestId, toValidationFormat } from "./helpers/index.mjs";
2
+ import { n as UniformContext } from "./FormContext-gHSwOlcy.mjs";
3
3
  import { useContext } from "react";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  //#region src/hooks/useFormContext/useFormContext.ts
@@ -132,4 +132,4 @@ const useFormContext$1 = () => {
132
132
  //#endregion
133
133
  export { useFormContext$1 as n, checkFieldIsRequired as t };
134
134
 
135
- //# sourceMappingURL=useFormContext-BUSoUBUP.js.map
135
+ //# sourceMappingURL=useFormContext-Bw4LokAf.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormContext-Bw4LokAf.mjs","names":["useFormContext","useHookFormContext"],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { VetoFormattedError, VetoInstance } from '@fuf-stack/veto';\nimport type { FieldError, FieldValues, Path } from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useFormContext as useHookFormContext } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { flatArrayKey, nameToTestId, toValidationFormat } from '../../helpers';\n\n/** Schema check whether a field is required or optional */\nexport const checkFieldIsRequired = (\n validation: VetoInstance,\n path: string[],\n): boolean => {\n // Handle flat array paths: strip the flatArrayKey to check the array element schema\n // e.g., ['arrayField', '0', '__FLAT__'] -> check schema at ['arrayField', '0']\n const checkPath =\n path[path.length - 1] === flatArrayKey ? path.slice(0, -1) : path;\n\n const checkRequired = (schema: any) => {\n // arrays ...\n if (schema.type === 'array') {\n // ... if array is optional or nullable it is not required\n if (schema.isOptional || schema.isNullable) {\n return false;\n }\n // ... otherwise arrays are required (display logic wise -> no asterisk in the label)\n return true;\n }\n\n // all other fields are required if they are\n // not optional and not nullable\n return !schema.isOptional && !schema.isNullable;\n };\n\n return validation.checkSchemaPath(checkRequired, checkPath);\n};\n\n/**\n * Resolve validation errors for a given field path.\n *\n * Traverses a nested `VetoFormattedError` structure using a dotted path\n * (for example: \"user.address.0.street\") and returns the matching\n * `FieldError[]` if present. If no error exists at the path, returns\n * `undefined`.\n *\n * @param errors - The formatted validation errors from Uniform's context\n * @param name - The dotted field path to resolve\n * @returns An array of `FieldError` entries for the field, or `undefined`\n */\nconst getValidationErrorsByName = (\n errors: VetoFormattedError,\n name: string,\n) => {\n // Traverse nested error structure; ignore flat array wrapper key\n const keys = name.split('.').filter((k) => {\n return k !== flatArrayKey;\n });\n let current: unknown = errors;\n keys.forEach((key) => {\n if (current && typeof current === 'object') {\n current = (current as Record<string, unknown>)[key];\n } else {\n current = undefined;\n }\n });\n return current as FieldError[] | undefined;\n};\n\n/**\n * Custom hook that extends react-hook-form's useFormContext to add validation and state management.\n *\n * Key features:\n * - Enhanced `getFieldState` that includes validation schema-based \"required\" status and testId generation\n * - Automatic conversion of form values via `getValues`, `watch`, and `subscribe`:\n * - Unwraps flat array wrappers (`{ __FLAT__: value }` → `value`)\n * - Converts nullish string markers (`__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`)\n * - Filters out empty/null values\n */\nexport const useFormContext = <\n TFieldValues extends FieldValues = FieldValues,\n TContext = any,\n TTransformedValues = TFieldValues,\n>() => {\n const {\n formState,\n // some methods that will be enhanced below\n getFieldState: getFieldStateOrig,\n getValues: getValuesOrig,\n watch: watchOrig,\n subscribe: subscribeOrig,\n reset: resetOrig,\n // the rest of the methods pass through unchanged\n ...otherMethods\n } = useHookFormContext<TFieldValues, TContext, TTransformedValues>();\n\n const uniformContext = useContext(UniformContext);\n\n /**\n * Wrap react-hook-form's `reset` so the uniform context is notified about\n * programmatic resets. Field components (e.g. FieldArray) use this signal to\n * normalize their state on reset instead of inferring it from field contents.\n */\n const notifyReset = uniformContext?.formReset?.notify;\n const reset = ((...args: Parameters<typeof resetOrig>) => {\n resetOrig(...args);\n notifyReset?.();\n }) as typeof resetOrig;\n\n /**\n * Updated getFieldState method which returns:\n * - Whether the field is required by checking the validation schema\n * - Existing field state information (errors, etc.)\n * - A testId generated from the field name (with flat array keys removed and slugified)\n *\n * @param name - The field path (string or array)\n * @param testId - Optional explicit testId. If provided, will be slugified. If not provided, generated from name.\n */\n const getFieldState = (name: Path<TFieldValues>, testId?: string) => {\n const fieldPath =\n typeof name === 'string' ? name.replace(/\\[\\d+\\]/g, '').split('.') : name;\n\n // Use base validation instance for checking \"required\" status\n // Client validation often uses .nullish() which would incorrectly mark fields as optional\n const validationInstance =\n uniformContext?.validation.baseInstance ??\n uniformContext?.validation.instance;\n\n // Check if the field is required using the validation schema\n const required = validationInstance\n ? checkFieldIsRequired(validationInstance, fieldPath)\n : false;\n\n const error = getValidationErrorsByName(\n uniformContext?.validation.errors ?? {},\n name,\n );\n\n // Get everything but the error from the original field state\n const fieldState = getFieldStateOrig(name, formState);\n\n return {\n ...fieldState,\n error,\n invalid: !!error,\n required,\n testId: nameToTestId(testId ?? name),\n };\n };\n\n /**\n * Wrap form value accessor methods to automatically convert from internal storage format\n * to component-friendly format:\n *\n * - Unwrap flat array wrappers: `{ __FLAT__: value }` → `value`\n * - Convert nullish string markers: `__NULL__` → `null`, `__FALSE__` → `false`, `__ZERO__` → `0`\n * - Filter out empty/null values: fields with converted null/empty values are removed entirely\n *\n * This ensures components receive clean, predictable data without needing to handle\n * the internal nullish string conversion system or flat array wrapping manually.\n */\n const getValues = ((...args: any[]) => {\n const result = (getValuesOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof getValuesOrig;\n\n const watch = ((...args: any[]) => {\n const result = (watchOrig as any)(...args);\n return toValidationFormat(result);\n }) as typeof watchOrig;\n\n const subscribe = ((...args: any[]) => {\n // For subscribe, we need to wrap the callback to convert the values property\n const [options] = args;\n if (options?.callback) {\n const originalCallback = options.callback;\n const wrappedOptions = {\n ...options,\n callback: (subscribeFormState: any) => {\n // Convert the values property if it exists\n const convertedFormState = {\n ...subscribeFormState,\n ...(subscribeFormState.values && {\n values: toValidationFormat(subscribeFormState.values),\n }),\n };\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return originalCallback(convertedFormState);\n },\n };\n return subscribeOrig(wrappedOptions);\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return (subscribeOrig as any)(...args);\n }) as typeof subscribeOrig;\n\n return {\n ...otherMethods,\n ...uniformContext,\n formState,\n getFieldState,\n getValues,\n reset,\n subscribe,\n watch,\n };\n};\n"],"mappings":";;;;;;AAYA,MAAa,wBACX,YACA,SACY;CAGZ,MAAM,YACJ,KAAK,KAAK,SAAS,OAAA,aAAsB,KAAK,MAAM,GAAG,EAAE,IAAI;CAE/D,MAAM,iBAAiB,WAAgB;EAErC,IAAI,OAAO,SAAS,SAAS;GAE3B,IAAI,OAAO,cAAc,OAAO,YAC9B,OAAO;GAGT,OAAO;EACT;EAIA,OAAO,CAAC,OAAO,cAAc,CAAC,OAAO;CACvC;CAEA,OAAO,WAAW,gBAAgB,eAAe,SAAS;AAC5D;;;;;;;;;;;;;AAcA,MAAM,6BACJ,QACA,SACG;CAEH,MAAM,OAAO,KAAK,MAAM,GAAG,CAAC,CAAC,QAAQ,MAAM;EACzC,OAAO,MAAM;CACf,CAAC;CACD,IAAI,UAAmB;CACvB,KAAK,SAAS,QAAQ;EACpB,IAAI,WAAW,OAAO,YAAY,UAChC,UAAW,QAAoC;OAE/C,UAAU,KAAA;CAEd,CAAC;CACD,OAAO;AACT;;;;;;;;;;;AAYA,MAAaA,yBAIN;CACL,MAAM,EACJ,WAEA,eAAe,mBACf,WAAW,eACX,OAAO,WACP,WAAW,eACX,OAAO,WAEP,GAAG,iBACDC,eAA+D;CAEnE,MAAM,iBAAiB,WAAW,cAAc;;;;;;CAOhD,MAAM,cAAc,gBAAgB,WAAW;CAC/C,MAAM,UAAU,GAAG,SAAuC;EACxD,UAAU,GAAG,IAAI;EACjB,cAAc;CAChB;;;;;;;;;;CAWA,MAAM,iBAAiB,MAA0B,WAAoB;EACnE,MAAM,YACJ,OAAO,SAAS,WAAW,KAAK,QAAQ,YAAY,EAAE,CAAC,CAAC,MAAM,GAAG,IAAI;EAIvE,MAAM,qBACJ,gBAAgB,WAAW,gBAC3B,gBAAgB,WAAW;EAG7B,MAAM,WAAW,qBACb,qBAAqB,oBAAoB,SAAS,IAClD;EAEJ,MAAM,QAAQ,0BACZ,gBAAgB,WAAW,UAAU,CAAC,GACtC,IACF;EAKA,OAAO;GACL,GAHiB,kBAAkB,MAAM,SAG7B;GACZ;GACA,SAAS,CAAC,CAAC;GACX;GACA,QAAQ,aAAa,UAAU,IAAI;EACrC;CACF;;;;;;;;;;;;CAaA,MAAM,cAAc,GAAG,SAAgB;EAErC,OAAO,mBADS,cAAsB,GAAG,IACV,CAAC;CAClC;CAEA,MAAM,UAAU,GAAG,SAAgB;EAEjC,OAAO,mBADS,UAAkB,GAAG,IACN,CAAC;CAClC;CAEA,MAAM,cAAc,GAAG,SAAgB;EAErC,MAAM,CAAC,WAAW;EAClB,IAAI,SAAS,UAAU;GACrB,MAAM,mBAAmB,QAAQ;GACjC,MAAM,iBAAiB;IACrB,GAAG;IACH,WAAW,uBAA4B;KAErC,MAAM,qBAAqB;MACzB,GAAG;MACH,GAAI,mBAAmB,UAAU,EAC/B,QAAQ,mBAAmB,mBAAmB,MAAM,EACtD;KACF;KAEA,OAAO,iBAAiB,kBAAkB;IAC5C;GACF;GACA,OAAO,cAAc,cAAc;EACrC;EAEA,OAAQ,cAAsB,GAAG,IAAI;CACvC;CAEA,OAAO;EACL,GAAG;EACH,GAAG;EACH;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -107,4 +107,4 @@ const useInputValueTransform = ({ type, transform }) => {
107
107
  //#endregion
108
108
  export { useInputValueTransform as t };
109
109
 
110
- //# sourceMappingURL=useInputValueTransform-DJ5zkqSy.js.map
110
+ //# sourceMappingURL=useInputValueTransform-DJ5zkqSy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInputValueTransform-P62UUZBl.cjs","names":[],"sources":["../src/hooks/useInputValueTransform/useInputValueTransform.ts"],"sourcesContent":["import { useCallback } from 'react';\n\nexport interface InputValueTransform<TDisplay = unknown> {\n /** Transforms the form value to display value (e.g., 1000 → \"$1,000\" or 'a' → ['a']) */\n toDisplayValue: (value: unknown) => TDisplay;\n /** Transforms the display value to form value (e.g., \"$1,000\" → 1000 or ['a'] → 'a') */\n toFormValue: (value: TDisplay) => unknown;\n}\n\nexport interface UseInputValueTransformOptions<TDisplay = unknown> {\n /** Input type for special number handling */\n type?: 'text' | 'number' | 'password';\n /** Value transformation functions */\n transform?: InputValueTransform<TDisplay>;\n}\n\nexport interface UseInputValueTransformReturn<TDisplay = unknown> {\n /** Converts any form value to display value */\n toDisplayValue: (formValue: unknown) => TDisplay;\n /** Converts any display value to form value */\n toFormValue: (displayValue: TDisplay) => unknown;\n}\n\n/**\n * Custom hook providing utility functions for value transformations between display and form values.\n *\n * This hook provides pure conversion functions without any state management. It's useful for:\n * - Currency formatting ($1,000 display vs 1000 stored)\n * - Number inputs with special handling\n * - Date formatting (MM/DD/YYYY display vs ISO date stored)\n * - Phone number formatting ((555) 123-4567 display vs 5551234567 stored)\n * - Array/Object transformations (single value ↔ array, nested structures)\n *\n * **Key Features:**\n * - Pure conversion functions (no state)\n * - Generic support for any data type (strings, numbers, arrays, objects)\n * - Special number input handling (empty string preservation)\n * - Bidirectional value transformations\n * - Memoized functions for performance\n *\n * @param options Configuration for value transformation\n * @returns Pure conversion utility functions\n *\n * @example\n * ```tsx\n * // Currency formatting\n * const currencyTransform = {\n * toDisplayValue: (val) => val ? `$${Number(val).toLocaleString()}` : '',\n * toFormValue: (val) => parseFloat(val.replace(/[$,]/g, '')) || 0\n * };\n *\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * transform: currencyTransform\n * });\n *\n * const displayVal = toDisplayValue(1000); // \"$1,000\"\n * const formVal = toFormValue(\"$1,500\"); // 1500\n * ```\n *\n * @example\n * ```tsx\n * // Number input (no transforms needed)\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * type: 'number'\n * });\n *\n * // Handles empty string → empty string (not NaN)\n * // Handles \"123\" → 123 (string to number conversion)\n * ```\n *\n * @example\n * ```tsx\n * // Array to single value (for single checkbox)\n * const singleValueTransform = {\n * toDisplayValue: (val: string[]) => val?.[0] || '',\n * toFormValue: (val: string) => val ? [val] : []\n * };\n *\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * transform: singleValueTransform\n * });\n *\n * const displayVal = toDisplayValue(['option1']); // \"option1\"\n * const formVal = toFormValue(\"option2\"); // [\"option2\"]\n * ```\n *\n * @example\n * ```tsx\n * // Integration with debouncing\n * const MyInput = ({ field, transform }) => {\n * const transform = useInputValueTransform({ transform });\n *\n * const { onChange, onBlur, value } = useInputValueDebounce({\n * ...transform,\n * debounceDelay: 300,\n * name: 'fieldName',\n * onBlur: field.onBlur,\n * onChange: field.onChange,\n * value: field.value,\n * });\n *\n * return <input value={value} onChange={onChange} onBlur={onBlur} />;\n * };\n * ```\n */\nexport const useInputValueTransform = <TDisplay = unknown>({\n type,\n transform,\n}: UseInputValueTransformOptions<TDisplay>): UseInputValueTransformReturn<TDisplay> => {\n /**\n * Converts any form value to display value\n */\n const toDisplayValue = useCallback(\n (formValue: unknown): TDisplay => {\n if (transform?.toDisplayValue) {\n return transform.toDisplayValue(formValue);\n }\n\n // For number type, convert valid strings to numbers for display\n if (type === 'number') {\n if (formValue === '') {\n return '' as TDisplay;\n }\n const numValue = Number(formValue);\n return (Number.isNaN(numValue) ? formValue : numValue) as TDisplay;\n }\n\n // Default: pass through (handles primitives, arrays, objects, etc.)\n return (formValue ?? '') as TDisplay;\n },\n [type, transform],\n );\n\n /**\n * Converts any display value to form value\n */\n const toFormValue = useCallback(\n (displayValue: TDisplay): unknown => {\n if (transform?.toFormValue) {\n return transform.toFormValue(displayValue);\n }\n\n // For number type, convert strings to numbers\n if (type === 'number') {\n if (displayValue === '') {\n return '';\n }\n const numValue = Number(displayValue);\n return Number.isNaN(numValue) ? displayValue : numValue;\n }\n\n // Default: pass through (handles primitives, arrays, objects, etc.)\n return displayValue;\n },\n [type, transform],\n );\n\n return {\n toDisplayValue,\n toFormValue,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGA,MAAa,0BAA8C,EACzD,MACA,gBACqF;CAiDrF,OAAO;EACL,iBAAA,GAAA,MAAA,YAAA,EA7CC,cAAiC;GAChC,IAAI,WAAW,gBACb,OAAO,UAAU,eAAe,SAAS;GAI3C,IAAI,SAAS,UAAU;IACrB,IAAI,cAAc,IAChB,OAAO;IAET,MAAM,WAAW,OAAO,SAAS;IACjC,OAAQ,OAAO,MAAM,QAAQ,IAAI,YAAY;GAC/C;GAGA,OAAQ,aAAa;EACvB,GACA,CAAC,MAAM,SAAS,CA4BH;EACb,cAAA,GAAA,MAAA,YAAA,EAtBC,iBAAoC;GACnC,IAAI,WAAW,aACb,OAAO,UAAU,YAAY,YAAY;GAI3C,IAAI,SAAS,UAAU;IACrB,IAAI,iBAAiB,IACnB,OAAO;IAET,MAAM,WAAW,OAAO,YAAY;IACpC,OAAO,OAAO,MAAM,QAAQ,IAAI,eAAe;GACjD;GAGA,OAAO;EACT,GACA,CAAC,MAAM,SAAS,CAKN;CACZ;AACF"}
1
+ {"version":3,"file":"useInputValueTransform-DJ5zkqSy.mjs","names":[],"sources":["../src/hooks/useInputValueTransform/useInputValueTransform.ts"],"sourcesContent":["import { useCallback } from 'react';\n\nexport interface InputValueTransform<TDisplay = unknown> {\n /** Transforms the form value to display value (e.g., 1000 → \"$1,000\" or 'a' → ['a']) */\n toDisplayValue: (value: unknown) => TDisplay;\n /** Transforms the display value to form value (e.g., \"$1,000\" → 1000 or ['a'] → 'a') */\n toFormValue: (value: TDisplay) => unknown;\n}\n\nexport interface UseInputValueTransformOptions<TDisplay = unknown> {\n /** Input type for special number handling */\n type?: 'text' | 'number' | 'password';\n /** Value transformation functions */\n transform?: InputValueTransform<TDisplay>;\n}\n\nexport interface UseInputValueTransformReturn<TDisplay = unknown> {\n /** Converts any form value to display value */\n toDisplayValue: (formValue: unknown) => TDisplay;\n /** Converts any display value to form value */\n toFormValue: (displayValue: TDisplay) => unknown;\n}\n\n/**\n * Custom hook providing utility functions for value transformations between display and form values.\n *\n * This hook provides pure conversion functions without any state management. It's useful for:\n * - Currency formatting ($1,000 display vs 1000 stored)\n * - Number inputs with special handling\n * - Date formatting (MM/DD/YYYY display vs ISO date stored)\n * - Phone number formatting ((555) 123-4567 display vs 5551234567 stored)\n * - Array/Object transformations (single value ↔ array, nested structures)\n *\n * **Key Features:**\n * - Pure conversion functions (no state)\n * - Generic support for any data type (strings, numbers, arrays, objects)\n * - Special number input handling (empty string preservation)\n * - Bidirectional value transformations\n * - Memoized functions for performance\n *\n * @param options Configuration for value transformation\n * @returns Pure conversion utility functions\n *\n * @example\n * ```tsx\n * // Currency formatting\n * const currencyTransform = {\n * toDisplayValue: (val) => val ? `$${Number(val).toLocaleString()}` : '',\n * toFormValue: (val) => parseFloat(val.replace(/[$,]/g, '')) || 0\n * };\n *\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * transform: currencyTransform\n * });\n *\n * const displayVal = toDisplayValue(1000); // \"$1,000\"\n * const formVal = toFormValue(\"$1,500\"); // 1500\n * ```\n *\n * @example\n * ```tsx\n * // Number input (no transforms needed)\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * type: 'number'\n * });\n *\n * // Handles empty string → empty string (not NaN)\n * // Handles \"123\" → 123 (string to number conversion)\n * ```\n *\n * @example\n * ```tsx\n * // Array to single value (for single checkbox)\n * const singleValueTransform = {\n * toDisplayValue: (val: string[]) => val?.[0] || '',\n * toFormValue: (val: string) => val ? [val] : []\n * };\n *\n * const { toDisplayValue, toFormValue } = useInputValueTransform({\n * transform: singleValueTransform\n * });\n *\n * const displayVal = toDisplayValue(['option1']); // \"option1\"\n * const formVal = toFormValue(\"option2\"); // [\"option2\"]\n * ```\n *\n * @example\n * ```tsx\n * // Integration with debouncing\n * const MyInput = ({ field, transform }) => {\n * const transform = useInputValueTransform({ transform });\n *\n * const { onChange, onBlur, value } = useInputValueDebounce({\n * ...transform,\n * debounceDelay: 300,\n * name: 'fieldName',\n * onBlur: field.onBlur,\n * onChange: field.onChange,\n * value: field.value,\n * });\n *\n * return <input value={value} onChange={onChange} onBlur={onBlur} />;\n * };\n * ```\n */\nexport const useInputValueTransform = <TDisplay = unknown>({\n type,\n transform,\n}: UseInputValueTransformOptions<TDisplay>): UseInputValueTransformReturn<TDisplay> => {\n /**\n * Converts any form value to display value\n */\n const toDisplayValue = useCallback(\n (formValue: unknown): TDisplay => {\n if (transform?.toDisplayValue) {\n return transform.toDisplayValue(formValue);\n }\n\n // For number type, convert valid strings to numbers for display\n if (type === 'number') {\n if (formValue === '') {\n return '' as TDisplay;\n }\n const numValue = Number(formValue);\n return (Number.isNaN(numValue) ? formValue : numValue) as TDisplay;\n }\n\n // Default: pass through (handles primitives, arrays, objects, etc.)\n return (formValue ?? '') as TDisplay;\n },\n [type, transform],\n );\n\n /**\n * Converts any display value to form value\n */\n const toFormValue = useCallback(\n (displayValue: TDisplay): unknown => {\n if (transform?.toFormValue) {\n return transform.toFormValue(displayValue);\n }\n\n // For number type, convert strings to numbers\n if (type === 'number') {\n if (displayValue === '') {\n return '';\n }\n const numValue = Number(displayValue);\n return Number.isNaN(numValue) ? displayValue : numValue;\n }\n\n // Default: pass through (handles primitives, arrays, objects, etc.)\n return displayValue;\n },\n [type, transform],\n );\n\n return {\n toDisplayValue,\n toFormValue,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGA,MAAa,0BAA8C,EACzD,MACA,gBACqF;CAiDrF,OAAO;EACL,gBA9CqB,aACpB,cAAiC;GAChC,IAAI,WAAW,gBACb,OAAO,UAAU,eAAe,SAAS;GAI3C,IAAI,SAAS,UAAU;IACrB,IAAI,cAAc,IAChB,OAAO;IAET,MAAM,WAAW,OAAO,SAAS;IACjC,OAAQ,OAAO,MAAM,QAAQ,IAAI,YAAY;GAC/C;GAGA,OAAQ,aAAa;EACvB,GACA,CAAC,MAAM,SAAS,CA4BH;EACb,aAvBkB,aACjB,iBAAoC;GACnC,IAAI,WAAW,aACb,OAAO,UAAU,YAAY,YAAY;GAI3C,IAAI,SAAS,UAAU;IACrB,IAAI,iBAAiB,IACnB,OAAO;IAET,MAAM,WAAW,OAAO,YAAY;IACpC,OAAO,OAAO,MAAM,QAAQ,IAAI,eAAe;GACjD;GAGA,OAAO;EACT,GACA,CAAC,MAAM,SAAS,CAKN;CACZ;AACF"}
@@ -99,10 +99,7 @@ interface UseInputValueTransformReturn<TDisplay = unknown> {
99
99
  * };
100
100
  * ```
101
101
  */
102
- declare const useInputValueTransform: <TDisplay = unknown>({
103
- type,
104
- transform
105
- }: UseInputValueTransformOptions<TDisplay>) => UseInputValueTransformReturn<TDisplay>;
102
+ declare const useInputValueTransform: <TDisplay = unknown>({ type, transform }: UseInputValueTransformOptions<TDisplay>) => UseInputValueTransformReturn<TDisplay>;
106
103
  //#endregion
107
104
  export { useInputValueTransform as i, UseInputValueTransformOptions as n, UseInputValueTransformReturn as r, InputValueTransform as t };
108
- //# sourceMappingURL=useInputValueTransform-DCXXb2Lp.d.ts.map
105
+ //# sourceMappingURL=useInputValueTransform-LOaEim7k.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInputValueTransform-LOaEim7k.d.mts","names":[],"sources":["../src/hooks/useInputValueTransform/useInputValueTransform.ts"],"mappings":";UAEiB,oBAAoB;;EAEnC,iBAAiB,mBAAmB;;EAEpC,cAAc,OAAO;;UAGN,8BAA8B;;EAE7C;;EAEA,YAAY,oBAAoB;;UAGjB,6BAA6B;;EAE5C,iBAAiB,uBAAuB;;EAExC,cAAc,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFjB,yBAA0B,sBAAoB,MAAA,aAGxD,8BAA8B,cAAY,6BAA6B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/uniform",
3
- "version": "1.24.11",
3
+ "version": "1.25.0",
4
4
  "description": "fuf react form library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/pixels#readme",
@@ -8,126 +8,36 @@
8
8
  "type": "module",
9
9
  "sideEffects": false,
10
10
  "exports": {
11
- "./Checkboxes": {
12
- "import": "./dist/Checkboxes/index.js",
13
- "require": "./dist/Checkboxes/index.cjs"
14
- },
15
- "./DatePicker": {
16
- "import": "./dist/DatePicker/index.js",
17
- "require": "./dist/DatePicker/index.cjs"
18
- },
19
- "./FieldArray": {
20
- "import": "./dist/FieldArray/index.js",
21
- "require": "./dist/FieldArray/index.cjs"
22
- },
23
- "./FieldCard": {
24
- "import": "./dist/FieldCard/index.js",
25
- "require": "./dist/FieldCard/index.cjs"
26
- },
27
- "./Form": {
28
- "import": "./dist/Form/index.js",
29
- "require": "./dist/Form/index.cjs"
30
- },
31
- "./Grid": {
32
- "import": "./dist/Grid/index.js",
33
- "require": "./dist/Grid/index.cjs"
34
- },
35
- "./helpers": {
36
- "import": "./dist/helpers/index.js",
37
- "require": "./dist/helpers/index.cjs"
38
- },
39
- "./hooks/useClientValidation": {
40
- "import": "./dist/hooks/useClientValidation/index.js",
41
- "require": "./dist/hooks/useClientValidation/index.cjs"
42
- },
43
- "./hooks/useController": {
44
- "import": "./dist/hooks/useController/index.js",
45
- "require": "./dist/hooks/useController/index.cjs"
46
- },
47
- "./hooks/useFormContext": {
48
- "import": "./dist/hooks/useFormContext/index.js",
49
- "require": "./dist/hooks/useFormContext/index.cjs"
50
- },
51
- "./hooks/useInput": {
52
- "import": "./dist/hooks/useInput/index.js",
53
- "require": "./dist/hooks/useInput/index.cjs"
54
- },
55
- "./hooks/useInputValueDebounce": {
56
- "import": "./dist/hooks/useInputValueDebounce/index.js",
57
- "require": "./dist/hooks/useInputValueDebounce/index.cjs"
58
- },
59
- "./hooks/useInputValueTransform": {
60
- "import": "./dist/hooks/useInputValueTransform/index.js",
61
- "require": "./dist/hooks/useInputValueTransform/index.cjs"
62
- },
63
- "./hooks/useUniformField": {
64
- "import": "./dist/hooks/useUniformField/index.js",
65
- "require": "./dist/hooks/useUniformField/index.cjs"
66
- },
67
- "./hooks/useUniformFieldArray": {
68
- "import": "./dist/hooks/useUniformFieldArray/index.js",
69
- "require": "./dist/hooks/useUniformFieldArray/index.cjs"
70
- },
71
- "./hooks/useWatchFormReset": {
72
- "import": "./dist/hooks/useWatchFormReset/index.js",
73
- "require": "./dist/hooks/useWatchFormReset/index.cjs"
74
- },
75
- "./hooks/useWatchUserChange": {
76
- "import": "./dist/hooks/useWatchUserChange/index.js",
77
- "require": "./dist/hooks/useWatchUserChange/index.cjs"
78
- },
79
- "./Input": {
80
- "import": "./dist/Input/index.js",
81
- "require": "./dist/Input/index.cjs"
82
- },
83
- "./partials/FieldCopyTestIdButton": {
84
- "import": "./dist/partials/FieldCopyTestIdButton/index.js",
85
- "require": "./dist/partials/FieldCopyTestIdButton/index.cjs"
86
- },
87
- "./partials/FieldValidationError": {
88
- "import": "./dist/partials/FieldValidationError/index.js",
89
- "require": "./dist/partials/FieldValidationError/index.cjs"
90
- },
91
- "./RadioBoxes": {
92
- "import": "./dist/RadioBoxes/index.js",
93
- "require": "./dist/RadioBoxes/index.cjs"
94
- },
95
- "./Radios": {
96
- "import": "./dist/Radios/index.js",
97
- "require": "./dist/Radios/index.cjs"
98
- },
99
- "./RadioTabs": {
100
- "import": "./dist/RadioTabs/index.js",
101
- "require": "./dist/RadioTabs/index.cjs"
102
- },
103
- "./Select": {
104
- "import": "./dist/Select/index.js",
105
- "require": "./dist/Select/index.cjs"
106
- },
107
- "./Slider": {
108
- "import": "./dist/Slider/index.js",
109
- "require": "./dist/Slider/index.cjs"
110
- },
111
- "./SubmitButton": {
112
- "import": "./dist/SubmitButton/index.js",
113
- "require": "./dist/SubmitButton/index.cjs"
114
- },
115
- "./Switch": {
116
- "import": "./dist/Switch/index.js",
117
- "require": "./dist/Switch/index.cjs"
118
- },
119
- "./SwitchBox": {
120
- "import": "./dist/SwitchBox/index.js",
121
- "require": "./dist/SwitchBox/index.cjs"
122
- },
123
- "./TextArea": {
124
- "import": "./dist/TextArea/index.js",
125
- "require": "./dist/TextArea/index.cjs"
126
- },
127
- "./Time": {
128
- "import": "./dist/Time/index.js",
129
- "require": "./dist/Time/index.cjs"
130
- },
11
+ "./Checkboxes": "./dist/Checkboxes/index.mjs",
12
+ "./DatePicker": "./dist/DatePicker/index.mjs",
13
+ "./FieldArray": "./dist/FieldArray/index.mjs",
14
+ "./FieldCard": "./dist/FieldCard/index.mjs",
15
+ "./Form": "./dist/Form/index.mjs",
16
+ "./Grid": "./dist/Grid/index.mjs",
17
+ "./helpers": "./dist/helpers/index.mjs",
18
+ "./hooks/useClientValidation": "./dist/hooks/useClientValidation/index.mjs",
19
+ "./hooks/useController": "./dist/hooks/useController/index.mjs",
20
+ "./hooks/useFormContext": "./dist/hooks/useFormContext/index.mjs",
21
+ "./hooks/useInput": "./dist/hooks/useInput/index.mjs",
22
+ "./hooks/useInputValueDebounce": "./dist/hooks/useInputValueDebounce/index.mjs",
23
+ "./hooks/useInputValueTransform": "./dist/hooks/useInputValueTransform/index.mjs",
24
+ "./hooks/useUniformField": "./dist/hooks/useUniformField/index.mjs",
25
+ "./hooks/useUniformFieldArray": "./dist/hooks/useUniformFieldArray/index.mjs",
26
+ "./hooks/useWatchFormReset": "./dist/hooks/useWatchFormReset/index.mjs",
27
+ "./hooks/useWatchUserChange": "./dist/hooks/useWatchUserChange/index.mjs",
28
+ "./Input": "./dist/Input/index.mjs",
29
+ "./partials/FieldCopyTestIdButton": "./dist/partials/FieldCopyTestIdButton/index.mjs",
30
+ "./partials/FieldValidationError": "./dist/partials/FieldValidationError/index.mjs",
31
+ "./RadioBoxes": "./dist/RadioBoxes/index.mjs",
32
+ "./Radios": "./dist/Radios/index.mjs",
33
+ "./RadioTabs": "./dist/RadioTabs/index.mjs",
34
+ "./Select": "./dist/Select/index.mjs",
35
+ "./Slider": "./dist/Slider/index.mjs",
36
+ "./SubmitButton": "./dist/SubmitButton/index.mjs",
37
+ "./Switch": "./dist/Switch/index.mjs",
38
+ "./SwitchBox": "./dist/SwitchBox/index.mjs",
39
+ "./TextArea": "./dist/TextArea/index.mjs",
40
+ "./Time": "./dist/Time/index.mjs",
131
41
  "./package.json": "./package.json"
132
42
  },
133
43
  "files": [
@@ -158,10 +68,10 @@
158
68
  "@dnd-kit/modifiers": "9.0.0",
159
69
  "@dnd-kit/sortable": "10.0.0",
160
70
  "@dnd-kit/utilities": "3.2.2",
161
- "@fuf-stack/pixel-motion": "1.2.2",
162
- "@fuf-stack/pixel-utils": "1.3.2",
163
- "@fuf-stack/pixels": "1.12.1",
164
- "@fuf-stack/veto": "1.8.0",
71
+ "@fuf-stack/pixel-motion": "1.3.0",
72
+ "@fuf-stack/pixel-utils": "1.4.0",
73
+ "@fuf-stack/pixels": "1.13.0",
74
+ "@fuf-stack/veto": "1.9.0",
165
75
  "@heroui/button": "2.2.32",
166
76
  "@heroui/checkbox": "2.3.32",
167
77
  "@heroui/date-input": "2.3.32",
@@ -178,8 +88,8 @@
178
88
  "@react-aria/visually-hidden": "3.9.1",
179
89
  "debug": "4.4.3",
180
90
  "framer-motion": "12.40.0",
181
- "react-hook-form": "7.80.0",
182
- "react-icons": "5.6.0",
91
+ "react-hook-form": "7.81.0",
92
+ "react-icons": "5.7.0",
183
93
  "react-select": "5.10.2"
184
94
  },
185
95
  "devDependencies": {
@@ -189,5 +99,5 @@
189
99
  "react": "19.2.7",
190
100
  "react-dom": "19.2.7"
191
101
  },
192
- "gitHead": "bcda57e280aa17c6b04b46a7b6f2dd26b39e2c38"
102
+ "gitHead": "349fecd188b6e688614c324c9bfbf7baac901379"
193
103
  }