@bsol-oss/react-datatable5 13.0.1-beta.16 → 13.0.1-beta.17
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/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/dist/types/components/Form/useForm.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -509,10 +509,9 @@ interface Translate {
|
|
|
509
509
|
}
|
|
510
510
|
interface UseFormProps {
|
|
511
511
|
preLoadedValues?: FieldValues | undefined;
|
|
512
|
-
namespace?: string;
|
|
513
512
|
schema?: JSONSchema7;
|
|
514
513
|
}
|
|
515
|
-
declare const useForm: ({ preLoadedValues,
|
|
514
|
+
declare const useForm: ({ preLoadedValues, schema }: UseFormProps) => {
|
|
516
515
|
form: react_hook_form.UseFormReturn<FieldValues, any, undefined>;
|
|
517
516
|
idMap: Record<string, object>;
|
|
518
517
|
setIdMap: React$1.Dispatch<React$1.SetStateAction<Record<string, object>>>;
|
package/dist/index.js
CHANGED
|
@@ -9032,8 +9032,7 @@ const DefaultForm = ({ formConfig, }) => {
|
|
|
9032
9032
|
return (jsxRuntime.jsx(FormRoot, { ...formConfig, children: jsxRuntime.jsxs(react.Grid, { gap: "2", children: [showTitle && jsxRuntime.jsx(FormTitle, {}), jsxRuntime.jsx(FormBody, {})] }) }));
|
|
9033
9033
|
};
|
|
9034
9034
|
|
|
9035
|
-
const useForm = ({ preLoadedValues,
|
|
9036
|
-
schema, }) => {
|
|
9035
|
+
const useForm = ({ preLoadedValues, schema }) => {
|
|
9037
9036
|
const form = reactHookForm.useForm({
|
|
9038
9037
|
values: preLoadedValues,
|
|
9039
9038
|
resolver: schema ? ajvResolver(schema) : undefined,
|
package/dist/index.mjs
CHANGED
|
@@ -9012,8 +9012,7 @@ const DefaultForm = ({ formConfig, }) => {
|
|
|
9012
9012
|
return (jsx(FormRoot, { ...formConfig, children: jsxs(Grid, { gap: "2", children: [showTitle && jsx(FormTitle, {}), jsx(FormBody, {})] }) }));
|
|
9013
9013
|
};
|
|
9014
9014
|
|
|
9015
|
-
const useForm = ({ preLoadedValues,
|
|
9016
|
-
schema, }) => {
|
|
9015
|
+
const useForm = ({ preLoadedValues, schema }) => {
|
|
9017
9016
|
const form = useForm$1({
|
|
9018
9017
|
values: preLoadedValues,
|
|
9019
9018
|
resolver: schema ? ajvResolver(schema) : undefined,
|
|
@@ -8,10 +8,9 @@ export interface Translate {
|
|
|
8
8
|
}
|
|
9
9
|
export interface UseFormProps {
|
|
10
10
|
preLoadedValues?: FieldValues | undefined;
|
|
11
|
-
namespace?: string;
|
|
12
11
|
schema?: JSONSchema7;
|
|
13
12
|
}
|
|
14
|
-
export declare const useForm: ({ preLoadedValues,
|
|
13
|
+
export declare const useForm: ({ preLoadedValues, schema }: UseFormProps) => {
|
|
15
14
|
form: import("react-hook-form").UseFormReturn<FieldValues, any, undefined>;
|
|
16
15
|
idMap: Record<string, object>;
|
|
17
16
|
setIdMap: import("react").Dispatch<import("react").SetStateAction<Record<string, object>>>;
|