reactaform 1.9.30 → 1.9.40

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.
@@ -9,7 +9,7 @@ import type { ReactaFormProps } from "../../core/reactaFormTypes";
9
9
  * @param {string} [props.className] - Additional CSS class names
10
10
  * @param {string} [props.theme] - Theme name ('light' or 'dark')
11
11
  * @param {React.CSSProperties} [props.style] - Inline styles
12
- * @param {FieldValidationMode} [props.fieldValidationMode] - Field Validation mode ('onEdit' or 'onSubmission' or 'realTime')
12
+ * @param {FieldValidationMode} [props.fieldValidationMode] - Field Validation mode ('onEdit', 'onBlur', 'onSubmission', 'realTime' [deprecated])
13
13
  * @param {boolean} [props.displayInstanceName] - Whether to display the instance name
14
14
  */
15
15
  declare const ReactaForm: React.FC<ReactaFormProps>;
@@ -10,6 +10,7 @@ export interface DefinitionPropertyField {
10
10
  displayName: string;
11
11
  type: string;
12
12
  defaultValue: FieldValueType;
13
+ disabled?: boolean;
13
14
  required?: boolean;
14
15
  parents?: ParentField;
15
16
  children?: Record<string, string[]>;
@@ -94,6 +95,7 @@ export type InputOnChange<T> = (value: T | string) => void;
94
95
  export interface BaseInputProps<TValue = unknown, TField extends DefinitionPropertyField = DefinitionPropertyField> {
95
96
  field: TField;
96
97
  value: TValue;
98
+ disabled?: boolean;
97
99
  placeholder?: string;
98
100
  onChange?: InputOnChange<TValue>;
99
101
  onError?: (error: string | null) => void;
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import type { ValidationTrigger } from "./useFieldValidator";
3
3
  export type UseUncontrolledValidatedInputProps = {
4
4
  value?: string | number;
5
+ disabled?: boolean;
5
6
  onChange?: (value: string) => void;
6
7
  onError?: (error: string | null) => void;
7
8
  validate: (value: string, trigger?: ValidationTrigger) => string | null;
@@ -12,7 +13,7 @@ export type UseUncontrolledValidatedInputProps = {
12
13
  * - Validation
13
14
  * - Error sync
14
15
  */
15
- export declare function useUncontrolledValidatedInput<T extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement>({ value, onChange, onError, validate, }: UseUncontrolledValidatedInputProps): {
16
+ export declare function useUncontrolledValidatedInput<T extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement>({ value, disabled, onChange, onError, validate, }: UseUncontrolledValidatedInputProps): {
16
17
  inputRef: React.MutableRefObject<T | null>;
17
18
  error: string | null;
18
19
  handleChange: (e: React.ChangeEvent<T>) => void;