@fuf-stack/uniform 1.4.2 → 1.5.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/Checkboxes/index.cjs +16 -0
- package/dist/{RadioGroup → Checkboxes}/index.cjs.map +1 -1
- package/dist/Checkboxes/index.d.cts +10 -0
- package/dist/Checkboxes/index.d.ts +10 -0
- package/dist/Checkboxes/index.js +16 -0
- package/dist/{CheckboxGroup-B1g42iP0.d.cts → Checkboxes-CR0Uu2g9.d.cts} +9 -9
- package/dist/{CheckboxGroup-B1g42iP0.d.ts → Checkboxes-CR0Uu2g9.d.ts} +9 -9
- package/dist/FieldArray/index.cjs +5 -5
- package/dist/FieldArray/index.d.cts +2 -2
- package/dist/FieldArray/index.d.ts +2 -2
- package/dist/FieldArray/index.js +4 -4
- package/dist/FieldArray-EP4otr2x.d.cts +160 -0
- package/dist/FieldArray-EP4otr2x.d.ts +160 -0
- package/dist/{FieldValidationError-CU_xw0BL.d.ts → FieldValidationError-DwtLkGMo.d.cts} +2 -2
- package/dist/{FieldValidationError-CU_xw0BL.d.cts → FieldValidationError-DwtLkGMo.d.ts} +2 -2
- package/dist/Form/index.cjs +6 -4
- package/dist/Form/index.cjs.map +1 -1
- package/dist/Form/index.js +5 -3
- package/dist/Input/index.cjs +5 -5
- package/dist/Input/index.d.cts +2 -2
- package/dist/Input/index.d.ts +2 -2
- package/dist/Input/index.js +4 -4
- package/dist/{Input-C6ujfEkn.d.ts → Input-CCIEnvIp.d.ts} +1 -1
- package/dist/{Input-BQkZtJx8.d.cts → Input-D7HT_8jf.d.cts} +1 -1
- package/dist/RadioBoxes/index.cjs +5 -5
- package/dist/RadioBoxes/index.d.cts +3 -2
- package/dist/RadioBoxes/index.d.ts +3 -2
- package/dist/RadioBoxes/index.js +4 -4
- package/dist/{RadioBoxes-CE3mYoFk.d.cts → RadioBoxes-DpkI28l0.d.cts} +3 -2
- package/dist/{RadioBoxes-CE3mYoFk.d.ts → RadioBoxes-DpkI28l0.d.ts} +3 -2
- package/dist/RadioTabs/index.cjs +5 -5
- package/dist/RadioTabs/index.d.cts +2 -2
- package/dist/RadioTabs/index.d.ts +2 -2
- package/dist/RadioTabs/index.js +4 -4
- package/dist/{RadioTabs-BCWW3tru.d.cts → RadioTabs-DTDcAZoH.d.cts} +1 -1
- package/dist/{RadioTabs-BCWW3tru.d.ts → RadioTabs-DTDcAZoH.d.ts} +1 -1
- package/dist/Radios/index.cjs +16 -0
- package/dist/Radios/index.cjs.map +1 -0
- package/dist/Radios/index.d.cts +9 -0
- package/dist/Radios/index.d.ts +9 -0
- package/dist/Radios/index.js +16 -0
- package/dist/{RadioGroup-CAOX80Xx.d.cts → Radios-DprlJhoq.d.cts} +9 -9
- package/dist/{RadioGroup-CAOX80Xx.d.ts → Radios-DprlJhoq.d.ts} +9 -9
- package/dist/Select/index.cjs +5 -5
- package/dist/Select/index.d.cts +2 -2
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +4 -4
- package/dist/{Select-CTRWinmO.d.cts → Select-CDkZmZp2.d.cts} +1 -1
- package/dist/{Select-CTRWinmO.d.ts → Select-CDkZmZp2.d.ts} +1 -1
- package/dist/SubmitButton/index.cjs +6 -4
- package/dist/SubmitButton/index.cjs.map +1 -1
- package/dist/SubmitButton/index.js +5 -3
- package/dist/Switch/index.cjs +5 -5
- package/dist/Switch/index.js +4 -4
- package/dist/TextArea/index.cjs +5 -5
- package/dist/TextArea/index.d.cts +4 -2
- package/dist/TextArea/index.d.ts +4 -2
- package/dist/TextArea/index.js +4 -4
- package/dist/TextArea-DhxNWYNg.d.cts +86 -0
- package/dist/TextArea-DhxNWYNg.d.ts +86 -0
- package/dist/{chunk-Y3GELCDP.js → chunk-2QLCCB3L.js} +62 -67
- package/dist/chunk-2QLCCB3L.js.map +1 -0
- package/dist/chunk-3YDAYNNB.cjs +683 -0
- package/dist/chunk-3YDAYNNB.cjs.map +1 -0
- package/dist/chunk-4GBNXNCZ.js +683 -0
- package/dist/chunk-4GBNXNCZ.js.map +1 -0
- package/dist/{chunk-ULR4573W.cjs → chunk-4MMOSRT3.cjs} +40 -38
- package/dist/chunk-4MMOSRT3.cjs.map +1 -0
- package/dist/{chunk-FHRMVL6B.js → chunk-62BVHALF.js} +134 -89
- package/dist/chunk-62BVHALF.js.map +1 -0
- package/dist/{chunk-UGCZORU3.cjs → chunk-65BN4MRG.cjs} +9 -9
- package/dist/chunk-65BN4MRG.cjs.map +1 -0
- package/dist/{chunk-2B6CDMOZ.js → chunk-74NPRJVH.js} +16 -25
- package/dist/chunk-74NPRJVH.js.map +1 -0
- package/dist/chunk-76KOVUDN.js +138 -0
- package/dist/chunk-76KOVUDN.js.map +1 -0
- package/dist/{chunk-AYNTZPKL.cjs → chunk-7NWHDCME.cjs} +132 -87
- package/dist/chunk-7NWHDCME.cjs.map +1 -0
- package/dist/{chunk-IYDCKENI.js → chunk-CFH4VPJ4.js} +166 -26
- package/dist/chunk-CFH4VPJ4.js.map +1 -0
- package/dist/{chunk-KG4XCEPW.js → chunk-COLAXULB.js} +42 -40
- package/dist/chunk-COLAXULB.js.map +1 -0
- package/dist/{chunk-N2EEOWEP.cjs → chunk-DHO4HSO7.cjs} +59 -64
- package/dist/chunk-DHO4HSO7.cjs.map +1 -0
- package/dist/{chunk-77C6VN4L.cjs → chunk-EAJFV3AD.cjs} +50 -47
- package/dist/chunk-EAJFV3AD.cjs.map +1 -0
- package/dist/chunk-ELYGQTXB.js +47 -0
- package/dist/chunk-ELYGQTXB.js.map +1 -0
- package/dist/{chunk-FOVP54XP.cjs → chunk-EO4A7QGM.cjs} +18 -27
- package/dist/chunk-EO4A7QGM.cjs.map +1 -0
- package/dist/chunk-GVMEDVT5.cjs +117 -0
- package/dist/chunk-GVMEDVT5.cjs.map +1 -0
- package/dist/chunk-HSKFVCTS.js +103 -0
- package/dist/chunk-HSKFVCTS.js.map +1 -0
- package/dist/{chunk-2GYFDVXX.cjs → chunk-J5FFM7WG.cjs} +173 -33
- package/dist/chunk-J5FFM7WG.cjs.map +1 -0
- package/dist/{chunk-M2DNMSQZ.js → chunk-JLJB4A4K.js} +52 -49
- package/dist/chunk-JLJB4A4K.js.map +1 -0
- package/dist/{chunk-C64RKQEW.cjs → chunk-KBUECB4B.cjs} +3 -3
- package/dist/{chunk-C64RKQEW.cjs.map → chunk-KBUECB4B.cjs.map} +1 -1
- package/dist/chunk-NHEZXA4H.cjs +47 -0
- package/dist/chunk-NHEZXA4H.cjs.map +1 -0
- package/dist/chunk-RTFM4VRY.cjs +103 -0
- package/dist/chunk-RTFM4VRY.cjs.map +1 -0
- package/dist/{chunk-LJQ35BUK.js → chunk-RW35BB4P.js} +2 -2
- package/dist/{chunk-M7VM7XBE.js → chunk-SLTUNYTD.js} +8 -8
- package/dist/chunk-SLTUNYTD.js.map +1 -0
- package/dist/{chunk-YEKHVKS3.cjs → chunk-TFMVYQGN.cjs} +44 -42
- package/dist/chunk-TFMVYQGN.cjs.map +1 -0
- package/dist/chunk-TVMCTUQ4.js +117 -0
- package/dist/chunk-TVMCTUQ4.js.map +1 -0
- package/dist/chunk-Z353BLWI.cjs +138 -0
- package/dist/chunk-Z353BLWI.cjs.map +1 -0
- package/dist/{chunk-C52NGPIF.js → chunk-ZQ64MG7T.js} +48 -46
- package/dist/chunk-ZQ64MG7T.js.map +1 -0
- package/dist/helpers/index.cjs +4 -2
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.d.cts +54 -10
- package/dist/helpers/index.d.ts +54 -10
- package/dist/helpers/index.js +3 -1
- package/dist/hooks/index.cjs +7 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +86 -4
- package/dist/hooks/index.d.ts +86 -4
- package/dist/hooks/index.js +8 -4
- package/dist/index.cjs +20 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +30 -26
- package/dist/partials/FieldValidationError/index.cjs +2 -2
- package/dist/partials/FieldValidationError/index.d.cts +2 -2
- package/dist/partials/FieldValidationError/index.d.ts +2 -2
- package/dist/partials/FieldValidationError/index.js +1 -1
- package/package.json +12 -11
- package/dist/CheckboxGroup/index.cjs +0 -16
- package/dist/CheckboxGroup/index.cjs.map +0 -1
- package/dist/CheckboxGroup/index.d.cts +0 -10
- package/dist/CheckboxGroup/index.d.ts +0 -10
- package/dist/CheckboxGroup/index.js +0 -16
- package/dist/FieldArray-DVQka7Bh.d.cts +0 -130
- package/dist/FieldArray-DVQka7Bh.d.ts +0 -130
- package/dist/RadioGroup/index.cjs +0 -16
- package/dist/RadioGroup/index.d.cts +0 -9
- package/dist/RadioGroup/index.d.ts +0 -9
- package/dist/RadioGroup/index.js +0 -16
- package/dist/TextArea-DnFGyl4a.d.cts +0 -27
- package/dist/TextArea-DnFGyl4a.d.ts +0 -27
- package/dist/chunk-2B6CDMOZ.js.map +0 -1
- package/dist/chunk-2GYFDVXX.cjs.map +0 -1
- package/dist/chunk-77C6VN4L.cjs.map +0 -1
- package/dist/chunk-AYNTZPKL.cjs.map +0 -1
- package/dist/chunk-C52NGPIF.js.map +0 -1
- package/dist/chunk-CQWA2DFV.js +0 -37
- package/dist/chunk-CQWA2DFV.js.map +0 -1
- package/dist/chunk-EEBHFSBY.cjs +0 -112
- package/dist/chunk-EEBHFSBY.cjs.map +0 -1
- package/dist/chunk-FHRMVL6B.js.map +0 -1
- package/dist/chunk-FOVP54XP.cjs.map +0 -1
- package/dist/chunk-IYDCKENI.js.map +0 -1
- package/dist/chunk-JZF4HUYO.cjs +0 -409
- package/dist/chunk-JZF4HUYO.cjs.map +0 -1
- package/dist/chunk-KG4XCEPW.js.map +0 -1
- package/dist/chunk-KQN55PEW.js +0 -76
- package/dist/chunk-KQN55PEW.js.map +0 -1
- package/dist/chunk-M2DNMSQZ.js.map +0 -1
- package/dist/chunk-M7VM7XBE.js.map +0 -1
- package/dist/chunk-N2EEOWEP.cjs.map +0 -1
- package/dist/chunk-NAZIH6HV.js +0 -409
- package/dist/chunk-NAZIH6HV.js.map +0 -1
- package/dist/chunk-RDBCJJI7.cjs +0 -88
- package/dist/chunk-RDBCJJI7.cjs.map +0 -1
- package/dist/chunk-RF7KNUCI.js +0 -88
- package/dist/chunk-RF7KNUCI.js.map +0 -1
- package/dist/chunk-UGCZORU3.cjs.map +0 -1
- package/dist/chunk-ULR4573W.cjs.map +0 -1
- package/dist/chunk-XKMLCM5K.js +0 -112
- package/dist/chunk-XKMLCM5K.js.map +0 -1
- package/dist/chunk-Y3AB4GV6.cjs +0 -37
- package/dist/chunk-Y3AB4GV6.cjs.map +0 -1
- package/dist/chunk-Y3GELCDP.js.map +0 -1
- package/dist/chunk-YEKHVKS3.cjs.map +0 -1
- package/dist/chunk-YGNY6CKU.cjs +0 -76
- package/dist/chunk-YGNY6CKU.cjs.map +0 -1
- /package/dist/{CheckboxGroup → Checkboxes}/index.js.map +0 -0
- /package/dist/{RadioGroup → Radios}/index.js.map +0 -0
- /package/dist/{chunk-LJQ35BUK.js.map → chunk-RW35BB4P.js.map} +0 -0
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Key used to wrap flat array elements when converting to form format */
|
|
2
|
+
declare const flatArrayKey = "__FLAT__";
|
|
1
3
|
/**
|
|
2
4
|
* Converts marker strings back to their original values when processing arrays
|
|
3
5
|
*/
|
|
@@ -8,17 +10,25 @@ declare const fromNullishString: (value: unknown) => unknown;
|
|
|
8
10
|
declare const toNullishString: (value: unknown) => unknown;
|
|
9
11
|
/**
|
|
10
12
|
* Converts field values to a format suitable for forms by:
|
|
11
|
-
* -
|
|
13
|
+
* - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`
|
|
14
|
+
* to satisfy RHF's requirement that array fields contain objects
|
|
12
15
|
* - Removing empty strings and null values from objects
|
|
13
16
|
*
|
|
14
17
|
* This conversion is required because React Hook Form does not support arrays with
|
|
15
18
|
* flat values (string, number, boolean, null). Array fields must contain objects.
|
|
16
|
-
* We work around this by
|
|
19
|
+
* We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.
|
|
17
20
|
*
|
|
18
21
|
* @example
|
|
19
22
|
* const fields = {
|
|
20
23
|
* name: 'John',
|
|
21
24
|
* scores: [0, null, 75, false],
|
|
25
|
+
* scoresDetailed: [
|
|
26
|
+
* { score: 1 },
|
|
27
|
+
* { score: null },
|
|
28
|
+
* { score: 0 },
|
|
29
|
+
* { score: false },
|
|
30
|
+
* { score: '' },
|
|
31
|
+
* ],
|
|
22
32
|
* contact: {
|
|
23
33
|
* email: '',
|
|
24
34
|
* phone: null,
|
|
@@ -29,7 +39,20 @@ declare const toNullishString: (value: unknown) => unknown;
|
|
|
29
39
|
* // Result:
|
|
30
40
|
* {
|
|
31
41
|
* name: 'John',
|
|
32
|
-
* scores: [
|
|
42
|
+
* scores: [
|
|
43
|
+
* { __FLAT__: 0 },
|
|
44
|
+
* { __FLAT__: null },
|
|
45
|
+
* { __FLAT__: 75 },
|
|
46
|
+
* { __FLAT__: false }
|
|
47
|
+
* ],
|
|
48
|
+
* // Arrays of objects are left as objects; empty/null properties are removed
|
|
49
|
+
* scoresDetailed: [
|
|
50
|
+
* { score: 1 },
|
|
51
|
+
* {}, // null score removed
|
|
52
|
+
* { score: 0 },
|
|
53
|
+
* { score: false },
|
|
54
|
+
* {}, // empty string removed
|
|
55
|
+
* ],
|
|
33
56
|
* contact: {
|
|
34
57
|
* address: '123 Main St'
|
|
35
58
|
* }
|
|
@@ -38,16 +61,28 @@ declare const toNullishString: (value: unknown) => unknown;
|
|
|
38
61
|
declare const toFormFormat: (fields: Record<string, unknown>) => Record<string, unknown>;
|
|
39
62
|
/**
|
|
40
63
|
* Converts form state to a format suitable for validation by:
|
|
41
|
-
* -
|
|
42
|
-
* - Converting
|
|
43
|
-
* - Removing fields
|
|
64
|
+
* - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives
|
|
65
|
+
* - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values
|
|
66
|
+
* - Removing fields whose converted value is empty string or null
|
|
67
|
+
* - Removing empty arrays
|
|
44
68
|
*
|
|
45
69
|
* @example
|
|
46
70
|
* const formState = {
|
|
47
71
|
* name: 'John',
|
|
48
|
-
* scores: [
|
|
49
|
-
*
|
|
50
|
-
*
|
|
72
|
+
* scores: [
|
|
73
|
+
* { __FLAT__: 75 },
|
|
74
|
+
* { __FLAT__: 0 },
|
|
75
|
+
* { __FLAT__: null },
|
|
76
|
+
* { __FLAT__: false }
|
|
77
|
+
* ],
|
|
78
|
+
* emptyArray: [],
|
|
79
|
+
* scoresDetailed: [
|
|
80
|
+
* { score: 1 },
|
|
81
|
+
* {},
|
|
82
|
+
* { score: 0 },
|
|
83
|
+
* { score: false },
|
|
84
|
+
* {},
|
|
85
|
+
* ],
|
|
51
86
|
* contact: {
|
|
52
87
|
* address: '123 Main St',
|
|
53
88
|
* fax: null
|
|
@@ -58,6 +93,15 @@ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string,
|
|
|
58
93
|
* {
|
|
59
94
|
* name: 'John',
|
|
60
95
|
* scores: [75, 0, null, false],
|
|
96
|
+
* // emptyArray is removed
|
|
97
|
+
* // Objects inside arrays remain objects; empty entries remain empty objects
|
|
98
|
+
* scoresDetailed: [
|
|
99
|
+
* { score: 1 },
|
|
100
|
+
* {},
|
|
101
|
+
* { score: 0 },
|
|
102
|
+
* { score: false },
|
|
103
|
+
* {},
|
|
104
|
+
* ],
|
|
61
105
|
* contact: {
|
|
62
106
|
* address: '123 Main St'
|
|
63
107
|
* }
|
|
@@ -65,4 +109,4 @@ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string,
|
|
|
65
109
|
*/
|
|
66
110
|
declare const toValidationFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
|
|
67
111
|
|
|
68
|
-
export { fromNullishString, toFormFormat, toNullishString, toValidationFormat };
|
|
112
|
+
export { flatArrayKey, fromNullishString, toFormFormat, toNullishString, toValidationFormat };
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Key used to wrap flat array elements when converting to form format */
|
|
2
|
+
declare const flatArrayKey = "__FLAT__";
|
|
1
3
|
/**
|
|
2
4
|
* Converts marker strings back to their original values when processing arrays
|
|
3
5
|
*/
|
|
@@ -8,17 +10,25 @@ declare const fromNullishString: (value: unknown) => unknown;
|
|
|
8
10
|
declare const toNullishString: (value: unknown) => unknown;
|
|
9
11
|
/**
|
|
10
12
|
* Converts field values to a format suitable for forms by:
|
|
11
|
-
* -
|
|
13
|
+
* - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`
|
|
14
|
+
* to satisfy RHF's requirement that array fields contain objects
|
|
12
15
|
* - Removing empty strings and null values from objects
|
|
13
16
|
*
|
|
14
17
|
* This conversion is required because React Hook Form does not support arrays with
|
|
15
18
|
* flat values (string, number, boolean, null). Array fields must contain objects.
|
|
16
|
-
* We work around this by
|
|
19
|
+
* We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.
|
|
17
20
|
*
|
|
18
21
|
* @example
|
|
19
22
|
* const fields = {
|
|
20
23
|
* name: 'John',
|
|
21
24
|
* scores: [0, null, 75, false],
|
|
25
|
+
* scoresDetailed: [
|
|
26
|
+
* { score: 1 },
|
|
27
|
+
* { score: null },
|
|
28
|
+
* { score: 0 },
|
|
29
|
+
* { score: false },
|
|
30
|
+
* { score: '' },
|
|
31
|
+
* ],
|
|
22
32
|
* contact: {
|
|
23
33
|
* email: '',
|
|
24
34
|
* phone: null,
|
|
@@ -29,7 +39,20 @@ declare const toNullishString: (value: unknown) => unknown;
|
|
|
29
39
|
* // Result:
|
|
30
40
|
* {
|
|
31
41
|
* name: 'John',
|
|
32
|
-
* scores: [
|
|
42
|
+
* scores: [
|
|
43
|
+
* { __FLAT__: 0 },
|
|
44
|
+
* { __FLAT__: null },
|
|
45
|
+
* { __FLAT__: 75 },
|
|
46
|
+
* { __FLAT__: false }
|
|
47
|
+
* ],
|
|
48
|
+
* // Arrays of objects are left as objects; empty/null properties are removed
|
|
49
|
+
* scoresDetailed: [
|
|
50
|
+
* { score: 1 },
|
|
51
|
+
* {}, // null score removed
|
|
52
|
+
* { score: 0 },
|
|
53
|
+
* { score: false },
|
|
54
|
+
* {}, // empty string removed
|
|
55
|
+
* ],
|
|
33
56
|
* contact: {
|
|
34
57
|
* address: '123 Main St'
|
|
35
58
|
* }
|
|
@@ -38,16 +61,28 @@ declare const toNullishString: (value: unknown) => unknown;
|
|
|
38
61
|
declare const toFormFormat: (fields: Record<string, unknown>) => Record<string, unknown>;
|
|
39
62
|
/**
|
|
40
63
|
* Converts form state to a format suitable for validation by:
|
|
41
|
-
* -
|
|
42
|
-
* - Converting
|
|
43
|
-
* - Removing fields
|
|
64
|
+
* - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives
|
|
65
|
+
* - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values
|
|
66
|
+
* - Removing fields whose converted value is empty string or null
|
|
67
|
+
* - Removing empty arrays
|
|
44
68
|
*
|
|
45
69
|
* @example
|
|
46
70
|
* const formState = {
|
|
47
71
|
* name: 'John',
|
|
48
|
-
* scores: [
|
|
49
|
-
*
|
|
50
|
-
*
|
|
72
|
+
* scores: [
|
|
73
|
+
* { __FLAT__: 75 },
|
|
74
|
+
* { __FLAT__: 0 },
|
|
75
|
+
* { __FLAT__: null },
|
|
76
|
+
* { __FLAT__: false }
|
|
77
|
+
* ],
|
|
78
|
+
* emptyArray: [],
|
|
79
|
+
* scoresDetailed: [
|
|
80
|
+
* { score: 1 },
|
|
81
|
+
* {},
|
|
82
|
+
* { score: 0 },
|
|
83
|
+
* { score: false },
|
|
84
|
+
* {},
|
|
85
|
+
* ],
|
|
51
86
|
* contact: {
|
|
52
87
|
* address: '123 Main St',
|
|
53
88
|
* fax: null
|
|
@@ -58,6 +93,15 @@ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string,
|
|
|
58
93
|
* {
|
|
59
94
|
* name: 'John',
|
|
60
95
|
* scores: [75, 0, null, false],
|
|
96
|
+
* // emptyArray is removed
|
|
97
|
+
* // Objects inside arrays remain objects; empty entries remain empty objects
|
|
98
|
+
* scoresDetailed: [
|
|
99
|
+
* { score: 1 },
|
|
100
|
+
* {},
|
|
101
|
+
* { score: 0 },
|
|
102
|
+
* { score: false },
|
|
103
|
+
* {},
|
|
104
|
+
* ],
|
|
61
105
|
* contact: {
|
|
62
106
|
* address: '123 Main St'
|
|
63
107
|
* }
|
|
@@ -65,4 +109,4 @@ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string,
|
|
|
65
109
|
*/
|
|
66
110
|
declare const toValidationFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
|
|
67
111
|
|
|
68
|
-
export { fromNullishString, toFormFormat, toNullishString, toValidationFormat };
|
|
112
|
+
export { flatArrayKey, fromNullishString, toFormFormat, toNullishString, toValidationFormat };
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
flatArrayKey,
|
|
2
3
|
fromNullishString,
|
|
3
4
|
toFormFormat,
|
|
4
5
|
toNullishString,
|
|
5
6
|
toValidationFormat
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-76KOVUDN.js";
|
|
7
8
|
import "../chunk-K2V4ULA2.js";
|
|
8
9
|
export {
|
|
10
|
+
flatArrayKey,
|
|
9
11
|
fromNullishString,
|
|
10
12
|
toFormFormat,
|
|
11
13
|
toNullishString,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
require('../chunk-
|
|
8
|
+
|
|
9
|
+
var _chunkJ5FFM7WGcjs = require('../chunk-J5FFM7WG.cjs');
|
|
10
|
+
require('../chunk-OE5BOGGX.cjs');
|
|
11
|
+
require('../chunk-NHEZXA4H.cjs');
|
|
12
|
+
require('../chunk-Z353BLWI.cjs');
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
var _chunkFLK6OPFYcjs = require('../chunk-FLK6OPFY.cjs');
|
|
@@ -23,5 +26,6 @@ require('../chunk-555JRYCS.cjs');
|
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
|
|
30
|
+
exports.checkFieldIsRequired = _chunkJ5FFM7WGcjs.checkFieldIsRequired; exports.useClientValidation = _chunkJ5FFM7WGcjs.useClientValidation; exports.useController = _chunkJ5FFM7WGcjs.useController; exports.useFieldArray = _chunkJ5FFM7WGcjs.useFieldArray; exports.useFormContext = _chunkJ5FFM7WGcjs.useFormContext; exports.useInput = _chunkJ5FFM7WGcjs.useInput; exports.useInputValueDebounce = _chunkFLK6OPFYcjs.useInputValueDebounce; exports.useInputValueTransform = _chunkP6HJOG7Dcjs.useInputValueTransform; exports.useUniformField = _chunkJ5FFM7WGcjs.useUniformField;
|
|
27
31
|
//# sourceMappingURL=index.cjs.map
|
package/dist/hooks/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wjBAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/index.cjs"}
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as _fuf_stack_veto from '@fuf-stack/veto';
|
|
2
|
-
import { VetoTypeAny, VetoInstance } from '@fuf-stack/veto';
|
|
2
|
+
import { VetoTypeAny, VetoInstance, VetoFormattedError } from '@fuf-stack/veto';
|
|
3
3
|
import * as react_hook_form from 'react-hook-form';
|
|
4
4
|
import { UseControllerProps as UseControllerProps$1, ControllerRenderProps, UseFormStateReturn, ControllerFieldState, FieldValues, Path, FieldError } from 'react-hook-form';
|
|
5
5
|
export { useFieldArray } from 'react-hook-form';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
7
8
|
import { D as DebugModeSettings } from '../FormContext-LRho0tno.cjs';
|
|
9
|
+
import { useInput } from '@heroui/input';
|
|
8
10
|
export { useInput } from '@heroui/input';
|
|
9
11
|
export { UseInputValueDebounceOptions, UseInputValueDebounceReturn, useInputValueDebounce } from './useInputValueDebounce/index.cjs';
|
|
10
12
|
export { InputValueTransform, UseInputValueTransformOptions, UseInputValueTransformReturn, useInputValueTransform } from './useInputValueTransform/index.cjs';
|
|
@@ -71,9 +73,9 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
71
73
|
formState: react_hook_form.FormState<TFieldValues>;
|
|
72
74
|
getFieldState: (name: Path<TFieldValues>, testId?: string) => {
|
|
73
75
|
error: FieldError[] | undefined;
|
|
76
|
+
invalid: boolean;
|
|
74
77
|
required: boolean;
|
|
75
78
|
testId: string;
|
|
76
|
-
invalid: boolean;
|
|
77
79
|
isDirty: boolean;
|
|
78
80
|
isTouched: boolean;
|
|
79
81
|
isValidating: boolean;
|
|
@@ -88,7 +90,7 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
88
90
|
triggerSubmit: (e?: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
89
91
|
validation: {
|
|
90
92
|
instance?: VetoInstance;
|
|
91
|
-
errors?:
|
|
93
|
+
errors?: VetoFormattedError;
|
|
92
94
|
setClientValidationSchema: (key: string, schema: _fuf_stack_veto.VetoTypeAny | null) => void;
|
|
93
95
|
};
|
|
94
96
|
setError: react_hook_form.UseFormSetError<TFieldValues>;
|
|
@@ -104,4 +106,84 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
104
106
|
setFocus: react_hook_form.UseFormSetFocus<TFieldValues>;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
interface UseUniformFieldParams<TFieldValues extends FieldValues = FieldValues> {
|
|
110
|
+
/** Form field name */
|
|
111
|
+
name: Path<TFieldValues> & string;
|
|
112
|
+
/** Disable the field */
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/** Optional explicit test id used to build stable test ids */
|
|
115
|
+
testId?: string;
|
|
116
|
+
/** Optional label content; pass false to suppress label entirely */
|
|
117
|
+
label?: ReactNode | false;
|
|
118
|
+
/**
|
|
119
|
+
* When to show the invalid state to users.
|
|
120
|
+
* - 'touched': Only show errors after field is touched or form is submitted (default, good for text inputs)
|
|
121
|
+
* - 'immediate': Show errors as soon as they occur (good for checkboxes, radios, arrays)
|
|
122
|
+
*/
|
|
123
|
+
showInvalidWhen?: 'touched' | 'immediate';
|
|
124
|
+
}
|
|
125
|
+
interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues> {
|
|
126
|
+
/** react-hook-form control instance for advanced integrations */
|
|
127
|
+
control: ReturnType<typeof useFormContext<TFieldValues>>['control'];
|
|
128
|
+
/** Debug mode from Uniform provider */
|
|
129
|
+
debugMode: ReturnType<typeof useFormContext<TFieldValues>>['debugMode'];
|
|
130
|
+
/** Current value used to initialize uncontrolled components */
|
|
131
|
+
defaultValue: unknown;
|
|
132
|
+
/** Whether the field is currently disabled (from RHF) */
|
|
133
|
+
disabled: boolean | undefined;
|
|
134
|
+
/** Validation error(s) for the field */
|
|
135
|
+
error: FieldError[] | undefined;
|
|
136
|
+
/** Pre-built errorMessage node to plug into components */
|
|
137
|
+
errorMessage: ReactNode | null;
|
|
138
|
+
/** RHF controller field with nullish conversions applied */
|
|
139
|
+
field: ReturnType<typeof useController<TFieldValues>>['field'];
|
|
140
|
+
/** Helper to spread standardized error message props to underlying components */
|
|
141
|
+
getErrorMessageProps: ReturnType<typeof useInput>['getErrorMessageProps'];
|
|
142
|
+
/** Helper to spread standardized helper wrapper props (for spacing/animation) */
|
|
143
|
+
getHelperWrapperProps: ReturnType<typeof useInput>['getHelperWrapperProps'];
|
|
144
|
+
/** Helper to spread standardized label props to underlying components */
|
|
145
|
+
getLabelProps: ReturnType<typeof useInput>['getLabelProps'];
|
|
146
|
+
/** Access current form values (converted to validation-friendly format) */
|
|
147
|
+
getValues: ReturnType<typeof useFormContext<TFieldValues>>['getValues'];
|
|
148
|
+
/** Whether the field is invalid (debounced for smoother exit animations) */
|
|
149
|
+
invalid: boolean;
|
|
150
|
+
/** Computed label node including optional test id copy button */
|
|
151
|
+
label: ReactNode | null;
|
|
152
|
+
/** onBlur handler from controller */
|
|
153
|
+
onBlur: ReturnType<typeof useController<TFieldValues>>['field']['onBlur'];
|
|
154
|
+
/** onChange handler from controller (with nullish handling) */
|
|
155
|
+
onChange: ReturnType<typeof useController<TFieldValues>>['field']['onChange'];
|
|
156
|
+
/** Ref to forward to underlying control */
|
|
157
|
+
ref: ReturnType<typeof useController<TFieldValues>>['field']['ref'];
|
|
158
|
+
/** Whether the field is required according to validation schema */
|
|
159
|
+
required: boolean;
|
|
160
|
+
/** Reset a specific field in the form */
|
|
161
|
+
resetField: ReturnType<typeof useFormContext<TFieldValues>>['resetField'];
|
|
162
|
+
/** Generated HTML data-testid for the field */
|
|
163
|
+
testId: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Combines frequently used form field logic into a single hook.
|
|
167
|
+
*
|
|
168
|
+
* Provides:
|
|
169
|
+
* - Enhanced form context (validation-aware state, `testId`, value transforms)
|
|
170
|
+
* - Controller field with nullish conversion handling
|
|
171
|
+
* - Debounced `invalid` state with smart timing:
|
|
172
|
+
* • `true` (field becomes invalid): applies immediately so errors show right away
|
|
173
|
+
* • `false` (field becomes valid): delayed 200ms to allow smooth exit animations
|
|
174
|
+
* • Respects `prefers-reduced-motion` by skipping delays when user prefers reduced motion
|
|
175
|
+
* - Smart `invalid` visibility (via `showInvalid`), configurable via `showInvalidWhen`:
|
|
176
|
+
* • 'touched' (default): Shows errors only after field touched OR form submitted
|
|
177
|
+
* • 'immediate': Shows errors as soon as validation fails (for checkboxes/radios/arrays)
|
|
178
|
+
* • Prevents showing errors on pristine fields for better UX
|
|
179
|
+
* - Prebuilt `errorMessage` React node using `FieldValidationError`
|
|
180
|
+
* - Computed `label` node which appends a `FieldCopyTestIdButton` in
|
|
181
|
+
* `debug-testids` mode
|
|
182
|
+
* - `defaultValue` for uncontrolled defaults and all usual field handlers
|
|
183
|
+
* - Access to form utilities: `control`, `getValues`, `resetField`
|
|
184
|
+
* - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,
|
|
185
|
+
* `getHelperWrapperProps` for consistent wiring to underlying UI components
|
|
186
|
+
*/
|
|
187
|
+
declare function useUniformField<TFieldValues extends FieldValues = FieldValues>(params: UseUniformFieldParams<TFieldValues>): UseUniformFieldReturn<TFieldValues>;
|
|
188
|
+
|
|
189
|
+
export { type UseControllerProps, type UseControllerReturn, type UseUniformFieldParams, type UseUniformFieldReturn, checkFieldIsRequired, useClientValidation, useController, useFormContext, useUniformField };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as _fuf_stack_veto from '@fuf-stack/veto';
|
|
2
|
-
import { VetoTypeAny, VetoInstance } from '@fuf-stack/veto';
|
|
2
|
+
import { VetoTypeAny, VetoInstance, VetoFormattedError } from '@fuf-stack/veto';
|
|
3
3
|
import * as react_hook_form from 'react-hook-form';
|
|
4
4
|
import { UseControllerProps as UseControllerProps$1, ControllerRenderProps, UseFormStateReturn, ControllerFieldState, FieldValues, Path, FieldError } from 'react-hook-form';
|
|
5
5
|
export { useFieldArray } from 'react-hook-form';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
7
8
|
import { D as DebugModeSettings } from '../FormContext-LRho0tno.js';
|
|
9
|
+
import { useInput } from '@heroui/input';
|
|
8
10
|
export { useInput } from '@heroui/input';
|
|
9
11
|
export { UseInputValueDebounceOptions, UseInputValueDebounceReturn, useInputValueDebounce } from './useInputValueDebounce/index.js';
|
|
10
12
|
export { InputValueTransform, UseInputValueTransformOptions, UseInputValueTransformReturn, useInputValueTransform } from './useInputValueTransform/index.js';
|
|
@@ -71,9 +73,9 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
71
73
|
formState: react_hook_form.FormState<TFieldValues>;
|
|
72
74
|
getFieldState: (name: Path<TFieldValues>, testId?: string) => {
|
|
73
75
|
error: FieldError[] | undefined;
|
|
76
|
+
invalid: boolean;
|
|
74
77
|
required: boolean;
|
|
75
78
|
testId: string;
|
|
76
|
-
invalid: boolean;
|
|
77
79
|
isDirty: boolean;
|
|
78
80
|
isTouched: boolean;
|
|
79
81
|
isValidating: boolean;
|
|
@@ -88,7 +90,7 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
88
90
|
triggerSubmit: (e?: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
89
91
|
validation: {
|
|
90
92
|
instance?: VetoInstance;
|
|
91
|
-
errors?:
|
|
93
|
+
errors?: VetoFormattedError;
|
|
92
94
|
setClientValidationSchema: (key: string, schema: _fuf_stack_veto.VetoTypeAny | null) => void;
|
|
93
95
|
};
|
|
94
96
|
setError: react_hook_form.UseFormSetError<TFieldValues>;
|
|
@@ -104,4 +106,84 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
104
106
|
setFocus: react_hook_form.UseFormSetFocus<TFieldValues>;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
interface UseUniformFieldParams<TFieldValues extends FieldValues = FieldValues> {
|
|
110
|
+
/** Form field name */
|
|
111
|
+
name: Path<TFieldValues> & string;
|
|
112
|
+
/** Disable the field */
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/** Optional explicit test id used to build stable test ids */
|
|
115
|
+
testId?: string;
|
|
116
|
+
/** Optional label content; pass false to suppress label entirely */
|
|
117
|
+
label?: ReactNode | false;
|
|
118
|
+
/**
|
|
119
|
+
* When to show the invalid state to users.
|
|
120
|
+
* - 'touched': Only show errors after field is touched or form is submitted (default, good for text inputs)
|
|
121
|
+
* - 'immediate': Show errors as soon as they occur (good for checkboxes, radios, arrays)
|
|
122
|
+
*/
|
|
123
|
+
showInvalidWhen?: 'touched' | 'immediate';
|
|
124
|
+
}
|
|
125
|
+
interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues> {
|
|
126
|
+
/** react-hook-form control instance for advanced integrations */
|
|
127
|
+
control: ReturnType<typeof useFormContext<TFieldValues>>['control'];
|
|
128
|
+
/** Debug mode from Uniform provider */
|
|
129
|
+
debugMode: ReturnType<typeof useFormContext<TFieldValues>>['debugMode'];
|
|
130
|
+
/** Current value used to initialize uncontrolled components */
|
|
131
|
+
defaultValue: unknown;
|
|
132
|
+
/** Whether the field is currently disabled (from RHF) */
|
|
133
|
+
disabled: boolean | undefined;
|
|
134
|
+
/** Validation error(s) for the field */
|
|
135
|
+
error: FieldError[] | undefined;
|
|
136
|
+
/** Pre-built errorMessage node to plug into components */
|
|
137
|
+
errorMessage: ReactNode | null;
|
|
138
|
+
/** RHF controller field with nullish conversions applied */
|
|
139
|
+
field: ReturnType<typeof useController<TFieldValues>>['field'];
|
|
140
|
+
/** Helper to spread standardized error message props to underlying components */
|
|
141
|
+
getErrorMessageProps: ReturnType<typeof useInput>['getErrorMessageProps'];
|
|
142
|
+
/** Helper to spread standardized helper wrapper props (for spacing/animation) */
|
|
143
|
+
getHelperWrapperProps: ReturnType<typeof useInput>['getHelperWrapperProps'];
|
|
144
|
+
/** Helper to spread standardized label props to underlying components */
|
|
145
|
+
getLabelProps: ReturnType<typeof useInput>['getLabelProps'];
|
|
146
|
+
/** Access current form values (converted to validation-friendly format) */
|
|
147
|
+
getValues: ReturnType<typeof useFormContext<TFieldValues>>['getValues'];
|
|
148
|
+
/** Whether the field is invalid (debounced for smoother exit animations) */
|
|
149
|
+
invalid: boolean;
|
|
150
|
+
/** Computed label node including optional test id copy button */
|
|
151
|
+
label: ReactNode | null;
|
|
152
|
+
/** onBlur handler from controller */
|
|
153
|
+
onBlur: ReturnType<typeof useController<TFieldValues>>['field']['onBlur'];
|
|
154
|
+
/** onChange handler from controller (with nullish handling) */
|
|
155
|
+
onChange: ReturnType<typeof useController<TFieldValues>>['field']['onChange'];
|
|
156
|
+
/** Ref to forward to underlying control */
|
|
157
|
+
ref: ReturnType<typeof useController<TFieldValues>>['field']['ref'];
|
|
158
|
+
/** Whether the field is required according to validation schema */
|
|
159
|
+
required: boolean;
|
|
160
|
+
/** Reset a specific field in the form */
|
|
161
|
+
resetField: ReturnType<typeof useFormContext<TFieldValues>>['resetField'];
|
|
162
|
+
/** Generated HTML data-testid for the field */
|
|
163
|
+
testId: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Combines frequently used form field logic into a single hook.
|
|
167
|
+
*
|
|
168
|
+
* Provides:
|
|
169
|
+
* - Enhanced form context (validation-aware state, `testId`, value transforms)
|
|
170
|
+
* - Controller field with nullish conversion handling
|
|
171
|
+
* - Debounced `invalid` state with smart timing:
|
|
172
|
+
* • `true` (field becomes invalid): applies immediately so errors show right away
|
|
173
|
+
* • `false` (field becomes valid): delayed 200ms to allow smooth exit animations
|
|
174
|
+
* • Respects `prefers-reduced-motion` by skipping delays when user prefers reduced motion
|
|
175
|
+
* - Smart `invalid` visibility (via `showInvalid`), configurable via `showInvalidWhen`:
|
|
176
|
+
* • 'touched' (default): Shows errors only after field touched OR form submitted
|
|
177
|
+
* • 'immediate': Shows errors as soon as validation fails (for checkboxes/radios/arrays)
|
|
178
|
+
* • Prevents showing errors on pristine fields for better UX
|
|
179
|
+
* - Prebuilt `errorMessage` React node using `FieldValidationError`
|
|
180
|
+
* - Computed `label` node which appends a `FieldCopyTestIdButton` in
|
|
181
|
+
* `debug-testids` mode
|
|
182
|
+
* - `defaultValue` for uncontrolled defaults and all usual field handlers
|
|
183
|
+
* - Access to form utilities: `control`, `getValues`, `resetField`
|
|
184
|
+
* - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,
|
|
185
|
+
* `getHelperWrapperProps` for consistent wiring to underlying UI components
|
|
186
|
+
*/
|
|
187
|
+
declare function useUniformField<TFieldValues extends FieldValues = FieldValues>(params: UseUniformFieldParams<TFieldValues>): UseUniformFieldReturn<TFieldValues>;
|
|
188
|
+
|
|
189
|
+
export { type UseControllerProps, type UseControllerReturn, type UseUniformFieldParams, type UseUniformFieldReturn, checkFieldIsRequired, useClientValidation, useController, useFormContext, useUniformField };
|
package/dist/hooks/index.js
CHANGED
|
@@ -4,9 +4,12 @@ import {
|
|
|
4
4
|
useController,
|
|
5
5
|
useFieldArray,
|
|
6
6
|
useFormContext,
|
|
7
|
-
useInput
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
useInput,
|
|
8
|
+
useUniformField
|
|
9
|
+
} from "../chunk-CFH4VPJ4.js";
|
|
10
|
+
import "../chunk-NTDKZW4E.js";
|
|
11
|
+
import "../chunk-ELYGQTXB.js";
|
|
12
|
+
import "../chunk-76KOVUDN.js";
|
|
10
13
|
import {
|
|
11
14
|
useInputValueDebounce
|
|
12
15
|
} from "../chunk-6IU7IYYB.js";
|
|
@@ -22,6 +25,7 @@ export {
|
|
|
22
25
|
useFormContext,
|
|
23
26
|
useInput,
|
|
24
27
|
useInputValueDebounce,
|
|
25
|
-
useInputValueTransform
|
|
28
|
+
useInputValueTransform,
|
|
29
|
+
useUniformField
|
|
26
30
|
};
|
|
27
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGVMEDVT5cjs = require('./chunk-GVMEDVT5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7NWHDCMEcjs = require('./chunk-7NWHDCME.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkKBUECB4Bcjs = require('./chunk-KBUECB4B.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk65BN4MRGcjs = require('./chunk-65BN4MRG.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkRTFM4VRYcjs = require('./chunk-RTFM4VRY.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkDHO4HSO7cjs = require('./chunk-DHO4HSO7.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk3YDAYNNBcjs = require('./chunk-3YDAYNNB.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkEO4A7QGMcjs = require('./chunk-EO4A7QGM.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkTTD3KL6Ecjs = require('./chunk-TTD3KL6E.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkEAJFV3ADcjs = require('./chunk-EAJFV3AD.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk4MMOSRT3cjs = require('./chunk-4MMOSRT3.cjs');
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var _chunkTFMVYQGNcjs = require('./chunk-TFMVYQGN.cjs');
|
|
34
37
|
|
|
35
38
|
|
|
36
|
-
var _chunkEEBHFSBYcjs = require('./chunk-EEBHFSBY.cjs');
|
|
37
39
|
|
|
38
40
|
|
|
39
|
-
var _chunkOE5BOGGXcjs = require('./chunk-OE5BOGGX.cjs');
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
var _chunkY3AB4GV6cjs = require('./chunk-Y3AB4GV6.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
var _chunkJ5FFM7WGcjs = require('./chunk-J5FFM7WG.cjs');
|
|
45
46
|
|
|
46
47
|
|
|
48
|
+
var _chunkOE5BOGGXcjs = require('./chunk-OE5BOGGX.cjs');
|
|
47
49
|
|
|
48
50
|
|
|
51
|
+
var _chunkNHEZXA4Hcjs = require('./chunk-NHEZXA4H.cjs');
|
|
49
52
|
|
|
50
|
-
var _chunk2GYFDVXXcjs = require('./chunk-2GYFDVXX.cjs');
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
|
|
56
|
-
var
|
|
58
|
+
var _chunkZ353BLWIcjs = require('./chunk-Z353BLWI.cjs');
|
|
57
59
|
|
|
58
60
|
|
|
59
61
|
var _chunkFLK6OPFYcjs = require('./chunk-FLK6OPFY.cjs');
|
|
@@ -88,5 +90,7 @@ require('./chunk-555JRYCS.cjs');
|
|
|
88
90
|
|
|
89
91
|
|
|
90
92
|
|
|
91
|
-
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
exports.Checkboxes = _chunkDHO4HSO7cjs.Checkboxes_default; exports.FieldArray = _chunk3YDAYNNBcjs.FieldArray_default; exports.FieldCopyTestIdButton = _chunkOE5BOGGXcjs.FieldCopyTestIdButton_default; exports.FieldValidationError = _chunkNHEZXA4Hcjs.FieldValidationError_default; exports.Form = _chunkEO4A7QGMcjs.Form_default; exports.Grid = _chunkTTD3KL6Ecjs.Grid_default; exports.Input = _chunkEAJFV3ADcjs.Input_default; exports.RadioBoxes = _chunk4MMOSRT3cjs.RadioBoxes_default; exports.RadioTabs = _chunkTFMVYQGNcjs.RadioTabs_default; exports.Radios = _chunkGVMEDVT5cjs.Radios_default; exports.Select = _chunk7NWHDCMEcjs.Select_default; exports.SubmitButton = _chunkKBUECB4Bcjs.SubmitButton_default; exports.Switch = _chunk65BN4MRGcjs.Switch_default; exports.TextArea = _chunkRTFM4VRYcjs.TextArea_default; exports.checkFieldIsRequired = _chunkJ5FFM7WGcjs.checkFieldIsRequired; exports.flatArrayKey = _chunkZ353BLWIcjs.flatArrayKey; exports.fromNullishString = _chunkZ353BLWIcjs.fromNullishString; exports.toFormFormat = _chunkZ353BLWIcjs.toFormFormat; exports.toNullishString = _chunkZ353BLWIcjs.toNullishString; exports.toValidationFormat = _chunkZ353BLWIcjs.toValidationFormat; exports.useClientValidation = _chunkJ5FFM7WGcjs.useClientValidation; exports.useController = _chunkJ5FFM7WGcjs.useController; exports.useFieldArray = _chunkJ5FFM7WGcjs.useFieldArray; exports.useFormContext = _chunkJ5FFM7WGcjs.useFormContext; exports.useInput = _chunkJ5FFM7WGcjs.useInput; exports.useInputValueDebounce = _chunkFLK6OPFYcjs.useInputValueDebounce; exports.useInputValueTransform = _chunkP6HJOG7Dcjs.useInputValueTransform; exports.useUniformField = _chunkJ5FFM7WGcjs.useUniformField;
|
|
92
96
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+oDAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"}
|