@tight-embedded/react 1.1.0 → 1.2.0

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.css.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ declare const Environments: {
16
16
  };
17
17
 
18
18
  declare type ExternalOptions = {
19
+ transactionsDashboard?: TransactionsDashboardOptions;
19
20
  dataVisualizationColors?: string[];
20
21
  };
21
22
 
@@ -35,6 +36,27 @@ declare type TightProps = PropsWithChildren<{
35
36
  accessToken: string;
36
37
  }>;
37
38
 
39
+ declare const TRANSACTIONS_TABLE_COLS: {
40
+ readonly DATE: "date";
41
+ readonly DESCRIPTION: "description";
42
+ readonly AMOUNT: "amount";
43
+ readonly CATEGORY: "category";
44
+ readonly CLASS_SEGMENT: "classSegment";
45
+ readonly REVIEW_STATUS: "reviewStatus";
46
+ readonly COMMENTS: "comments";
47
+ readonly SELECT: "select";
48
+ readonly EXPAND: "expand";
49
+ };
50
+
51
+ declare type TransactionsDashboardOptions = {
52
+ columns?: TransactionsTableColumnOption[];
53
+ pageSize?: number;
54
+ };
55
+
56
+ declare type TransactionsTableColumn = ValueOf<typeof TRANSACTIONS_TABLE_COLS>;
57
+
58
+ declare type TransactionsTableColumnOption = Exclude<TransactionsTableColumn, "select" | "expand">;
59
+
38
60
  /**
39
61
  * Set library-wide options for various components.
40
62
  *