@juantroconisf/lib 11.2.0 → 11.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -86,6 +86,7 @@ type ValueChangeFunc<O extends StateType, K extends keyof O> = (id: K, value: O[
86
86
  type BlurFunc<O extends StateType> = (id: keyof O) => void;
87
87
  interface ComponentInputProps {
88
88
  id: string;
89
+ name: string;
89
90
  onBlur: () => void;
90
91
  isInvalid: boolean;
91
92
  errorMessage: string;
package/dist/index.d.ts CHANGED
@@ -86,6 +86,7 @@ type ValueChangeFunc<O extends StateType, K extends keyof O> = (id: K, value: O[
86
86
  type BlurFunc<O extends StateType> = (id: keyof O) => void;
87
87
  interface ComponentInputProps {
88
88
  id: string;
89
+ name: string;
89
90
  onBlur: () => void;
90
91
  isInvalid: boolean;
91
92
  errorMessage: string;
package/dist/index.js CHANGED
@@ -624,6 +624,7 @@ function useForm(schema, {
624
624
  }
625
625
  return {
626
626
  id: compositeKey,
627
+ name: compositeKey,
627
628
  isInvalid: Boolean(isTouched && meta?.isInvalid),
628
629
  errorMessage: isTouched ? meta?.errorMessage || "" : "",
629
630
  isRequired,
package/dist/index.mjs CHANGED
@@ -598,6 +598,7 @@ function useForm(schema, {
598
598
  }
599
599
  return {
600
600
  id: compositeKey,
601
+ name: compositeKey,
601
602
  isInvalid: Boolean(isTouched && meta?.isInvalid),
602
603
  errorMessage: isTouched ? meta?.errorMessage || "" : "",
603
604
  isRequired,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juantroconisf/lib",
3
- "version": "11.2.0",
3
+ "version": "11.3.0",
4
4
  "description": "A form validation library for HeroUI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",