@secondstaxorg/sscomp 1.8.37 → 1.8.39

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.37",
3
+ "version": "1.8.39",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,5 +1,8 @@
1
1
  import { FileUploadProps } from "./type";
2
2
  import React from "react";
3
3
  import "../../styles/typography.css";
4
+ /**
5
+ * This component is for uploading selecting files for upload
6
+ */
4
7
  declare const FileUpdload: React.FC<FileUploadProps>;
5
8
  export default FileUpdload;
@@ -1,6 +1,22 @@
1
1
  export interface FileUploadProps {
2
+ /**
3
+ * Label for the field
4
+ **/
2
5
  label?: string;
6
+ /**
7
+ * Specify if the field is required
8
+ **/
3
9
  required?: boolean;
4
- value?: any;
10
+ /**
11
+ * Selected file for the field
12
+ **/
13
+ value?: File;
14
+ /**
15
+ * Callback function to pass the selected file
16
+ **/
5
17
  onChange: (a: any) => void;
18
+ /**
19
+ * Specify the accepted file type using standard html values for the 'accept' prop. Eg. **'image/jpeg'** or **'.jpg'** or **'.jpg,.docx,.pptx'**
20
+ **/
21
+ accept?: string;
6
22
  }
@@ -5,7 +5,23 @@ export interface RequestsProps {
5
5
  * */
6
6
  thead: string[];
7
7
  /**
8
- * &lt;tr&gt;&lt;td&gt; content that should go between the <tbody> tag of the table
8
+ * &lt;tr&gt;&lt;td&gt; content that should go between the <tbody> tag of the table. **Only this or tbody** below should be used at a time.
9
9
  * */
10
- children: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ /**
12
+ * Array containing the objects matching the items listed in the thead prop. **Only this or children** above should be used at a time.
13
+ * */
14
+ tbody?: {}[];
15
+ /**
16
+ * Callback function to perform when any of the rows is clicked. It returns the object of that row
17
+ * */
18
+ clickedRow?: (a: {}) => void;
19
+ /**
20
+ * Specify whether to show pagination for the table
21
+ * */
22
+ showPagination?: boolean;
23
+ /**
24
+ * Specify the number of items to show in the table when showPagination is true
25
+ * */
26
+ itemsPerPage?: number;
11
27
  }