@fuf-stack/uniform 2.0.0-next.1 → 2.0.0-next.4
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.mts +47 -27
- package/dist/Checkboxes/index.d.mts.map +1 -1
- package/dist/Checkboxes/index.mjs +26 -25
- package/dist/Checkboxes/index.mjs.map +1 -1
- package/dist/DatePicker/index.d.mts +63 -86
- package/dist/DatePicker/index.d.mts.map +1 -1
- package/dist/DatePicker/index.mjs +43 -49
- package/dist/DatePicker/index.mjs.map +1 -1
- package/dist/FieldArray/index.d.mts +8 -16
- package/dist/FieldArray/index.d.mts.map +1 -1
- package/dist/FieldArray/index.mjs +25 -37
- package/dist/FieldArray/index.mjs.map +1 -1
- package/dist/FieldCard/index.d.mts +0 -4
- package/dist/FieldCard/index.d.mts.map +1 -1
- package/dist/FieldCard/index.mjs +14 -25
- package/dist/FieldCard/index.mjs.map +1 -1
- package/dist/{FieldCopyTestIdButton-DV0tkdh2.mjs → FieldCopyTestIdButton-D3_jZYJ1.mjs} +3 -5
- package/dist/{FieldCopyTestIdButton-DV0tkdh2.mjs.map → FieldCopyTestIdButton-D3_jZYJ1.mjs.map} +1 -1
- package/dist/FieldHelper-B1DWl7eu.mjs +38 -0
- package/dist/FieldHelper-B1DWl7eu.mjs.map +1 -0
- package/dist/FieldLabel-DMTqq0Jj.mjs +29 -0
- package/dist/FieldLabel-DMTqq0Jj.mjs.map +1 -0
- package/dist/{FieldLayout-BLW5S-Jm.mjs → FieldLayout-C9MEBZAC.mjs} +11 -19
- package/dist/FieldLayout-C9MEBZAC.mjs.map +1 -0
- package/dist/FieldReset/index.d.mts +420 -0
- package/dist/FieldReset/index.d.mts.map +1 -0
- package/dist/FieldReset/index.mjs +258 -0
- package/dist/FieldReset/index.mjs.map +1 -0
- package/dist/{FieldValidationError-DgkCL3cC.mjs → FieldValidationError-BuLvuRyi.mjs} +5 -7
- package/dist/FieldValidationError-BuLvuRyi.mjs.map +1 -0
- package/dist/Form/index.d.mts +12 -14
- package/dist/Form/index.d.mts.map +1 -1
- package/dist/Form/index.mjs +7 -10
- package/dist/Form/index.mjs.map +1 -1
- package/dist/FormContext-BnNJYZOo.d.mts +124 -0
- package/dist/FormContext-BnNJYZOo.d.mts.map +1 -0
- package/dist/{FormContext-CHctWFAP.mjs → FormContext-PXkVlBdU.mjs} +5 -9
- package/dist/{FormContext-CHctWFAP.mjs.map → FormContext-PXkVlBdU.mjs.map} +1 -1
- package/dist/Grid/index.d.mts +0 -2
- package/dist/Grid/index.d.mts.map +1 -1
- package/dist/Grid/index.mjs +1 -1
- package/dist/{Grid-DfcZeuib.mjs → Grid-DBL29Kwb.mjs} +3 -5
- package/dist/{Grid-DfcZeuib.mjs.map → Grid-DBL29Kwb.mjs.map} +1 -1
- package/dist/Input/index.d.mts +610 -393
- package/dist/Input/index.d.mts.map +1 -1
- package/dist/Input/index.mjs +24 -31
- package/dist/Input/index.mjs.map +1 -1
- package/dist/RadioBoxes/index.d.mts +247 -2227
- package/dist/RadioBoxes/index.d.mts.map +1 -1
- package/dist/RadioBoxes/index.mjs +25 -37
- package/dist/RadioBoxes/index.mjs.map +1 -1
- package/dist/RadioTabs/index.d.mts +599 -289
- package/dist/RadioTabs/index.d.mts.map +1 -1
- package/dist/RadioTabs/index.mjs +24 -27
- package/dist/RadioTabs/index.mjs.map +1 -1
- package/dist/Radios/index.d.mts +164 -2077
- package/dist/Radios/index.d.mts.map +1 -1
- package/dist/Radios/index.mjs +12 -23
- package/dist/Radios/index.mjs.map +1 -1
- package/dist/Select/index.d.mts +809 -484
- package/dist/Select/index.d.mts.map +1 -1
- package/dist/Select/index.mjs +69 -54
- package/dist/Select/index.mjs.map +1 -1
- package/dist/Slider/index.d.mts +657 -281
- package/dist/Slider/index.d.mts.map +1 -1
- package/dist/Slider/index.mjs +42 -42
- package/dist/Slider/index.mjs.map +1 -1
- package/dist/SubmitButton/index.d.mts +0 -2
- package/dist/SubmitButton/index.d.mts.map +1 -1
- package/dist/SubmitButton/index.mjs +2 -4
- package/dist/SubmitButton/index.mjs.map +1 -1
- package/dist/Switch/index.d.mts +1 -1
- package/dist/Switch/index.mjs +25 -32
- package/dist/Switch/index.mjs.map +1 -1
- package/dist/Switch-aBYStBoY.d.mts +990 -0
- package/dist/Switch-aBYStBoY.d.mts.map +1 -0
- package/dist/SwitchBox/index.d.mts +606 -201
- package/dist/SwitchBox/index.d.mts.map +1 -1
- package/dist/SwitchBox/index.mjs +29 -33
- package/dist/SwitchBox/index.mjs.map +1 -1
- package/dist/TextArea/index.d.mts +565 -185
- package/dist/TextArea/index.d.mts.map +1 -1
- package/dist/TextArea/index.mjs +18 -23
- package/dist/TextArea/index.mjs.map +1 -1
- package/dist/Time/index.d.mts +60 -44
- package/dist/Time/index.d.mts.map +1 -1
- package/dist/Time/index.mjs +27 -36
- package/dist/Time/index.mjs.map +1 -1
- package/dist/fieldHelperVariants-ClP8taiS.mjs +20 -0
- package/dist/fieldHelperVariants-ClP8taiS.mjs.map +1 -0
- package/dist/fieldLabelVariants-C4ZqECec.mjs +13 -0
- package/dist/fieldLabelVariants-C4ZqECec.mjs.map +1 -0
- package/dist/{FieldDescription-C4l0HKGL.mjs → fieldProps-DWfz2jSO.mjs} +5 -17
- package/dist/fieldProps-DWfz2jSO.mjs.map +1 -0
- package/dist/helpers/index.d.mts +0 -6
- package/dist/helpers/index.d.mts.map +1 -1
- package/dist/helpers/index.mjs +3 -6
- package/dist/helpers/index.mjs.map +1 -1
- package/dist/hooks/useClientValidation/index.d.mts +0 -2
- package/dist/hooks/useClientValidation/index.d.mts.map +1 -1
- package/dist/hooks/useClientValidation/index.mjs +3 -5
- package/dist/hooks/useController/index.d.mts +0 -2
- package/dist/hooks/useController/index.d.mts.map +1 -1
- package/dist/hooks/useController/index.mjs +2 -3
- package/dist/hooks/useFormContext/index.d.mts +31 -52
- package/dist/hooks/useFormContext/index.d.mts.map +1 -1
- package/dist/hooks/useFormContext/index.mjs +2 -3
- package/dist/hooks/useInputValueDebounce/index.d.mts +0 -2
- package/dist/hooks/useInputValueDebounce/index.d.mts.map +1 -1
- package/dist/hooks/useInputValueDebounce/index.mjs +3 -5
- package/dist/hooks/useInputValueTransform/index.d.mts +1 -1
- package/dist/hooks/useInputValueTransform/index.mjs +2 -3
- package/dist/hooks/useWatchFormReset/index.d.mts +0 -2
- package/dist/hooks/useWatchFormReset/index.d.mts.map +1 -1
- package/dist/hooks/useWatchFormReset/index.mjs +3 -5
- package/dist/hooks/useWatchUserChange/index.d.mts +0 -2
- package/dist/hooks/useWatchUserChange/index.d.mts.map +1 -1
- package/dist/hooks/useWatchUserChange/index.mjs +3 -5
- package/dist/{index-BS8IoBOn.d.mts → index-cevZBrIN.d.mts} +1 -3
- package/dist/index-cevZBrIN.d.mts.map +1 -0
- package/dist/partials/FieldCopyTestIdButton/index.d.mts +0 -2
- package/dist/partials/FieldCopyTestIdButton/index.d.mts.map +1 -1
- package/dist/partials/FieldCopyTestIdButton/index.mjs +1 -1
- package/dist/{Switch-CvPO8IF9.d.mts → partials/FieldHelper/index.d.mts} +309 -361
- package/dist/partials/FieldHelper/index.d.mts.map +1 -0
- package/dist/partials/FieldHelper/index.mjs +7 -0
- package/dist/partials/FieldHelper/index.mjs.map +1 -0
- package/dist/partials/FieldLabel/index.d.mts +160 -0
- package/dist/partials/FieldLabel/index.d.mts.map +1 -0
- package/dist/partials/FieldLabel/index.mjs +7 -0
- package/dist/partials/FieldLabel/index.mjs.map +1 -0
- package/dist/partials/FieldValidationError/index.d.mts +13 -15
- package/dist/partials/FieldValidationError/index.d.mts.map +1 -1
- package/dist/partials/FieldValidationError/index.mjs +1 -1
- package/dist/{radioControlVariants-Cm6WufWo.mjs → radioControlVariants-CbtG5U4_.mjs} +28 -25
- package/dist/radioControlVariants-CbtG5U4_.mjs.map +1 -0
- package/dist/{switchVariants-BaQw2DA7.mjs → switchVariants-0Xa7TQYg.mjs} +8 -11
- package/dist/switchVariants-0Xa7TQYg.mjs.map +1 -0
- package/dist/{timeVariants-B9HDfNYt.mjs → timeVariants-Bkt4iwXx.mjs} +14 -12
- package/dist/timeVariants-Bkt4iwXx.mjs.map +1 -0
- package/dist/{useController-BCFeZbBZ.mjs → useController-JtIeurpw.mjs} +3 -4
- package/dist/{useController-BCFeZbBZ.mjs.map → useController-JtIeurpw.mjs.map} +1 -1
- package/dist/{useFormContext-BPjJjNnM.mjs → useFormContext-piqnN2L-.mjs} +3 -4
- package/dist/useFormContext-piqnN2L-.mjs.map +1 -0
- package/dist/{useInputValueTransform-Mw8YEOXT.mjs → useInputValueTransform-CXWWFhy_.mjs} +2 -3
- package/dist/{useInputValueTransform-Mw8YEOXT.mjs.map → useInputValueTransform-CXWWFhy_.mjs.map} +1 -1
- package/dist/{FieldLabel-DKzqkuY1.mjs → useUniformField-TTNPTsVn.mjs} +15 -37
- package/dist/useUniformField-TTNPTsVn.mjs.map +1 -0
- package/package.json +10 -7
- package/dist/FieldDescription-C4l0HKGL.mjs.map +0 -1
- package/dist/FieldLabel-DKzqkuY1.mjs.map +0 -1
- package/dist/FieldLayout-BLW5S-Jm.mjs.map +0 -1
- package/dist/FieldValidationError-DgkCL3cC.mjs.map +0 -1
- package/dist/FormContext-CsFiNvuJ.d.mts +0 -19
- package/dist/FormContext-CsFiNvuJ.d.mts.map +0 -1
- package/dist/Switch-CvPO8IF9.d.mts.map +0 -1
- package/dist/index-BS8IoBOn.d.mts.map +0 -1
- package/dist/radioControlVariants-Cm6WufWo.mjs.map +0 -1
- package/dist/switchVariants-BaQw2DA7.mjs.map +0 -1
- package/dist/timeVariants-B9HDfNYt.mjs.map +0 -1
- package/dist/useFormContext-BPjJjNnM.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useFormContext } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext } from "../../useFormContext-piqnN2L-.mjs";
|
|
2
2
|
import { useWatchFormReset } from "../useWatchFormReset/index.mjs";
|
|
3
3
|
import { useCallback, useRef, useState } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useInputValueDebounce/useInputValueDebounce.ts
|
|
5
5
|
/**
|
|
6
6
|
* Custom hook for debouncing value changes with immediate blur support.
|
|
7
7
|
*
|
|
@@ -106,10 +106,8 @@ const useInputValueDebounce = ({ debounceDelay = 300, name, onBlur, onChange, va
|
|
|
106
106
|
value: currentValue
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
-
|
|
110
|
-
//#region src/hooks/useInputValueDebounce/index.ts
|
|
109
|
+
// src/hooks/useInputValueDebounce/index.ts
|
|
111
110
|
/* v8 ignore stop */
|
|
112
|
-
//#endregion
|
|
113
111
|
export { useInputValueDebounce };
|
|
114
112
|
|
|
115
113
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "../../index-
|
|
1
|
+
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "../../index-cevZBrIN.mjs";
|
|
2
2
|
export { InputValueTransform, UseInputValueTransformOptions, UseInputValueTransformReturn, useInputValueTransform };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/hooks/useInputValueTransform/index.ts
|
|
2
2
|
/* v8 ignore stop */
|
|
3
|
-
|
|
4
|
-
export { t as useInputValueTransform } from "../../useInputValueTransform-Mw8YEOXT.mjs";
|
|
3
|
+
export { t as useInputValueTransform } from "../../useInputValueTransform-CXWWFhy_.mjs";
|
|
5
4
|
|
|
6
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useWatchFormReset/useWatchFormReset.d.ts
|
|
2
1
|
export interface UseWatchFormResetOptions {
|
|
3
2
|
/**
|
|
4
3
|
* Callback that runs whenever a programmatic form reset is observed.
|
|
@@ -31,5 +30,4 @@ export interface UseWatchFormResetOptions {
|
|
|
31
30
|
* during normal editing.
|
|
32
31
|
*/
|
|
33
32
|
export declare const useWatchFormReset: ({ onReset }: UseWatchFormResetOptions) => void;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchFormReset/useWatchFormReset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchFormReset/useWatchFormReset.ts"],"mappings":"A,iBAIiB;;;;;;;;;;;EAWf;;;;;;;;;;;;;;;;;;;;qBAqBW,sBAAqB,WAAa"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useFormContext } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext } from "../../useFormContext-piqnN2L-.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useWatchFormReset/useWatchFormReset.ts
|
|
4
4
|
/**
|
|
5
5
|
* Hook that watches for programmatic form reset events.
|
|
6
6
|
*
|
|
@@ -28,10 +28,8 @@ const useWatchFormReset = ({ onReset }) => {
|
|
|
28
28
|
return formReset.subscribe(listener);
|
|
29
29
|
}, [formReset, onReset]);
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
//#region src/hooks/useWatchFormReset/index.ts
|
|
31
|
+
// src/hooks/useWatchFormReset/index.ts
|
|
33
32
|
/* v8 ignore stop */
|
|
34
|
-
//#endregion
|
|
35
33
|
export { useWatchFormReset };
|
|
36
34
|
|
|
37
35
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FieldValues, Path, UseFormReset, UseFormResetField, UseFormSetValue } from "react-hook-form";
|
|
2
|
-
//#region src/hooks/useWatchUserChange/useWatchUserChange.d.ts
|
|
3
2
|
export interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
|
|
4
3
|
/**
|
|
5
4
|
* Callback when watched field is changed by user input.
|
|
@@ -71,5 +70,4 @@ export interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {
|
|
|
71
70
|
* ```
|
|
72
71
|
*/
|
|
73
72
|
export declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValues>({ watch: watchField, onChange }: UseWatchUserChangeOptions<TFieldValues>) => void;
|
|
74
|
-
//#endregion
|
|
75
73
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";iBAYiB,0BAA0B,qBAAqB;;;;;EAK9D,WACE,gBACA;IACE,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,OAAO,aAAa;;;EAIxB,OAAO,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DD,qBACX,qBAAqB,cAAc,eACnC,OAAA,YAAA,YAGC,0BAA0B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useFormContext } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext } from "../../useFormContext-piqnN2L-.mjs";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useWatchUserChange/useWatchUserChange.ts
|
|
4
4
|
/**
|
|
5
5
|
* Hook that watches for user changes on a specific form field.
|
|
6
6
|
*
|
|
@@ -90,10 +90,8 @@ const useWatchUserChange = ({ watch: watchField, onChange }) => {
|
|
|
90
90
|
return subscribe(listener);
|
|
91
91
|
}, [subscribe, watchField]);
|
|
92
92
|
};
|
|
93
|
-
|
|
94
|
-
//#region src/hooks/useWatchUserChange/index.ts
|
|
93
|
+
// src/hooks/useWatchUserChange/index.ts
|
|
95
94
|
/* v8 ignore stop */
|
|
96
|
-
//#endregion
|
|
97
95
|
export { useWatchUserChange };
|
|
98
96
|
|
|
99
97
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useInputValueTransform/useInputValueTransform.d.ts
|
|
2
1
|
interface InputValueTransform<TDisplay = unknown> {
|
|
3
2
|
/** Transforms the form value to display value (e.g., 1000 → "$1,000" or 'a' → ['a']) */
|
|
4
3
|
toDisplayValue: (value: unknown) => TDisplay;
|
|
@@ -100,6 +99,5 @@ interface UseInputValueTransformReturn<TDisplay = unknown> {
|
|
|
100
99
|
* ```
|
|
101
100
|
*/
|
|
102
101
|
declare const useInputValueTransform: <TDisplay = unknown>({ type, transform }: UseInputValueTransformOptions<TDisplay>) => UseInputValueTransformReturn<TDisplay>;
|
|
103
|
-
//#endregion
|
|
104
102
|
export { useInputValueTransform as i, UseInputValueTransformOptions as n, UseInputValueTransformReturn as r, InputValueTransform as t };
|
|
105
|
-
//# sourceMappingURL=index-
|
|
103
|
+
//# sourceMappingURL=index-cevZBrIN.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cevZBrIN.d.mts","names":[],"sources":["../src/hooks/useInputValueTransform/useInputValueTransform.ts"],"mappings":"A,UAEiB,oBAAoB;;EAEnC,iBAAiB,mBAAmB;;EAEpC,cAAc,OAAO;;UAGN,8BAA8B;;EAE7C,YAAY,oBAAoB;;EAEhC;;UAGe,6BAA6B;;EAE5C,iBAAiB,uBAAuB;;EAExC,cAAc,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqFjB,yBAA0B,sBAAoB,MAAA,aAGxD,8BAA8B,cAAY,6BAA6B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.d.ts
|
|
2
1
|
interface FieldCopyTestIdButtonProps {
|
|
3
2
|
/** CSS class name */
|
|
4
3
|
className?: string;
|
|
@@ -6,6 +5,5 @@ interface FieldCopyTestIdButtonProps {
|
|
|
6
5
|
testId: string;
|
|
7
6
|
}
|
|
8
7
|
declare const FieldCopyTestIdButton: ({ className, testId }: FieldCopyTestIdButtonProps) => import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { type FieldCopyTestIdButtonProps, FieldCopyTestIdButton as default };
|
|
11
9
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/partials/FieldCopyTestIdButton/FieldCopyTestIdButton.tsx"],"mappings":"A,UAKiB;;EAEf;;EAEA;;cAGI,0BAAyB,WAAA,UAG5B,+CAA0B,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../FieldCopyTestIdButton-
|
|
1
|
+
export { t as default } from "../../FieldCopyTestIdButton-D3_jZYJ1.mjs";
|