@fuf-stack/uniform 1.18.2 → 1.18.3
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.cjs +1 -1
- package/dist/FieldArray/index.d.cts +1 -1
- package/dist/FieldArray/index.d.ts +1 -1
- package/dist/FieldArray/index.js +1 -1
- package/dist/{FieldArray-C53ox8yB.js → FieldArray-Bs2ViU8m.js} +2 -2
- package/dist/{FieldArray-C53ox8yB.js.map → FieldArray-Bs2ViU8m.js.map} +1 -1
- package/dist/{FieldArray-BnZW6fwm.cjs → FieldArray-C6RHZcKa.cjs} +2 -2
- package/dist/{FieldArray-BnZW6fwm.cjs.map → FieldArray-C6RHZcKa.cjs.map} +1 -1
- package/dist/FieldCard/index.d.cts +1 -1
- package/dist/FieldCard/index.d.ts +1 -1
- package/dist/Form/index.d.cts +1 -1
- package/dist/Grid/index.cjs +1 -1
- package/dist/Grid/index.d.cts +1 -1
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-CeaybCIF.js → Grid-BaqBa1ku.js} +2 -2
- package/dist/{Grid-CeaybCIF.js.map → Grid-BaqBa1ku.js.map} +1 -1
- package/dist/{Grid-CE1fZKmV.cjs → Grid-D5Yf0nD_.cjs} +2 -2
- package/dist/{Grid-CE1fZKmV.cjs.map → Grid-D5Yf0nD_.cjs.map} +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/helpers/index.d.cts +2 -224
- package/dist/helpers/index.d.ts +2 -224
- package/dist/hooks/useClientValidation/index.d.cts +1 -1
- package/dist/hooks/useClientValidation/index.d.ts +1 -1
- package/dist/hooks/useController/index.d.cts +1 -1
- package/dist/hooks/useController/index.d.ts +1 -2
- 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 +23 -3
- package/dist/hooks/useWatchUserChange/index.d.cts +1 -1
- package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
- package/dist/{index-D6strMx0.d.ts → index--KhDRPu3.d.cts} +6 -6
- package/dist/{index-C_EyZKET.d.cts.map → index--KhDRPu3.d.cts.map} +1 -1
- package/dist/{index-C6iTO4TR.d.cts → index-B0rp5NJy.d.cts} +35 -35
- package/dist/{index-C6iTO4TR.d.cts.map → index-B0rp5NJy.d.cts.map} +1 -1
- package/dist/{index-CuNl43Zr.d.ts → index-B7Xz_OY2.d.cts} +1 -1
- package/dist/{index-DuJr42nE.d.cts.map → index-B7Xz_OY2.d.cts.map} +1 -1
- package/dist/index-BBw9RSKy.d.ts +278 -0
- package/dist/{index-Ca2ovPTq.d.ts.map → index-BBw9RSKy.d.ts.map} +1 -1
- package/dist/{index-D0OJCk7N.d.ts → index-BKQc5PQn.d.cts} +34 -34
- package/dist/{index-BtX5upPu.d.cts.map → index-BKQc5PQn.d.cts.map} +1 -1
- package/dist/index-BLgXFM85.d.cts +224 -0
- package/dist/index-BLgXFM85.d.cts.map +1 -0
- package/dist/{index-BE6hzbN3.d.cts → index-BNYtqtXt.d.cts} +3 -3
- package/dist/{index-BE6hzbN3.d.cts.map → index-BNYtqtXt.d.cts.map} +1 -1
- package/dist/{index-CHACvIcy.d.ts → index-BaxXDaOZ.d.ts} +35 -35
- package/dist/{index-CHACvIcy.d.ts.map → index-BaxXDaOZ.d.ts.map} +1 -1
- package/dist/{index-C_EyZKET.d.cts → index-BgyvEfYZ.d.ts} +6 -6
- package/dist/{index-D6strMx0.d.ts.map → index-BgyvEfYZ.d.ts.map} +1 -1
- package/dist/index-BjHnNRSC.d.cts +278 -0
- package/dist/{index-CM7UugT3.d.cts.map → index-BjHnNRSC.d.cts.map} +1 -1
- package/dist/{index-QFAAtvOV.d.cts → index-Bl1Adhfx.d.ts} +6 -6
- package/dist/{index-DhayQWKz.d.ts.map → index-Bl1Adhfx.d.ts.map} +1 -1
- package/dist/{index-BvRjEXt-.d.ts → index-BlJFGN_o.d.ts} +48 -48
- package/dist/{index-BvRjEXt-.d.ts.map → index-BlJFGN_o.d.ts.map} +1 -1
- package/dist/{index-BRvTllFR.d.cts → index-BlX_mF6D.d.cts} +21 -21
- package/dist/{index-BRvTllFR.d.cts.map → index-BlX_mF6D.d.cts.map} +1 -1
- package/dist/{index-DqY28C4j.d.cts → index-BrMk3Wee.d.ts} +4 -4
- package/dist/{index-BdrSpcmR.d.ts.map → index-BrMk3Wee.d.ts.map} +1 -1
- package/dist/{index-HfbCo9ep.d.cts → index-BsCPUK2g.d.cts} +48 -48
- package/dist/{index-HfbCo9ep.d.cts.map → index-BsCPUK2g.d.cts.map} +1 -1
- package/dist/{index-B3ly1uwg.d.ts → index-ByyEP8UR.d.cts} +6 -6
- package/dist/{index-CxeYvJ7m.d.cts.map → index-ByyEP8UR.d.cts.map} +1 -1
- package/dist/{index-D_iyWuBa.d.cts → index-C1-F9Ga-.d.cts} +6 -6
- package/dist/{index-D_iyWuBa.d.cts.map → index-C1-F9Ga-.d.cts.map} +1 -1
- package/dist/{index-DuJr42nE.d.cts → index-CI0AWMsR.d.ts} +3 -3
- package/dist/{index-CuNl43Zr.d.ts.map → index-CI0AWMsR.d.ts.map} +1 -1
- package/dist/{index-DmlsX2k6.d.ts → index-CMehV9mc.d.ts} +3 -3
- package/dist/index-CMehV9mc.d.ts.map +1 -0
- package/dist/{index-DIMnCRyt.d.ts → index-CPkTYivq.d.ts} +3 -3
- package/dist/{index-DIMnCRyt.d.ts.map → index-CPkTYivq.d.ts.map} +1 -1
- package/dist/{index-Dkfbf-VN.d.ts → index-CZq5eXSP.d.ts} +34 -34
- package/dist/{index-Dkfbf-VN.d.ts.map → index-CZq5eXSP.d.ts.map} +1 -1
- package/dist/{index-_6c2OwSa.d.cts → index-CeiIXmAI.d.cts} +36 -36
- package/dist/{index-_6c2OwSa.d.cts.map → index-CeiIXmAI.d.cts.map} +1 -1
- package/dist/{index-DhayQWKz.d.ts → index-DFzyOxvt.d.cts} +6 -6
- package/dist/{index-QFAAtvOV.d.cts.map → index-DFzyOxvt.d.cts.map} +1 -1
- package/dist/{index-NykXDzr-.d.cts → index-DLR8z1lG.d.cts} +3 -3
- package/dist/{index-NykXDzr-.d.cts.map → index-DLR8z1lG.d.cts.map} +1 -1
- package/dist/{index-CxeYvJ7m.d.cts → index-DVZCz730.d.ts} +6 -6
- package/dist/{index-B3ly1uwg.d.ts.map → index-DVZCz730.d.ts.map} +1 -1
- package/dist/{index-BdrSpcmR.d.ts → index-Dr06SNZN.d.cts} +4 -4
- package/dist/{index-DqY28C4j.d.cts.map → index-Dr06SNZN.d.cts.map} +1 -1
- package/dist/{index-Bg3AbFZf.d.ts → index-Dty4h2eA.d.ts} +6 -6
- package/dist/{index-Bg3AbFZf.d.ts.map → index-Dty4h2eA.d.ts.map} +1 -1
- package/dist/{index-BtX5upPu.d.cts → index-E6etS7_8.d.ts} +34 -34
- package/dist/{index-D0OJCk7N.d.ts.map → index-E6etS7_8.d.ts.map} +1 -1
- package/dist/{index-CYbsLxVV.d.ts → index-TmijvCD0.d.ts} +21 -21
- package/dist/{index-CYbsLxVV.d.ts.map → index-TmijvCD0.d.ts.map} +1 -1
- package/dist/{index-CC2Rnywy.d.cts → index-ahxY6Q0X.d.cts} +3 -3
- package/dist/index-ahxY6Q0X.d.cts.map +1 -0
- package/dist/{index-DiFA3eG2.d.ts → index-mmk9VKYu.d.ts} +21 -21
- package/dist/{index-DiFA3eG2.d.ts.map → index-mmk9VKYu.d.ts.map} +1 -1
- package/dist/{index-DelQykFp.d.ts → index-qo0Ta_R3.d.cts} +2 -2
- package/dist/{index-CUIi5IqH.d.cts.map → index-qo0Ta_R3.d.cts.map} +1 -1
- package/dist/{index-CUIi5IqH.d.cts → index-ttNINAv3.d.ts} +3 -3
- package/dist/{index-DelQykFp.d.ts.map → index-ttNINAv3.d.ts.map} +1 -1
- package/dist/index-w8E8Koak.d.ts +224 -0
- package/dist/index-w8E8Koak.d.ts.map +1 -0
- package/dist/{index-D3L2S2b3.d.cts → index-wwmQClW-.d.cts} +21 -21
- package/dist/{index-D3L2S2b3.d.cts.map → index-wwmQClW-.d.cts.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +22 -23
- package/dist/index.js +2 -2
- 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-DxFgfsEI.d.ts → useClientValidation-B4xrGBJZ.d.ts} +3 -3
- package/dist/{useClientValidation-DxFgfsEI.d.ts.map → useClientValidation-B4xrGBJZ.d.ts.map} +1 -1
- package/dist/{useClientValidation-Dw-dmynu.d.cts → useClientValidation-B_dYQB5o.d.cts} +3 -3
- package/dist/{useClientValidation-Dw-dmynu.d.cts.map → useClientValidation-B_dYQB5o.d.cts.map} +1 -1
- package/dist/{useController-DfiNbuEz.d.ts → useController-CHOpoCoz.d.ts} +1 -1
- package/dist/{useController-DfiNbuEz.d.ts.map → useController-CHOpoCoz.d.ts.map} +1 -1
- package/dist/{useController-CvPWE2Sy.d.cts → useController-D8MEXnmB.d.cts} +1 -1
- package/dist/{useController-CvPWE2Sy.d.cts.map → useController-D8MEXnmB.d.cts.map} +1 -1
- package/dist/{useUniformField-CqqIJtqo.d.ts → useUniformField-BDKjYBKu.d.ts} +2 -2
- package/dist/{useUniformField-CqqIJtqo.d.ts.map → useUniformField-BDKjYBKu.d.ts.map} +1 -1
- package/dist/{useUniformField-DIb__gKK.d.cts → useUniformField-Bd_oDkYE.d.cts} +2 -2
- package/dist/{useUniformField-DIb__gKK.d.cts.map → useUniformField-Bd_oDkYE.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-BChcZvc5.d.cts → useUniformFieldArray-CWiaXKO6.d.cts} +2 -2
- package/dist/{useUniformFieldArray-BChcZvc5.d.cts.map → useUniformFieldArray-CWiaXKO6.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-4MOU0xac.d.ts → useUniformFieldArray-lV3Nbum2.d.ts} +2 -2
- package/dist/{useUniformFieldArray-4MOU0xac.d.ts.map → useUniformFieldArray-lV3Nbum2.d.ts.map} +1 -1
- package/dist/{useWatchUserChange-CYd_8zeN.d.ts → useWatchUserChange-BnnrFjyq.d.ts} +1 -1
- package/dist/{useWatchUserChange-CYd_8zeN.d.ts.map → useWatchUserChange-BnnrFjyq.d.ts.map} +1 -1
- package/dist/{useWatchUserChange-DedTNvGV.d.cts → useWatchUserChange-DalJOKBC.d.cts} +1 -1
- package/dist/{useWatchUserChange-DedTNvGV.d.cts.map → useWatchUserChange-DalJOKBC.d.cts.map} +1 -1
- package/package.json +2 -2
- package/dist/helpers/index.d.cts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/index-CC2Rnywy.d.cts.map +0 -1
- package/dist/index-CM7UugT3.d.cts +0 -278
- package/dist/index-Ca2ovPTq.d.ts +0 -278
- package/dist/index-D86jXpHS.d.cts +0 -1
- package/dist/index-DmlsX2k6.d.ts.map +0 -1
- package/dist/index-hIBrhvnj.d.ts +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as tailwind_variants194 from "tailwind-variants";
|
|
1
2
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
3
|
import { ReactElement, ReactNode } from "react";
|
|
3
4
|
import { TabsProps } from "@fuf-stack/pixels";
|
|
4
|
-
import * as tailwind_variants94 from "tailwind-variants";
|
|
5
5
|
|
|
6
6
|
//#region src/RadioTabs/RadioTabs.d.ts
|
|
7
|
-
declare const radioTabsVariants:
|
|
7
|
+
declare const radioTabsVariants: tailwind_variants194.TVReturnType<{
|
|
8
8
|
hasContent: {
|
|
9
9
|
true: {
|
|
10
10
|
base: string;
|
|
@@ -62,7 +62,7 @@ declare const radioTabsVariants: tailwind_variants94.TVReturnType<{
|
|
|
62
62
|
tabPanel: string;
|
|
63
63
|
tabWrapper: string;
|
|
64
64
|
wrapper: string;
|
|
65
|
-
},
|
|
65
|
+
}, tailwind_variants194.TVReturnType<{
|
|
66
66
|
hasContent: {
|
|
67
67
|
true: {
|
|
68
68
|
base: string;
|
|
@@ -145,4 +145,4 @@ declare const RadioTabs: ({
|
|
|
145
145
|
}: RadioTabsProps) => ReactElement;
|
|
146
146
|
//#endregion
|
|
147
147
|
export { RadioTabsProps as n, RadioTabs as t };
|
|
148
|
-
//# sourceMappingURL=index-
|
|
148
|
+
//# sourceMappingURL=index-Dr06SNZN.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Dr06SNZN.d.cts","names":[],"sources":["../src/RadioTabs/RadioTabs.tsx"],"mappings":";;;;;;cAgBa,iBAAA,EAsCX,oBAAA,CAtC4B,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsC5B,oBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,YAAA,GAAe,OAAA,QAAe,iBAAA;AAAA,KAC9B,SAAA,GAAY,WAAA,QAAmB,iBAAA;AAAA,UAEnB,eAAA;EAQC;EANhB,OAAA,GAAU,SAAA;EAAA;EAEV,QAAA;EAEA;EAAA,KAAA,GAAQ,SAAA;EAER;EAAA,IAAA,GAAO,SAAA;EAEP;EAAA,MAAA;EAEK;EAAL,KAAA;AAAA;AAAA,UAGe,cAAA,SAAuB,IAAA,CAAK,YAAA;;EAE3C,SAAA;EAEY;EAAZ,SAAA,GAAY,SAAA;EAYH;EAVT,QAAA;EANsC;EAQtC,SAAA;EAR0C;EAU1C,MAAA;EAV2C;EAY3C,KAAA,GAAQ,SAAA;EARR;EAUA,IAAA;EARA;EAUA,OAAA,EAAS,eAAA;EANT;EAQA,MAAA;EANQ;EAQR,OAAA,GAAU,SAAA;AAAA;;;;;cAON,SAAA;EAAa,SAAA;EAAA,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAQhB,cAAA,KAAiB,YAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-tsMNM7g_.js";
|
|
2
2
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
5
|
+
import * as tailwind_variants254 from "tailwind-variants";
|
|
6
6
|
|
|
7
7
|
//#region src/Checkboxes/Checkboxes.d.ts
|
|
8
|
-
declare const checkboxesVariants:
|
|
8
|
+
declare const checkboxesVariants: tailwind_variants254.TVReturnType<{
|
|
9
9
|
color: {
|
|
10
10
|
readonly default: {
|
|
11
11
|
wrapper: string;
|
|
@@ -85,7 +85,7 @@ declare const checkboxesVariants: tailwind_variants180.TVReturnType<{
|
|
|
85
85
|
optionLabelSubline: string;
|
|
86
86
|
optionWrapper: string;
|
|
87
87
|
wrapper: string;
|
|
88
|
-
},
|
|
88
|
+
}, tailwind_variants254.TVReturnType<{
|
|
89
89
|
color: {
|
|
90
90
|
readonly default: {
|
|
91
91
|
wrapper: string;
|
|
@@ -175,7 +175,7 @@ declare const Checkboxes: ({
|
|
|
175
175
|
options,
|
|
176
176
|
name,
|
|
177
177
|
...uniformFieldProps
|
|
178
|
-
}: CheckboxesProps) =>
|
|
178
|
+
}: CheckboxesProps) => react_jsx_runtime11.JSX.Element;
|
|
179
179
|
//#endregion
|
|
180
180
|
export { Checkboxes as n, CheckboxesProps as r, CheckboxOption as t };
|
|
181
|
-
//# sourceMappingURL=index-
|
|
181
|
+
//# sourceMappingURL=index-Dty4h2eA.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Dty4h2eA.d.ts","names":[],"sources":["../src/Checkboxes/Checkboxes.tsx"],"mappings":";;;;;;;cAoBa,kBAAA,EAmCX,oBAAA,CAnC6B,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC7B,oBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,YAAA,GAAe,OAAA,QAAe,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAA,QAAmB,kBAAA;AAAA,UAEnB,cAAA;EAyBP;EAvBR,KAAA,GAAQ,SAAA;EAiCI;EA/BZ,YAAA,GAAe,SAAA;EASoC;EAPnD,KAAA;EAOuC;EALvC,QAAA;EASA;EAPA,MAAA;AAAA;AAAA,UAGe,eAAA,SAAwB,YAAA;EAQvC;EANA,SAAA;EAUA;EARA,SAAA,GAAY,SAAA;EAUZ;EARA,KAAA,GAAQ,YAAA;EAYR;EAVA,QAAA;EAYA;EAVA,MAAA;EAYY;EAVZ,KAAA,GAAQ,SAAA;EAUuB;EAR/B,WAAA;EAuID;EArIC,IAAA;EAYkB;EAVlB,OAAA,EAAS,cAAA;EAUS;EARlB,MAAA;EAQkB;EANlB,SAAA,GAAY,mBAAA;AAAA;;;;cAMR,UAAA;EAAc,SAAA;EAAA,KAAA;EAAA,MAAA;EAAA,WAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAQjB,eAAA,KAAe,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as tailwind_variants245 from "tailwind-variants";
|
|
2
1
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
3
2
|
import { ReactElement, ReactNode } from "react";
|
|
3
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
4
4
|
|
|
5
5
|
//#region src/Radios/Radios.d.ts
|
|
6
|
-
declare const radiosVariants:
|
|
6
|
+
declare const radiosVariants: tailwind_variants0.TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
|
-
[key: string]:
|
|
9
|
-
base?:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
[key: string]: tailwind_variants0.ClassValue | {
|
|
9
|
+
base?: tailwind_variants0.ClassValue;
|
|
10
|
+
itemBase?: tailwind_variants0.ClassValue;
|
|
11
|
+
itemControl?: tailwind_variants0.ClassValue;
|
|
12
|
+
itemDescription?: tailwind_variants0.ClassValue;
|
|
13
|
+
itemLabel?: tailwind_variants0.ClassValue;
|
|
14
|
+
itemLabelWrapper?: tailwind_variants0.ClassValue;
|
|
15
|
+
itemWrapper?: tailwind_variants0.ClassValue;
|
|
16
|
+
label?: tailwind_variants0.ClassValue;
|
|
17
|
+
wrapper?: tailwind_variants0.ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
|
-
[x: string]:
|
|
23
|
-
base?:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
[x: string]: tailwind_variants0.ClassValue | {
|
|
23
|
+
base?: tailwind_variants0.ClassValue;
|
|
24
|
+
itemBase?: tailwind_variants0.ClassValue;
|
|
25
|
+
itemControl?: tailwind_variants0.ClassValue;
|
|
26
|
+
itemDescription?: tailwind_variants0.ClassValue;
|
|
27
|
+
itemLabel?: tailwind_variants0.ClassValue;
|
|
28
|
+
itemLabelWrapper?: tailwind_variants0.ClassValue;
|
|
29
|
+
itemWrapper?: tailwind_variants0.ClassValue;
|
|
30
|
+
label?: tailwind_variants0.ClassValue;
|
|
31
|
+
wrapper?: tailwind_variants0.ClassValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -43,16 +43,16 @@ declare const radiosVariants: tailwind_variants245.TVReturnType<{
|
|
|
43
43
|
wrapper: string;
|
|
44
44
|
}, undefined, {
|
|
45
45
|
[key: string]: {
|
|
46
|
-
[key: string]:
|
|
47
|
-
base?:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
[key: string]: tailwind_variants0.ClassValue | {
|
|
47
|
+
base?: tailwind_variants0.ClassValue;
|
|
48
|
+
itemBase?: tailwind_variants0.ClassValue;
|
|
49
|
+
itemControl?: tailwind_variants0.ClassValue;
|
|
50
|
+
itemDescription?: tailwind_variants0.ClassValue;
|
|
51
|
+
itemLabel?: tailwind_variants0.ClassValue;
|
|
52
|
+
itemLabelWrapper?: tailwind_variants0.ClassValue;
|
|
53
|
+
itemWrapper?: tailwind_variants0.ClassValue;
|
|
54
|
+
label?: tailwind_variants0.ClassValue;
|
|
55
|
+
wrapper?: tailwind_variants0.ClassValue;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
} | {}, {
|
|
@@ -65,7 +65,7 @@ declare const radiosVariants: tailwind_variants245.TVReturnType<{
|
|
|
65
65
|
itemWrapper: string;
|
|
66
66
|
label: string;
|
|
67
67
|
wrapper: string;
|
|
68
|
-
},
|
|
68
|
+
}, tailwind_variants0.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-E6etS7_8.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-E6etS7_8.d.ts","names":[],"sources":["../src/Radios/Radios.tsx"],"mappings":";;;;;cAaa,cAAA,qBAAc,YAAA;EAAA;mBAgBzB,kBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,YAAA,GAAe,OAAA,QAAe,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAA,QAAmB,cAAA;AAAA,UAEnB,WAAA;;EAEf,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAA;;EAEP,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA;;EAEA,OAAA,EAAS,WAAA;;EAET,MAAA;AAAA;;;;cAMI,MAAA;EAAU,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMb,WAAA,KAAc,YAAA"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-tsMNM7g_.js";
|
|
2
2
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
5
|
+
import * as tailwind_variants109 from "tailwind-variants";
|
|
6
6
|
|
|
7
7
|
//#region src/Input/Input.d.ts
|
|
8
|
-
declare const inputVariants:
|
|
8
|
+
declare const inputVariants: tailwind_variants109.TVReturnType<{
|
|
9
9
|
[key: string]: {
|
|
10
|
-
[key: string]:
|
|
11
|
-
base?:
|
|
12
|
-
input?:
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
[key: string]: tailwind_variants109.ClassValue | {
|
|
11
|
+
base?: tailwind_variants109.ClassValue;
|
|
12
|
+
input?: tailwind_variants109.ClassValue;
|
|
13
|
+
inputWrapper?: tailwind_variants109.ClassValue;
|
|
14
|
+
clearButton?: tailwind_variants109.ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
|
-
[x: string]:
|
|
20
|
-
base?:
|
|
21
|
-
input?:
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
[x: string]: tailwind_variants109.ClassValue | {
|
|
20
|
+
base?: tailwind_variants109.ClassValue;
|
|
21
|
+
input?: tailwind_variants109.ClassValue;
|
|
22
|
+
inputWrapper?: tailwind_variants109.ClassValue;
|
|
23
|
+
clearButton?: tailwind_variants109.ClassValue;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
} | {}, {
|
|
@@ -30,11 +30,11 @@ declare const inputVariants: tailwind_variants100.TVReturnType<{
|
|
|
30
30
|
inputWrapper: string;
|
|
31
31
|
}, undefined, {
|
|
32
32
|
[key: string]: {
|
|
33
|
-
[key: string]:
|
|
34
|
-
base?:
|
|
35
|
-
input?:
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
[key: string]: tailwind_variants109.ClassValue | {
|
|
34
|
+
base?: tailwind_variants109.ClassValue;
|
|
35
|
+
input?: tailwind_variants109.ClassValue;
|
|
36
|
+
inputWrapper?: tailwind_variants109.ClassValue;
|
|
37
|
+
clearButton?: tailwind_variants109.ClassValue;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
} | {}, {
|
|
@@ -42,7 +42,7 @@ declare const inputVariants: tailwind_variants100.TVReturnType<{
|
|
|
42
42
|
clearButton: string; /** actual input element */
|
|
43
43
|
input: string; /** inner wrapper (HeroUI inputWrapper slot) */
|
|
44
44
|
inputWrapper: string;
|
|
45
|
-
},
|
|
45
|
+
}, tailwind_variants109.TVReturnType<unknown, {
|
|
46
46
|
/** wrapper around the whole input */base: string; /** clear button */
|
|
47
47
|
clearButton: string; /** actual input element */
|
|
48
48
|
input: string; /** inner wrapper (HeroUI inputWrapper slot) */
|
|
@@ -97,7 +97,7 @@ declare const Input: ({
|
|
|
97
97
|
startContent,
|
|
98
98
|
type,
|
|
99
99
|
...uniformFieldProps
|
|
100
|
-
}: InputProps) =>
|
|
100
|
+
}: InputProps) => react_jsx_runtime4.JSX.Element;
|
|
101
101
|
//#endregion
|
|
102
102
|
export { InputProps as n, Input as t };
|
|
103
|
-
//# sourceMappingURL=index-
|
|
103
|
+
//# sourceMappingURL=index-TmijvCD0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-TmijvCD0.d.ts","names":[],"sources":["../src/Input/Input.tsx"],"mappings":";;;;;;;cAca,aAAA,uBAAa,YAAA;EAAA;mBAWxB,oBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;iBAXwB;;;;;;;;;;;;;;;;;;;;;;KAarB,YAAA,GAAe,OAAA,QAAe,aAAA;AAAA,KAC9B,SAAA,GAAY,WAAA,QAAmB,aAAA;AAAA,UAEnB,UAAA,SAAmB,YAAA;;EAElC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,SAAA;;EAEA,aAAA;;EAEA,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,KAAA,GAAQ,SAAA;;EAER,IAAA;;EAEA,OAAA;EArBe;EAuBf,WAAA;EAvBkB;EAyBlB,IAAA;EAxBG;EA0BH,YAAA,GAAe,SAAA;;EAEf,MAAA;EA5B+C;EA8B/C,SAAA,GAAY,mBAAA;EA5Bc;EA8B1B,IAAA;AAAA;;;;cAMI,KAAA;EAAS,SAAA,EAAA,UAAA;EAAA,SAAA;EAAA,aAAA;EAAA,UAAA;EAAA,IAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,YAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAYZ,UAAA,KAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.d.ts
|
|
4
4
|
interface FieldCopyTestIdButtonProps {
|
|
@@ -10,7 +10,7 @@ interface FieldCopyTestIdButtonProps {
|
|
|
10
10
|
declare const FieldCopyTestIdButton: ({
|
|
11
11
|
className,
|
|
12
12
|
testId
|
|
13
|
-
}: FieldCopyTestIdButtonProps) =>
|
|
13
|
+
}: FieldCopyTestIdButtonProps) => react_jsx_runtime1.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FieldCopyTestIdButtonProps as n, FieldCopyTestIdButton as t };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-ahxY6Q0X.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ahxY6Q0X.d.cts","names":[],"sources":["../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":";;;UAKiB,0BAAA;;EAEf,SAAA;EAFe;EAIf,MAAA;AAAA;AAAA,cAGI,qBAAA;EAAyB,SAAA;EAAA;AAAA,GAG5B,0BAAA,KAA0B,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
4
|
+
import * as tailwind_variants260 from "tailwind-variants";
|
|
5
5
|
|
|
6
6
|
//#region src/TextArea/TextArea.d.ts
|
|
7
|
-
declare const textAreaVariants:
|
|
7
|
+
declare const textAreaVariants: tailwind_variants260.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
9
|
-
[key: string]:
|
|
10
|
-
base?:
|
|
11
|
-
input?:
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
[key: string]: tailwind_variants260.ClassValue | {
|
|
10
|
+
base?: tailwind_variants260.ClassValue;
|
|
11
|
+
input?: tailwind_variants260.ClassValue;
|
|
12
|
+
inputWrapper?: tailwind_variants260.ClassValue;
|
|
13
|
+
clearButton?: tailwind_variants260.ClassValue;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
} | {
|
|
17
17
|
[x: string]: {
|
|
18
|
-
[x: string]:
|
|
19
|
-
base?:
|
|
20
|
-
input?:
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
[x: string]: tailwind_variants260.ClassValue | {
|
|
19
|
+
base?: tailwind_variants260.ClassValue;
|
|
20
|
+
input?: tailwind_variants260.ClassValue;
|
|
21
|
+
inputWrapper?: tailwind_variants260.ClassValue;
|
|
22
|
+
clearButton?: tailwind_variants260.ClassValue;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
} | {}, {
|
|
@@ -29,11 +29,11 @@ declare const textAreaVariants: tailwind_variants33.TVReturnType<{
|
|
|
29
29
|
inputWrapper: string;
|
|
30
30
|
}, undefined, {
|
|
31
31
|
[key: string]: {
|
|
32
|
-
[key: string]:
|
|
33
|
-
base?:
|
|
34
|
-
input?:
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
[key: string]: tailwind_variants260.ClassValue | {
|
|
33
|
+
base?: tailwind_variants260.ClassValue;
|
|
34
|
+
input?: tailwind_variants260.ClassValue;
|
|
35
|
+
inputWrapper?: tailwind_variants260.ClassValue;
|
|
36
|
+
clearButton?: tailwind_variants260.ClassValue;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
} | {}, {
|
|
@@ -41,7 +41,7 @@ declare const textAreaVariants: tailwind_variants33.TVReturnType<{
|
|
|
41
41
|
clearButton: string; /** actual input element */
|
|
42
42
|
input: string; /** inner wrapper (HeroUI inputWrapper slot) */
|
|
43
43
|
inputWrapper: string;
|
|
44
|
-
},
|
|
44
|
+
}, tailwind_variants260.TVReturnType<unknown, {
|
|
45
45
|
/** wrapper around the whole input */base: string; /** clear button */
|
|
46
46
|
clearButton: string; /** actual input element */
|
|
47
47
|
input: string; /** inner wrapper (HeroUI inputWrapper slot) */
|
|
@@ -79,7 +79,7 @@ declare const TextArea: ({
|
|
|
79
79
|
name,
|
|
80
80
|
placeholder,
|
|
81
81
|
...uniformFieldProps
|
|
82
|
-
}: TextAreaProps) =>
|
|
82
|
+
}: TextAreaProps) => react_jsx_runtime14.JSX.Element;
|
|
83
83
|
//#endregion
|
|
84
84
|
export { TextAreaProps as n, TextArea as t };
|
|
85
|
-
//# sourceMappingURL=index-
|
|
85
|
+
//# sourceMappingURL=index-mmk9VKYu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-mmk9VKYu.d.ts","names":[],"sources":["../src/TextArea/TextArea.tsx"],"mappings":";;;;;;cAWa,gBAAA,uBAAgB,YAAA;EAAA;mBAW3B,oBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;iBAX2B;;;;;;;;;;;;;;;;;;;;;;KAaxB,YAAA,GAAe,OAAA,QAAe,gBAAA;AAAA,KAC9B,SAAA,GAAY,WAAA,QAAmB,gBAAA;AAAA,UAEnB,aAAA,SAAsB,YAAA;;EAErC,SAAA;;EAEA,QAAA,GAAW,SAAA;;EAEX,SAAA,GAAY,SAAA;;EAEZ,aAAA;;EAEA,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA;;EAEA,WAAA;;EAEA,MAAA;AAAA;;;;cAMI,QAAA;EAAY,QAAA;EAAA,SAAA,EAAA,UAAA;EAAA,aAAA;EAAA,IAAA;EAAA,WAAA;EAAA,GAAA;AAAA,GAOf,aAAA,KAAa,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
1
|
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Grid/Grid.d.ts
|
|
5
5
|
interface GridProps {
|
|
@@ -20,4 +20,4 @@ declare const Grid: ({
|
|
|
20
20
|
}: GridProps) => react_jsx_runtime11.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GridProps as n, Grid as t };
|
|
23
|
-
//# sourceMappingURL=index-
|
|
23
|
+
//# sourceMappingURL=index-qo0Ta_R3.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-qo0Ta_R3.d.cts","names":[],"sources":["../src/Grid/Grid.tsx"],"mappings":";;;;UAIiB,SAAA;;EAEf,QAAA,GAAW,SAAA;EAFI;EAIf,SAAA;;EAEA,MAAA;AAAA;;;;cAMI,IAAA;EAAQ,QAAA;EAAA,SAAA;EAAA;AAAA,GAIX,SAAA,KAAS,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/Grid/Grid.d.ts
|
|
5
5
|
interface GridProps {
|
|
@@ -17,7 +17,7 @@ declare const Grid: ({
|
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
testId
|
|
20
|
-
}: GridProps) =>
|
|
20
|
+
}: GridProps) => react_jsx_runtime10.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GridProps as n, Grid as t };
|
|
23
|
-
//# sourceMappingURL=index-
|
|
23
|
+
//# sourceMappingURL=index-ttNINAv3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-ttNINAv3.d.ts","names":[],"sources":["../src/Grid/Grid.tsx"],"mappings":";;;;UAIiB,SAAA;;EAEf,QAAA,GAAW,SAAA;EAFI;EAIf,SAAA;;EAEA,MAAA;AAAA;;;;cAMI,IAAA;EAAQ,QAAA;EAAA,SAAA;EAAA;AAAA,GAIX,SAAA,KAAS,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
//#region src/helpers/createOptionValueConverter/createOptionValueConverter.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Creates a converter function that preserves the original type (string, number, or boolean)
|
|
4
|
+
* of option values when converting from string keys back to their original type.
|
|
5
|
+
*
|
|
6
|
+
* This is useful for radio/select components where the underlying UI library
|
|
7
|
+
* uses string keys internally, but we want to preserve number/boolean values in the form state.
|
|
8
|
+
*
|
|
9
|
+
* @param options - Array of options with a value property that can be string, number, or boolean
|
|
10
|
+
* @returns An object with:
|
|
11
|
+
* - `convertToOriginalType`: Function to convert a string key back to its original type
|
|
12
|
+
* - `numberValueKeys`: Set of string representations of number values (for internal use)
|
|
13
|
+
* - `booleanValueKeys`: Map of string representations to boolean values (for internal use)
|
|
14
|
+
*/
|
|
15
|
+
declare const createOptionValueConverter: <T extends {
|
|
16
|
+
value: string | number | boolean;
|
|
17
|
+
}>(options: T[]) => {
|
|
18
|
+
booleanValueKeys: Map<string, boolean>;
|
|
19
|
+
convertToOriginalType: (key: string | number | boolean) => string | number | boolean;
|
|
20
|
+
numberValueKeys: Set<string>;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/helpers/nullishFields/nullishFields.d.ts
|
|
24
|
+
/** Key used to wrap flat array elements when converting to form format */
|
|
25
|
+
declare const flatArrayKey = "__FLAT__";
|
|
26
|
+
/**
|
|
27
|
+
* Checks if a value is considered "empty" for validation display purposes.
|
|
28
|
+
*
|
|
29
|
+
* Used by useUniformField to determine when to show validation errors.
|
|
30
|
+
* Empty values don't trigger immediate error display (user must interact first).
|
|
31
|
+
*
|
|
32
|
+
* Handles:
|
|
33
|
+
* - Primitives: null, undefined, ''
|
|
34
|
+
* - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)
|
|
35
|
+
* - Empty arrays: []
|
|
36
|
+
* - Objects with all empty values: {a: null, b: ''}
|
|
37
|
+
* - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}
|
|
38
|
+
*
|
|
39
|
+
* @param value - The value to check (will be converted via fromNullishString first)
|
|
40
|
+
* @returns true if the value is empty
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* isValueEmpty(null) // true
|
|
44
|
+
* isValueEmpty('') // true
|
|
45
|
+
* isValueEmpty('__NULL__') // true (marker string)
|
|
46
|
+
* isValueEmpty([]) // true (empty array)
|
|
47
|
+
* isValueEmpty({a: null}) // true (object with all empty values)
|
|
48
|
+
* isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)
|
|
49
|
+
* isValueEmpty({__FLAT__: ''}) // true
|
|
50
|
+
* isValueEmpty('hello') // false
|
|
51
|
+
* isValueEmpty([1, 2]) // false
|
|
52
|
+
* isValueEmpty({a: 'value'}) // false
|
|
53
|
+
* isValueEmpty({__FLAT__: 'value'}) // false
|
|
54
|
+
*/
|
|
55
|
+
declare const isValueEmpty: (value: unknown) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Converts marker strings back to their original values when processing arrays
|
|
58
|
+
*/
|
|
59
|
+
declare const fromNullishString: (value: unknown) => unknown;
|
|
60
|
+
/**
|
|
61
|
+
* Converts null/falsy values to marker strings for JSON processing
|
|
62
|
+
*/
|
|
63
|
+
declare const toNullishString: (value: unknown) => unknown;
|
|
64
|
+
/**
|
|
65
|
+
* Converts field values to a format suitable for forms by:
|
|
66
|
+
* - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`
|
|
67
|
+
* to satisfy RHF's requirement that array fields contain objects
|
|
68
|
+
* - Removing empty strings and null values from objects
|
|
69
|
+
*
|
|
70
|
+
* This conversion is required because React Hook Form does not support arrays with
|
|
71
|
+
* flat values (string, number, boolean, null). Array fields must contain objects.
|
|
72
|
+
* We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* const fields = {
|
|
76
|
+
* name: 'John',
|
|
77
|
+
* scores: [0, null, 75, false],
|
|
78
|
+
* scoresDetailed: [
|
|
79
|
+
* { score: 1 },
|
|
80
|
+
* { score: null },
|
|
81
|
+
* { score: 0 },
|
|
82
|
+
* { score: false },
|
|
83
|
+
* { score: '' },
|
|
84
|
+
* ],
|
|
85
|
+
* contact: {
|
|
86
|
+
* email: '',
|
|
87
|
+
* phone: null,
|
|
88
|
+
* address: '123 Main St'
|
|
89
|
+
* }
|
|
90
|
+
* };
|
|
91
|
+
*
|
|
92
|
+
* // Result:
|
|
93
|
+
* {
|
|
94
|
+
* name: 'John',
|
|
95
|
+
* scores: [
|
|
96
|
+
* { __FLAT__: 0 },
|
|
97
|
+
* { __FLAT__: null },
|
|
98
|
+
* { __FLAT__: 75 },
|
|
99
|
+
* { __FLAT__: false }
|
|
100
|
+
* ],
|
|
101
|
+
* // Arrays of objects are left as objects; empty/null properties are removed
|
|
102
|
+
* scoresDetailed: [
|
|
103
|
+
* { score: 1 },
|
|
104
|
+
* {}, // null score removed
|
|
105
|
+
* { score: 0 },
|
|
106
|
+
* { score: false },
|
|
107
|
+
* {}, // empty string removed
|
|
108
|
+
* ],
|
|
109
|
+
* contact: {
|
|
110
|
+
* address: '123 Main St'
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
*/
|
|
114
|
+
declare const toFormFormat: (fields: Record<string, unknown>) => Record<string, unknown>;
|
|
115
|
+
/**
|
|
116
|
+
* Converts form state to a format suitable for validation by:
|
|
117
|
+
* - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives
|
|
118
|
+
* - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values
|
|
119
|
+
* - Removing fields whose converted value is empty string or null
|
|
120
|
+
* - Removing empty arrays
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* const formState = {
|
|
124
|
+
* name: 'John',
|
|
125
|
+
* scores: [
|
|
126
|
+
* { __FLAT__: 75 },
|
|
127
|
+
* { __FLAT__: 0 },
|
|
128
|
+
* { __FLAT__: null },
|
|
129
|
+
* { __FLAT__: false }
|
|
130
|
+
* ],
|
|
131
|
+
* emptyArray: [],
|
|
132
|
+
* scoresDetailed: [
|
|
133
|
+
* { score: 1 },
|
|
134
|
+
* {},
|
|
135
|
+
* { score: 0 },
|
|
136
|
+
* { score: false },
|
|
137
|
+
* {},
|
|
138
|
+
* ],
|
|
139
|
+
* contact: {
|
|
140
|
+
* address: '123 Main St',
|
|
141
|
+
* fax: null
|
|
142
|
+
* }
|
|
143
|
+
* };
|
|
144
|
+
*
|
|
145
|
+
* // Result:
|
|
146
|
+
* {
|
|
147
|
+
* name: 'John',
|
|
148
|
+
* scores: [75, 0, null, false],
|
|
149
|
+
* // emptyArray is removed
|
|
150
|
+
* // Objects inside arrays remain objects; empty entries remain empty objects
|
|
151
|
+
* scoresDetailed: [
|
|
152
|
+
* { score: 1 },
|
|
153
|
+
* {},
|
|
154
|
+
* { score: 0 },
|
|
155
|
+
* { score: false },
|
|
156
|
+
* {},
|
|
157
|
+
* ],
|
|
158
|
+
* contact: {
|
|
159
|
+
* address: '123 Main St'
|
|
160
|
+
* }
|
|
161
|
+
* }
|
|
162
|
+
*/
|
|
163
|
+
declare const toValidationFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Converts form state to a format suitable for submission by:
|
|
166
|
+
* - Applying all transformations from toValidationFormat
|
|
167
|
+
* - Additionally removing empty objects from the result
|
|
168
|
+
* - Filtering empty objects from arrays
|
|
169
|
+
* - Recursively cleaning nested structures
|
|
170
|
+
*
|
|
171
|
+
* **Why separate from toValidationFormat?**
|
|
172
|
+
*
|
|
173
|
+
* Empty objects must be preserved during validation so that custom refinements
|
|
174
|
+
* can run. For example, a FieldCard with "at least email or phone required"
|
|
175
|
+
* validation needs the object to exist (even if empty) for the refine to execute.
|
|
176
|
+
*
|
|
177
|
+
* However, for submission, empty objects are meaningless and should be removed
|
|
178
|
+
* to produce clean data for APIs.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* const formState = {
|
|
182
|
+
* name: 'John',
|
|
183
|
+
* contact: {}, // Empty FieldCard - will be removed
|
|
184
|
+
* tags: [{}, {}, {}], // All empty - array will be removed
|
|
185
|
+
* items: [
|
|
186
|
+
* { value: 'a' },
|
|
187
|
+
* {}, // Empty entry - will be filtered out
|
|
188
|
+
* { value: 'b' }
|
|
189
|
+
* ],
|
|
190
|
+
* nested: {
|
|
191
|
+
* deep: {} // Nested empty - will be removed recursively
|
|
192
|
+
* }
|
|
193
|
+
* };
|
|
194
|
+
*
|
|
195
|
+
* // Result:
|
|
196
|
+
* {
|
|
197
|
+
* name: 'John',
|
|
198
|
+
* items: [{ value: 'a' }, { value: 'b' }]
|
|
199
|
+
* }
|
|
200
|
+
*/
|
|
201
|
+
declare const toSubmitFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Converts a field name to a testId by removing flat array key segments and slugifying.
|
|
204
|
+
* Removes all occurrences of `flatArrayKey` from the field name and applies slugify transformation.
|
|
205
|
+
*
|
|
206
|
+
* This is used to generate stable testIds for form fields that don't include
|
|
207
|
+
* the internal `__FLAT__` marker used for flat arrays.
|
|
208
|
+
*
|
|
209
|
+
* @param name - The field name as a string (e.g., 'tags.0.__FLAT__') or array path (e.g., ['tags', '0', '__FLAT__'])
|
|
210
|
+
* @returns The slugified field name with all flat array key segments removed (e.g., 'tags_0')
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* nameToTestId('tags.0.__FLAT__') // => 'tags_0'
|
|
215
|
+
* nameToTestId('array.0.__FLAT__') // => 'array_0'
|
|
216
|
+
* nameToTestId('nested.array.0.__FLAT__.field') // => 'nested_array_0_field'
|
|
217
|
+
* nameToTestId('simple.field') // => 'simple_field'
|
|
218
|
+
* nameToTestId(['tags', '0', '__FLAT__']) // => 'tags_0'
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
declare const nameToTestId: (name: string | readonly string[]) => string;
|
|
222
|
+
//#endregion
|
|
223
|
+
export { toFormFormat as a, toValidationFormat as c, nameToTestId as i, createOptionValueConverter as l, fromNullishString as n, toNullishString as o, isValueEmpty as r, toSubmitFormat as s, flatArrayKey as t };
|
|
224
|
+
//# sourceMappingURL=index-w8E8Koak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-w8E8Koak.d.ts","names":[],"sources":["../src/helpers/createOptionValueConverter/createOptionValueConverter.ts","../src/helpers/nullishFields/nullishFields.ts"],"mappings":";;AAeA;;;;;;;;;;;;cAAa,0BAAA;EACC,KAAA;AAAA,GAEZ,OAAA,EAAS,CAAA;;;;;;;;cCfE,YAAA;;;;;;;;;;;;;;;;;;;;;;;AAAb;;;;;AAsCA;;cAAa,YAAA,GAAgB,KAAA;;;AA0B7B;cAAa,iBAAA,GAAqB,KAAA;;;;cAsCrB,eAAA,GAAmB,KAAA;;;;;AA6EhC;;;;;;;;;AA2EA;;;;;;;;;AAyKA;;;;;;;;;AA6BA;;;;;;;;;;;;;;;;;;;cAjRa,YAAA,GAAgB,MAAA,EAAQ,MAAA,sBAwBE,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmD1B,kBAAA,GACX,SAAA,EAAW,MAAA,yCACV,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuKU,cAAA,GACX,SAAA,EAAW,MAAA,yCACV,MAAA;;;;;;;;;;;;;;;;;;;;cA2BU,YAAA,GAAgB,IAAA"}
|