@secondstaxorg/sscomp 1.8.74 → 1.8.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.8.74",
3
+ "version": "1.8.76",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PDFViewerProps } from "./type";
3
+ import '../../styles/typography.css';
4
+ /**
5
+ * For viewing PDF and image documents
6
+ */
7
+ declare const DocumentViewer: (props: PDFViewerProps) => JSX.Element;
8
+ export default DocumentViewer;
@@ -0,0 +1,4 @@
1
+ export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ViewerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DocumentNavigation: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const PageNavigation: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export interface PDFViewerProps {
3
+ /**
4
+ * Array containing list of files (images and PDFs)
5
+ */
6
+ files: filesType[];
7
+ /**
8
+ * This accepts JSX code for rendering buttons and other elements to perform an action
9
+ */
10
+ actionArea?: React.ReactNode;
11
+ /**
12
+ * Callback function to close the viewer
13
+ */
14
+ closeBtnFn?: (a: boolean) => void;
15
+ }
16
+ export declare type filesType = {
17
+ fileUrl: string;
18
+ fileName?: string;
19
+ };
@@ -73,5 +73,5 @@ export { default as FileUpload } from './FileUpload/FileUpdload';
73
73
  export { default as EmailField } from './EmailField/EmailField';
74
74
  export { default as NumberField } from './NumberField/NumberField';
75
75
  export { default as Pagination } from './Pagination';
76
- export { default as PDFViewer } from './PDFViewer/PDFViewer';
76
+ export { default as DocumentViewer } from './DocumentViewer/DocumentViewer';
77
77
  export { default as SignatureField } from './SignatureField/SignatureField';