@juantroconisf/lib 5.0.0 → 5.0.1
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.js +2 -28
- package/dist/index.mjs +2 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -404,7 +404,7 @@ function useForm(initialState, {
|
|
|
404
404
|
setState((prev) => setNestedValue(prev, dotPath, fixedValue));
|
|
405
405
|
validateNestedInput(dotPath, fixedValue);
|
|
406
406
|
};
|
|
407
|
-
const
|
|
407
|
+
const on = {
|
|
408
408
|
input: (...args) => {
|
|
409
409
|
if (args.length === 1) {
|
|
410
410
|
const id = args[0];
|
|
@@ -526,7 +526,7 @@ function useForm(initialState, {
|
|
|
526
526
|
setState,
|
|
527
527
|
touched,
|
|
528
528
|
errors: errors2,
|
|
529
|
-
on
|
|
529
|
+
on,
|
|
530
530
|
helpers: {
|
|
531
531
|
addItem: (arrayKey, item, index) => {
|
|
532
532
|
setState((prev) => {
|
|
@@ -642,32 +642,6 @@ function useForm(initialState, {
|
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
|
-
var { on } = useForm({
|
|
646
|
-
name: "Juan",
|
|
647
|
-
age: 25,
|
|
648
|
-
address: {
|
|
649
|
-
city: "Bogota",
|
|
650
|
-
country: "Colombia"
|
|
651
|
-
},
|
|
652
|
-
lines: [
|
|
653
|
-
{
|
|
654
|
-
id: 1,
|
|
655
|
-
name: "Line 1",
|
|
656
|
-
location: {
|
|
657
|
-
country: "CO",
|
|
658
|
-
city: "Bogota"
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
id: 2,
|
|
663
|
-
name: "Line 2",
|
|
664
|
-
location: {
|
|
665
|
-
country: "VE",
|
|
666
|
-
city: "Caracas"
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
]
|
|
670
|
-
});
|
|
671
645
|
// Annotate the CommonJS export names for ESM import in node:
|
|
672
646
|
0 && (module.exports = {
|
|
673
647
|
NextUIError,
|
package/dist/index.mjs
CHANGED
|
@@ -385,7 +385,7 @@ function useForm(initialState, {
|
|
|
385
385
|
setState((prev) => setNestedValue(prev, dotPath, fixedValue));
|
|
386
386
|
validateNestedInput(dotPath, fixedValue);
|
|
387
387
|
};
|
|
388
|
-
const
|
|
388
|
+
const on = {
|
|
389
389
|
input: (...args) => {
|
|
390
390
|
if (args.length === 1) {
|
|
391
391
|
const id = args[0];
|
|
@@ -507,7 +507,7 @@ function useForm(initialState, {
|
|
|
507
507
|
setState,
|
|
508
508
|
touched,
|
|
509
509
|
errors: errors2,
|
|
510
|
-
on
|
|
510
|
+
on,
|
|
511
511
|
helpers: {
|
|
512
512
|
addItem: (arrayKey, item, index) => {
|
|
513
513
|
setState((prev) => {
|
|
@@ -623,32 +623,6 @@ function useForm(initialState, {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
var { on } = useForm({
|
|
627
|
-
name: "Juan",
|
|
628
|
-
age: 25,
|
|
629
|
-
address: {
|
|
630
|
-
city: "Bogota",
|
|
631
|
-
country: "Colombia"
|
|
632
|
-
},
|
|
633
|
-
lines: [
|
|
634
|
-
{
|
|
635
|
-
id: 1,
|
|
636
|
-
name: "Line 1",
|
|
637
|
-
location: {
|
|
638
|
-
country: "CO",
|
|
639
|
-
city: "Bogota"
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
id: 2,
|
|
644
|
-
name: "Line 2",
|
|
645
|
-
location: {
|
|
646
|
-
country: "VE",
|
|
647
|
-
city: "Caracas"
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
]
|
|
651
|
-
});
|
|
652
626
|
export {
|
|
653
627
|
NextUIError,
|
|
654
628
|
useForm
|