@visiion/forms-library 1.4.0 → 1.4.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.
- package/dist/components/Inputs/Checklist.d.ts +11 -0
- package/dist/components/Inputs/DynamicInput.d.ts +1 -0
- package/dist/components/Inputs/Upload.d.ts +10 -0
- package/dist/components/Pdf/index.d.ts +14 -0
- package/dist/components/Pdf/pdf.d.ts +15 -0
- package/dist/index.esm.js +454 -21
- package/dist/index.js +454 -21
- package/dist/types/index.d.ts +4 -3
- package/dist/utils/Common.d.ts +5 -4
- package/package.json +3 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IFormField } from "../../types";
|
|
3
|
+
interface ChecklistProps {
|
|
4
|
+
field: IFormField;
|
|
5
|
+
value?: string[];
|
|
6
|
+
onChange?: (value: string[]) => void;
|
|
7
|
+
error?: string;
|
|
8
|
+
props?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const Checklist: React.FC<ChecklistProps>;
|
|
11
|
+
export default Checklist;
|
|
@@ -5,6 +5,7 @@ interface DynamicInputProps {
|
|
|
5
5
|
value: any;
|
|
6
6
|
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>) => void;
|
|
7
7
|
error?: string;
|
|
8
|
+
formData?: any;
|
|
8
9
|
}
|
|
9
10
|
declare const DynamicInput: React.FC<DynamicInputProps>;
|
|
10
11
|
export default DynamicInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IFormField } from "../../types";
|
|
3
|
+
interface UploadProps {
|
|
4
|
+
field: IFormField;
|
|
5
|
+
value?: File | null;
|
|
6
|
+
onChange?: (file: File | null) => void;
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Upload: React.FC<UploadProps>;
|
|
10
|
+
export default Upload;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface FieldData {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
}
|
|
6
|
+
interface SectionData {
|
|
7
|
+
title: string;
|
|
8
|
+
fields: FieldData[];
|
|
9
|
+
}
|
|
10
|
+
export declare const DocumentoPdf: ({ data, sectionsData, }: {
|
|
11
|
+
data: any;
|
|
12
|
+
sectionsData: SectionData[];
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FieldData {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
}
|
|
6
|
+
interface SectionData {
|
|
7
|
+
title: string;
|
|
8
|
+
fields: FieldData[];
|
|
9
|
+
}
|
|
10
|
+
interface SolicitudDenunciaPDFProps {
|
|
11
|
+
data: any;
|
|
12
|
+
sections?: SectionData[];
|
|
13
|
+
}
|
|
14
|
+
declare const SolicitudDenunciaPDF: ({ data, sections, }: SolicitudDenunciaPDFProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default SolicitudDenunciaPDF;
|