react-hook-form 8.0.0-alpha.3 → 8.0.0-alpha.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 (293) hide show
  1. package/README.md +49 -460
  2. package/dist/constants.d.ts +21 -16
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/controller.d.ts +45 -46
  5. package/dist/controller.d.ts.map +1 -1
  6. package/dist/form.d.ts +27 -0
  7. package/dist/form.d.ts.map +1 -0
  8. package/dist/index.cjs.js +1 -1
  9. package/dist/index.cjs.js.map +1 -1
  10. package/dist/index.d.ts +11 -10
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.esm.mjs +2718 -2164
  13. package/dist/index.esm.mjs.map +1 -1
  14. package/dist/index.react-server.d.ts +3 -0
  15. package/dist/index.react-server.d.ts.map +1 -0
  16. package/dist/index.umd.js +1 -1
  17. package/dist/index.umd.js.map +1 -1
  18. package/dist/logic/appendErrors.d.ts +3 -3
  19. package/dist/logic/appendErrors.d.ts.map +1 -1
  20. package/dist/logic/createFormControl.d.ts +4 -2
  21. package/dist/logic/createFormControl.d.ts.map +1 -1
  22. package/dist/logic/generateId.d.ts +2 -2
  23. package/dist/logic/generateId.d.ts.map +1 -1
  24. package/dist/logic/generateWatchOutput.d.ts +3 -3
  25. package/dist/logic/generateWatchOutput.d.ts.map +1 -1
  26. package/dist/logic/getCheckboxValue.d.ts +6 -6
  27. package/dist/logic/getCheckboxValue.d.ts.map +1 -1
  28. package/dist/logic/getDirtyFields.d.ts +3 -2
  29. package/dist/logic/getDirtyFields.d.ts.map +1 -1
  30. package/dist/logic/getEventValue.d.ts +2 -2
  31. package/dist/logic/getEventValue.d.ts.map +1 -1
  32. package/dist/logic/getFieldValue.d.ts +2 -2
  33. package/dist/logic/getFieldValue.d.ts.map +1 -1
  34. package/dist/logic/getFieldValueAs.d.ts +3 -3
  35. package/dist/logic/getFieldValueAs.d.ts.map +1 -1
  36. package/dist/logic/getFocusFieldName.d.ts +3 -3
  37. package/dist/logic/getFocusFieldName.d.ts.map +1 -1
  38. package/dist/logic/getNodeParentName.d.ts +2 -2
  39. package/dist/logic/getNodeParentName.d.ts.map +1 -1
  40. package/dist/logic/getProxyFormState.d.ts +3 -3
  41. package/dist/logic/getProxyFormState.d.ts.map +1 -1
  42. package/dist/logic/getRadioValue.d.ts +6 -6
  43. package/dist/logic/getRadioValue.d.ts.map +1 -1
  44. package/dist/logic/getResolverOptions.d.ts +13 -30
  45. package/dist/logic/getResolverOptions.d.ts.map +1 -1
  46. package/dist/logic/getRuleValue.d.ts +3 -3
  47. package/dist/logic/getRuleValue.d.ts.map +1 -1
  48. package/dist/logic/getValidateError.d.ts +2 -2
  49. package/dist/logic/getValidateError.d.ts.map +1 -1
  50. package/dist/logic/getValidationModes.d.ts +4 -0
  51. package/dist/logic/getValidationModes.d.ts.map +1 -0
  52. package/dist/logic/getValueAndMessage.d.ts +6 -6
  53. package/dist/logic/getValueAndMessage.d.ts.map +1 -1
  54. package/dist/logic/hasPromiseValidation.d.ts +4 -0
  55. package/dist/logic/hasPromiseValidation.d.ts.map +1 -0
  56. package/dist/logic/hasValidation.d.ts +3 -3
  57. package/dist/logic/hasValidation.d.ts.map +1 -1
  58. package/dist/logic/index.d.ts +3 -2
  59. package/dist/logic/index.d.ts.map +1 -1
  60. package/dist/logic/isNameInFieldArray.d.ts +3 -3
  61. package/dist/logic/isNameInFieldArray.d.ts.map +1 -1
  62. package/dist/logic/isWatched.d.ts +3 -3
  63. package/dist/logic/isWatched.d.ts.map +1 -1
  64. package/dist/logic/iterateFieldsByAction.d.ts +4 -0
  65. package/dist/logic/iterateFieldsByAction.d.ts.map +1 -0
  66. package/dist/logic/schemaErrorLookup.d.ts +5 -5
  67. package/dist/logic/schemaErrorLookup.d.ts.map +1 -1
  68. package/dist/logic/shouldRenderFormState.d.ts +6 -3
  69. package/dist/logic/shouldRenderFormState.d.ts.map +1 -1
  70. package/dist/logic/shouldSubscribeByName.d.ts +2 -2
  71. package/dist/logic/shouldSubscribeByName.d.ts.map +1 -1
  72. package/dist/logic/skipValidation.d.ts +6 -11
  73. package/dist/logic/skipValidation.d.ts.map +1 -1
  74. package/dist/logic/unsetEmptyArray.d.ts +2 -2
  75. package/dist/logic/unsetEmptyArray.d.ts.map +1 -1
  76. package/dist/logic/updateFieldArrayRootError.d.ts +3 -3
  77. package/dist/logic/updateFieldArrayRootError.d.ts.map +1 -1
  78. package/dist/logic/validateField.d.ts +3 -3
  79. package/dist/logic/validateField.d.ts.map +1 -1
  80. package/dist/react-server.esm.mjs +1832 -0
  81. package/dist/react-server.esm.mjs.map +1 -0
  82. package/dist/types/controller.d.ts +59 -56
  83. package/dist/types/controller.d.ts.map +1 -1
  84. package/dist/types/errors.d.ts +35 -29
  85. package/dist/types/errors.d.ts.map +1 -1
  86. package/dist/types/events.d.ts +1 -1
  87. package/dist/types/events.d.ts.map +1 -1
  88. package/dist/types/fieldArray.d.ts +194 -191
  89. package/dist/types/fieldArray.d.ts.map +1 -1
  90. package/dist/types/fields.d.ts +30 -28
  91. package/dist/types/fields.d.ts.map +1 -1
  92. package/dist/types/form.d.ts +729 -603
  93. package/dist/types/form.d.ts.map +1 -1
  94. package/dist/types/index.d.ts +10 -10
  95. package/dist/types/path/common.d.ts +316 -0
  96. package/dist/types/path/common.d.ts.map +1 -0
  97. package/dist/types/path/eager.d.ts +135 -0
  98. package/dist/types/path/eager.d.ts.map +1 -0
  99. package/dist/types/path/index.d.ts +3 -7
  100. package/dist/types/path/index.d.ts.map +1 -1
  101. package/dist/types/resolvers.d.ts +19 -19
  102. package/dist/types/resolvers.d.ts.map +1 -1
  103. package/dist/types/utils.d.ts +71 -59
  104. package/dist/types/utils.d.ts.map +1 -1
  105. package/dist/types/validator.d.ts +42 -29
  106. package/dist/types/validator.d.ts.map +1 -1
  107. package/dist/useController.d.ts +26 -26
  108. package/dist/useController.d.ts.map +1 -1
  109. package/dist/useFieldArray.d.ts +39 -39
  110. package/dist/useFieldArray.d.ts.map +1 -1
  111. package/dist/useForm.d.ts +31 -31
  112. package/dist/useForm.d.ts.map +1 -1
  113. package/dist/useFormContext.d.ts +64 -63
  114. package/dist/useFormContext.d.ts.map +1 -1
  115. package/dist/useFormState.d.ts +32 -33
  116. package/dist/useFormState.d.ts.map +1 -1
  117. package/dist/useIsomorphicLayoutEffect.d.ts +3 -0
  118. package/dist/useIsomorphicLayoutEffect.d.ts.map +1 -0
  119. package/dist/useWatch.d.ts +190 -85
  120. package/dist/useWatch.d.ts.map +1 -1
  121. package/dist/utils/append.d.ts +2 -1
  122. package/dist/utils/append.d.ts.map +1 -1
  123. package/dist/utils/cloneObject.d.ts +1 -1
  124. package/dist/utils/cloneObject.d.ts.map +1 -1
  125. package/dist/utils/compact.d.ts +2 -2
  126. package/dist/utils/compact.d.ts.map +1 -1
  127. package/dist/utils/convertToArrayPayload.d.ts +2 -2
  128. package/dist/utils/convertToArrayPayload.d.ts.map +1 -1
  129. package/dist/utils/createSubject.d.ts +14 -13
  130. package/dist/utils/createSubject.d.ts.map +1 -1
  131. package/dist/utils/deepEqual.d.ts +1 -1
  132. package/dist/utils/deepEqual.d.ts.map +1 -1
  133. package/dist/utils/deepMerge.d.ts +1 -1
  134. package/dist/utils/deepMerge.d.ts.map +1 -1
  135. package/dist/utils/extractFormValues.d.ts +2 -0
  136. package/dist/utils/extractFormValues.d.ts.map +1 -0
  137. package/dist/utils/fillEmptyArray.d.ts +2 -2
  138. package/dist/utils/fillEmptyArray.d.ts.map +1 -1
  139. package/dist/utils/flatten.d.ts +3 -0
  140. package/dist/utils/flatten.d.ts.map +1 -0
  141. package/dist/utils/get.d.ts +2 -2
  142. package/dist/utils/get.d.ts.map +1 -1
  143. package/dist/utils/index.d.ts +3 -5
  144. package/dist/utils/index.d.ts.map +1 -1
  145. package/dist/utils/insert.d.ts +2 -2
  146. package/dist/utils/isBoolean.d.ts +2 -2
  147. package/dist/utils/isBoolean.d.ts.map +1 -1
  148. package/dist/utils/isCheckBoxInput.d.ts +3 -3
  149. package/dist/utils/isCheckBoxInput.d.ts.map +1 -1
  150. package/dist/utils/isDateObject.d.ts +2 -2
  151. package/dist/utils/isDateObject.d.ts.map +1 -1
  152. package/dist/utils/isEmptyObject.d.ts +3 -3
  153. package/dist/utils/isEmptyObject.d.ts.map +1 -1
  154. package/dist/utils/isFileInput.d.ts +3 -3
  155. package/dist/utils/isFileInput.d.ts.map +1 -1
  156. package/dist/utils/isFunction.d.ts +2 -2
  157. package/dist/utils/isFunction.d.ts.map +1 -1
  158. package/dist/utils/isHTMLElement.d.ts +2 -2
  159. package/dist/utils/isHTMLElement.d.ts.map +1 -1
  160. package/dist/utils/isKey.d.ts +2 -2
  161. package/dist/utils/isKey.d.ts.map +1 -1
  162. package/dist/utils/isMultipleSelect.d.ts +3 -3
  163. package/dist/utils/isMultipleSelect.d.ts.map +1 -1
  164. package/dist/utils/isNullOrUndefined.d.ts +2 -2
  165. package/dist/utils/isNullOrUndefined.d.ts.map +1 -1
  166. package/dist/utils/isObject.d.ts +3 -3
  167. package/dist/utils/isObject.d.ts.map +1 -1
  168. package/dist/utils/isPlainObject.d.ts +3 -0
  169. package/dist/utils/isPlainObject.d.ts.map +1 -0
  170. package/dist/utils/isPrimitive.d.ts +3 -3
  171. package/dist/utils/isPrimitive.d.ts.map +1 -1
  172. package/dist/utils/isRadioInput.d.ts +3 -3
  173. package/dist/utils/isRadioInput.d.ts.map +1 -1
  174. package/dist/utils/isRadioOrCheckbox.d.ts +3 -3
  175. package/dist/utils/isRadioOrCheckbox.d.ts.map +1 -1
  176. package/dist/utils/isRegex.d.ts +2 -2
  177. package/dist/utils/isRegex.d.ts.map +1 -1
  178. package/dist/utils/isString.d.ts +2 -2
  179. package/dist/utils/isString.d.ts.map +1 -1
  180. package/dist/utils/isUndefined.d.ts +2 -2
  181. package/dist/utils/isUndefined.d.ts.map +1 -1
  182. package/dist/utils/isWeb.d.ts +2 -2
  183. package/dist/utils/live.d.ts +3 -3
  184. package/dist/utils/live.d.ts.map +1 -1
  185. package/dist/utils/move.d.ts +2 -2
  186. package/dist/utils/move.d.ts.map +1 -1
  187. package/dist/utils/noop.d.ts +2 -0
  188. package/dist/utils/noop.d.ts.map +1 -0
  189. package/dist/utils/objectHasFunction.d.ts +2 -2
  190. package/dist/utils/objectHasFunction.d.ts.map +1 -1
  191. package/dist/utils/prepend.d.ts +2 -1
  192. package/dist/utils/prepend.d.ts.map +1 -1
  193. package/dist/utils/remove.d.ts +2 -2
  194. package/dist/utils/remove.d.ts.map +1 -1
  195. package/dist/utils/set.d.ts +3 -2
  196. package/dist/utils/set.d.ts.map +1 -1
  197. package/dist/utils/sleep.d.ts +3 -0
  198. package/dist/utils/sleep.d.ts.map +1 -0
  199. package/dist/utils/stringToPath.d.ts +2 -2
  200. package/dist/utils/stringToPath.d.ts.map +1 -1
  201. package/dist/utils/swap.d.ts +2 -2
  202. package/dist/utils/swap.d.ts.map +1 -1
  203. package/dist/utils/unset.d.ts +1 -1
  204. package/dist/utils/unset.d.ts.map +1 -1
  205. package/dist/utils/update.d.ts +2 -2
  206. package/dist/utils/update.d.ts.map +1 -1
  207. package/dist/utils/updateMethodsReference.d.ts +4 -0
  208. package/dist/utils/updateMethodsReference.d.ts.map +1 -0
  209. package/package.json +84 -82
  210. package/dist/__typetests__/__fixtures__/index.d.ts +0 -2
  211. package/dist/__typetests__/__fixtures__/index.d.ts.map +0 -1
  212. package/dist/__typetests__/__fixtures__/type.d.ts +0 -12
  213. package/dist/__typetests__/__fixtures__/type.d.ts.map +0 -1
  214. package/dist/__typetests__/types/__fixtures__/index.d.ts +0 -4
  215. package/dist/__typetests__/types/__fixtures__/index.d.ts.map +0 -1
  216. package/dist/__typetests__/types/__fixtures__/pathString.d.ts +0 -4
  217. package/dist/__typetests__/types/__fixtures__/pathString.d.ts.map +0 -1
  218. package/dist/__typetests__/types/__fixtures__/traversable.d.ts +0 -14
  219. package/dist/__typetests__/types/__fixtures__/traversable.d.ts.map +0 -1
  220. package/dist/__typetests__/types/__fixtures__/tuple.d.ts +0 -15
  221. package/dist/__typetests__/types/__fixtures__/tuple.d.ts.map +0 -1
  222. package/dist/__typetests__/types/form.test-d.d.ts +0 -2
  223. package/dist/__typetests__/types/form.test-d.d.ts.map +0 -1
  224. package/dist/__typetests__/types/path/auto.test-d.d.ts +0 -2
  225. package/dist/__typetests__/types/path/auto.test-d.d.ts.map +0 -1
  226. package/dist/__typetests__/types/path/internal/autoCompletePath.test-d.d.ts +0 -2
  227. package/dist/__typetests__/types/path/internal/autoCompletePath.test-d.d.ts.map +0 -1
  228. package/dist/__typetests__/types/path/internal/hasPath.test-d.d.ts +0 -2
  229. package/dist/__typetests__/types/path/internal/hasPath.test-d.d.ts.map +0 -1
  230. package/dist/__typetests__/types/path/internal/keys.test-d.d.ts +0 -2
  231. package/dist/__typetests__/types/path/internal/keys.test-d.d.ts.map +0 -1
  232. package/dist/__typetests__/types/path/internal/pathGetValue.test-d.d.ts +0 -2
  233. package/dist/__typetests__/types/path/internal/pathGetValue.test-d.d.ts.map +0 -1
  234. package/dist/__typetests__/types/path/internal/pathSetValue.test-d.d.ts +0 -2
  235. package/dist/__typetests__/types/path/internal/pathSetValue.test-d.d.ts.map +0 -1
  236. package/dist/__typetests__/types/path/internal/pathTuple.test-d.d.ts +0 -2
  237. package/dist/__typetests__/types/path/internal/pathTuple.test-d.d.ts.map +0 -1
  238. package/dist/__typetests__/types/path/internal/utils.test-d.d.ts +0 -2
  239. package/dist/__typetests__/types/path/internal/utils.test-d.d.ts.map +0 -1
  240. package/dist/__typetests__/types/path/lazy.test-d.d.ts +0 -2
  241. package/dist/__typetests__/types/path/lazy.test-d.d.ts.map +0 -1
  242. package/dist/__typetests__/types/path/value.test-d.d.ts +0 -2
  243. package/dist/__typetests__/types/path/value.test-d.d.ts.map +0 -1
  244. package/dist/__typetests__/types/util.test-d.d.ts +0 -2
  245. package/dist/__typetests__/types/util.test-d.d.ts.map +0 -1
  246. package/dist/__typetests__/utils/join.test-d.d.ts +0 -2
  247. package/dist/__typetests__/utils/join.test-d.d.ts.map +0 -1
  248. package/dist/__typetests__/utils/of.test-d.d.ts +0 -2
  249. package/dist/__typetests__/utils/of.test-d.d.ts.map +0 -1
  250. package/dist/logic/focusFieldBy.d.ts +0 -4
  251. package/dist/logic/focusFieldBy.d.ts.map +0 -1
  252. package/dist/logic/setCustomValidty.d.ts +0 -3
  253. package/dist/logic/setCustomValidty.d.ts.map +0 -1
  254. package/dist/types/path/auto.d.ts +0 -76
  255. package/dist/types/path/auto.d.ts.map +0 -1
  256. package/dist/types/path/branded.d.ts +0 -61
  257. package/dist/types/path/branded.d.ts.map +0 -1
  258. package/dist/types/path/internal/autoCompletePath.d.ts +0 -173
  259. package/dist/types/path/internal/autoCompletePath.d.ts.map +0 -1
  260. package/dist/types/path/internal/hasPath.d.ts +0 -56
  261. package/dist/types/path/internal/hasPath.d.ts.map +0 -1
  262. package/dist/types/path/internal/keys.d.ts +0 -103
  263. package/dist/types/path/internal/keys.d.ts.map +0 -1
  264. package/dist/types/path/internal/pathGetValue.d.ts +0 -76
  265. package/dist/types/path/internal/pathGetValue.d.ts.map +0 -1
  266. package/dist/types/path/internal/pathSetValue.d.ts +0 -96
  267. package/dist/types/path/internal/pathSetValue.d.ts.map +0 -1
  268. package/dist/types/path/internal/pathTuple.d.ts +0 -73
  269. package/dist/types/path/internal/pathTuple.d.ts.map +0 -1
  270. package/dist/types/path/internal/utils.d.ts +0 -84
  271. package/dist/types/path/internal/utils.d.ts.map +0 -1
  272. package/dist/types/path/lazy.d.ts +0 -62
  273. package/dist/types/path/lazy.d.ts.map +0 -1
  274. package/dist/types/path/pathString.d.ts +0 -6
  275. package/dist/types/path/pathString.d.ts.map +0 -1
  276. package/dist/types/path/value.d.ts +0 -49
  277. package/dist/types/path/value.d.ts.map +0 -1
  278. package/dist/useSubscribe.d.ts +0 -9
  279. package/dist/useSubscribe.d.ts.map +0 -1
  280. package/dist/utils/fillBooleanArray.d.ts +0 -3
  281. package/dist/utils/fillBooleanArray.d.ts.map +0 -1
  282. package/dist/utils/getValidationModes.d.ts +0 -9
  283. package/dist/utils/getValidationModes.d.ts.map +0 -1
  284. package/dist/utils/isMessage.d.ts +0 -3
  285. package/dist/utils/isMessage.d.ts.map +0 -1
  286. package/dist/utils/isSelectInput.d.ts +0 -4
  287. package/dist/utils/isSelectInput.d.ts.map +0 -1
  288. package/dist/utils/join.d.ts +0 -16
  289. package/dist/utils/join.d.ts.map +0 -1
  290. package/dist/utils/of.d.ts +0 -13
  291. package/dist/utils/of.d.ts.map +0 -1
  292. package/dist/utils/omit.d.ts +0 -3
  293. package/dist/utils/omit.d.ts.map +0 -1
