Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Created November 27, 2023 01:43
Show Gist options
  • Save mary-ext/dc34936fce7d4c5270983dd4fe8b1a4e to your computer and use it in GitHub Desktop.
Save mary-ext/dc34936fce7d4c5270983dd4fe8b1a4e to your computer and use it in GitHub Desktop.
diff --git a/dist/esm/index.js b/dist/esm/index.js
index 2fe5ec67e1bd5f86653cfa49a9ab40c2e75afda3..9521be9e7b4368dad9f3d73238b611f8f10a3067 100644
--- a/dist/esm/index.js
+++ b/dist/esm/index.js
@@ -2122,18 +2122,13 @@ function swap(form, name, {
/**
* Handles the lifecycle dependent state of a field or field array.
*
+ * @param getStore The field store.
* @param props The lifecycle properties.
*/
-function createLifecycle({
- of: form,
- name,
- getStore,
- validate,
- transform,
- keepActive = false,
- keepState = true
-}) {
+function createLifecycle(getStore, props) {
createEffect(() => {
+ const { of: form, name, validate, transform, keepActive = false, keepState = true } = props;
+
// Get store of field or field array
const store = getStore();
@@ -2208,9 +2203,7 @@ function Field(props) {
// Create lifecycle of field
// eslint-disable-next-line solid/reactivity
- createLifecycle(mergeProps({
- getStore: getField
- }, props));
+ createLifecycle(getField, props);
return memo(() => props.children({
get name() {
return props.name;
@@ -2281,9 +2274,7 @@ function FieldArray(props) {
// Create lifecycle of field array
// eslint-disable-next-line solid/reactivity
- createLifecycle(mergeProps({
- getStore: getFieldArray
- }, props));
+ createLifecycle(getFieldArray, props);
return memo(() => props.children({
get name() {
return props.name;
diff --git a/dist/types/adapters/index.d.ts b/dist/types/adapters/index.d.ts
index 40c8ba462175e4433b60441b7f04760d5c698bbc..fe4103bb6a429f13da67209820360d6046b40c69 100644
--- a/dist/types/adapters/index.d.ts
+++ b/dist/types/adapters/index.d.ts
@@ -1,4 +1,4 @@
-export * from './valiField';
-export * from './valiForm';
-export * from './zodField';
-export * from './zodForm';
+export * from './valiField.js';
+export * from './valiForm.js';
+export * from './zodField.js';
+export * from './zodForm.js';
diff --git a/dist/types/adapters/valiField.d.ts b/dist/types/adapters/valiField.d.ts
index 279b98494bc3b3b9d400eba79fa471f56c88451a..91f083ec0800b974c2564e34f3224de3459d0c82 100644
--- a/dist/types/adapters/valiField.d.ts
+++ b/dist/types/adapters/valiField.d.ts
@@ -1,5 +1,5 @@
import type { BaseSchema, BaseSchemaAsync } from 'valibot';
-import type { FieldValue, ValidateField } from '../types';
+import type { FieldValue, ValidateField } from '../types/index.js';
/**
* Creates a validation functions that parses the Valibot schema of a field.
*
diff --git a/dist/types/adapters/valiForm.d.ts b/dist/types/adapters/valiForm.d.ts
index c6ea0d18e23eff53ab4e67c5feed42847fb7a01f..4294f00061d8a3cd5b8f785c2b1c3b9ee0d2978f 100644
--- a/dist/types/adapters/valiForm.d.ts
+++ b/dist/types/adapters/valiForm.d.ts
@@ -1,5 +1,5 @@
import type { BaseSchema, BaseSchemaAsync } from 'valibot';
-import type { FieldValues, ValidateForm } from '../types';
+import type { FieldValues, ValidateForm } from '../types/index.js';
/**
* Creates a validation functions that parses the Valibot schema of a form.
*
diff --git a/dist/types/adapters/zodField.d.ts b/dist/types/adapters/zodField.d.ts
index ad70d4e31d3745aa8f8e01d488ee65941c11a59f..4bf01a15885d9333cc9fff93459859457bc6ebb3 100644
--- a/dist/types/adapters/zodField.d.ts
+++ b/dist/types/adapters/zodField.d.ts
@@ -1,5 +1,5 @@
import type { ZodType } from 'zod';
-import type { FieldValue, ValidateField } from '../types';
+import type { FieldValue, ValidateField } from '../types/index.js';
/**
* Creates a validation functions that parses the Zod schema of a field.
*
diff --git a/dist/types/adapters/zodForm.d.ts b/dist/types/adapters/zodForm.d.ts
index ce2ba8ce6114ef1b68c9496e9494a0fc01114138..4faa4684aee598dc5c7397b076b40510c27898d9 100644
--- a/dist/types/adapters/zodForm.d.ts
+++ b/dist/types/adapters/zodForm.d.ts
@@ -1,5 +1,5 @@
import type { ZodType } from 'zod';
-import type { FieldValues, ValidateForm } from '../types';
+import type { FieldValues, ValidateForm } from '../types/index.js';
/**
* Creates a validation functions that parses the Zod schema of a form.
*
diff --git a/dist/types/components/Field.d.ts b/dist/types/components/Field.d.ts
index 8577e9c375247729fa9afa2620eb36e493890072..45dbe6a6a8f27010e242036de03e47f3137579ac 100644
--- a/dist/types/components/Field.d.ts
+++ b/dist/types/components/Field.d.ts
@@ -1,5 +1,5 @@
import { type JSX } from 'solid-js';
-import type { FieldElement, FieldPath, FieldPathValue, FieldType, FieldValues, FormStore, Maybe, MaybeArray, MaybeValue, PartialKey, ResponseData, TransformField, ValidateField } from '../types';
+import type { FieldElement, FieldPath, FieldPathValue, FieldType, FieldValues, FormStore, Maybe, MaybeArray, MaybeValue, PartialKey, ResponseData, TransformField, ValidateField } from '../types/index.js';
/**
* Value type ot the field store.
*/
diff --git a/dist/types/components/FieldArray.d.ts b/dist/types/components/FieldArray.d.ts
index a2c5a80a2098c4866cb1917df0e4f6424f3228d8..76b1ff737ce96bd024dd553c8a31bd8a81d504e9 100644
--- a/dist/types/components/FieldArray.d.ts
+++ b/dist/types/components/FieldArray.d.ts
@@ -1,5 +1,5 @@
import { type JSX } from 'solid-js';
-import type { FieldArrayPath, FieldValues, FormStore, Maybe, MaybeArray, ResponseData, ValidateFieldArray } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, Maybe, MaybeArray, ResponseData, ValidateFieldArray } from '../types/index.js';
/**
* Value type ot the field store.
*/
diff --git a/dist/types/components/Form.d.ts b/dist/types/components/Form.d.ts
index 7539627bd06e130bc51ca9dc984017e47645ff0a..6c9a3da563ba8297bf5a5f2cc2a252e8a44409cd 100644
--- a/dist/types/components/Form.d.ts
+++ b/dist/types/components/Form.d.ts
@@ -1,5 +1,5 @@
import { type JSX } from 'solid-js';
-import type { FieldValues, FormStore, Maybe, MaybePromise, ResponseData } from '../types';
+import type { FieldValues, FormStore, Maybe, MaybePromise, ResponseData } from '../types/index.js';
/**
* Value type of the submit event object.
*/
diff --git a/dist/types/components/index.d.ts b/dist/types/components/index.d.ts
index c2d25ccd5eee6c62782b6a8fecaf97366c0796d5..19832423208b3a590e74a4b78784195088820982 100644
--- a/dist/types/components/index.d.ts
+++ b/dist/types/components/index.d.ts
@@ -1,3 +1,3 @@
-export * from './Field';
-export * from './FieldArray';
-export * from './Form';
+export * from './Field.js';
+export * from './FieldArray.js';
+export * from './Form.js';
diff --git a/dist/types/exceptions/FormError.d.ts b/dist/types/exceptions/FormError.d.ts
index 54f0ee9d7edf4e8ed02a8c369884781fbdfda5b6..c729af41eaa81d96c93c4b83965fe29d1e57c274 100644
--- a/dist/types/exceptions/FormError.d.ts
+++ b/dist/types/exceptions/FormError.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormErrors, Maybe } from '../types';
+import type { FieldValues, FormErrors, Maybe } from '../types/index.js';
/**
* An explicit form error with useful information for the user.
*/
diff --git a/dist/types/exceptions/index.d.ts b/dist/types/exceptions/index.d.ts
index 3b8716b57799c308358979a873b79c0cc46a776b..68d165ddfed2ef6ca823cfcab5867bbdaacf29a1 100644
--- a/dist/types/exceptions/index.d.ts
+++ b/dist/types/exceptions/index.d.ts
@@ -1 +1 @@
-export * from './FormError';
+export * from './FormError.js';
diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts
index af34d4dc1f6baf032a3513b635a92728619fb3f1..c5c0add473f5cb99d99ebf8dd4798e626b9b3273 100644
--- a/dist/types/index.d.ts
+++ b/dist/types/index.d.ts
@@ -1,8 +1,8 @@
-export * from './adapters';
-export * from './components';
-export * from './exceptions';
-export * from './methods';
-export { createForm, createFormStore } from './primitives';
-export * from './transformation';
-export * from './types';
-export * from './validation';
+export * from './adapters/index.js';
+export * from './components/index.js';
+export * from './exceptions/index.js';
+export * from './methods/index.js';
+export { createForm, createFormStore } from './primitives/index.js';
+export * from './transformation/index.js';
+export * from './types/index.js';
+export * from './validation/index.js';
diff --git a/dist/types/methods/clearError.d.ts b/dist/types/methods/clearError.d.ts
index 75379987a74589d41d83d2db654767c040406dca..40cb7257e992b67ff320fe714d305367120a8bb9 100644
--- a/dist/types/methods/clearError.d.ts
+++ b/dist/types/methods/clearError.d.ts
@@ -1,5 +1,5 @@
-import type { FieldValues, ResponseData, FormStore, FieldPath, FieldArrayPath, Maybe } from '../types';
-import { type SetErrorOptions } from './setError';
+import type { FieldValues, ResponseData, FormStore, FieldPath, FieldArrayPath, Maybe } from '../types/index.js';
+import { type SetErrorOptions } from './setError.js';
/**
* Clears the error of the specified field or field array.
*
diff --git a/dist/types/methods/clearResponse.d.ts b/dist/types/methods/clearResponse.d.ts
index 9e100f49d6deead7935f7673095e3817fe70d857..32d41793e1da8d22809358fc86b15faa45c37a36 100644
--- a/dist/types/methods/clearResponse.d.ts
+++ b/dist/types/methods/clearResponse.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Clears the response of the form.
*
diff --git a/dist/types/methods/focus.d.ts b/dist/types/methods/focus.d.ts
index 5c7690f2a17f1c04e589055e656d92f5c94c5dc6..7e758e8151f006512acbd5de0fdbd0a541060099 100644
--- a/dist/types/methods/focus.d.ts
+++ b/dist/types/methods/focus.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Focuses the specified field of the form.
*
diff --git a/dist/types/methods/getError.d.ts b/dist/types/methods/getError.d.ts
index 2ff03e8cd9c9766995b3cd424c8fd4c0da87894d..d570c68afa500a578e34e7426847ef01183cfabd 100644
--- a/dist/types/methods/getError.d.ts
+++ b/dist/types/methods/getError.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the get error options.
*/
diff --git a/dist/types/methods/getErrors.d.ts b/dist/types/methods/getErrors.d.ts
index 41c5253232eca62bc79df72f15b96cb1a29f12db..5e57f9f0527839b99e81b3557c5fa79e6a5a22c1 100644
--- a/dist/types/methods/getErrors.d.ts
+++ b/dist/types/methods/getErrors.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues, FormErrors, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues, FormErrors, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the get errors options.
*/
diff --git a/dist/types/methods/getValue.d.ts b/dist/types/methods/getValue.d.ts
index e3debd98f7fa664424a40eb6cb12fbd80a0aa042..1e895b9fff4c9ed2b8fea5dcf9000bca45268c34 100644
--- a/dist/types/methods/getValue.d.ts
+++ b/dist/types/methods/getValue.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldPath, FieldPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type if the get value options.
*/
diff --git a/dist/types/methods/getValues.d.ts b/dist/types/methods/getValues.d.ts
index 0fe66e79211ba8be1601ead0d143659057c731cc..79a772a361ad989f49217b22d3b0e2fb682b61b6 100644
--- a/dist/types/methods/getValues.d.ts
+++ b/dist/types/methods/getValues.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldPath, FieldValues, FormStore, Maybe, PartialValues, ResponseData } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldPath, FieldValues, FormStore, Maybe, PartialValues, ResponseData } from '../types/index.js';
/**
* Value type of the get values options.
*/
diff --git a/dist/types/methods/hasField.d.ts b/dist/types/methods/hasField.d.ts
index 5f3719dadb1bf270a7d6bb71382d504574fd5a20..50921bbc901c5676e27633c5dde267d58317753b 100644
--- a/dist/types/methods/hasField.d.ts
+++ b/dist/types/methods/hasField.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the has field options.
*/
diff --git a/dist/types/methods/hasFieldArray.d.ts b/dist/types/methods/hasFieldArray.d.ts
index 9793bd44aebd2775d21b422ee1bcf5ee68f7d33d..41def84e1b91dcbf81b2cf7476a7ee0b237e48eb 100644
--- a/dist/types/methods/hasFieldArray.d.ts
+++ b/dist/types/methods/hasFieldArray.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the has field array options.
*/
diff --git a/dist/types/methods/index.d.ts b/dist/types/methods/index.d.ts
index a38e234d8c394803007fa21ee4692bbd5c727416..43c280a094973d7a66658fbf21a0948e97720925 100644
--- a/dist/types/methods/index.d.ts
+++ b/dist/types/methods/index.d.ts
@@ -1,21 +1,21 @@
-export * from './clearError';
-export * from './clearResponse';
-export * from './focus';
-export * from './getError';
-export * from './getErrors';
-export * from './getValue';
-export * from './getValues';
-export * from './hasField';
-export * from './hasFieldArray';
-export * from './insert';
-export * from './move';
-export * from './remove';
-export * from './replace';
-export * from './reset';
-export * from './setError';
-export * from './setResponse';
-export * from './setValue';
-export * from './setValues';
-export * from './submit';
-export * from './swap';
-export * from './validate';
+export * from './clearError.js';
+export * from './clearResponse.js';
+export * from './focus.js';
+export * from './getError.js';
+export * from './getErrors.js';
+export * from './getValue.js';
+export * from './getValues.js';
+export * from './hasField.js';
+export * from './hasFieldArray.js';
+export * from './insert.js';
+export * from './move.js';
+export * from './remove.js';
+export * from './replace.js';
+export * from './reset.js';
+export * from './setError.js';
+export * from './setResponse.js';
+export * from './setValue.js';
+export * from './setValues.js';
+export * from './submit.js';
+export * from './swap.js';
+export * from './validate.js';
diff --git a/dist/types/methods/insert.d.ts b/dist/types/methods/insert.d.ts
index 64bd7192ee51074f5377fd2dfa74c5e9350eb3c6..da2318a521eb7bcf4e21d48ede8b6828a3768fdd 100644
--- a/dist/types/methods/insert.d.ts
+++ b/dist/types/methods/insert.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the insert options.
*/
diff --git a/dist/types/methods/move.d.ts b/dist/types/methods/move.d.ts
index 2ef11b4a42da4cf89e3e788b748af62f6999b39a..b360f8065dabbe83f8f560e1eb9315d1a96fdf83 100644
--- a/dist/types/methods/move.d.ts
+++ b/dist/types/methods/move.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the move options.
*/
diff --git a/dist/types/methods/remove.d.ts b/dist/types/methods/remove.d.ts
index 49964859db3d21e26a2927fcb1531aa7eb505a2a..b0fce197db817ee38010786f05fd9ee9232b9fbf 100644
--- a/dist/types/methods/remove.d.ts
+++ b/dist/types/methods/remove.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the remove options.
*/
diff --git a/dist/types/methods/replace.d.ts b/dist/types/methods/replace.d.ts
index c369407d841701b2d82f26b3539ec1adce1e57bd..a86f0ba079997b10bb5731dd2a75b8489121c8da 100644
--- a/dist/types/methods/replace.d.ts
+++ b/dist/types/methods/replace.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the replace options.
*/
diff --git a/dist/types/methods/reset.d.ts b/dist/types/methods/reset.d.ts
index 2e8fc7d73dcdb809c8c8e506a7b932e55dd740fd..eafa46b614e813f8b0a2c1f1ad8491ac699cd4e2 100644
--- a/dist/types/methods/reset.d.ts
+++ b/dist/types/methods/reset.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FieldPath, FieldPathValue, ResponseData, FormStore, Maybe, FieldArrayPath, PartialValues } from '../types';
+import type { FieldValues, FieldPath, FieldPathValue, ResponseData, FormStore, Maybe, FieldArrayPath, PartialValues } from '../types/index.js';
/**
* Value type of the reset options.
*/
diff --git a/dist/types/methods/setError.d.ts b/dist/types/methods/setError.d.ts
index cf3d35d94e7ba8c82a761a7db305373544c2a5fb..4a420da8ad12fa8ddf60ad6d13db2d75cada77d5 100644
--- a/dist/types/methods/setError.d.ts
+++ b/dist/types/methods/setError.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, ResponseData, FormStore, FieldPath, FieldArrayPath, Maybe } from '../types';
+import type { FieldValues, ResponseData, FormStore, FieldPath, FieldArrayPath, Maybe } from '../types/index.js';
/**
* Value type of the set error options.
*/
diff --git a/dist/types/methods/setResponse.d.ts b/dist/types/methods/setResponse.d.ts
index cfad5f642944e6ac1fa2426129c2d0ad3c7ff02f..370711f481a34f8e152914e7c25018972d61151c 100644
--- a/dist/types/methods/setResponse.d.ts
+++ b/dist/types/methods/setResponse.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormResponse, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldValues, FormResponse, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the set response options.
*/
diff --git a/dist/types/methods/setValue.d.ts b/dist/types/methods/setValue.d.ts
index facf8934c6319fe93ba46e573fa55afd2385249c..cde14af53e01678fd4e862dd104caf65413d3054 100644
--- a/dist/types/methods/setValue.d.ts
+++ b/dist/types/methods/setValue.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldPath, FieldPathValue, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Value type of the set value options.
*/
diff --git a/dist/types/methods/setValues.d.ts b/dist/types/methods/setValues.d.ts
index 5b3e851e388edf886c7c0224a3fd339637df8e0a..df1c40edfea2b9c10e4b99170d86c73f432ad1b3 100644
--- a/dist/types/methods/setValues.d.ts
+++ b/dist/types/methods/setValues.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, Maybe, PartialValues, ResponseData } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, Maybe, PartialValues, ResponseData } from '../types/index.js';
/**
* Value type of the set values options.
*/
diff --git a/dist/types/methods/submit.d.ts b/dist/types/methods/submit.d.ts
index 6a707ea2a051405e01b7c9d47dfcbb01d305b790..2206c089cfb626ebc4526044d5bdd4d705df092d 100644
--- a/dist/types/methods/submit.d.ts
+++ b/dist/types/methods/submit.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Validates and submits the form.
*
diff --git a/dist/types/methods/swap.d.ts b/dist/types/methods/swap.d.ts
index 8d79d11e3a20cc8124f73217d6210152299943db..7533ecd8d53bfc0937ba18cccc885b5b79d0bfa5 100644
--- a/dist/types/methods/swap.d.ts
+++ b/dist/types/methods/swap.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the replace options.
*/
diff --git a/dist/types/methods/validate.d.ts b/dist/types/methods/validate.d.ts
index cb306467a68b7e668b963864061a834adbb8e5de..f1823e87b84881792060cfb2a550162e99d87981 100644
--- a/dist/types/methods/validate.d.ts
+++ b/dist/types/methods/validate.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, ResponseData, FormStore, Maybe, FieldPath, FieldArrayPath } from '../types';
+import type { FieldValues, ResponseData, FormStore, Maybe, FieldPath, FieldArrayPath } from '../types/index.js';
/**
* Value type of the validate options.
*/
diff --git a/dist/types/primitives/createForm.d.ts b/dist/types/primitives/createForm.d.ts
index 83edf0f4eeb00d5d85e76052a36a9883697bcbf0..49c688f239ba8897779f42299a277873238c7ae8 100644
--- a/dist/types/primitives/createForm.d.ts
+++ b/dist/types/primitives/createForm.d.ts
@@ -1,6 +1,6 @@
import { type JSX } from 'solid-js';
import type { FormProps, FieldProps, FieldArrayProps } from '../components';
-import type { FieldArrayPath, FieldPath, FieldPathValue, FieldValues, FormOptions, FormStore, MaybeValue, PartialKey, ResponseData } from '../types';
+import type { FieldArrayPath, FieldPath, FieldPathValue, FieldValues, FormOptions, FormStore, MaybeValue, PartialKey, ResponseData } from '../types/index.js';
/**
* Creates and returns the store of the form as well as a linked Form, Field
* and FieldArray component.
diff --git a/dist/types/primitives/createFormStore.d.ts b/dist/types/primitives/createFormStore.d.ts
index ee008fea39ea47d662f0bd61db25647ec46c7a24..8e3d51115281046e745e50294bc94e6b37c2eb5c 100644
--- a/dist/types/primitives/createFormStore.d.ts
+++ b/dist/types/primitives/createFormStore.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormOptions, FormStore, ResponseData } from '../types';
+import type { FieldValues, FormOptions, FormStore, ResponseData } from '../types/index.js';
/**
* Creates and returns the store of the form.
*
diff --git a/dist/types/primitives/createLifecycle.d.ts b/dist/types/primitives/createLifecycle.d.ts
index 234b55ef96db47eb478c2f86aa80beeabb287356..709e4cf7ab1949502ec8f949e6f38cf92fa96b43 100644
--- a/dist/types/primitives/createLifecycle.d.ts
+++ b/dist/types/primitives/createLifecycle.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldPathValue, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, Maybe, MaybeArray, ResponseData, TransformField, ValidateField, ValidateFieldArray } from '../types';
+import type { FieldArrayPath, FieldPath, FieldPathValue, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, Maybe, MaybeArray, ResponseData, TransformField, ValidateField, ValidateFieldArray } from '../types/index.js';
/**
* Value type of the lifecycle properties.
*/
diff --git a/dist/types/primitives/index.d.ts b/dist/types/primitives/index.d.ts
index 87b2b4633ceb8a51576708fada650bc94e923817..62822b4595f2462eed874cf5a21f8f74665e9c26 100644
--- a/dist/types/primitives/index.d.ts
+++ b/dist/types/primitives/index.d.ts
@@ -1,4 +1,4 @@
-export * from './createForm';
-export * from './createFormStore';
-export * from './createLifecycle';
-export * from './createSignal';
+export * from './createForm.js';
+export * from './createFormStore.js';
+export * from './createLifecycle.js';
+export * from './createSignal.js';
diff --git a/dist/types/transformation/index.d.ts b/dist/types/transformation/index.d.ts
index 48cc3f8d3f6e97cff4e170d9616b9804fd9d36c5..1bde58540b6ed9d67ee2b3b58b9ee9ccee33d9b3 100644
--- a/dist/types/transformation/index.d.ts
+++ b/dist/types/transformation/index.d.ts
@@ -1,4 +1,4 @@
-export * from './toCustom';
-export * from './toLowerCase';
-export * from './toTrimmed';
-export * from './toUpperCase';
+export * from './toCustom.js';
+export * from './toLowerCase.js';
+export * from './toTrimmed.js';
+export * from './toUpperCase.js';
diff --git a/dist/types/transformation/toCustom.d.ts b/dist/types/transformation/toCustom.d.ts
index b8afab1cf65c0a43152c05f7eea7ffb1161fce95..11e431e1dca9ebd623f566762b5db61b67fce0e5 100644
--- a/dist/types/transformation/toCustom.d.ts
+++ b/dist/types/transformation/toCustom.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValue, TransformField } from '../types';
+import type { FieldValue, TransformField } from '../types/index.js';
/**
* Value type of the transform mode.
*/
diff --git a/dist/types/transformation/toLowerCase.d.ts b/dist/types/transformation/toLowerCase.d.ts
index e702a08dc31f799f1e9dbb8a714ad1d9f31164ed..9f3808dde8edd8062008743c494e3f89d3fcafb2 100644
--- a/dist/types/transformation/toLowerCase.d.ts
+++ b/dist/types/transformation/toLowerCase.d.ts
@@ -1,5 +1,5 @@
-import type { MaybeValue, TransformField } from '../types';
-import { type TransformOptions } from './toCustom';
+import type { MaybeValue, TransformField } from '../types/index.js';
+import { type TransformOptions } from './toCustom.js';
/**
* Creates a transformation functions that converts all the alphabetic
* characters in a string to lowercase.
diff --git a/dist/types/transformation/toTrimmed.d.ts b/dist/types/transformation/toTrimmed.d.ts
index 3c99002ed7e7f0d57715d4303435bd49dda2f3d9..19ec7520c7353647fb477549212112e96b8eb417 100644
--- a/dist/types/transformation/toTrimmed.d.ts
+++ b/dist/types/transformation/toTrimmed.d.ts
@@ -1,5 +1,5 @@
-import type { MaybeValue, TransformField } from '../types';
-import { type TransformOptions } from './toCustom';
+import type { MaybeValue, TransformField } from '../types/index.js';
+import { type TransformOptions } from './toCustom.js';
/**
* Creates a transformation functions that removes the leading and trailing
* white space and line terminator characters from a string.
diff --git a/dist/types/transformation/toUpperCase.d.ts b/dist/types/transformation/toUpperCase.d.ts
index fc552090ae9b5a60dcc98ea0789acd2a78ee36d0..c70f7202790f474d34384ceeaee8599f8056d790 100644
--- a/dist/types/transformation/toUpperCase.d.ts
+++ b/dist/types/transformation/toUpperCase.d.ts
@@ -1,5 +1,5 @@
-import type { MaybeValue, TransformField } from '../types';
-import { type TransformOptions } from './toCustom';
+import type { MaybeValue, TransformField } from '../types/index.js';
+import { type TransformOptions } from './toCustom.js';
/**
* Creates a transformation functions that converts all the alphabetic
* characters in a string to uppercase.
diff --git a/dist/types/types/field.d.ts b/dist/types/types/field.d.ts
index 1ec034c706293f51dfcf12a1698937f77f30cc8a..22a7b1b614091eaa0ba7ad35ee59cba661e9f741 100644
--- a/dist/types/types/field.d.ts
+++ b/dist/types/types/field.d.ts
@@ -1,10 +1,10 @@
import type { Signal } from '../primitives';
-import type { FieldPath, FieldPathValue } from './path';
-import type { MaybeValue, MaybePromise, Maybe } from './utils';
+import type { FieldPath, FieldPathValue } from './path.js';
+import type { MaybeValue, MaybePromise, Maybe } from './utils.js';
/**
* Value type of the field value.
*/
-export type FieldValue = MaybeValue<string | string[] | number | boolean | File | File[] | Date>;
+export type FieldValue = MaybeValue<string | string[] | number | boolean | Blob | Blob[] | Date>;
/**
* Value type of the field type.
*/
diff --git a/dist/types/types/fieldArray.d.ts b/dist/types/types/fieldArray.d.ts
index 48e9542e6a420934988f2ebdc8f322f65a6ff028..027d761240d9abdb9ebd57040cc6cc60fae9eda6 100644
--- a/dist/types/types/fieldArray.d.ts
+++ b/dist/types/types/fieldArray.d.ts
@@ -1,5 +1,5 @@
import type { Signal } from '../primitives';
-import type { MaybePromise } from './utils';
+import type { MaybePromise } from './utils.js';
/**
* Function type to validate a field array.
*/
diff --git a/dist/types/types/form.d.ts b/dist/types/types/form.d.ts
index 709bcba04f259dcfffc2a1bc1fcaa046e8e2f297..198f8cefa38eea21c9a999651c2edc26c25cd2c4 100644
--- a/dist/types/types/form.d.ts
+++ b/dist/types/types/form.d.ts
@@ -1,8 +1,8 @@
import type { Signal } from '../primitives';
-import type { FieldValue, FieldValues, InternalFieldStore } from './field';
-import type { InternalFieldArrayStore } from './fieldArray';
-import type { FieldArrayPath, FieldPath } from './path';
-import type { Maybe, MaybePromise } from './utils';
+import type { FieldValue, FieldValues, InternalFieldStore } from './field.js';
+import type { InternalFieldArrayStore } from './fieldArray.js';
+import type { FieldArrayPath, FieldPath } from './path.js';
+import type { Maybe, MaybePromise } from './utils.js';
/**
* Value type of the validation mode.
*/
diff --git a/dist/types/types/index.d.ts b/dist/types/types/index.d.ts
index e9ed06ad3206354261d290778ab4b242457a129c..0913bdb2168d6d17cef07d2bd725465e24799c85 100644
--- a/dist/types/types/index.d.ts
+++ b/dist/types/types/index.d.ts
@@ -1,5 +1,5 @@
-export * from './field';
-export * from './fieldArray';
-export * from './form';
-export * from './path';
-export * from './utils';
+export * from './field.js';
+export * from './fieldArray.js';
+export * from './form.js';
+export * from './path.js';
+export * from './utils.js';
diff --git a/dist/types/types/path.d.ts b/dist/types/types/path.d.ts
index 5757d587543ca78582d146366650118b065cf4b6..70ef1a2a02279a117bf6f02c540426676e06afcd 100644
--- a/dist/types/types/path.d.ts
+++ b/dist/types/types/path.d.ts
@@ -1,5 +1,5 @@
-import type { FieldValue, FieldValues } from './field';
-import type { IsTuple, TupleKeys, ArrayKey } from './utils';
+import type { FieldValue, FieldValues } from './field.js';
+import type { IsTuple, TupleKeys, ArrayKey } from './utils.js';
/**
* Returns a path of a type that leads to a field value.
*/
diff --git a/dist/types/utils/getElementInput.d.ts b/dist/types/utils/getElementInput.d.ts
index d7c849494bc4750d4c58d4ff0fafa90ef2e27eea..a11f7c6371fbde82bb8fde81de8d99283a689f11 100644
--- a/dist/types/utils/getElementInput.d.ts
+++ b/dist/types/utils/getElementInput.d.ts
@@ -1,4 +1,4 @@
-import type { FieldElement, FieldPath, FieldPathValue, FieldType, FieldValues, InternalFieldStore, Maybe } from '../types';
+import type { FieldElement, FieldPath, FieldPathValue, FieldType, FieldValues, InternalFieldStore, Maybe } from '../types/index.js';
/**
* Returns the current input of the element.
*
diff --git a/dist/types/utils/getFieldAndArrayStores.d.ts b/dist/types/utils/getFieldAndArrayStores.d.ts
index 8db28149ebd78c44687f0e8de9665b13414e9c96..47e65591b451b20d46a8e31ba249a4c96aa014c7 100644
--- a/dist/types/utils/getFieldAndArrayStores.d.ts
+++ b/dist/types/utils/getFieldAndArrayStores.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, ResponseData } from '../types/index.js';
/**
* Returns a tuple with all field and field array stores of a form.
*
diff --git a/dist/types/utils/getFieldArrayNames.d.ts b/dist/types/utils/getFieldArrayNames.d.ts
index b2ae4f57937d7344c7b59d857e21d2339ef7a3b3..60d8dd1a45966f272e238620c083b30c39e57056 100644
--- a/dist/types/utils/getFieldArrayNames.d.ts
+++ b/dist/types/utils/getFieldArrayNames.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, ResponseData, FieldArrayPath, FormStore, Maybe } from '../types';
+import type { FieldValues, ResponseData, FieldArrayPath, FormStore, Maybe } from '../types/index.js';
/**
* Returns a list with the names of all field arrays.
*
diff --git a/dist/types/utils/getFieldArrayState.d.ts b/dist/types/utils/getFieldArrayState.d.ts
index f2b6e6d60b7e95c799cc6b833472da9d344012b9..35ed7b71307b93e1b5cae82195663eed83217367 100644
--- a/dist/types/utils/getFieldArrayState.d.ts
+++ b/dist/types/utils/getFieldArrayState.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, Maybe, RawFieldArrayState, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, Maybe, RawFieldArrayState, ResponseData } from '../types/index.js';
/**
* Returns the RAW state of the field array.
*
diff --git a/dist/types/utils/getFieldArrayStore.d.ts b/dist/types/utils/getFieldArrayStore.d.ts
index 8883b46635a56fd57ec12c6bacdd039718189ebb..8b9017a9b7e360694d10acd23136e88897310b73 100644
--- a/dist/types/utils/getFieldArrayStore.d.ts
+++ b/dist/types/utils/getFieldArrayStore.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, InternalFieldArrayStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, InternalFieldArrayStore, Maybe, ResponseData } from '../types/index.js';
/**
* Returns the store of a field array.
*
diff --git a/dist/types/utils/getFieldNames.d.ts b/dist/types/utils/getFieldNames.d.ts
index 8617f0de400c14bb1f31b877186fc20a35eef1fd..a13f01882fe154b00ec0163d43824271b0db7ef1 100644
--- a/dist/types/utils/getFieldNames.d.ts
+++ b/dist/types/utils/getFieldNames.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Returns a list with the names of all fields.
*
diff --git a/dist/types/utils/getFieldState.d.ts b/dist/types/utils/getFieldState.d.ts
index c5d15cf9a5d491d7784b1e360fc24334a6932f3b..89a30cad451db1bf2a6ffed32c7c5e720170c0ab 100644
--- a/dist/types/utils/getFieldState.d.ts
+++ b/dist/types/utils/getFieldState.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, Maybe, RawFieldState, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, Maybe, RawFieldState, ResponseData } from '../types/index.js';
/**
* Returns the RAW state of the field.
*
diff --git a/dist/types/utils/getFieldStore.d.ts b/dist/types/utils/getFieldStore.d.ts
index cf83842fe1f9c435bd9d6dc32ae324a2b52fee45..94bc3e2daafd5d89891263b6d9ad693b73f5b2b4 100644
--- a/dist/types/utils/getFieldStore.d.ts
+++ b/dist/types/utils/getFieldStore.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, InternalFieldStore, Maybe, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, InternalFieldStore, Maybe, ResponseData } from '../types/index.js';
/**
* Returns the store of a field.
*
diff --git a/dist/types/utils/getFilteredNames.d.ts b/dist/types/utils/getFilteredNames.d.ts
index b8e1261e0c62bbc135501ea11d7402f6169282ab..571b85055d09d7794253353cab6ff3a486bc74fc 100644
--- a/dist/types/utils/getFilteredNames.d.ts
+++ b/dist/types/utils/getFilteredNames.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Returns a tuple with filtered field and field array names. For each
* specified field array name, the names of the contained fields and field
diff --git a/dist/types/utils/getPathIndex.d.ts b/dist/types/utils/getPathIndex.d.ts
index 52913e2ab4c200058cae6029b208b91bed166b0f..5cbdfc7b8c5acd282030f515debc255da4c9bcf6 100644
--- a/dist/types/utils/getPathIndex.d.ts
+++ b/dist/types/utils/getPathIndex.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues } from '../types/index.js';
/**
* Returns the index of the path in the field array.
*
diff --git a/dist/types/utils/getPathValue.d.ts b/dist/types/utils/getPathValue.d.ts
index 7759f56a5e1fa791350a0cd4e0f1615b46124813..9cfa0b17dbf54eaf3ea02402d2aeac1c78404ce7 100644
--- a/dist/types/utils/getPathValue.d.ts
+++ b/dist/types/utils/getPathValue.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldPath, FieldPathValue, FieldValues, Maybe, PartialValues } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldPath, FieldPathValue, FieldValues, Maybe, PartialValues } from '../types/index.js';
/**
* Returns the value of a dot path in an object.
*
diff --git a/dist/types/utils/handleFieldEvent.d.ts b/dist/types/utils/handleFieldEvent.d.ts
index cec991838c0afe0ae5aae5a60fa2d18bb15f99db..e97a7d709bbe8335d1b70351eca6f5db3f28518e 100644
--- a/dist/types/utils/handleFieldEvent.d.ts
+++ b/dist/types/utils/handleFieldEvent.d.ts
@@ -1,4 +1,4 @@
-import type { FieldEvent, FieldPath, FieldPathValue, FieldValues, FormStore, InternalFieldStore, ResponseData, ValidationMode } from '../types';
+import type { FieldEvent, FieldPath, FieldPathValue, FieldValues, FormStore, InternalFieldStore, ResponseData, ValidationMode } from '../types/index.js';
/**
* Handles the input, change and blur event of a field.
*
diff --git a/dist/types/utils/index.d.ts b/dist/types/utils/index.d.ts
index 4b8019a1574f3eafe8dc46e0e94433ef02a8d59b..a947f3ae9289758e768add9247409199297adaa3 100644
--- a/dist/types/utils/index.d.ts
+++ b/dist/types/utils/index.d.ts
@@ -1,29 +1,29 @@
-export * from './getElementInput';
-export * from './getFieldAndArrayStores';
-export * from './getFieldArrayNames';
-export * from './getFieldArrayState';
-export * from './getFieldArrayStore';
-export * from './getFieldNames';
-export * from './getFieldState';
-export * from './getFieldStore';
-export * from './getFilteredNames';
-export * from './getOptions';
-export * from './getPathIndex';
-export * from './getPathValue';
-export * from './getUniqueId';
-export * from './handleFieldEvent';
-export * from './initializeFieldArrayStore';
-export * from './initializeFieldStore';
-export * from './isFieldDirty';
-export * from './removeInvalidNames';
-export * from './setErrorResponse';
-export * from './setFieldArrayState';
-export * from './setFieldArrayValue';
-export * from './setFieldState';
-export * from './sortArrayPathIndex';
-export * from './updateFieldArrayDirty';
-export * from './updateFieldDirty';
-export * from './updateFormDirty';
-export * from './updateFormInvalid';
-export * from './updateFormState';
-export * from './validateIfRequired';
+export * from './getElementInput.js';
+export * from './getFieldAndArrayStores.js';
+export * from './getFieldArrayNames.js';
+export * from './getFieldArrayState.js';
+export * from './getFieldArrayStore.js';
+export * from './getFieldNames.js';
+export * from './getFieldState.js';
+export * from './getFieldStore.js';
+export * from './getFilteredNames.js';
+export * from './getOptions.js';
+export * from './getPathIndex.js';
+export * from './getPathValue.js';
+export * from './getUniqueId.js';
+export * from './handleFieldEvent.js';
+export * from './initializeFieldArrayStore.js';
+export * from './initializeFieldStore.js';
+export * from './isFieldDirty.js';
+export * from './removeInvalidNames.js';
+export * from './setErrorResponse.js';
+export * from './setFieldArrayState.js';
+export * from './setFieldArrayValue.js';
+export * from './setFieldState.js';
+export * from './sortArrayPathIndex.js';
+export * from './updateFieldArrayDirty.js';
+export * from './updateFieldDirty.js';
+export * from './updateFormDirty.js';
+export * from './updateFormInvalid.js';
+export * from './updateFormState.js';
+export * from './validateIfRequired.js';
diff --git a/dist/types/utils/initializeFieldArrayStore.d.ts b/dist/types/utils/initializeFieldArrayStore.d.ts
index 2e2c3c5b23a99d38c4a4a9f51acddf6aaf3ee297..82defaafd2fb0414bd79e006f290ca6239a8a99d 100644
--- a/dist/types/utils/initializeFieldArrayStore.d.ts
+++ b/dist/types/utils/initializeFieldArrayStore.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, InternalFieldArrayStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, InternalFieldArrayStore, ResponseData } from '../types/index.js';
/**
* Initializes and returns the store of a field array.
*
diff --git a/dist/types/utils/initializeFieldStore.d.ts b/dist/types/utils/initializeFieldStore.d.ts
index f1146c7ea86a754342f46bf6ddb2d28df8134f8d..24cf55d47b4f263ba298e35bd4042d9916e27895 100644
--- a/dist/types/utils/initializeFieldStore.d.ts
+++ b/dist/types/utils/initializeFieldStore.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, InternalFieldStore, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, InternalFieldStore, ResponseData } from '../types/index.js';
/**
* Initializes and returns the store of a field.
*
diff --git a/dist/types/utils/isFieldDirty.d.ts b/dist/types/utils/isFieldDirty.d.ts
index 96d7ecb80a54aee46825e8bcd9a9495b11584185..c50a2ddc6b95c591f8d8bf087164d4531879072c 100644
--- a/dist/types/utils/isFieldDirty.d.ts
+++ b/dist/types/utils/isFieldDirty.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValue, Maybe } from '../types';
+import type { FieldValue, Maybe } from '../types/index.js';
/**
* Returns whether the field is dirty.
*
diff --git a/dist/types/utils/removeInvalidNames.d.ts b/dist/types/utils/removeInvalidNames.d.ts
index 5638b476c0431092a451e91bdb6dd597c0205ee5..24c4fa7b337a4db8f929d233b207c3d5733eb2f2 100644
--- a/dist/types/utils/removeInvalidNames.d.ts
+++ b/dist/types/utils/removeInvalidNames.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Removes invalid field or field array names of field arrays.
*
diff --git a/dist/types/utils/setErrorResponse.d.ts b/dist/types/utils/setErrorResponse.d.ts
index 914d851ea13f1f8ac5349476a23998b8d6a34b57..ba9abb27c07f47fed5f544706614b4755c15692f 100644
--- a/dist/types/utils/setErrorResponse.d.ts
+++ b/dist/types/utils/setErrorResponse.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormErrors, FormStore, ResponseData } from '../types';
+import type { FieldValues, FormErrors, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the error response options.
*/
diff --git a/dist/types/utils/setFieldArrayState.d.ts b/dist/types/utils/setFieldArrayState.d.ts
index 21f3fa85d5d22be07599bd887830260ebe2eb85f..4e84e500768c87aaeff2deb2b729f763f6f76069 100644
--- a/dist/types/utils/setFieldArrayState.d.ts
+++ b/dist/types/utils/setFieldArrayState.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldValues, FormStore, RawFieldArrayState, ResponseData } from '../types';
+import type { FieldArrayPath, FieldValues, FormStore, RawFieldArrayState, ResponseData } from '../types/index.js';
/**
* Sets the store of a field array to the specified state.
*
diff --git a/dist/types/utils/setFieldArrayValue.d.ts b/dist/types/utils/setFieldArrayValue.d.ts
index b024efbacaaa2c3b47549452d1133a86aef86c32..f9395a7e83b720634558ca2d147614666dd0bdcb 100644
--- a/dist/types/utils/setFieldArrayValue.d.ts
+++ b/dist/types/utils/setFieldArrayValue.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldArrayPath, FieldArrayPathValue, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Value type of the value options.
*/
diff --git a/dist/types/utils/setFieldState.d.ts b/dist/types/utils/setFieldState.d.ts
index e079a48164405edc8387fa121f67507e7ffcba5b..6aa6958d6a7e18e2b6c49723045589f2d2f1276b 100644
--- a/dist/types/utils/setFieldState.d.ts
+++ b/dist/types/utils/setFieldState.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, RawFieldState, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, RawFieldState, ResponseData } from '../types/index.js';
/**
* Sets the store of a field to the specified state.
*
diff --git a/dist/types/utils/sortArrayPathIndex.d.ts b/dist/types/utils/sortArrayPathIndex.d.ts
index 9f299921624c809b146dbab0d53db4b63592bbc8..0da6fae2ea0182b8ab3b2cd35303e6bda34d5392 100644
--- a/dist/types/utils/sortArrayPathIndex.d.ts
+++ b/dist/types/utils/sortArrayPathIndex.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues } from '../types/index.js';
/**
* Returns a function that sorts field names by their array path index.
*
diff --git a/dist/types/utils/updateFieldArrayDirty.d.ts b/dist/types/utils/updateFieldArrayDirty.d.ts
index 5305081ccb1ad21c645f011ad09baa1615c7552d..8d4d84d23a57bb7fc78acfa49ef3350c2248e5f4 100644
--- a/dist/types/utils/updateFieldArrayDirty.d.ts
+++ b/dist/types/utils/updateFieldArrayDirty.d.ts
@@ -1,4 +1,4 @@
-import type { InternalFieldArrayStore, FieldValues, FormStore, ResponseData } from '../types';
+import type { InternalFieldArrayStore, FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Updates the dirty state of a field array.
*
diff --git a/dist/types/utils/updateFieldDirty.d.ts b/dist/types/utils/updateFieldDirty.d.ts
index 5be91b5b1856b12872f9be3479c31c5623834611..9fe1809497d95ef36751450f43912e82da72e20d 100644
--- a/dist/types/utils/updateFieldDirty.d.ts
+++ b/dist/types/utils/updateFieldDirty.d.ts
@@ -1,4 +1,4 @@
-import type { FieldPath, FieldValues, FormStore, InternalFieldStore, ResponseData } from '../types';
+import type { FieldPath, FieldValues, FormStore, InternalFieldStore, ResponseData } from '../types/index.js';
/**
* Updates the dirty state of a field.
*
diff --git a/dist/types/utils/updateFormDirty.d.ts b/dist/types/utils/updateFormDirty.d.ts
index 9db39ad3991a37c66ac079786bff8432a5813ae0..510e0b220e86efeae40aeb51b2acc68554594e57 100644
--- a/dist/types/utils/updateFormDirty.d.ts
+++ b/dist/types/utils/updateFormDirty.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Updates the dirty state of the form.
*
diff --git a/dist/types/utils/updateFormInvalid.d.ts b/dist/types/utils/updateFormInvalid.d.ts
index 08efcb3d8ab4309fdb04e58e8a224726039380f5..fc776145ca9e36a32232c7bff64ded9c0532125a 100644
--- a/dist/types/utils/updateFormInvalid.d.ts
+++ b/dist/types/utils/updateFormInvalid.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormStore, Maybe, ResponseData } from '../types';
+import type { FieldValues, FormStore, Maybe, ResponseData } from '../types/index.js';
/**
* Updates the invalid state of the form.
*
diff --git a/dist/types/utils/updateFormState.d.ts b/dist/types/utils/updateFormState.d.ts
index 72959c30e9c6e98260623fcce8c71c164027a1d7..aa83eaf2a71a0b67c1789ce81ee90787744e00c4 100644
--- a/dist/types/utils/updateFormState.d.ts
+++ b/dist/types/utils/updateFormState.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValues, FormStore, ResponseData } from '../types';
+import type { FieldValues, FormStore, ResponseData } from '../types/index.js';
/**
* Updates the touched, dirty and invalid state of the form.
*
diff --git a/dist/types/utils/validateIfRequired.d.ts b/dist/types/utils/validateIfRequired.d.ts
index a3f10fc99d57b1d7e92ee1c6a0f7f1db8822e660..3ec92658ae5b4671215bc265a527b1eb66ea5357 100644
--- a/dist/types/utils/validateIfRequired.d.ts
+++ b/dist/types/utils/validateIfRequired.d.ts
@@ -1,4 +1,4 @@
-import type { FieldArrayPath, FieldPath, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, Maybe, ResponseData, ValidationMode } from '../types';
+import type { FieldArrayPath, FieldPath, FieldValues, FormStore, InternalFieldArrayStore, InternalFieldStore, Maybe, ResponseData, ValidationMode } from '../types/index.js';
/**
* Value type of the validate otions.
*/
diff --git a/dist/types/validation/custom.d.ts b/dist/types/validation/custom.d.ts
index 96344c720e8dccc60ddfbe4407a235a6c2c2a080..6e34ae7da3f559c3f0a181727e6476c954ba745c 100644
--- a/dist/types/validation/custom.d.ts
+++ b/dist/types/validation/custom.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValue, Maybe, MaybePromise } from '../types';
+import type { FieldValue, Maybe, MaybePromise } from '../types/index.js';
/**
* Creates a custom validation function.
*
diff --git a/dist/types/validation/email.d.ts b/dist/types/validation/email.d.ts
index 4a599c4af9281f02be5e7374216963c95f382908..0fe5df7b036616ce1da9ded4e1ca17965e76c4c9 100644
--- a/dist/types/validation/email.d.ts
+++ b/dist/types/validation/email.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string>;
/**
* Creates a validation functions that validates a email.
diff --git a/dist/types/validation/index.d.ts b/dist/types/validation/index.d.ts
index f9786e762e319c621145bfa84163e1993a1d55ed..5abd2fff690255fd77a90433b673806a6df6bc1e 100644
--- a/dist/types/validation/index.d.ts
+++ b/dist/types/validation/index.d.ts
@@ -1,15 +1,15 @@
-export * from './custom';
-export * from './email';
-export * from './maxLength';
-export * from './maxRange';
-export * from './maxSize';
-export * from './maxTotalSize';
-export * from './mimeType';
-export * from './minLength';
-export * from './minRange';
-export * from './minSize';
-export * from './minTotalSize';
-export * from './pattern';
-export * from './required';
-export * from './url';
-export * from './value';
+export * from './custom.js';
+export * from './email.js';
+export * from './maxLength.js';
+export * from './maxRange.js';
+export * from './maxSize.js';
+export * from './maxTotalSize.js';
+export * from './mimeType.js';
+export * from './minLength.js';
+export * from './minRange.js';
+export * from './minSize.js';
+export * from './minTotalSize.js';
+export * from './pattern.js';
+export * from './required.js';
+export * from './url.js';
+export * from './value.js';
diff --git a/dist/types/validation/maxLength.d.ts b/dist/types/validation/maxLength.d.ts
index 7b58d022bb2bcc4a4e31ed2ca9a293d5dbcd6124..f02c6f02e4edb8a1433ec5237812e2e826637283 100644
--- a/dist/types/validation/maxLength.d.ts
+++ b/dist/types/validation/maxLength.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string | string[] | number[] | File[]>;
/**
* Creates a validation functions that validates the length of a string or array.
diff --git a/dist/types/validation/maxRange.d.ts b/dist/types/validation/maxRange.d.ts
index 6a9184beb89f22ca72c914e1e07720027d792804..ff708d28ebb3edbd91c1cea02ee65f47b3c6de6e 100644
--- a/dist/types/validation/maxRange.d.ts
+++ b/dist/types/validation/maxRange.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string | number | Date>;
/**
* Creates a validation functions that validates the range of a string, number or date.
diff --git a/dist/types/validation/maxSize.d.ts b/dist/types/validation/maxSize.d.ts
index 3e81b37caf06a7dee565a2ea2b233f19036a6dfc..dd746775c7c9e0dc876f464d9c0b2cd587c565fc 100644
--- a/dist/types/validation/maxSize.d.ts
+++ b/dist/types/validation/maxSize.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<File | File[]>;
/**
* Creates a validation functions that validates the file size.
diff --git a/dist/types/validation/maxTotalSize.d.ts b/dist/types/validation/maxTotalSize.d.ts
index 7caf37ae43d7f972083f2a1cb0684fcba2fe125b..ccd6fd2a608648c0787a9b55410e226435e4fba3 100644
--- a/dist/types/validation/maxTotalSize.d.ts
+++ b/dist/types/validation/maxTotalSize.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<File[]>;
/**
* Creates a validation functions that validates total file size of a file list.
diff --git a/dist/types/validation/mimeType.d.ts b/dist/types/validation/mimeType.d.ts
index 535820170c4a37f684b0266e2e1904d0d6dba4de..71487beb168caef7bf95eb5cdf90a6211f7e2ab8 100644
--- a/dist/types/validation/mimeType.d.ts
+++ b/dist/types/validation/mimeType.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<File | File[]>;
/**
* Creates a validation functions that validates the file type.
diff --git a/dist/types/validation/minLength.d.ts b/dist/types/validation/minLength.d.ts
index 3cd3269f4d44a006c8a3afc798d5944b4e0d622e..040e0655f5d0d6af5d87c70bbc3fa2369f93af00 100644
--- a/dist/types/validation/minLength.d.ts
+++ b/dist/types/validation/minLength.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string | string[] | number[] | File[]>;
/**
* Creates a validation functions that validates the length of a string or array.
diff --git a/dist/types/validation/minRange.d.ts b/dist/types/validation/minRange.d.ts
index 796de8ef5bd55c2a00209c6fc1344bb2f9e9f920..f6ee482ddae85d7578fa2f70e12b6597bc857038 100644
--- a/dist/types/validation/minRange.d.ts
+++ b/dist/types/validation/minRange.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string | number | Date>;
/**
* Creates a validation functions that validates the range of a string, number or date.
diff --git a/dist/types/validation/minSize.d.ts b/dist/types/validation/minSize.d.ts
index 7e135570c83a8e3b78aae8299982949f9d6c1609..2785d64c71d748483b9823ac289b3b77179a4f98 100644
--- a/dist/types/validation/minSize.d.ts
+++ b/dist/types/validation/minSize.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<File | File[]>;
/**
* Creates a validation functions that validates the file size.
diff --git a/dist/types/validation/minTotalSize.d.ts b/dist/types/validation/minTotalSize.d.ts
index 40d0529694c92c7c0263974cf2ef3173f12292c2..9ff304d7bdd4a96d88f68464d129a23341570112 100644
--- a/dist/types/validation/minTotalSize.d.ts
+++ b/dist/types/validation/minTotalSize.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<File[]>;
/**
* Creates a validation functions that validates total file size of a file list.
diff --git a/dist/types/validation/pattern.d.ts b/dist/types/validation/pattern.d.ts
index 11f977285ec53d00b695111c5ef3a9a29b493333..945028b2528919294b08293d181fee353aebc86a 100644
--- a/dist/types/validation/pattern.d.ts
+++ b/dist/types/validation/pattern.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string>;
/**
* Creates a validation functions that validates the pattern of a string.
diff --git a/dist/types/validation/required.d.ts b/dist/types/validation/required.d.ts
index 1144715c42ee2ed0261e222c07e69701e3ee4b61..ed6bbb7341678121a013bbc7c0fe155054038c5f 100644
--- a/dist/types/validation/required.d.ts
+++ b/dist/types/validation/required.d.ts
@@ -1,4 +1,4 @@
-import type { FieldValue, Maybe } from '../types';
+import type { FieldValue, Maybe } from '../types/index.js';
type Value<TFieldValue extends FieldValue> = Maybe<TFieldValue> | number[];
/**
* Creates a validation function that checks the existence of an input.
diff --git a/dist/types/validation/url.d.ts b/dist/types/validation/url.d.ts
index df4e0573ac4b76d843c0007c00fb02b05dea1df7..2360e486b968b646e837bc8d3aae5792227dd8f0 100644
--- a/dist/types/validation/url.d.ts
+++ b/dist/types/validation/url.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string>;
/**
* Creates a validation functions that validates a URL.
diff --git a/dist/types/validation/value.d.ts b/dist/types/validation/value.d.ts
index 5d1983301bdcf5f0dfabd9baab1f0c02c940e0e0..b9dfc4dbd4665846a5977c6f6bd338a01f631c09 100644
--- a/dist/types/validation/value.d.ts
+++ b/dist/types/validation/value.d.ts
@@ -1,4 +1,4 @@
-import type { MaybeValue } from '../types';
+import type { MaybeValue } from '../types/index.js';
type Value = MaybeValue<string | number>;
/**
* Creates a validation function that checks the value of an input for equality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment