quadra-component 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ interface PaginationProps {
6
6
  }
7
7
  declare const Pagination: React.FC<PaginationProps>;
8
8
 
9
- interface Columns<T> {
9
+ interface Columns$1<T> {
10
10
  fieldId: string;
11
11
  fieldId2?: string;
12
12
  fieldId3?: string;
@@ -16,7 +16,7 @@ interface Columns<T> {
16
16
  }
17
17
  interface Props<T> {
18
18
  data?: any[];
19
- columns: Columns<T>[];
19
+ columns: Columns$1<T>[];
20
20
  loading?: boolean | null;
21
21
  error?: string;
22
22
  action?: boolean;
@@ -28,4 +28,13 @@ interface Props<T> {
28
28
  }
29
29
  declare function Table<T>({ data, columns, loading, error, action, currentPage, limit, onRowClick, color, textColor, }: Props<T>): React.ReactElement;
30
30
 
31
- export { Pagination, Table };
31
+ interface Columns<T> {
32
+ fieldId: string;
33
+ fieldId2?: string;
34
+ fieldId3?: string;
35
+ label: string | React.ReactElement;
36
+ render?: (data?: T) => React.ReactElement | string;
37
+ renderHeader?: () => React.ReactElement | string;
38
+ }
39
+
40
+ export { Columns, Pagination, Table };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quadra-component",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "NPM package for quadra karya santosa developer",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c"