@fuf-stack/uniform 1.16.0 → 1.16.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.d.cts +1 -1
- package/dist/Checkboxes/index.d.ts +1 -1
- package/dist/FieldArray/index.d.cts +1 -1
- package/dist/FieldArray/index.d.ts +1 -1
- package/dist/FieldCard/index.cjs +1 -1
- package/dist/FieldCard/index.d.cts +1 -1
- package/dist/FieldCard/index.d.ts +1 -1
- package/dist/FieldCard/index.js +1 -1
- package/dist/{FieldCard-DcMORXZR.cjs → FieldCard-BMmp6vcn.cjs} +21 -8
- package/dist/FieldCard-BMmp6vcn.cjs.map +1 -0
- package/dist/{FieldCard-DZSiMFoO.js → FieldCard-DAtdvKrE.js} +21 -8
- package/dist/FieldCard-DAtdvKrE.js.map +1 -0
- package/dist/Form/index.d.cts +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Grid/index.d.cts +1 -1
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Input/index.d.cts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/RadioBoxes/index.d.cts +1 -1
- package/dist/RadioBoxes/index.d.ts +1 -1
- package/dist/RadioTabs/index.d.cts +1 -1
- package/dist/RadioTabs/index.d.ts +1 -1
- package/dist/Radios/index.d.cts +1 -1
- package/dist/Radios/index.d.ts +1 -1
- package/dist/Select/index.d.cts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Slider/index.d.cts +1 -1
- package/dist/Slider/index.d.ts +1 -1
- package/dist/SubmitButton/index.d.cts +1 -1
- package/dist/SubmitButton/index.d.ts +1 -1
- package/dist/Switch/index.d.cts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/SwitchBox/index.d.cts +1 -1
- package/dist/SwitchBox/index.d.ts +1 -1
- package/dist/TextArea/index.d.cts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/hooks/useClientValidation/index.d.cts +1 -1
- package/dist/hooks/useClientValidation/index.d.ts +1 -1
- package/dist/hooks/useFormContext/index.d.cts +1 -1
- package/dist/hooks/useFormContext/index.d.ts +1 -1
- package/dist/hooks/useUniformField/index.d.cts +1 -1
- package/dist/hooks/useUniformField/index.d.ts +2 -2
- package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts +21 -21
- package/dist/{index-CdXOAPMb.d.ts → index-5SxIjw6Y.d.cts} +48 -48
- package/dist/index-5SxIjw6Y.d.cts.map +1 -0
- package/dist/{index-BKCiuwim.d.cts → index-B5oUKlIo.d.ts} +48 -48
- package/dist/index-B5oUKlIo.d.ts.map +1 -0
- package/dist/{index-CVY05bZf.d.ts → index-BL0DnIzh.d.ts} +3 -3
- package/dist/{index-CVY05bZf.d.ts.map → index-BL0DnIzh.d.ts.map} +1 -1
- package/dist/{index-D-ucmG60.d.ts → index-BPupl-39.d.ts} +21 -21
- package/dist/index-BPupl-39.d.ts.map +1 -0
- package/dist/index-BTr_gid3.d.cts.map +1 -1
- package/dist/{index-noH6pESQ.d.ts → index-BXm2Nvuc.d.ts} +34 -34
- package/dist/{index-noH6pESQ.d.ts.map → index-BXm2Nvuc.d.ts.map} +1 -1
- package/dist/{index-DaBgwR1t.d.cts → index-BYag2YM-.d.cts} +21 -21
- package/dist/{index-DaBgwR1t.d.cts.map → index-BYag2YM-.d.cts.map} +1 -1
- package/dist/{index-DYErnCVV.d.cts → index-BbWEFpRz.d.cts} +36 -36
- package/dist/{index-DYErnCVV.d.cts.map → index-BbWEFpRz.d.cts.map} +1 -1
- package/dist/{index-CPcJGZVS.d.ts → index-BlK4-QN0.d.cts} +1 -1
- package/dist/{index-B2IL9Zt7.d.cts.map → index-BlK4-QN0.d.cts.map} +1 -1
- package/dist/{index-hacHTzh4.d.cts → index-BtRhfPlX.d.cts} +35 -35
- package/dist/{index-hacHTzh4.d.cts.map → index-BtRhfPlX.d.cts.map} +1 -1
- package/dist/{index-CCeHSmIe.d.ts → index-ByDAUZR8.d.cts} +3 -3
- package/dist/{index-BbA9HcNa.d.cts.map → index-ByDAUZR8.d.cts.map} +1 -1
- package/dist/{index-CJ90vm9t.d.ts → index-C-t8ET2t.d.ts} +6 -6
- package/dist/{index-CJ90vm9t.d.ts.map → index-C-t8ET2t.d.ts.map} +1 -1
- package/dist/{index-DubKudrE.d.ts → index-C6YO7fVN.d.ts} +6 -6
- package/dist/index-C6YO7fVN.d.ts.map +1 -0
- package/dist/{index-CZ5EIIjq.d.cts → index-C8e2kOHz.d.cts} +6 -6
- package/dist/index-C8e2kOHz.d.cts.map +1 -0
- package/dist/{index-B2IL9Zt7.d.cts → index-CEB_3pH3.d.ts} +1 -1
- package/dist/{index-CPcJGZVS.d.ts.map → index-CEB_3pH3.d.ts.map} +1 -1
- package/dist/{index-Djc5tmi3.d.ts → index-CGnr_e53.d.ts} +34 -34
- package/dist/index-CGnr_e53.d.ts.map +1 -0
- package/dist/{index-DW1uBiAf.d.cts → index-CK4iUXtY.d.cts} +18 -6
- package/dist/index-CK4iUXtY.d.cts.map +1 -0
- package/dist/{index-aHcGnXHf.d.ts → index-CMQe-K8d.d.cts} +4 -4
- package/dist/{index-Bo79xzb4.d.cts.map → index-CMQe-K8d.d.cts.map} +1 -1
- package/dist/{index-PU5WNOH9.d.cts → index-CYfagyef.d.ts} +3 -3
- package/dist/{index-lot50R9R.d.ts.map → index-CYfagyef.d.ts.map} +1 -1
- package/dist/{index-CpVfOXNv.d.cts → index-ChtlWBjc.d.cts} +3 -3
- package/dist/{index-CpVfOXNv.d.cts.map → index-ChtlWBjc.d.cts.map} +1 -1
- package/dist/{index-BuX42Bbd.d.ts → index-Ct6a8Dxz.d.ts} +18 -6
- package/dist/index-Ct6a8Dxz.d.ts.map +1 -0
- package/dist/{index-tIGuHSXb.d.ts → index-CuACo6jI.d.ts} +4 -4
- package/dist/{index-tIGuHSXb.d.ts.map → index-CuACo6jI.d.ts.map} +1 -1
- package/dist/{index-BDvr4eaz.d.ts → index-D4S6YQwi.d.cts} +21 -21
- package/dist/{index-2SVlCM0Y.d.cts.map → index-D4S6YQwi.d.cts.map} +1 -1
- package/dist/{index-Bo79xzb4.d.cts → index-D4jPNNjM.d.ts} +5 -5
- package/dist/{index-aHcGnXHf.d.ts.map → index-D4jPNNjM.d.ts.map} +1 -1
- package/dist/{index-2SVlCM0Y.d.cts → index-DJyRJr0I.d.ts} +21 -21
- package/dist/{index-BDvr4eaz.d.ts.map → index-DJyRJr0I.d.ts.map} +1 -1
- package/dist/index-D_VcH_gn.d.ts +278 -0
- package/dist/{index-CRYEKT3o.d.ts.map → index-D_VcH_gn.d.ts.map} +1 -1
- package/dist/{index-lot50R9R.d.ts → index-Db46CiKm.d.cts} +3 -3
- package/dist/{index-PU5WNOH9.d.cts.map → index-Db46CiKm.d.cts.map} +1 -1
- package/dist/index-Dbn5MHgv.d.cts +278 -0
- package/dist/{index-D5rTKWm9.d.cts.map → index-Dbn5MHgv.d.cts.map} +1 -1
- package/dist/{index-DymdaDrj.d.cts → index-DmMenZfj.d.ts} +6 -6
- package/dist/{index-DS4AP9pV.d.ts.map → index-DmMenZfj.d.ts.map} +1 -1
- package/dist/{index-BbA9HcNa.d.cts → index-DzGaqagC.d.ts} +3 -3
- package/dist/{index-CCeHSmIe.d.ts.map → index-DzGaqagC.d.ts.map} +1 -1
- package/dist/{index-DS4AP9pV.d.ts → index-Nrdyx_72.d.cts} +5 -5
- package/dist/{index-DymdaDrj.d.cts.map → index-Nrdyx_72.d.cts.map} +1 -1
- package/dist/{index-Cj5CLBt2.d.cts → index-PdZaOKs9.d.cts} +4 -4
- package/dist/{index-Cj5CLBt2.d.cts.map → index-PdZaOKs9.d.cts.map} +1 -1
- package/dist/{index-FHPC_VE1.d.ts → index-WKgD5_vg.d.ts} +35 -35
- package/dist/{index-FHPC_VE1.d.ts.map → index-WKgD5_vg.d.ts.map} +1 -1
- package/dist/{index-BZrLB2p0.d.cts → index-dhcztpfB.d.cts} +34 -34
- package/dist/index-dhcztpfB.d.cts.map +1 -0
- package/dist/{index-Ct2YYfiU.d.cts → index-uLhUKJjx.d.cts} +6 -6
- package/dist/{index-Ct2YYfiU.d.cts.map → index-uLhUKJjx.d.cts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +1 -1
- package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
- package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
- package/dist/partials/FieldValidationError/index.d.cts +1 -1
- package/dist/partials/FieldValidationError/index.d.ts +1 -1
- package/dist/{useClientValidation-Bv0yxTyV.d.ts → useClientValidation-CeHOxxj1.d.ts} +3 -3
- package/dist/{useClientValidation-Bv0yxTyV.d.ts.map → useClientValidation-CeHOxxj1.d.ts.map} +1 -1
- package/dist/{useClientValidation-DSMw7f-t.d.cts → useClientValidation-DG1xPiN5.d.cts} +3 -3
- package/dist/{useClientValidation-DSMw7f-t.d.cts.map → useClientValidation-DG1xPiN5.d.cts.map} +1 -1
- package/dist/{useFormContext-oEivkWtB.d.cts → useFormContext-B083Y-kw.d.cts} +3 -3
- package/dist/useFormContext-B083Y-kw.d.cts.map +1 -0
- package/dist/{useFormContext-DDx8LD8e.d.ts → useFormContext-B2TS6xq0.d.ts} +3 -3
- package/dist/useFormContext-B2TS6xq0.d.ts.map +1 -0
- package/dist/{useUniformField-q3GCAV85.d.ts → useUniformField-B-hszxep.d.ts} +2 -2
- package/dist/{useUniformField-q3GCAV85.d.ts.map → useUniformField-B-hszxep.d.ts.map} +1 -1
- package/dist/{useUniformField-DFXQO9dw.d.cts → useUniformField-BlqMUaQk.d.cts} +2 -2
- package/dist/{useUniformField-DFXQO9dw.d.cts.map → useUniformField-BlqMUaQk.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-B3smveBW.d.cts → useUniformFieldArray-BMMpIjre.d.cts} +3 -3
- package/dist/{useUniformFieldArray-B3smveBW.d.cts.map → useUniformFieldArray-BMMpIjre.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-CmACueEO.d.ts → useUniformFieldArray-KOP2kbMC.d.ts} +3 -3
- package/dist/{useUniformFieldArray-CmACueEO.d.ts.map → useUniformFieldArray-KOP2kbMC.d.ts.map} +1 -1
- package/package.json +2 -2
- package/dist/FieldCard-DZSiMFoO.js.map +0 -1
- package/dist/FieldCard-DcMORXZR.cjs.map +0 -1
- package/dist/index-BKCiuwim.d.cts.map +0 -1
- package/dist/index-BZrLB2p0.d.cts.map +0 -1
- package/dist/index-BuX42Bbd.d.ts.map +0 -1
- package/dist/index-CRYEKT3o.d.ts +0 -278
- package/dist/index-CZ5EIIjq.d.cts.map +0 -1
- package/dist/index-CdXOAPMb.d.ts.map +0 -1
- package/dist/index-D-ucmG60.d.ts.map +0 -1
- package/dist/index-D5rTKWm9.d.cts +0 -278
- package/dist/index-DW1uBiAf.d.cts.map +0 -1
- package/dist/index-Djc5tmi3.d.ts.map +0 -1
- package/dist/index-DubKudrE.d.ts.map +0 -1
- package/dist/useFormContext-DDx8LD8e.d.ts.map +0 -1
- package/dist/useFormContext-oEivkWtB.d.cts.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants115 from "tailwind-variants";
|
|
2
2
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { ReactElement, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/Radios/Radios.d.ts
|
|
6
|
-
declare const radiosVariants:
|
|
6
|
+
declare const radiosVariants: tailwind_variants115.TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
|
-
[key: string]:
|
|
9
|
-
base?:
|
|
10
|
-
label?:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
[key: string]: tailwind_variants115.ClassValue | {
|
|
9
|
+
base?: tailwind_variants115.ClassValue;
|
|
10
|
+
label?: tailwind_variants115.ClassValue;
|
|
11
|
+
wrapper?: tailwind_variants115.ClassValue;
|
|
12
|
+
itemBase?: tailwind_variants115.ClassValue;
|
|
13
|
+
itemControl?: tailwind_variants115.ClassValue;
|
|
14
|
+
itemDescription?: tailwind_variants115.ClassValue;
|
|
15
|
+
itemLabel?: tailwind_variants115.ClassValue;
|
|
16
|
+
itemLabelWrapper?: tailwind_variants115.ClassValue;
|
|
17
|
+
itemWrapper?: tailwind_variants115.ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
|
-
[x: string]:
|
|
23
|
-
base?:
|
|
24
|
-
label?:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
[x: string]: tailwind_variants115.ClassValue | {
|
|
23
|
+
base?: tailwind_variants115.ClassValue;
|
|
24
|
+
label?: tailwind_variants115.ClassValue;
|
|
25
|
+
wrapper?: tailwind_variants115.ClassValue;
|
|
26
|
+
itemBase?: tailwind_variants115.ClassValue;
|
|
27
|
+
itemControl?: tailwind_variants115.ClassValue;
|
|
28
|
+
itemDescription?: tailwind_variants115.ClassValue;
|
|
29
|
+
itemLabel?: tailwind_variants115.ClassValue;
|
|
30
|
+
itemLabelWrapper?: tailwind_variants115.ClassValue;
|
|
31
|
+
itemWrapper?: tailwind_variants115.ClassValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -43,16 +43,16 @@ declare const radiosVariants: tailwind_variants45.TVReturnType<{
|
|
|
43
43
|
wrapper: string;
|
|
44
44
|
}, undefined, {
|
|
45
45
|
[key: string]: {
|
|
46
|
-
[key: string]:
|
|
47
|
-
base?:
|
|
48
|
-
label?:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
[key: string]: tailwind_variants115.ClassValue | {
|
|
47
|
+
base?: tailwind_variants115.ClassValue;
|
|
48
|
+
label?: tailwind_variants115.ClassValue;
|
|
49
|
+
wrapper?: tailwind_variants115.ClassValue;
|
|
50
|
+
itemBase?: tailwind_variants115.ClassValue;
|
|
51
|
+
itemControl?: tailwind_variants115.ClassValue;
|
|
52
|
+
itemDescription?: tailwind_variants115.ClassValue;
|
|
53
|
+
itemLabel?: tailwind_variants115.ClassValue;
|
|
54
|
+
itemLabelWrapper?: tailwind_variants115.ClassValue;
|
|
55
|
+
itemWrapper?: tailwind_variants115.ClassValue;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
} | {}, {
|
|
@@ -65,7 +65,7 @@ declare const radiosVariants: tailwind_variants45.TVReturnType<{
|
|
|
65
65
|
itemWrapper: string;
|
|
66
66
|
label: string;
|
|
67
67
|
wrapper: string;
|
|
68
|
-
},
|
|
68
|
+
}, tailwind_variants115.TVReturnType<unknown, {
|
|
69
69
|
base: string;
|
|
70
70
|
itemBase: string;
|
|
71
71
|
itemControl: string;
|
|
@@ -120,4 +120,4 @@ declare const Radios: ({
|
|
|
120
120
|
}: RadiosProps) => ReactElement;
|
|
121
121
|
//#endregion
|
|
122
122
|
export { RadiosProps as n, Radios as t };
|
|
123
|
-
//# sourceMappingURL=index-
|
|
123
|
+
//# sourceMappingURL=index-dhcztpfB.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-dhcztpfB.d.cts","names":[],"sources":["../src/Radios/Radios.tsx"],"sourcesContent":[],"mappings":";;;;;cAaa,qCAAc;;mBAgBzB,oBAAA,CAAA,UAAA;MAhBW,IAAA,CAAA,iCAgBX;MAAA,KAAA,CAAA,iCAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAhByB;EAAA,KAAA,EAAA,MAAA;EAkBtB,OAAA,EAAA,MAAY;AAAU,CAAA,EAAA,SACtB,EAAA;EAEY,CAAA,GAAA,EAAA,MAAA,CAAA,EAAW;IAaX,CAAA,GAAA,EAAA,MAAY,CAAA,oCAAA;MAIf,IAAA,CAAA,iCAAA;MAMJ,KAAA,CAAA,iCAAA;MAIC,OAAA,CAAA,iCAAA;MAd0B,QAAA,CAAA,iCAAA;MAAY,WAAA,CAAA,iCAAA;MAsB3C,eAkFL,CAAA,iCAAA;MAlFe,SAAA,CAAA,iCAAA;MAAA,gBAAA,CAAA,iCAAA;MAAA,WAAA,CAAA,iCAAA;IAAA,CAAA;EAMb,CAAA;CAAc,GAAA,CAAA,CAAA,EAAA;EA4EhB,IAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;KAxHI,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;UAEnB,WAAA;;;;UAIP;;SAED;;;;;;UAOQ,WAAA,SAAoB;;;;cAIvB;;;;;;UAMJ;;;;WAIC;;;;;;;cAQL;;;;;;GAMH,gBAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as tailwind_variants243 from "tailwind-variants";
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
4
4
|
import { CSSProperties, JSX, ReactNode } from "react";
|
|
5
5
|
|
|
@@ -61,7 +61,7 @@ interface FieldArrayProps extends FieldArrayFeatures, VariantProps {
|
|
|
61
61
|
}
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/FieldArray/FieldArray.d.ts
|
|
64
|
-
declare const fieldArrayVariants:
|
|
64
|
+
declare const fieldArrayVariants: tailwind_variants243.TVReturnType<{
|
|
65
65
|
hasLabel: {
|
|
66
66
|
false: {
|
|
67
67
|
actionsMenuButton: string;
|
|
@@ -123,7 +123,7 @@ declare const fieldArrayVariants: tailwind_variants0.TVReturnType<{
|
|
|
123
123
|
removeButton: string[];
|
|
124
124
|
/** class for the sort drag handle */
|
|
125
125
|
sortDragHandle: string[];
|
|
126
|
-
},
|
|
126
|
+
}, tailwind_variants243.TVReturnType<{
|
|
127
127
|
hasLabel: {
|
|
128
128
|
false: {
|
|
129
129
|
actionsMenuButton: string;
|
|
@@ -171,7 +171,7 @@ declare const FieldArray: ({
|
|
|
171
171
|
name,
|
|
172
172
|
sortable,
|
|
173
173
|
...uniformFieldProps
|
|
174
|
-
}: FieldArrayProps) =>
|
|
174
|
+
}: FieldArrayProps) => react_jsx_runtime12.JSX.Element;
|
|
175
175
|
//#endregion
|
|
176
176
|
export { FieldArrayProps as i, FieldArrayChildrenRenderFn as n, FieldArrayFeatures as r, FieldArray as t };
|
|
177
|
-
//# sourceMappingURL=index-
|
|
177
|
+
//# sourceMappingURL=index-uLhUKJjx.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-uLhUKJjx.d.cts","names":[],"sources":["../src/FieldArray/subcomponents/FieldArrayElement.tsx","../src/FieldArray/types.ts","../src/FieldArray/FieldArray.tsx"],"sourcesContent":[],"mappings":";;;;;;UAiBiB,wBAAA;;;;EAAA,SAAA,EAAA,GAAA,GAAA,IAAA;;;;ECZZ,MAAA,EAAA,GAAA,GAAA,IAAY;AAAU;;;KAAtB,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;ADWpC;KCRY,0BAAA;;;EAJP;EACA,MAAA,EAAA,MAAS;EAGF;EAaK,OAAA,EAPN,wBAOwB;EASlB;EAIL,IAAA,EAAA,MAAA;EAEE;EAOU,MAAA,EAAA,MAAA;CAId,EAAA,GA5BJ,GAAA,CAAI,OA4BA;AAjB+B,UATxB,kBAAA,CASwB;EAAoB;EAAY,SAAA,CAAA,EAAA,OAAA;;;;EClB5D,QAAA,CAAA,EAAA,OAAA;AA0FV;AAKiB,UD7EH,eAAA,SAAwB,kBC6ErB,ED7EyC,YC6EzC,CAAA;EAAA;EAAA,gBAAA,CAAA,EAAA,MAAA;EAAA;EAAA,QAAA,EDzER,0BCyEQ;EAAA;EAAA,SAAA,CAAA,EDvEN,SCuEM;EAAA,mBAAA,CAAA,EAAA,OAAA;EAAA,mBAAA,CAAA,EDhEI,aCgEJ,CAAA,cAAA,CAAA;EAAA;EAAA,IAAA,CAAA,EAAA,OAAA;EAajB;EAAe,KAAA,CAAA,EDzER,SCyEQ;EAqHjB;;;;;;;;;cAjOY,oBA0FX,oBAAA,CA1F6B;;;;;MFId,cAAA,EAAA,MAAwB;;;;ECZpC;EACA,IAAA,EAAA,MAAS,EAAA;EAGF;EAaK,iBAAA,EAAA,MAAkB,EAAA;EASlB;EAIL,YAAA,EAAA,MAAA,EAAA;EAEE;EAOU,iBAAA,EAAA,MAAA,EAAA;EAId;EAjB+B,KAAA,EAAA,MAAA,EAAA;EAAoB;EAAY,IAAA,EAAA,MAAA,EAAA;;;;EClB5D,QAAA,EAAA,MAAA,EAAA;EA+FP;EAAc,aAAA,EAAA,MAAA,EAAA;EAAA;EAAA,YAAA,EAAA,MAAA,EAAA;EAAA;EAAA,cAAA,EAAA,MAAA,EAAA;CAAA,EAAA,SAAA,EAAA;EAAA,QAAA,EAAA;IAAA,KAAA,EAAA;MAAA,iBAAA,EAAA,MAAA;MAAA,YAAA,EAAA,MAAA;MAAA,cAAA,EAAA,MAAA;IAajB,CAAA;EAAe,CAAA;CAqHjB,EAAA;;;;;;;;;;;;;;;;;;;;;;;GAvIC,oBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKI;;;aAAc;;uBAAA;;;;;;;;GAajB,oBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const require_Checkboxes = require('./Checkboxes-3Rg0gyfO.cjs');
|
|
|
10
10
|
const require_useUniformFieldArray = require('./useUniformFieldArray-D93AUZI4.cjs');
|
|
11
11
|
const require_FieldArray = require('./FieldArray-BgvSTDWi.cjs');
|
|
12
12
|
const require_Grid = require('./Grid-CRURvciu.cjs');
|
|
13
|
-
const require_FieldCard = require('./FieldCard-
|
|
13
|
+
const require_FieldCard = require('./FieldCard-BMmp6vcn.cjs');
|
|
14
14
|
const require_Form = require('./Form-Ca3RxssB.cjs');
|
|
15
15
|
const require_useInputValueDebounce = require('./useInputValueDebounce-KIKsvSLm.cjs');
|
|
16
16
|
const require_Input = require('./Input-DlyrGFYf.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
|
|
2
|
-
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-
|
|
3
|
-
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-
|
|
4
|
-
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-
|
|
5
|
-
import { n as FormProps, t as Form } from "./index-
|
|
6
|
-
import { n as GridProps, t as Grid } from "./index-
|
|
7
|
-
import { n as InputProps, t as Input } from "./index-
|
|
8
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-
|
|
9
|
-
import { n as RadioTabsProps, t as RadioTabs } from "./index-
|
|
10
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
11
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
12
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
13
|
-
import { n as SubmitButtonProps, t as SubmitButton } from "./index-
|
|
14
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
15
|
-
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-
|
|
16
|
-
import { n as TextAreaProps, t as TextArea } from "./index-
|
|
2
|
+
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-C8e2kOHz.cjs";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-uLhUKJjx.cjs";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-CK4iUXtY.cjs";
|
|
5
|
+
import { n as FormProps, t as Form } from "./index-CMQe-K8d.cjs";
|
|
6
|
+
import { n as GridProps, t as Grid } from "./index-ByDAUZR8.cjs";
|
|
7
|
+
import { n as InputProps, t as Input } from "./index-BYag2YM-.cjs";
|
|
8
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-BtRhfPlX.cjs";
|
|
9
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-PdZaOKs9.cjs";
|
|
10
|
+
import { n as RadiosProps, t as Radios } from "./index-dhcztpfB.cjs";
|
|
11
|
+
import { n as SelectProps, t as Select } from "./index-Dbn5MHgv.cjs";
|
|
12
|
+
import { n as SliderProps, t as Slider } from "./index-5SxIjw6Y.cjs";
|
|
13
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-ChtlWBjc.cjs";
|
|
14
|
+
import { n as SwitchProps, t as Switch } from "./index-BbWEFpRz.cjs";
|
|
15
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-Nrdyx_72.cjs";
|
|
16
|
+
import { n as TextAreaProps, t as TextArea } from "./index-D4S6YQwi.cjs";
|
|
17
17
|
import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BTr_gid3.cjs";
|
|
18
|
-
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-
|
|
18
|
+
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-DG1xPiN5.cjs";
|
|
19
19
|
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-B-DhUPpA.cjs";
|
|
20
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-
|
|
20
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-B083Y-kw.cjs";
|
|
21
21
|
import { t as useInput } from "./useInput--wjwIBc5.cjs";
|
|
22
22
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-DI1C6oaU.cjs";
|
|
23
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
24
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-
|
|
25
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-
|
|
23
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-BlqMUaQk.cjs";
|
|
24
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-Db46CiKm.cjs";
|
|
25
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-BlK4-QN0.cjs";
|
|
26
26
|
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-DahNCPDG.cjs";
|
|
27
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-
|
|
27
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-BMMpIjre.cjs";
|
|
28
28
|
export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
|
|
2
|
-
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-
|
|
3
|
-
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-
|
|
4
|
-
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-
|
|
2
|
+
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-C6YO7fVN.js";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-C-t8ET2t.js";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-Ct6a8Dxz.js";
|
|
5
5
|
import "./FormContext-C2_WMi_v.js";
|
|
6
|
-
import { n as FormProps, t as Form } from "./index-
|
|
7
|
-
import { n as GridProps, t as Grid } from "./index-
|
|
8
|
-
import { n as InputProps, t as Input } from "./index-
|
|
9
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-
|
|
10
|
-
import { n as RadioTabsProps, t as RadioTabs } from "./index-
|
|
11
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
12
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
13
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
14
|
-
import { n as SubmitButtonProps, t as SubmitButton } from "./index-
|
|
15
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
16
|
-
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-
|
|
17
|
-
import { n as TextAreaProps, t as TextArea } from "./index-
|
|
6
|
+
import { n as FormProps, t as Form } from "./index-D4jPNNjM.js";
|
|
7
|
+
import { n as GridProps, t as Grid } from "./index-DzGaqagC.js";
|
|
8
|
+
import { n as InputProps, t as Input } from "./index-BPupl-39.js";
|
|
9
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-WKgD5_vg.js";
|
|
10
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-CuACo6jI.js";
|
|
11
|
+
import { n as RadiosProps, t as Radios } from "./index-BXm2Nvuc.js";
|
|
12
|
+
import { n as SelectProps, t as Select } from "./index-D_VcH_gn.js";
|
|
13
|
+
import { n as SliderProps, t as Slider } from "./index-B5oUKlIo.js";
|
|
14
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-BL0DnIzh.js";
|
|
15
|
+
import { n as SwitchProps, t as Switch } from "./index-CGnr_e53.js";
|
|
16
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DmMenZfj.js";
|
|
17
|
+
import { n as TextAreaProps, t as TextArea } from "./index-DJyRJr0I.js";
|
|
18
18
|
import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BPjrrFuM.js";
|
|
19
|
-
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-
|
|
19
|
+
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-CeHOxxj1.js";
|
|
20
20
|
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-Co8wbo-Y.js";
|
|
21
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-
|
|
21
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-B2TS6xq0.js";
|
|
22
22
|
import "./index-BRLjimYW.js";
|
|
23
23
|
import { t as useInput } from "./useInput-BCdeYOOg.js";
|
|
24
24
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-fhmVn1aO.js";
|
|
25
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
26
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-
|
|
27
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-
|
|
25
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-B-hszxep.js";
|
|
26
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CYfagyef.js";
|
|
27
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-CEB_3pH3.js";
|
|
28
28
|
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-JMU-vN92.js";
|
|
29
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-
|
|
29
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-KOP2kbMC.js";
|
|
30
30
|
export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { n as Checkboxes_default } from "./Checkboxes-BfUtbKe-.js";
|
|
|
10
10
|
import { t as useUniformFieldArray } from "./useUniformFieldArray-DNrmEXLg.js";
|
|
11
11
|
import { n as FieldArray_default } from "./FieldArray-C8Ipn-tM.js";
|
|
12
12
|
import { n as Grid_default } from "./Grid-LRjQlZms.js";
|
|
13
|
-
import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-
|
|
13
|
+
import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-DAtdvKrE.js";
|
|
14
14
|
import { n as Form_default } from "./Form-B7bv9fDO.js";
|
|
15
15
|
import { t as useInputValueDebounce } from "./useInputValueDebounce-D9wArTKz.js";
|
|
16
16
|
import { n as Input_default } from "./Input-ChXItabV.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-
|
|
1
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-Db46CiKm.cjs";
|
|
2
2
|
export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-
|
|
1
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-CYfagyef.js";
|
|
2
2
|
export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-
|
|
1
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-BlK4-QN0.cjs";
|
|
2
2
|
export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-
|
|
1
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-CEB_3pH3.js";
|
|
2
2
|
export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VetoTypeAny } from "@fuf-stack/veto";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _fuf_stack_veto_dist_types_d_Zo03EZwf0 from "@fuf-stack/veto/dist/types.d-Zo03EZwf";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/useClientValidation/useClientValidation.d.ts
|
|
5
5
|
|
|
@@ -144,7 +144,7 @@ declare const useClientValidation: <TData = unknown>(data: TData | null | undefi
|
|
|
144
144
|
* // => objectLoose({ tags: array(vt.string().refine(...).nullish()).optional() })
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
|
-
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) =>
|
|
147
|
+
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) => _fuf_stack_veto_dist_types_d_Zo03EZwf0.k;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { useClientValidation as n, clientValidationSchemaByName as t };
|
|
150
|
-
//# sourceMappingURL=useClientValidation-
|
|
150
|
+
//# sourceMappingURL=useClientValidation-CeHOxxj1.d.ts.map
|
package/dist/{useClientValidation-Bv0yxTyV.d.ts.map → useClientValidation-CeHOxxj1.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientValidation-
|
|
1
|
+
{"version":3,"file":"useClientValidation-CeHOxxj1.d.ts","names":[],"sources":["../src/hooks/useClientValidation/useClientValidation.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkEA;;;;;AAkIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlIa,6CACL,gDACgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgIrB,yCAA0C,wCAExC,MAAC,sCAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VetoTypeAny } from "@fuf-stack/veto";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _fuf_stack_veto_dist_types_d_Zo03EZwf0 from "@fuf-stack/veto/dist/types.d-Zo03EZwf";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/useClientValidation/useClientValidation.d.ts
|
|
5
5
|
|
|
@@ -144,7 +144,7 @@ declare const useClientValidation: <TData = unknown>(data: TData | null | undefi
|
|
|
144
144
|
* // => objectLoose({ tags: array(vt.string().refine(...).nullish()).optional() })
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
|
-
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) =>
|
|
147
|
+
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) => _fuf_stack_veto_dist_types_d_Zo03EZwf0.k;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { useClientValidation as n, clientValidationSchemaByName as t };
|
|
150
|
-
//# sourceMappingURL=useClientValidation-
|
|
150
|
+
//# sourceMappingURL=useClientValidation-DG1xPiN5.d.cts.map
|
package/dist/{useClientValidation-DSMw7f-t.d.cts.map → useClientValidation-DG1xPiN5.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientValidation-
|
|
1
|
+
{"version":3,"file":"useClientValidation-DG1xPiN5.d.cts","names":[],"sources":["../src/hooks/useClientValidation/useClientValidation.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkEA;;;;;AAkIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlIa,6CACL,gDACgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgIrB,yCAA0C,wCAExC,MAAC,sCAAA,CAAA"}
|
|
@@ -32,10 +32,10 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
32
32
|
getValues: react_hook_form0.UseFormGetValues<TFieldValues>;
|
|
33
33
|
subscribe: react_hook_form0.UseFormSubscribe<TFieldValues>;
|
|
34
34
|
watch: react_hook_form0.UseFormWatch<TFieldValues>;
|
|
35
|
-
debugMode: "disabled" | "
|
|
35
|
+
debugMode: "disabled" | "debug" | "debug-testids" | "off";
|
|
36
36
|
debugModeSettings?: DebugModeSettings;
|
|
37
37
|
preventSubmit: (prevent: boolean) => void;
|
|
38
|
-
setDebugMode: (debugMode: "disabled" | "
|
|
38
|
+
setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
|
|
39
39
|
triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
|
|
40
40
|
userChange: {
|
|
41
41
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -61,4 +61,4 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { useFormContext as n, checkFieldIsRequired as t };
|
|
64
|
-
//# sourceMappingURL=useFormContext-
|
|
64
|
+
//# sourceMappingURL=useFormContext-B083Y-kw.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext-B083Y-kw.d.cts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,sCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,UAAA,GAAA,OAAA,GAAA,eAAA,GAAA,KAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,UAAA,GAAA,OAAA,GAAA,eAAA,GAAA,KAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
|
|
@@ -32,10 +32,10 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
32
32
|
getValues: react_hook_form9.UseFormGetValues<TFieldValues>;
|
|
33
33
|
subscribe: react_hook_form9.UseFormSubscribe<TFieldValues>;
|
|
34
34
|
watch: react_hook_form9.UseFormWatch<TFieldValues>;
|
|
35
|
-
debugMode: "disabled" | "
|
|
35
|
+
debugMode: "disabled" | "debug" | "debug-testids" | "off";
|
|
36
36
|
debugModeSettings?: DebugModeSettings;
|
|
37
37
|
preventSubmit: (prevent: boolean) => void;
|
|
38
|
-
setDebugMode: (debugMode: "disabled" | "
|
|
38
|
+
setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
|
|
39
39
|
triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
|
|
40
40
|
userChange: {
|
|
41
41
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -61,4 +61,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { useFormContext$1 as n, checkFieldIsRequired as t };
|
|
64
|
-
//# sourceMappingURL=useFormContext-
|
|
64
|
+
//# sourceMappingURL=useFormContext-B2TS6xq0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext-B2TS6xq0.d.ts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,wCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,UAAA,GAAA,OAAA,GAAA,eAAA,GAAA,KAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,UAAA,GAAA,OAAA,GAAA,eAAA,GAAA,KAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
|
|
2
2
|
import { r as useController$1 } from "./useController-Co8wbo-Y.js";
|
|
3
|
-
import { n as useFormContext$1 } from "./useFormContext-
|
|
3
|
+
import { n as useFormContext$1 } from "./useFormContext-B2TS6xq0.js";
|
|
4
4
|
import { t as useInput } from "./useInput-BCdeYOOg.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FieldError, FieldValues, Path } from "react-hook-form";
|
|
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
95
95
|
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
|
|
98
|
-
//# sourceMappingURL=useUniformField-
|
|
98
|
+
//# sourceMappingURL=useUniformField-B-hszxep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformField-
|
|
1
|
+
{"version":3,"file":"useUniformField-B-hszxep.d.ts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UA0CiB,2CACM,cAAc;;EADpB,IAAA,EAKT,IALS,CAKJ,YALI,CAAqB,GAAA,MAAA;EACf;EAAc,SAAA,CAAA,EAAA,MAAA;EAIxB;EAAL,QAAA,CAAA,EAAA,OAAA;EAME;EAIwB,KAAA,CAAA,EAJxB,SAIwB;EAApB;EAAmB,MAAA,CAAA,EAAA,MAAA;EAKhB;EACM,SAAA,CAAA,EANT,mBAMS,CANW,QAMX,CAAA;EAAc;EAKO,IAAA,CAAA,EAAA,MAAA,GAAA,QAAA,GAAA,UAAA;;AAAjC,UANM,qBAMN,CAAA,qBALY,WAKZ,GAL0B,WAK1B,CAAA,CAAA;EAEmC;EAAf,SAAA,EAAA,MAAA,GAAA,SAAA;EAAlB;EAMJ,OAAA,EARE,UAQF,CAAA,OARoB,gBAQpB,CARmC,YAQnC,CAAA,CAAA,CAAA,SAAA,CAAA;EAEO;EAEyB,SAAA,EAV5B,UAU4B,CAAA,OAVV,gBAUU,CAVK,YAUL,CAAA,CAAA,CAAA,WAAA,CAAA;EAAd;EAAlB,YAAA,EAAA,OAAA;EAEiC;EAAlB,QAAA,EAAA,OAAA,GAAA,SAAA;EAEmB;EAAlB,KAAA,EARhB,UAQgB,EAAA,GAAA,SAAA;EAEU;EAAlB,YAAA,EARD,SAQC,GAAA,IAAA;EAE6B;EAAf,KAAA,EARtB,UAQsB,CAAA,OARJ,eAQI,CARU,YAQV,CAAA,CAAA,CAAA,OAAA,CAAA;EAAlB;EAIJ,oBAAA,EAVe,UAUf,CAAA,OAViC,QAUjC,CAAA,CAAA,sBAAA,CAAA;EAEiC;EAAd,qBAAA,EAVH,UAUG,CAAA,OAVe,QAUf,CAAA,CAAA,uBAAA,CAAA;EAAlB;EAEkC,aAAA,EAV3B,UAU2B,CAAA,OAVT,QAUS,CAAA,CAAA,eAAA,CAAA;EAAd;EAAlB,SAAA,EARC,UAQD,CAAA,OARmB,gBAQnB,CARkC,YAQlC,CAAA,CAAA,CAAA,WAAA,CAAA;EAE2B;EAAd,OAAA,EAAA,OAAA;EAAlB;EAIwC,KAAA,EAVtC,SAUsC,GAAA,IAAA;EAAf;EAAlB,MAAA,EARJ,UAQI,CAAA,OARc,eAQd,CAR4B,YAQ5B,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAAU;EAiCX,QAAA,EAvCD,UA6MX,CAAA,OA7M6B,eA6M7B,CA7M2C,YA6M3C,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EArKsB;EAAc,GAAA,EAtC9B,UAsC8B,CAAA,OAtCZ,eAsCY,CAtCE,YAsCF,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EAGL;EAAc,QAAA,EAAA,OAAA;EAApC;EACe,UAAA,EAtCX,UAsCW,CAAA,OAtCO,gBAsCP,CAtCsB,YAsCtB,CAAA,CAAA,CAAA,YAAA,CAAA;EAAtB;EAAqB,MAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALX,uCACU,cAAc,yCAG3B,sBAAsB,cAAc,cAC3C,sBAAsB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
|
|
2
2
|
import { r as useController } from "./useController-B-DhUPpA.cjs";
|
|
3
|
-
import { n as useFormContext } from "./useFormContext-
|
|
3
|
+
import { n as useFormContext } from "./useFormContext-B083Y-kw.cjs";
|
|
4
4
|
import { t as useInput } from "./useInput--wjwIBc5.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FieldError, FieldValues, Path } from "react-hook-form";
|
|
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
95
95
|
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
|
|
98
|
-
//# sourceMappingURL=useUniformField-
|
|
98
|
+
//# sourceMappingURL=useUniformField-BlqMUaQk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformField-
|
|
1
|
+
{"version":3,"file":"useUniformField-BlqMUaQk.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UA0CiB,2CACM,cAAc;;EADpB,IAAA,EAKT,IALS,CAKJ,YALI,CAAqB,GAAA,MAAA;EACf;EAAc,SAAA,CAAA,EAAA,MAAA;EAIxB;EAAL,QAAA,CAAA,EAAA,OAAA;EAME;EAIwB,KAAA,CAAA,EAJxB,SAIwB;EAApB;EAAmB,MAAA,CAAA,EAAA,MAAA;EAKhB;EACM,SAAA,CAAA,EANT,mBAMS,CANW,QAMX,CAAA;EAAc;EAKO,IAAA,CAAA,EAAA,MAAA,GAAA,QAAA,GAAA,UAAA;;AAAjC,UANM,qBAMN,CAAA,qBALY,WAKZ,GAL0B,WAK1B,CAAA,CAAA;EAEmC;EAAf,SAAA,EAAA,MAAA,GAAA,SAAA;EAAlB;EAMJ,OAAA,EARE,UAQF,CAAA,OARoB,cAQpB,CARmC,YAQnC,CAAA,CAAA,CAAA,SAAA,CAAA;EAEO;EAEyB,SAAA,EAV5B,UAU4B,CAAA,OAVV,cAUU,CAVK,YAUL,CAAA,CAAA,CAAA,WAAA,CAAA;EAAd;EAAlB,YAAA,EAAA,OAAA;EAEiC;EAAlB,QAAA,EAAA,OAAA,GAAA,SAAA;EAEmB;EAAlB,KAAA,EARhB,UAQgB,EAAA,GAAA,SAAA;EAEU;EAAlB,YAAA,EARD,SAQC,GAAA,IAAA;EAE6B;EAAf,KAAA,EARtB,UAQsB,CAAA,OARJ,aAQI,CARU,YAQV,CAAA,CAAA,CAAA,OAAA,CAAA;EAAlB;EAIJ,oBAAA,EAVe,UAUf,CAAA,OAViC,QAUjC,CAAA,CAAA,sBAAA,CAAA;EAEiC;EAAd,qBAAA,EAVH,UAUG,CAAA,OAVe,QAUf,CAAA,CAAA,uBAAA,CAAA;EAAlB;EAEkC,aAAA,EAV3B,UAU2B,CAAA,OAVT,QAUS,CAAA,CAAA,eAAA,CAAA;EAAd;EAAlB,SAAA,EARC,UAQD,CAAA,OARmB,cAQnB,CARkC,YAQlC,CAAA,CAAA,CAAA,WAAA,CAAA;EAE2B;EAAd,OAAA,EAAA,OAAA;EAAlB;EAIwC,KAAA,EAVtC,SAUsC,GAAA,IAAA;EAAf;EAAlB,MAAA,EARJ,UAQI,CAAA,OARc,aAQd,CAR4B,YAQ5B,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAAU;EAiCX,QAAA,EAvCD,UA6MX,CAAA,OA7M6B,aA6M7B,CA7M2C,YA6M3C,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EArKsB;EAAc,GAAA,EAtC9B,UAsC8B,CAAA,OAtCZ,aAsCY,CAtCE,YAsCF,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EAGL;EAAc,QAAA,EAAA,OAAA;EAApC;EACe,UAAA,EAtCX,UAsCW,CAAA,OAtCO,cAsCP,CAtCsB,YAsCtB,CAAA,CAAA,CAAA,YAAA,CAAA;EAAtB;EAAqB,MAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALX,uCACU,cAAc,yCAG3B,sBAAsB,cAAc,cAC3C,sBAAsB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as useController } from "./useController-B-DhUPpA.cjs";
|
|
2
|
-
import { n as useFormContext } from "./useFormContext-
|
|
2
|
+
import { n as useFormContext } from "./useFormContext-B083Y-kw.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import * as react_hook_form14 from "react-hook-form";
|
|
5
5
|
import { ArrayPath, FieldValues } from "react-hook-form";
|
|
@@ -50,7 +50,7 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
50
50
|
disabled: boolean | undefined;
|
|
51
51
|
error: react_hook_form14.FieldError[] | undefined;
|
|
52
52
|
errorMessage: ReactNode | null;
|
|
53
|
-
field: Omit<react_hook_form14.ControllerRenderProps<TFieldValues>, "
|
|
53
|
+
field: Omit<react_hook_form14.ControllerRenderProps<TFieldValues>, "onChange" | "value"> & {
|
|
54
54
|
onChange: (...event: any[]) => void;
|
|
55
55
|
value: string;
|
|
56
56
|
};
|
|
@@ -76,4 +76,4 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
76
76
|
};
|
|
77
77
|
//#endregion
|
|
78
78
|
export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
|
|
79
|
-
//# sourceMappingURL=useUniformFieldArray-
|
|
79
|
+
//# sourceMappingURL=useUniformFieldArray-BMMpIjre.d.cts.map
|
package/dist/{useUniformFieldArray-B3smveBW.d.cts.map → useUniformFieldArray-BMMpIjre.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformFieldArray-
|
|
1
|
+
{"version":3,"file":"useUniformFieldArray-BMMpIjre.d.cts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAYiB,+CACM,cAAc;;QAG7B,UAAU;;;EAJD;EACM,mBAAA,CAAA,EAAA,OAAA;EAAc;EAGnB,uBAAA,CAAA,EAAA,OAAA;EAAV;EAYE,QAAA,CAAA,EAAA,OAAA;EAAS;EAeN,MAAA,CAAA,EAAA,MAAA;EACU;EAAc,KAAA,CAAA,EAhB3B,SAgB2B;;;;;;;;;;;;;;cADxB,4CACU,cAAc;;;uBACnC;;;UAAA;;GAQC,0BAA0B;;;;;;;;;;;;;;;;;EAuDpB,KAAA,WAAA,GAAA,IAAA;EAAA,MAAA,EAAA,UAAA,CAAA,oBAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAKwC,QAAA,EAAA,UAAA,CAAA,OALxC,aAKwC,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EAAA,GAAA,EACyB,UADzB,CAAA,OAAA,aAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EACyB,QAAA,EAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as useController$1 } from "./useController-Co8wbo-Y.js";
|
|
2
|
-
import { n as useFormContext$1 } from "./useFormContext-
|
|
2
|
+
import { n as useFormContext$1 } from "./useFormContext-B2TS6xq0.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import * as react_hook_form0 from "react-hook-form";
|
|
5
5
|
import { ArrayPath, FieldValues } from "react-hook-form";
|
|
@@ -50,7 +50,7 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
50
50
|
disabled: boolean | undefined;
|
|
51
51
|
error: react_hook_form0.FieldError[] | undefined;
|
|
52
52
|
errorMessage: ReactNode | null;
|
|
53
|
-
field: Omit<react_hook_form0.ControllerRenderProps<TFieldValues>, "
|
|
53
|
+
field: Omit<react_hook_form0.ControllerRenderProps<TFieldValues>, "onChange" | "value"> & {
|
|
54
54
|
onChange: (...event: any[]) => void;
|
|
55
55
|
value: string;
|
|
56
56
|
};
|
|
@@ -76,4 +76,4 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
76
76
|
};
|
|
77
77
|
//#endregion
|
|
78
78
|
export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
|
|
79
|
-
//# sourceMappingURL=useUniformFieldArray-
|
|
79
|
+
//# sourceMappingURL=useUniformFieldArray-KOP2kbMC.d.ts.map
|
package/dist/{useUniformFieldArray-CmACueEO.d.ts.map → useUniformFieldArray-KOP2kbMC.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformFieldArray-
|
|
1
|
+
{"version":3,"file":"useUniformFieldArray-KOP2kbMC.d.ts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAYiB,+CACM,cAAc;;QAG7B,UAAU;;;EAJD;EACM,mBAAA,CAAA,EAAA,OAAA;EAAc;EAGnB,uBAAA,CAAA,EAAA,OAAA;EAAV;EAYE,QAAA,CAAA,EAAA,OAAA;EAAS;EAeN,MAAA,CAAA,EAAA,MAAA;EACU;EAAc,KAAA,CAAA,EAhB3B,SAgB2B;;;;;;;;;;;;;;cADxB,4CACU,cAAc;;;uBACnC;;;UAAA;;GAQC,0BAA0B;;;;;;;;;;;;;;;;;EAuDpB,KAAA,WAAA,GAAA,IAAA;EAAA,MAAA,EAAA,UAAA,CAAA,sBAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAKwC,QAAA,EAAA,UAAA,CAAA,OALxC,eAKwC,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EAAA,GAAA,EACyB,UADzB,CAAA,OAAA,eAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EACyB,QAAA,EAAA,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuf-stack/uniform",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"description": "fuf react form library",
|
|
5
5
|
"author": "Fröhlich ∧ Frei",
|
|
6
6
|
"homepage": "https://github.com/fuf-stack/pixels#readme",
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"react": "19.2.3",
|
|
182
182
|
"react-dom": "19.2.3"
|
|
183
183
|
},
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "cb8880c5d3ccb7659f9fbe7fe5a8673a6ad11a11"
|
|
185
185
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldCard-DZSiMFoO.js","names":["FieldValidationError","FieldCardValidationError"],"sources":["../src/FieldCard/subcomponents/FieldCardValidationError.tsx","../src/FieldCard/FieldCard.tsx"],"sourcesContent":["import {\n AnimatePresence,\n motion,\n useReducedMotion,\n} from '@fuf-stack/pixel-motion';\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../../hooks/useUniformField';\nimport FieldValidationError from '../../partials/FieldValidationError/FieldValidationError';\n\nexport interface FieldCardValidationErrorProps {\n /** CSS class name for the error footer wrapper */\n className?: string;\n /** Field name */\n name: string;\n}\n\n/**\n * Renders validation errors in the footer of a FieldCard component.\n *\n * This component handles displaying field-level validation errors with proper\n * accessibility attributes and animates them in/out using Framer Motion.\n */\nconst FieldCardValidationError = ({\n className = undefined,\n name,\n}: FieldCardValidationErrorProps) => {\n const { error, getErrorMessageProps, getHelperWrapperProps, testId } =\n useUniformField({\n name,\n });\n\n // disable all animation if user prefers reduced motion\n const disableAnimation = useReducedMotion();\n\n // Always show object-level errors (_errors) as they represent explicit\n // validation rules (e.g., refineObject custom validators)\n // @ts-expect-error - error._errors exists but not typed\n const hasErrors = !!error?._errors;\n\n return (\n <AnimatePresence initial={!disableAnimation}>\n {hasErrors ? (\n <motion.div\n key=\"field-card-errors\"\n exit={disableAnimation ? undefined : { opacity: 0, height: 0 }}\n initial={disableAnimation ? false : { height: 0, opacity: 0 }}\n style={{ overflow: 'hidden' }}\n transition={{ duration: 0.4, ease: 'circOut' }}\n animate={\n disableAnimation ? undefined : { opacity: 1, height: 'auto' }\n }\n >\n <div\n {...getHelperWrapperProps()}\n className={cn(getHelperWrapperProps()?.className, className)}\n >\n <div {...getErrorMessageProps()}>\n <FieldValidationError\n // @ts-expect-error - error._errors exists but not typed\n error={error._errors}\n testId={testId}\n />\n </div>\n </div>\n </motion.div>\n ) : null}\n </AnimatePresence>\n );\n};\n\nexport default FieldCardValidationError;\n","import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { checkFieldIsRequired, useFormContext } from '../hooks/useFormContext';\nimport { useUniformField } from '../hooks/useUniformField';\nimport FieldCardValidationError from './subcomponents/FieldCardValidationError';\n\n/**\n * Recursively checks if any child field with an error is also touched.\n * Returns true if at least one touched child has an error.\n */\nexport const hasVisibleChildErrors = (\n errors: Record<string, unknown> | undefined,\n touched: Record<string, unknown> | undefined,\n): boolean => {\n if (!errors || !touched) {\n return false;\n }\n\n return Object.keys(errors)\n .filter((key) => {\n // Skip object-level errors (_errors) - those are handled separately\n return key !== '_errors';\n })\n .some((key) => {\n const errorValue = errors[key];\n const touchedValue = touched[key];\n\n // If this key doesn't exist in both errors and touched, skip\n if (errorValue === undefined || touchedValue === undefined) {\n return false;\n }\n\n // If errorValue is an array, it's a leaf field error\n if (Array.isArray(errorValue)) {\n // touchedValue being truthy means the field is touched\n return !!touchedValue;\n }\n\n // Recursively check nested objects\n if (typeof errorValue === 'object' && errorValue !== null) {\n return hasVisibleChildErrors(\n errorValue as Record<string, unknown>,\n touchedValue as Record<string, unknown>,\n );\n }\n\n return false;\n });\n};\n\nexport const fieldCardVariants = tv({\n slots: {\n /** base class for the field card wrapper */\n base: [\n // base styles\n 'overflow-hidden rounded-small border bg-content1',\n // animate border color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n /** class for the label/header */\n label: [\n // override HeroUI label positioning and display\n 'pointer-events-auto! static! z-auto! block! w-full!',\n // reset any transforms or translations\n 'translate-x-0! translate-y-0! transform-none!',\n // card header styling - use text-medium (16px) for proper header size\n 'rounded-t-small border-b p-3 font-semibold text-medium',\n // animate border and text color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n /** class for the content */\n content: [\n // same as p-3 of Card component\n 'p-3',\n // default grid for form components (see Grid component)\n 'grid gap-4',\n ],\n /** class for the error footer wrapper */\n errorFooter: [\n 'border-t',\n // force helper to be visible and add padding (pt-1 to compensate for inner content's top padding)\n 'block px-3 pb-2 pt-1',\n // animate border color change, respect reduced motion\n 'transition-colors duration-150 motion-reduce:transition-none',\n ],\n },\n variants: {\n invalid: {\n true: {\n base: 'border-danger-200',\n label: 'border-danger-200 text-danger',\n errorFooter: 'border-danger-200',\n },\n false: {\n base: 'border-divider',\n label: 'border-divider text-foreground',\n errorFooter: 'border-divider',\n },\n },\n },\n defaultVariants: {\n invalid: false,\n },\n});\n\ntype ClassName = TVClassName<typeof fieldCardVariants>;\n\nexport interface FieldCardProps {\n /** Content to render inside the card */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Label content for the card header */\n label: ReactNode;\n /** Field name for validation */\n name: string;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * FieldCard component - A card-styled container with label header and error footer\n *\n * Displays form field content in a card layout with:\n * - Label/title in the header\n * - Content in the body\n * - Validation errors in the footer\n * - Danger outline when validation errors exist\n */\nconst FieldCard = ({\n children,\n className: _className = undefined,\n name,\n ...uniformFieldProps\n}: FieldCardProps) => {\n const { error, getLabelProps, label } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n const {\n control,\n formState: { touchedFields, submitCount },\n validation,\n } = useFormContext();\n\n // Check if any registered child field is required\n const validationInstance = validation?.baseInstance ?? validation?.instance;\n const registeredFields: string[] = Array.from(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (control as any)._names?.mount ?? [],\n );\n const childFieldPrefix = `${name}.`;\n const isRequired = validationInstance\n ? registeredFields\n .filter((f) => {\n return f.startsWith(childFieldPrefix);\n })\n .some((f) => {\n return checkFieldIsRequired(\n validationInstance,\n f.split('.').filter((k) => {\n return k !== '';\n }),\n );\n })\n : false;\n\n // Get touched state for this field's children by traversing the path\n const getNestedValue = (\n obj: Record<string, unknown> | undefined,\n path: string,\n ): Record<string, unknown> | undefined => {\n if (!obj) {\n return undefined;\n }\n const keys = path.split('.');\n let current: unknown = obj;\n keys.every((key) => {\n if (current && typeof current === 'object') {\n current = (current as Record<string, unknown>)[key];\n return true;\n }\n current = undefined;\n return false;\n });\n return current as Record<string, unknown> | undefined;\n };\n\n const fieldTouched = getNestedValue(\n touchedFields as Record<string, unknown>,\n name,\n );\n\n // Check for object-level errors (_errors) - always show these as they represent\n // explicit object-level validation rules (e.g., refineObject custom validators)\n // @ts-expect-error - error._errors exists but not typed\n const hasObjectErrors = !!error?._errors;\n\n // Check if any child field with an error is also touched\n const hasChildErrors =\n submitCount > 0 ||\n hasVisibleChildErrors(\n error as unknown as Record<string, unknown>,\n fieldTouched,\n );\n\n // Show invalid state if there are object errors or visible child errors\n const showInvalid = hasObjectErrors || hasChildErrors;\n\n // className from slots\n const variants = fieldCardVariants({ invalid: showInvalid });\n const className = variantsToClassNames(variants, _className, 'base');\n\n return (\n <div className={className.base}>\n {/* card header with label */}\n {label ? (\n <div\n {...getLabelProps()}\n aria-level={3}\n // Override getLabelProps className to use our own invalid styling based on hasErrors,\n // not HeroUI's which is based on any child field being invalid\n className={className.label}\n role=\"heading\"\n >\n {label}\n {/* Manual asterisk: getLabelProps uses schema-required for the object itself,\n but FieldCard needs asterisk based on whether any CHILD field is required */}\n {isRequired ? (\n <span aria-hidden=\"true\" className=\"ml-0.5 text-danger\">\n *\n </span>\n ) : null}\n </div>\n ) : null}\n\n {/* card content */}\n <div className={className.content}>{children}</div>\n\n {/* card footer with validation errors */}\n <FieldCardValidationError className={className.errorFooter} name={name} />\n </div>\n );\n};\n\nexport default FieldCard;\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAM,4BAA4B,EAChC,YAAY,QACZ,WACmC;CACnC,MAAM,EAAE,OAAO,sBAAsB,uBAAuB,WAC1D,gBAAgB,EACd,MACD,CAAC;CAGJ,MAAM,mBAAmB,kBAAkB;CAK3C,MAAM,YAAY,CAAC,CAAC,OAAO;AAE3B,QACE,oBAAC;EAAgB,SAAS,CAAC;YACxB,YACC,oBAAC,OAAO;GAEN,MAAM,mBAAmB,SAAY;IAAE,SAAS;IAAG,QAAQ;IAAG;GAC9D,SAAS,mBAAmB,QAAQ;IAAE,QAAQ;IAAG,SAAS;IAAG;GAC7D,OAAO,EAAE,UAAU,UAAU;GAC7B,YAAY;IAAE,UAAU;IAAK,MAAM;IAAW;GAC9C,SACE,mBAAmB,SAAY;IAAE,SAAS;IAAG,QAAQ;IAAQ;aAG/D,oBAAC;IACC,GAAI,uBAAuB;IAC3B,WAAW,GAAG,uBAAuB,EAAE,WAAW,UAAU;cAE5D,oBAAC;KAAI,GAAI,sBAAsB;eAC7B,oBAACA;MAEC,OAAO,MAAM;MACL;OACR;MACE;KACF;KApBF,oBAqBO,GACX;GACY;;AAItB,uCAAe;;;;;;;;AC1Df,MAAa,yBACX,QACA,YACY;AACZ,KAAI,CAAC,UAAU,CAAC,QACd,QAAO;AAGT,QAAO,OAAO,KAAK,OAAO,CACvB,QAAQ,QAAQ;AAEf,SAAO,QAAQ;GACf,CACD,MAAM,QAAQ;EACb,MAAM,aAAa,OAAO;EAC1B,MAAM,eAAe,QAAQ;AAG7B,MAAI,eAAe,UAAa,iBAAiB,OAC/C,QAAO;AAIT,MAAI,MAAM,QAAQ,WAAW,CAE3B,QAAO,CAAC,CAAC;AAIX,MAAI,OAAO,eAAe,YAAY,eAAe,KACnD,QAAO,sBACL,YACA,aACD;AAGH,SAAO;GACP;;AAGN,MAAa,oBAAoB,GAAG;CAClC,OAAO;EAEL,MAAM,CAEJ,oDAEA,+DACD;EAED,OAAO;GAEL;GAEA;GAEA;GAEA;GACD;EAED,SAAS,CAEP,OAEA,aACD;EAED,aAAa;GACX;GAEA;GAEA;GACD;EACF;CACD,UAAU,EACR,SAAS;EACP,MAAM;GACJ,MAAM;GACN,OAAO;GACP,aAAa;GACd;EACD,OAAO;GACL,MAAM;GACN,OAAO;GACP,aAAa;GACd;EACF,EACF;CACD,iBAAiB,EACf,SAAS,OACV;CACF,CAAC;;;;;;;;;;AA0BF,MAAM,aAAa,EACjB,UACA,WAAW,aAAa,QACxB,MACA,GAAG,wBACiB;CACpB,MAAM,EAAE,OAAO,eAAe,UAAU,gBAAgB;EACtD;EACA,GAAG;EACJ,CAAC;CAEF,MAAM,EACJ,SACA,WAAW,EAAE,eAAe,eAC5B,eACE,gBAAgB;CAGpB,MAAM,qBAAqB,YAAY,gBAAgB,YAAY;CACnE,MAAM,mBAA6B,MAAM,KAEtC,QAAgB,QAAQ,SAAS,EAAE,CACrC;CACD,MAAM,mBAAmB,GAAG,KAAK;CACjC,MAAM,aAAa,qBACf,iBACG,QAAQ,MAAM;AACb,SAAO,EAAE,WAAW,iBAAiB;GACrC,CACD,MAAM,MAAM;AACX,SAAO,qBACL,oBACA,EAAE,MAAM,IAAI,CAAC,QAAQ,MAAM;AACzB,UAAO,MAAM;IACb,CACH;GACD,GACJ;CAGJ,MAAM,kBACJ,KACA,SACwC;AACxC,MAAI,CAAC,IACH;EAEF,MAAM,OAAO,KAAK,MAAM,IAAI;EAC5B,IAAI,UAAmB;AACvB,OAAK,OAAO,QAAQ;AAClB,OAAI,WAAW,OAAO,YAAY,UAAU;AAC1C,cAAW,QAAoC;AAC/C,WAAO;;AAET,aAAU;AACV,UAAO;IACP;AACF,SAAO;;CAGT,MAAM,eAAe,eACnB,eACA,KACD;CAKD,MAAM,kBAAkB,CAAC,CAAC,OAAO;CAGjC,MAAM,iBACJ,cAAc,KACd,sBACE,OACA,aACD;CAOH,MAAM,YAAY,qBADD,kBAAkB,EAAE,SAHjB,mBAAmB,gBAGoB,CAAC,EACX,YAAY,OAAO;AAEpE,QACE,qBAAC;EAAI,WAAW,UAAU;;GAEvB,QACC,qBAAC;IACC,GAAI,eAAe;IACnB,cAAY;IAGZ,WAAW,UAAU;IACrB,MAAK;eAEJ,OAGA,aACC,oBAAC;KAAK,eAAY;KAAO,WAAU;eAAqB;MAEjD,GACL;KACA,GACJ;GAGJ,oBAAC;IAAI,WAAW,UAAU;IAAU;KAAe;GAGnD,oBAACC;IAAyB,WAAW,UAAU;IAAmB;KAAQ;;GACtE;;AAIV,wBAAe"}
|