@formality-ui/core 0.2.1 → 0.2.2
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/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -308,7 +308,20 @@ interface InputConfig<TValue = unknown> {
|
|
|
308
308
|
component: unknown;
|
|
309
309
|
/** Default value for this input type (e.g., '' for text, false for switch) */
|
|
310
310
|
defaultValue: TValue;
|
|
311
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* Auto-save debounce for fields of this input type.
|
|
313
|
+
*
|
|
314
|
+
* - `false` — submit immediately on change (no debounce timer). Use for
|
|
315
|
+
* toggles/switches/selects where every change is a discrete commit.
|
|
316
|
+
* - `number` — delay auto-save by this many milliseconds after the last
|
|
317
|
+
* change to a field of this type. Fields that share the same numeric
|
|
318
|
+
* debounce coalesce into a single timer; fields with different numeric
|
|
319
|
+
* debounces fire on their own cadence. When unset, the field falls back
|
|
320
|
+
* to the Form-level `debounce` prop (default 1000ms).
|
|
321
|
+
*
|
|
322
|
+
* This governs *auto-save timing only*. The field value is still committed
|
|
323
|
+
* to the form state on every change (it does not throttle re-renders).
|
|
324
|
+
*/
|
|
312
325
|
debounce?: number | false;
|
|
313
326
|
/** Prop name for passing value to component (default: 'value') */
|
|
314
327
|
inputFieldProp?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -308,7 +308,20 @@ interface InputConfig<TValue = unknown> {
|
|
|
308
308
|
component: unknown;
|
|
309
309
|
/** Default value for this input type (e.g., '' for text, false for switch) */
|
|
310
310
|
defaultValue: TValue;
|
|
311
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* Auto-save debounce for fields of this input type.
|
|
313
|
+
*
|
|
314
|
+
* - `false` — submit immediately on change (no debounce timer). Use for
|
|
315
|
+
* toggles/switches/selects where every change is a discrete commit.
|
|
316
|
+
* - `number` — delay auto-save by this many milliseconds after the last
|
|
317
|
+
* change to a field of this type. Fields that share the same numeric
|
|
318
|
+
* debounce coalesce into a single timer; fields with different numeric
|
|
319
|
+
* debounces fire on their own cadence. When unset, the field falls back
|
|
320
|
+
* to the Form-level `debounce` prop (default 1000ms).
|
|
321
|
+
*
|
|
322
|
+
* This governs *auto-save timing only*. The field value is still committed
|
|
323
|
+
* to the form state on every change (it does not throttle re-renders).
|
|
324
|
+
*/
|
|
312
325
|
debounce?: number | false;
|
|
313
326
|
/** Prop name for passing value to component (default: 'value') */
|
|
314
327
|
inputFieldProp?: string;
|