@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.
@@ -13,7 +13,11 @@ interface SelectOption {
13
13
  disabled?: boolean;
14
14
  description?: string;
15
15
  }
16
- interface AbstractFormFieldConfig {
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?: (FormFieldConfig | ButtonGroupFormFieldConfig)[];
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 ButtonGroupFormFieldConfig as B, 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 };
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 };
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator } from './types-BhcLAcZe.cjs';
1
+ import { F as FieldValidator } from './types-CrWhdYGP.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator } from './types-BhcLAcZe.js';
1
+ import { F as FieldValidator } from './types-CrWhdYGP.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator, b as FormValues } from './types-BhcLAcZe.cjs';
1
+ import { F as FieldValidator, b as FormValues } from './types-CrWhdYGP.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator, b as FormValues } from './types-BhcLAcZe.js';
1
+ import { F as FieldValidator, b as FormValues } from './types-CrWhdYGP.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-BhcLAcZe.cjs';
1
+ import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-CrWhdYGP.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-BhcLAcZe.js';
1
+ import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-CrWhdYGP.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.cjs';
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';
@@ -1,4 +1,4 @@
1
- export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.js';
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@page-speed/forms",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Ultra-high-performance React form library with field-level reactivity and tree-shakable architecture",
5
5
  "keywords": [
6
6
  "react",