@arudovwen/form-builder-react 1.9.0 → 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-Dbs4pbfu.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.0",
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 {};
@@ -13,6 +13,7 @@ interface FileUploadProps {
13
13
  value: string;
14
14
  label: string;
15
15
  }[];
16
+ maxFileSize?: number;
16
17
  }
17
- export default function FileUpload({ onFileLoaded, disabled, handleDeleteFile, multiple, list, accept, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
18
+ export default function FileUpload({ onFileLoaded, disabled, handleDeleteFile, multiple, list, accept, maxFileSize, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
18
19
  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",
@@ -97,6 +97,7 @@ export interface ElementType {
97
97
  requireAllChecked?: boolean;
98
98
  isMultiple: boolean;
99
99
  acceptedFiles: any[];
100
+ maxFileSize?: number;
100
101
  showState?: boolean;
101
102
  formula?: string;
102
103
  fetchExternalResults?: boolean;
@@ -127,6 +128,7 @@ export declare const AllowTableOptions: string[];
127
128
  export declare const AllowTextOptions: string[];
128
129
  export declare const noAllowEdit: string[];
129
130
  export declare const allowValue: string[];
131
+ export declare const AllowValueSource: string[];
130
132
  export declare const FileTypes: {
131
133
  value: string;
132
134
  label: string;