@page-speed/forms 0.6.5 → 0.6.6
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/{FormContext-DLG3GzgL.d.cts → FormContext-6c1ttFt2.d.cts} +1 -1
- package/dist/{FormContext-C6kWSQuv.d.ts → FormContext-DsNPeCv0.d.ts} +1 -1
- package/dist/{chunk-A7MVZ757.js → chunk-7YHBX2IT.js} +2 -2
- package/dist/{chunk-A7MVZ757.js.map → chunk-7YHBX2IT.js.map} +1 -1
- package/dist/{chunk-DCGSRMZT.cjs → chunk-DXAO72JM.cjs} +2 -2
- package/dist/{chunk-DCGSRMZT.cjs.map → chunk-DXAO72JM.cjs.map} +1 -1
- package/dist/core.cjs +8 -8
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/inputs.d.cts +1 -1
- package/dist/inputs.d.ts +1 -1
- package/dist/integration.cjs +47 -29
- package/dist/integration.cjs.map +1 -1
- package/dist/integration.d.cts +4 -4
- package/dist/integration.d.ts +4 -4
- package/dist/integration.js +44 -26
- package/dist/integration.js.map +1 -1
- package/dist/{types-BhcLAcZe.d.cts → types-CrWhdYGP.d.cts} +7 -15
- package/dist/{types-BhcLAcZe.d.ts → types-CrWhdYGP.d.ts} +7 -15
- package/dist/validation-rules.d.cts +1 -1
- package/dist/validation-rules.d.ts +1 -1
- package/dist/validation-utils.d.cts +1 -1
- package/dist/validation-utils.d.ts +1 -1
- package/dist/validation-valibot.d.cts +1 -1
- package/dist/validation-valibot.d.ts +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,11 @@ interface SelectOption {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
description?: string;
|
|
15
15
|
}
|
|
16
|
-
interface
|
|
16
|
+
interface FormFieldConfig {
|
|
17
|
+
/**
|
|
18
|
+
* Optionally displays label for the field
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
17
21
|
/**
|
|
18
22
|
* Unique field name (used as the key in form values)
|
|
19
23
|
*/
|
|
@@ -90,18 +94,6 @@ interface AbstractFormFieldConfig {
|
|
|
90
94
|
*/
|
|
91
95
|
layout?: "grid" | "stacked";
|
|
92
96
|
}
|
|
93
|
-
interface FormFieldConfig extends AbstractFormFieldConfig {
|
|
94
|
-
/**
|
|
95
|
-
* Display label for the field
|
|
96
|
-
*/
|
|
97
|
-
label: string;
|
|
98
|
-
}
|
|
99
|
-
interface ButtonGroupFormFieldConfig extends AbstractFormFieldConfig {
|
|
100
|
-
/**
|
|
101
|
-
* Optional display label for the field
|
|
102
|
-
*/
|
|
103
|
-
label?: string;
|
|
104
|
-
}
|
|
105
97
|
/**
|
|
106
98
|
* Generate initial values object from form field configs.
|
|
107
99
|
*/
|
|
@@ -513,7 +505,7 @@ interface FormProps<T extends FormValues = FormValues> {
|
|
|
513
505
|
* Optional form fields for button-group layout rendering
|
|
514
506
|
* Required when using formLayout="button-group"
|
|
515
507
|
*/
|
|
516
|
-
fields?:
|
|
508
|
+
fields?: FormFieldConfig[];
|
|
517
509
|
/**
|
|
518
510
|
* Additional className
|
|
519
511
|
*/
|
|
@@ -663,4 +655,4 @@ interface InputProps<T = string> {
|
|
|
663
655
|
"aria-required"?: boolean;
|
|
664
656
|
}
|
|
665
657
|
|
|
666
|
-
export { type
|
|
658
|
+
export { type ErrorHandler as E, type FieldValidator as F, type InputProps as I, type NewFormSubmissionActionConfig as N, type SubmissionStatus as S, type TouchedFields as T, type UseFormOptions as U, type ValidationSchema as V, type ValidationMode as a, type FormValues as b, type FormErrors as c, type FormSubmissionBehavior as d, type FormSubmissionConfig as e, type FormNotificationConfig as f, type FormStyleConfig as g, type FormRenderConfig as h, type FormHelpers as i, type SubmitHandler as j, type FormState as k, type FormActions as l, type UseFormReturn as m, type FieldInputProps as n, type FieldMeta as o, type UseFieldOptions as p, type UseFieldReturn as q, type FormProps as r, type FieldProps as s, type FormLayoutSettings as t, type FormFieldConfig as u, generateInitialValues as v, generateValidationSchema as w, getColumnSpanClass as x, type FormFieldType as y, type SelectOption as z };
|
package/dist/validation.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-
|
|
1
|
+
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-CrWhdYGP.cjs';
|
|
2
2
|
export { ErrorMessageFn, ValidationRuleOptions, alpha, alphanumeric, compose, creditCard, email, integer, matches, max, maxLength, min, minLength, numeric, oneOf, pattern, phone, postalCode, required, url } from './validation-rules.cjs';
|
|
3
3
|
export { DebounceOptions, ErrorMessages, MessageTemplate, asyncValidator, crossFieldValidator, debounce, defaultMessages, getErrorMessage, messageRegistry, resetErrorMessages, setErrorMessages, when, withRaceConditionPrevention } from './validation-utils.cjs';
|
|
4
4
|
import 'react';
|
package/dist/validation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-
|
|
1
|
+
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-CrWhdYGP.js';
|
|
2
2
|
export { ErrorMessageFn, ValidationRuleOptions, alpha, alphanumeric, compose, creditCard, email, integer, matches, max, maxLength, min, minLength, numeric, oneOf, pattern, phone, postalCode, required, url } from './validation-rules.js';
|
|
3
3
|
export { DebounceOptions, ErrorMessages, MessageTemplate, asyncValidator, crossFieldValidator, debounce, defaultMessages, getErrorMessage, messageRegistry, resetErrorMessages, setErrorMessages, when, withRaceConditionPrevention } from './validation-utils.js';
|
|
4
4
|
import 'react';
|