package/README.md CHANGED
@@ -4,9 +4,6 @@
4
4
  </a>
5
5
  </div>
6
6
 
7
-
8
- https://user-images.githubusercontent.com/10513364/152621466-59a41c65-52b4-4518-9d79-ffa3fafa498a.mp4
9
-
10
7
  <div align="center">
11
8
 
12
9
  [![npm downloads](https://img.shields.io/npm/dm/react-hook-form.svg?style=for-the-badge)](https://www.npmjs.com/package/react-hook-form)
@@ -18,11 +15,10 @@ https://user-images.githubusercontent.com/10513364/152621466-59a41c65-52b4-4518-
18
15
 
19
16
  <p align="center">
20
17
  <a href="https://react-hook-form.com/get-started">Get started</a> |
21
- <a href="https://react-hook-form.com/api">API</a> |
22
- <a href="https://github.com/bluebill1049/react-hook-form/tree/master/examples">Examples</a> |
23
- <a href="https://react-hook-form.com">Demo</a> |
18
+ <a href="https://react-hook-form.com/docs">API</a> |
24
19
  <a href="https://react-hook-form.com/form-builder">Form Builder</a> |
25
- <a href="https://react-hook-form.com/faqs">FAQs</a>
20
+ <a href="https://react-hook-form.com/faqs">FAQs</a> |
21
+ <a href="https://github.com/react-hook-form/react-hook-form/tree/master/examples">Examples</a>
26
22
  </p>
27
23
 
28
24
  ### Features
@@ -31,7 +27,7 @@ https://user-images.githubusercontent.com/10513364/152621466-59a41c65-52b4-4518-
31
27
  - Embraces native HTML form [validation](https://react-hook-form.com/get-started#Applyvalidation)
32
28
  - Out of the box integration with [UI libraries](https://codesandbox.io/s/react-hook-form-v7-controller-5h1q5)
33
29
  - [Small size](https://bundlephobia.com/result?p=react-hook-form@latest) and no [dependencies](./package.json)
34
- - Support [Yup](https://github.com/jquense/yup), [Zod](https://github.com/vriad/zod), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi), [Vest](https://github.com/ealush/vest), [class-validator](https://github.com/typestack/class-validator), [io-ts](https://github.com/gcanti/io-ts), [nope](https://github.com/bvego/nope-validator) and custom
30
+ - Support [Yup](https://github.com/jquense/yup), [Zod](https://github.com/colinhacks/zod), [AJV](https://github.com/ajv-validator/ajv), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi) and [others](https://github.com/react-hook-form/resolvers)
35
31
 
36
32
  ### Install
37
33
 
@@ -40,7 +36,6 @@ https://user-images.githubusercontent.com/10513364/152621466-59a41c65-52b4-4518-
40
36
  ### Quickstart
41
37
 
42
38
  ```jsx
43
- import React from 'react';
44
39
  import { useForm } from 'react-hook-form';
45
40
 
46
41
  function App() {
@@ -49,10 +44,9 @@ function App() {
49
44
  handleSubmit,
50
45
  formState: { errors },
51
46
  } = useForm();
52
- const onSubmit = (data) => console.log(data);
53
47
 
54
48
  return (
55
- <form onSubmit={handleSubmit(onSubmit)}>
49
+ <form onSubmit={handleSubmit((data) => console.log(data))}>
56
50
  <input {...register('firstName')} />
57
51
  <input {...register('lastName', { required: true })} />
58
52
  {errors.lastName && <p>Last name is required.</p>}
@@ -64,424 +58,50 @@ function App() {
64
58
  }
65
59
  ```
66
60
 
67
- <a href="https://ui.dev/bytes/?r=bill">
68
- <img src="https://raw.githubusercontent.com/react-hook-form/react-hook-form/master/docs/ads-1.jpeg" />
69
- </a>
70
-
71
61
  ### Sponsors
72
62
 
73
- Thanks go to these kind and lovely sponsors (companies and individuals)!
74
-
75
- <a href="https://underbelly.is/" target="_blank">
76
- <img src="https://images.opencollective.com/underbelly/989a4a6/logo/256.png" width="94" height="94" />
77
- </a>
78
- <a href="https://www.leniolabs.com/" target="_blank">
79
- <img src="https://images.opencollective.com/leniolabs_/63e9b6e/logo/256.png" width="94" height="94" />
80
- </a>
81
- <a href="https://graphcms.com/" target="_blank">
82
- <img src="https://avatars.githubusercontent.com/u/31031438?s=200&v=4" width="94" height="94" />
83
- </a>
84
- <a href="https://kanamekey.com/" target="_blank">
85
- <img src="https://images.opencollective.com/kaname/d15fd98/logo/256.png" width="94" height="94" />
86
- </a>
87
- <a href="https://marmelab.com/" target="_blank">
88
- <img src="https://images.opencollective.com/marmelab/d7fd82f/logo/256.png" width="94" height="94" />
89
- </a>
90
- <a href="https://www.feathery.io/" target="_blank">
91
- <img src="https://images.opencollective.com/feathery1/c29b0a1/logo/256.png" width="94" height="94" />
92
- </a>
93
-
94
- <p>
95
- <a href="https://github.com/sayav">
96
- <img
97
- src="https://avatars1.githubusercontent.com/u/42376060?s=60&amp;v=4"
98
- width="45"
99
- height="45"
100
- alt="@sayav"
101
- />
102
- </a>
103
- <a href="https://github.com/lemcii">
104
- <img
105
- src="https://avatars1.githubusercontent.com/u/35668113?s=60&amp;v=4"
106
- width="45"
107
- height="45"
108
- alt="@lemcii"
109
- />
110
- </a>
111
- <a href="https://github.com/washingtonsoares">
112
- <img
113
- src="https://avatars.githubusercontent.com/u/5726140?v=4"
114
- width="45"
115
- height="45"
116
- alt="@washingtonsoares"
117
- />
118
- </a>
119
- <a href="https://github.com/lixunn">
120
- <img
121
- src="https://avatars.githubusercontent.com/u/4017964?v=4"
122
- width="45"
123
- height="45"
124
- alt="@lixunn"
125
- />
126
- </a>
127
- <a href="https://github.com/SamSamskies">
128
- <img
129
- src="https://avatars2.githubusercontent.com/u/3655410?s=60&amp;v=4"
130
- width="45"
131
- height="45"
132
- alt="@SamSamskies"
133
- />
134
- </a>
135
- <a href="https://github.com/peaonunes">
136
- <img
137
- src="https://avatars2.githubusercontent.com/u/3356720?s=60&amp;v=4"
138
- width="45"
139
- height="45"
140
- alt="@peaonunes"
141
- />
142
- </a>
143
- <a href="https://github.com/wilhelmeek">
144
- <img
145
- src="https://avatars2.githubusercontent.com/u/609452?s=60&amp;v=4"
146
- width="45"
147
- height="45"
148
- alt="@wilhelmeek"
149
- />
150
- </a>
151
- <a href="https://github.com/iwarner">
152
- <img
153
- src="https://avatars2.githubusercontent.com/u/279251?s=60&amp;v=4"
154
- width="45"
155
- height="45"
156
- alt="@iwarner"
157
- />
158
- </a>
159
- <a href="https://github.com/joejknowles">
160
- <img
161
- src="https://avatars2.githubusercontent.com/u/10728145?s=60&amp;v=4"
162
- width="45"
163
- height="45"
164
- alt="@joejknowles"
165
- />
166
- </a>
167
- <a href="https://github.com/chris-gunawardena">
168
- <img
169
- src="https://avatars0.githubusercontent.com/u/5763108?s=60&amp;v=4"
170
- width="45"
171
- height="45"
172
- alt="@chris-gunawardena"
173
- />
174
- </a>
175
- <a href="https://github.com/Tymek">
176
- <img
177
- src="https://avatars1.githubusercontent.com/u/2625371?s=60&amp;v=4"
178
- width="45"
179
- height="45"
180
- alt="@Tymek"
181
- />
182
- </a>
183
- <a href="https://github.com/Luchanso">
184
- <img
185
- src="https://avatars0.githubusercontent.com/u/2098777?s=60&amp;v=4"
186
- width="45"
187
- height="45"
188
- alt="@Luchanso"
189
- />
190
- </a>
191
- <a href="https://github.com/vcarel">
192
- <img
193
- src="https://avatars1.githubusercontent.com/u/1541093?s=60&amp;v=4"
194
- width="45"
195
- height="45"
196
- alt="@vcarel"
197
- />
198
- </a>
199
- <a href="https://github.com/gragland">
200
- <img
201
- src="https://avatars0.githubusercontent.com/u/1481077?s=60&amp;v=4"
202
- width="45"
203
- height="45"
204
- alt="@gragland"
205
- />
206
- </a>
207
- <a href="https://github.com/tjshipe">
208
- <img
209
- src="https://avatars2.githubusercontent.com/u/1254942?s=60&amp;v=4"
210
- width="45"
211
- height="45"
212
- alt="@tjshipe"
213
- />
214
- </a>
215
- <a href="https://github.com/krnlde">
216
- <img
217
- src="https://avatars1.githubusercontent.com/u/1087002?s=60&amp;v=4"
218
- width="45"
219
- height="45"
220
- alt="@krnlde"
221
- />
222
- </a>
223
- <a href="https://github.com/msutkowski">
224
- <img
225
- src="https://avatars2.githubusercontent.com/u/784953?s=60&amp;v=4"
226
- width="45"
227
- height="45"
228
- alt="@msutkowski"
229
- />
230
- </a>
231
- <a href="https://github.com/mlukaszczyk">
232
- <img
233
- src="https://avatars3.githubusercontent.com/u/599247?s=60&amp;v=4"
234
- width="45"
235
- height="45"
236
- alt="@mlukaszczyk"
237
- />
238
- </a>
239
- <a href="https://github.com/susshma">
240
- <img
241
- src="https://avatars0.githubusercontent.com/u/2566818?s=460&u=754ee26b96e321ff28dbc4a2744132015f534fe0&v=4"
242
- width="45"
243
- height="45"
244
- />
245
- </a>
246
- <a href="https://github.com/MatiasCiccone">
247
- <img
248
- src="https://avatars3.githubusercontent.com/u/32602795?s=460&u=6a0c4dbe23c4f9a5628dc8867842b75989ecc4aa&v=4"
249
- width="45"
250
- height="45"
251
- />
252
- </a>
253
- <a href="https://github.com/ghostwriternr">
254
- <img
255
- src="https://avatars0.githubusercontent.com/u/10023615?s=460&u=3ec1e4ba991699762fd22a9d9ef47a0599f937dc&v=4"
256
- width="45"
257
- height="45"
258
- />
259
- </a>
260
- <a href="https://github.com/neighborhood999">
261
- <img
262
- src="https://avatars3.githubusercontent.com/u/10325111?s=450&u=f60c932f81d95a60f77f5c7f2eab4590e07c29af&v=4"
263
- width="45"
264
- height="45"
265
- />
266
- </a>
267
- <a href="https://github.com/yjp20">
268
- <img
269
- src="https://avatars3.githubusercontent.com/u/44457064?s=460&u=a55119c84e0167f6a3f830dbad3133b28f0c0a8f&v=4"
270
- width="45"
271
- height="45"
272
- />
273
- </a>
274
- <a href="https://github.com/samantha-wong">
275
- <img
276
- src="https://avatars.githubusercontent.com/u/19571028?s=460&u=7421a02f600646b5836d5973359a257950cae8c4&v=4"
277
- width="45"
278
- height="45"
279
- />
280
- </a>
281
- <a href="https://github.com/msc-insure">
282
- <img
283
- src="https://avatars.githubusercontent.com/u/44406870?s=200&v=4"
284
- width="45"
285
- height="45"
286
- />
287
- </a>
288
- <a href="https://github.com/ccheney">
289
- <img
290
- src="https://avatars.githubusercontent.com/u/302437?v=4"
291
- width="45"
292
- height="45"
293
- />
294
- </a>
295
- <a href="https://github.com/artischockee">
296
- <img
297
- src="https://avatars.githubusercontent.com/u/22125223?v=4"
298
- width="45"
299
- height="45"
300
- />
301
- </a>
302
- <a href="https://github.com/tsongas">
303
- <img
304
- src="https://avatars.githubusercontent.com/u/2079598?v=4"
305
- width="45"
306
- height="45"
307
- />
308
- </a>
309
- <a href="https://github.com/knoefel">
310
- <img
311
- src="https://avatars.githubusercontent.com/u/2396344?v=4"
312
- width="45"
313
- height="45"
314
- />
315
- </a>
316
- <a href="https://github.com/JGibel">
317
- <img
318
- src="https://avatars.githubusercontent.com/u/1953965?v=4"
319
- width="45"
320
- height="45"
321
- />
322
- </a>
323
- <a href="https://github.com/gpalrepo">
324
- <img
325
- src="https://avatars.githubusercontent.com/u/41862257?v=4"
326
- width="45"
327
- height="45"
328
- />
329
- </a>
330
- <a href="https://github.com/pjsachdev">
331
- <img
332
- src="https://avatars.githubusercontent.com/u/43356139?v=4"
333
- width="45"
334
- height="45"
335
- />
336
- </a>
337
- <a href="https://github.com/svict4">
338
- <img
339
- src="https://avatars.githubusercontent.com/u/1137112?v=4"
340
- width="45"
341
- height="45"
342
- />
343
- </a>
344
- <a href="https://github.com/raisiqueira">
345
- <img
346
- src="https://avatars.githubusercontent.com/u/2914170?v=4"
347
- width="45"
348
- height="45"
349
- />
350
- </a>
351
- <a href="https://github.com/pashtet422">
352
- <img
353
- src="https://avatars.githubusercontent.com/u/45594821?v=4"
354
- width="45"
355
- height="45"
356
- />
357
- </a>
358
- <a href="https://github.com/ozywuli">
359
- <img
360
- src="https://avatars.githubusercontent.com/u/5769153?v=4"
361
- width="45"
362
- height="45"
363
- />
364
- </a>
365
- <a href="https://github.com/monkey0722">
366
- <img
367
- src="https://avatars.githubusercontent.com/u/12868063?v=4"
368
- width="45"
369
- height="45"
370
- />
371
- </a>
372
- <a href="https://github.com/KATT">
373
- <img
374
- src="https://avatars.githubusercontent.com/u/459267?v=4"
375
- width="45"
376
- height="45"
377
- />
378
- </a>
379
- <a href="https://github.com/jeroenvisser101">
380
- <img
381
- src="https://avatars.githubusercontent.com/u/1941348?v=4"
382
- width="45"
383
- height="45"
384
- />
385
- </a>
386
- <a href="https://github.com/sainu">
387
- <img
388
- src="https://avatars.githubusercontent.com/u/12888685?v=4"
389
- width="45"
390
- height="45"
391
- />
392
- </a>
393
- <a href="https://github.com/bkincart">
394
- <img
395
- src="https://avatars.githubusercontent.com/u/22803185?v=4"
396
- width="45"
397
- height="45"
398
- />
399
- </a>
400
- <a href="https://github.com/37108">
401
- <img
402
- src="https://avatars.githubusercontent.com/u/36793907?v=4"
403
- width="45"
404
- height="45"
405
- />
406
- </a>
407
- <a href="https://github.com/TadejPolajnar">
408
- <img
409
- src="https://avatars.githubusercontent.com/u/40028548?v=4"
410
- width="45"
411
- height="45"
412
- />
413
- </a>
414
- <a href="https://github.com/hahnlee">
415
- <img
416
- src="https://avatars.githubusercontent.com/u/16930958?v=4"
417
- width="45"
418
- height="45"
419
- />
420
- </a>
421
- <a href="https://github.com/ACPK">
422
- <img
423
- src="https://avatars.githubusercontent.com/u/2019893?v=4"
424
- width="45"
425
- height="45"
426
- />
427
- </a>
428
- <a href="https://github.com/alex-semenyuk">
429
- <img
430
- src="https://avatars.githubusercontent.com/u/5480441?v=4"
431
- width="45"
432
- height="45"
433
- />
434
- </a>
435
- <a href="https://github.com/Peter-AMD">
436
- <img
437
- src="https://avatars.githubusercontent.com/u/28400709?v=4"
438
- width="45"
439
- height="45"
440
- />
441
- </a>
442
- <a href="https://github.com/hjaber">
443
- <img
444
- src="https://avatars.githubusercontent.com/u/41503068?v=4"
445
- width="45"
446
- height="45"
447
- />
448
- </a>
449
- <a href="https://github.com/jprosevear">
450
- <img
451
- src="https://avatars.githubusercontent.com/u/699616?v=4"
452
- width="45"
453
- height="45"
454
- />
455
- </a>
456
- <a href="https://github.com/weisisheng">
457
- <img
458
- src="https://avatars.githubusercontent.com/u/47701145?v=4"
459
- width="45"
460
- height="45"
461
- />
462
- </a>
463
- <a href="https://github.com/IanVS">
464
- <img
465
- src="https://avatars.githubusercontent.com/u/4616705?v=4"
466
- width="45"
467
- height="45"
468
- />
469
- </a>
470
- <a href="https://github.com/anymaniax">
471
- <img
472
- src="https://avatars.githubusercontent.com/u/10516382?v=4"
473
- width="45"
474
- height="45"
475
- />
476
- </a>
477
- </p>
63
+ We’re incredibly grateful to these kind and generous sponsors for their support!
64
+
65
+ <a target="_blank" href="https://www.follower24.de/"><img width="120" src="https://images.opencollective.com/follower24/00297f8/avatar/256.png?height=256" /></a>
66
+ <a target="_blank" href='https://workleap.com/'><img width="120" src="https://images.opencollective.com/workleap/db82f38/logo/256.png?height=256" /></a>
67
+ <a target="_blank" href="https://kinsta.com/"><img width="120" src="https://images.opencollective.com/kinsta/55912d7/logo/256.png?height=256" /></a>
68
+ <a target="_blank" href='https://www.sent.dm'><img width="120" src="https://avatars.githubusercontent.com/u/153308555?s=200&v=4" /></a>
69
+ <a target="_blank" href='https://www.sgkb.ch/'><img width="120" src="https://images.opencollective.com/st-galler-kantonalbank-ag/bfdd17f/logo/256.png?height=256" /></a>
70
+ <a target="_blank" href='https://route4me.com/'><img width="120" src="https://images.opencollective.com/route4me/71fb6fa/avatar/256.png?height=256" /></a>
71
+ <a target="_blank" href='https://niche.com'><img width="120" src="https://avatars.githubusercontent.com/u/8988784?s=200&v=4" /></a>
72
+ <a target="_blank" href='https://toss.im'><img width="120" src="https://images.opencollective.com/toss/3ed69b3/logo/256.png" /></a>
73
+ <a target="_blank" href='https://principal.com/about-us'><img width="120" src="https://images.opencollective.com/principal/431e690/logo/256.png?height=256" /></a>
74
+ <a target="_blank" href="https://hygraph.com"><img width="120" src="https://avatars.githubusercontent.com/u/31031438" /></a>
75
+ <a target="_blank" href="https://www.beekai.com/"><img width="120" src="https://www.beekai.com/marketing/logo/logo.svg" /></a>
76
+ <a target="_blank" href="https://kanamekey.com"><img width="120" src="https://images.opencollective.com/kaname/d15fd98/logo/256.png" /></a>
77
+
78
+ ### Past Sponsors
79
+
80
+ Thank you to our previous sponsors for your generous support!
81
+
82
+ <a target="_blank" href='https://www.sanity.io/'><img width="24" height="24" src="https://images.opencollective.com/sanity_io/558f87f/logo/256.png?height=256" /></a>
83
+ <a target="_blank" href='https://twicsy.com/'><img width="24" height="24" src="https://images.opencollective.com/buy-instagram-followers-twicsy/b4c5d7f/logo/256.png?height=256" /></a>
84
+ <a href="https://www.leniolabs.com/" target="_blank"><img src="https://www.leniolabs.com/images/leniolabs-isologo-example.jpg" width="24" height="24" /></a>
85
+ <a target="_blank" href="https://underbelly.is"><img width="24" src="https://images.opencollective.com/underbelly/989a4a6/logo/256.png" /></a>
86
+ <a target="_blank" href="https://feathery.io"><img width="24" src="https://images.opencollective.com/feathery1/c29b0a1/logo/256.png" /></a>
87
+ <a target="_blank" href="https://getform.io"><img width="24" src="https://images.opencollective.com/getformio2/3c978c8/avatar/256.png" /></a>
88
+ <a href="https://marmelab.com/" target="_blank"><img src="https://images.opencollective.com/marmelab/d7fd82f/logo/256.png" width="24" height="24" /></a>
89
+ <a target="_blank" href="https://formcarry.com/"><img width="24" src="https://images.opencollective.com/formcarry/a40a4ea/logo/256.png" /></a>
90
+ <a target="_blank" href="https://fabform.io"><img width="24" src="https://images.opencollective.com/fabform/2834037/logo/256.png" /></a>
91
+ <a target="_blank" href="https://www.thinkmill.com.au/"><img width="24" src="https://images.opencollective.com/thinkmill/28910ec/logo/256.png" /></a>
92
+ <a target="_blank" href="https://kwork.studio/"><img width="24" src="https://images.opencollective.com/knowledge-work/f91b72d/logo/256.png" /></a>
93
+ <a target="_blank" href="https://fiberplane.com/"><img width="24" src="https://avatars.githubusercontent.com/u/61152955?s=200&v=4" /></a>
94
+ <a target="_blank" href="https://www.jetbrains.com/"><img width="24" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" /></a>
95
+ <a target="_blank" href="https://www.mirakl.com/"><img width="24" src="https://images.opencollective.com/mirakl/0b191f0/logo/256.png" /></a>
96
+ <a target="_blank" href='https://wantedlyinc.com'><img width="24" src="https://images.opencollective.com/wantedly/d94e44e/logo/256.png" /></a>
97
+ <a target="_blank" href="https://www.casinoreviews.net/"><img width="24" src="https://images.opencollective.com/casinoreviews/f0877d1/logo/256.png" /></a>
478
98
 
479
99
  ### Backers
480
100
 
481
101
  Thanks go to all our backers! [[Become a backer](https://opencollective.com/react-hook-form#backer)].
482
102
 
483
103
  <a href="https://opencollective.com/react-hook-form#backers">
484
- <img src="https://opencollective.com/react-hook-form/backers.svg?width=950" />
104
+ <img src="https://opencollective.com/react-hook-form/backers.svg?width=820" />
485
105
  </a>
486
106
 
487
107
  ### Contributors
@@ -489,48 +109,17 @@ Thanks go to all our backers! [[Become a backer](https://opencollective.com/reac
489
109
  Thanks go to these wonderful people! [[Become a contributor](CONTRIBUTING.md)].
490
110
 
491
111
  <a href="https://github.com/react-hook-form/react-hook-form/graphs/contributors">
492
- <img src="https://opencollective.com/react-hook-form/contributors.svg?width=890&button=false" />
112
+ <img src="https://opencollective.com/react-hook-form/contributors.svg?width=820" />
493
113
  </a>
494
114
 
495
- ### Helpers
115
+ <br />
116
+ <br />
496
117
 
497
- Thank you for helping and answering questions from the community.
498
-
499
- <a href="https://github.com/leapful">
500
- <img src="https://avatars.githubusercontent.com/u/18494222?v=4" width="25" />
501
- </a>
502
- <a href="https://github.com/thanh-nguyen-95">
503
- <img src="https://avatars.githubusercontent.com/u/44762180?v=4" width="25" />
504
- </a>
505
- <a href="https://github.com/slugmandrew">
506
- <img src="https://avatars.githubusercontent.com/u/153625?v=4" width="25" />
507
- </a>
508
- <a href="https://github.com/lundn">
509
- <img src="https://avatars.githubusercontent.com/u/4386964?v=4" width="25" />
510
- </a>
511
- <a href="https://github.com/ritikbanger">
512
- <img src="https://avatars.githubusercontent.com/u/47841501?v=4" width="25" />
513
- </a>
514
- <a href="https://github.com/fahadsohail482">
515
- <img src="https://avatars.githubusercontent.com/u/46647496?v=4" width="25" />
516
- </a>
517
- <a href="https://github.com/getTobiasNielsen">
518
- <img src="https://avatars.githubusercontent.com/u/54803528?v=4" width="25" />
519
- </a>
520
- <a href="https://github.com/jfreedman0212">
521
- <img src="https://avatars.githubusercontent.com/u/31392256?v=4" width="25" />
522
- </a>
523
- <a href="https://github.com/marr">
524
- <img src="https://avatars.githubusercontent.com/u/44376?v=4" width="25" />
525
- </a>
526
- <a href="https://github.com/Moshyfawn">
527
- <img src="https://avatars.githubusercontent.com/u/16290753?v=4" width="25" />
118
+ <a href="https://ui.dev/bytes/?r=bill">
119
+ <img src="https://raw.githubusercontent.com/react-hook-form/react-hook-form/master/docs/ads-1.jpeg" />
528
120
  </a>
529
121
 
530
- ### Organizations
122
+ <br />
123
+ <br />
531
124
 
532
- Thanks go to these wonderful organizations! [[Contribute](https://opencollective.com/react-hook-form/contribute)].
533
-
534
- <a href="https://github.com/react-hook-form/react-hook-form/graphs/contributors">
535
- <img src="https://opencollective.com/react-hook-form/organizations.svg?width=890" />
536
- </a>
125
+ <p align="center">Documentation website supported and backed by <a href="https://vercel.com"><b>Vercel</b></a></p>
@@ -1,17 +1,22 @@
1
- import { ValidationMode } from './types';
2
- export declare const EVENTS: {
3
- BLUR: string;
4
- FOCUS_OUT: string;
5
- CHANGE: string;
6
- };
7
- export declare const VALIDATION_MODE: ValidationMode;
8
- export declare const INPUT_VALIDATION_RULES: {
9
- max: string;
10
- min: string;
11
- maxLength: string;
12
- minLength: string;
13
- pattern: string;
14
- required: string;
15
- validate: string;
16
- };
1
+ export declare const EVENTS: {
2
+ readonly BLUR: "blur";
3
+ readonly FOCUS_OUT: "focusout";
4
+ readonly CHANGE: "change";
5
+ };
6
+ export declare const VALIDATION_MODE: {
7
+ readonly onBlur: "onBlur";
8
+ readonly onChange: "onChange";
9
+ readonly onSubmit: "onSubmit";
10
+ readonly onTouched: "onTouched";
11
+ readonly all: "all";
12
+ };
13
+ export declare const INPUT_VALIDATION_RULES: {
14
+ readonly max: "max";
15
+ readonly min: "min";
16
+ readonly maxLength: "maxLength";
17
+ readonly minLength: "minLength";
18
+ readonly pattern: "pattern";
19
+ readonly required: "required";
20
+ readonly validate: "validate";
21
+ };
17
22
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAM7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;CAQlC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC"}