@arudovwen/form-builder-react 1.9.1 → 1.9.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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as ce, jsx as D, Fragment as De } from "react/jsx-runtime";
2
2
  import ht, { memo as le, useState as xe, useCallback as we, forwardRef as Oo, useRef as ne, useEffect as ie, useContext as gt, createContext as fn, useMemo as be, useLayoutEffect as Aa } from "react";
3
3
  import "react-dom";
4
- import { A as Ia } from "./index-CNwly3rk.js";
4
+ import { A as Ia } from "./index-BCYTk5tZ.js";
5
5
  function ue(e) {
6
6
  if (typeof e == "string" || typeof e == "number") return "" + e;
7
7
  let t = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arudovwen/form-builder-react",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "A React-based form builder component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/form-builder.umd.js",
@@ -1,4 +1,5 @@
1
- export default function BasicText({ element, state, }: {
1
+ export default function BasicText({ element, state, validationData, }: {
2
2
  element: any;
3
3
  state?: string;
4
+ validationData?: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function DataLookup({ element, validationData, }: {
2
+ element: any;
3
+ validationData: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -14,11 +14,12 @@ interface InputProps {
14
14
  trigger?: any;
15
15
  prefix?: string;
16
16
  disabled?: boolean;
17
+ readOnly?: boolean;
17
18
  watch?: any;
18
19
  min?: number;
19
20
  max?: number;
20
21
  description?: string;
21
22
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
22
23
  }
23
- export declare const DynamicInput: ({ label, name, register, errors, className, type, placeholder, isFloating, setValue, value, trigger, prefix, disabled, watch, min, max, description, onChange, }: InputProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const DynamicInput: ({ label, name, register, errors, className, type, placeholder, isFloating, setValue, value, trigger, prefix, disabled, watch, min, max, description, onChange, readOnly, }: InputProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export {};
@@ -5,7 +5,7 @@ export declare enum ElementKind {
5
5
  SELECT = "selectField",
6
6
  CASCADE_SELECT = "cascadeSelect",
7
7
  MULTI_SELECT = "multiSelect",
8
- VALIDATE_INPUT = "validateInput",
8
+ DATA_LOOKUP = "dataLookup",
9
9
  NUMBER = "numberField",
10
10
  AMOUNT = "amountField",
11
11
  DATE = "date",
@@ -128,6 +128,7 @@ export declare const AllowTableOptions: string[];
128
128
  export declare const AllowTextOptions: string[];
129
129
  export declare const noAllowEdit: string[];
130
130
  export declare const allowValue: string[];
131
+ export declare const AllowValueSource: string[];
131
132
  export declare const FileTypes: {
132
133
  value: string;
133
134
  label: string;