@ahmadmubarak98/namozaj 1.16.24 → 1.17.0
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/main.d.ts +12 -1
- package/dist/namozaj.js +18245 -18180
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -50,6 +50,17 @@ export declare type BaseFieldConfig = {
|
|
|
50
50
|
onBlur?: (value: FieldValueType, formMethods: any) => void;
|
|
51
51
|
compute?: (data: any, formMethods: RHFFormMethods) => FieldValueType;
|
|
52
52
|
hideLabel?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* When true, the field renders a non-interactive "busy" state:
|
|
55
|
+
* a spinner affordance is shown, input is blocked, and the current
|
|
56
|
+
* value remains visible (never cleared). Defaults to false.
|
|
57
|
+
*
|
|
58
|
+
* This is a purely presentational flag — Namozaj owns how each field
|
|
59
|
+
* type renders the busy state, the consumer owns when it is set. It is
|
|
60
|
+
* independent from the form-level `loading` prop and from the Button
|
|
61
|
+
* block's own `loading`.
|
|
62
|
+
*/
|
|
63
|
+
loading?: boolean;
|
|
53
64
|
};
|
|
54
65
|
};
|
|
55
66
|
|
|
@@ -151,7 +162,7 @@ export declare type ComputedFieldConfig = BaseFieldConfig & {
|
|
|
151
162
|
export declare type CustomFieldConfig = BaseFieldConfig & {
|
|
152
163
|
type: "custom";
|
|
153
164
|
meta: Omit<BaseFieldConfig["meta"], "preventDoubleSpaces" | "renderLabelRightSide" | "translated" | "dependencies" | "placeholder"> & {
|
|
154
|
-
renderCustomField: (value: any, onChange: (value: any) => void, error: boolean, formMethods: RHFFormMethods) => React.ReactNode;
|
|
165
|
+
renderCustomField: (value: any, onChange: (value: any) => void, error: boolean, formMethods: RHFFormMethods, loading: boolean) => React.ReactNode;
|
|
155
166
|
};
|
|
156
167
|
};
|
|
157
168
|
|