@layerfi/components 0.1.39 → 0.1.40

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.d.ts CHANGED
@@ -777,13 +777,19 @@ declare module '@layerfi/components/components/BadgeLoader/index' {
777
777
  }
778
778
  declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
779
779
  import React, { PropsWithChildren } from 'react';
780
+ import { BalanceSheetTableStringOverrides } from '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable';
781
+ export interface BalanceSheetStringOverrides {
782
+ balanceSheetTable?: BalanceSheetTableStringOverrides;
783
+ }
780
784
  export type BalanceSheetViewProps = PropsWithChildren & {
781
785
  withExpandAllButton?: boolean;
782
786
  asWidget?: boolean;
787
+ stringOverrides?: BalanceSheetStringOverrides;
783
788
  };
784
789
  export type BalanceSheetProps = PropsWithChildren & {
785
790
  effectiveDate?: Date;
786
791
  asWidget?: boolean;
792
+ stringOverrides?: BalanceSheetStringOverrides;
787
793
  };
788
794
  export const BalanceSheet: (props: BalanceSheetProps) => React.JSX.Element;
789
795
 
@@ -825,14 +831,19 @@ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index
825
831
  declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
826
832
  import React from 'react';
827
833
  import { BalanceSheet } from '@layerfi/components/types';
834
+ export interface BalanceSheetTableStringOverrides {
835
+ typeColumnHeader?: string;
836
+ totalColumnHeader?: string;
837
+ }
828
838
  type BalanceSheetRowProps = {
829
839
  name: string;
830
840
  displayName: string;
831
841
  lineItem: string;
832
842
  };
833
- export const BalanceSheetTable: ({ data, config, }: {
843
+ export const BalanceSheetTable: ({ data, config, stringOverrides, }: {
834
844
  data: BalanceSheet;
835
845
  config: BalanceSheetRowProps[];
846
+ stringOverrides?: BalanceSheetTableStringOverrides | undefined;
836
847
  }) => React.JSX.Element;
837
848
  export {};
838
849
 
@@ -853,6 +864,7 @@ declare module '@layerfi/components/components/BankTransactionList/Assignment' {
853
864
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionList' {
854
865
  import React from 'react';
855
866
  import { BankTransaction } from '@layerfi/components/types';
867
+ import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
856
868
  interface BankTransactionListProps {
857
869
  bankTransactions?: BankTransaction[];
858
870
  editable: boolean;
@@ -861,14 +873,16 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
861
873
  showDescriptions?: boolean;
862
874
  showReceiptUploads?: boolean;
863
875
  hardRefreshPnlOnCategorize?: boolean;
876
+ stringOverrides?: BankTransactionCTAStringOverrides;
864
877
  }
865
- export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, containerWidth, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, }: BankTransactionListProps) => React.JSX.Element;
878
+ export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, containerWidth, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
866
879
  export {};
867
880
 
868
881
  }
869
882
  declare module '@layerfi/components/components/BankTransactionList/BankTransactionListItem' {
870
883
  import React from 'react';
871
884
  import { BankTransaction } from '@layerfi/components/types';
885
+ import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
872
886
  type Props = {
873
887
  index: number;
874
888
  dateFormat: string;
@@ -879,8 +893,9 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
879
893
  hardRefreshPnlOnCategorize: boolean;
880
894
  removeTransaction: (bt: BankTransaction) => void;
881
895
  containerWidth?: number;
896
+ stringOverrides?: BankTransactionCTAStringOverrides;
882
897
  };
883
- export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, containerWidth, removeTransaction, }: Props) => React.JSX.Element;
898
+ export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
884
899
  export {};
885
900
 
886
901
  }
@@ -1040,6 +1055,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/utils'
1040
1055
  declare module '@layerfi/components/components/BankTransactionRow/BankTransactionRow' {
1041
1056
  import React from 'react';
1042
1057
  import { BankTransaction, Category } from '@layerfi/components/types';
1058
+ import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1043
1059
  type Props = {
1044
1060
  index: number;
1045
1061
  editable: boolean;
@@ -1051,11 +1067,12 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1051
1067
  showDescriptions: boolean;
1052
1068
  showReceiptUploads: boolean;
1053
1069
  hardRefreshPnlOnCategorize: boolean;
1070
+ stringOverrides?: BankTransactionCTAStringOverrides;
1054
1071
  };
1055
1072
  export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
1056
1073
  export const extractDescriptionForSplit: (category: Category) => string;
1057
1074
  export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
1058
- export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, }: Props) => React.JSX.Element;
1075
+ export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: Props) => React.JSX.Element;
1059
1076
  export {};
1060
1077
 
1061
1078
  }
@@ -1087,7 +1104,18 @@ declare module '@layerfi/components/components/BankTransactionRow/index' {
1087
1104
  declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
1088
1105
  import React from 'react';
1089
1106
  import { BankTransactionFilters } from '@layerfi/components/hooks/useBankTransactions/types';
1107
+ import { BankTransactionsTableStringOverrides } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
1108
+ import { BankTransactionsHeaderStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactionsHeader';
1090
1109
  import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
1110
+ export interface BankTransactionsStringOverrides {
1111
+ bankTransactionCTAs?: BankTransactionCTAStringOverrides;
1112
+ transactionsTable?: BankTransactionsTableStringOverrides;
1113
+ bankTransactionsHeader?: BankTransactionsHeaderStringOverrides;
1114
+ }
1115
+ export interface BankTransactionCTAStringOverrides {
1116
+ approveButtonText?: string;
1117
+ updateButtonText?: string;
1118
+ }
1091
1119
  export interface BankTransactionsProps {
1092
1120
  asWidget?: boolean;
1093
1121
  pageSize?: number;
@@ -1100,6 +1128,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1100
1128
  mobileComponent?: MobileComponentType;
1101
1129
  filters?: BankTransactionFilters;
1102
1130
  hideHeader?: boolean;
1131
+ stringOverrides?: BankTransactionsStringOverrides;
1103
1132
  }
1104
1133
  export interface BankTransactionsWithErrorProps extends BankTransactionsProps {
1105
1134
  onError?: (error: Error) => void;
@@ -1125,8 +1154,13 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1125
1154
  isDataLoading?: boolean;
1126
1155
  isSyncing?: boolean;
1127
1156
  setDateRange?: (value: DateRange) => void;
1157
+ stringOverrides?: BankTransactionsHeaderStringOverrides;
1128
1158
  }
1129
- export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, isSyncing, }: BankTransactionsHeaderProps) => React.JSX.Element;
1159
+ export interface BankTransactionsHeaderStringOverrides {
1160
+ header?: string;
1161
+ downloadButton?: string;
1162
+ }
1163
+ export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, stringOverrides, isSyncing, }: BankTransactionsHeaderProps) => React.JSX.Element;
1130
1164
 
1131
1165
  }
1132
1166
  declare module '@layerfi/components/components/BankTransactions/DataStates' {
@@ -1175,6 +1209,15 @@ declare module '@layerfi/components/components/BankTransactionsLoader/index' {
1175
1209
  declare module '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable' {
1176
1210
  import React from 'react';
1177
1211
  import { BankTransaction } from '@layerfi/components/types';
1212
+ import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
1213
+ export interface BankTransactionsTableStringOverrides {
1214
+ dateColumnHeaderText?: string;
1215
+ transactionColumnHeaderText?: string;
1216
+ accountColumnHeaderText?: string;
1217
+ amountColumnHeaderText?: string;
1218
+ categorizeColumnHeaderText?: string;
1219
+ categoryColumnHeaderText?: string;
1220
+ }
1178
1221
  interface BankTransactionsTableProps {
1179
1222
  bankTransactions?: BankTransaction[];
1180
1223
  editable: boolean;
@@ -1186,12 +1229,13 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1186
1229
  showDescriptions?: boolean;
1187
1230
  showReceiptUploads?: boolean;
1188
1231
  hardRefreshPnlOnCategorize?: boolean;
1232
+ stringOverrides?: BankTransactionsStringOverrides;
1189
1233
  isSyncing?: boolean;
1190
1234
  page?: number;
1191
1235
  lastPage?: boolean;
1192
1236
  onRefresh?: () => void;
1193
1237
  }
1194
- export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1238
+ export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1195
1239
  export {};
1196
1240
 
1197
1241
  }
@@ -1387,11 +1431,18 @@ declare module '@layerfi/components/components/CategorySelect/index' {
1387
1431
  }
1388
1432
  declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts' {
1389
1433
  import React from 'react';
1434
+ import { ChartOfAccountsTableStringOverrides } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable';
1435
+ import { LedgerAccountStringOverrides } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
1390
1436
  export type View = 'mobile' | 'tablet' | 'desktop';
1437
+ export interface ChartOfAccountsStringOverrides {
1438
+ chartOfAccountsTable?: ChartOfAccountsTableStringOverrides;
1439
+ ledgerAccount?: LedgerAccountStringOverrides;
1440
+ }
1391
1441
  export interface ChartOfAccountsProps {
1392
1442
  asWidget?: boolean;
1393
1443
  withDateControl?: boolean;
1394
1444
  withExpandAllButton?: boolean;
1445
+ stringOverrides?: ChartOfAccountsStringOverrides;
1395
1446
  }
1396
1447
  export const ChartOfAccounts: (props: ChartOfAccountsProps) => React.JSX.Element;
1397
1448
 
@@ -1411,7 +1462,21 @@ declare module '@layerfi/components/components/ChartOfAccountsDatePicker/index'
1411
1462
  }
1412
1463
  declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm' {
1413
1464
  import React from 'react';
1414
- export const ChartOfAccountsForm: () => React.JSX.Element | undefined;
1465
+ export interface ChartOfAccountsFormStringOverrides {
1466
+ editModeHeader?: string;
1467
+ createModeHeader?: string;
1468
+ cancelButton?: string;
1469
+ retryButton?: string;
1470
+ saveButton?: string;
1471
+ parentLabel?: string;
1472
+ nameLabel?: string;
1473
+ typeLabel?: string;
1474
+ subTypeLabel?: string;
1475
+ normalityLabel?: string;
1476
+ }
1477
+ export const ChartOfAccountsForm: ({ stringOverrides }: {
1478
+ stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
1479
+ }) => React.JSX.Element | undefined;
1415
1480
 
1416
1481
  }
1417
1482
  declare module '@layerfi/components/components/ChartOfAccountsForm/constants' {
@@ -1465,8 +1530,10 @@ declare module '@layerfi/components/components/ChartOfAccountsRow/index' {
1465
1530
  }
1466
1531
  declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAccountsSidebar' {
1467
1532
  import React, { RefObject } from 'react';
1468
- export const ChartOfAccountsSidebar: ({ parentRef: _parentRef, }: {
1469
- parentRef?: RefObject<HTMLDivElement>;
1533
+ import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
1534
+ export const ChartOfAccountsSidebar: ({ parentRef: _parentRef, stringOverrides, }: {
1535
+ parentRef?: React.RefObject<HTMLDivElement> | undefined;
1536
+ stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
1470
1537
  }) => React.JSX.Element;
1471
1538
 
1472
1539
  }
@@ -1477,13 +1544,24 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
1477
1544
  declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
1478
1545
  import React, { RefObject } from 'react';
1479
1546
  import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
1547
+ import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
1480
1548
  export type ExpandActionState = undefined | 'expanded' | 'collapsed';
1481
- export const ChartOfAccountsTable: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, }: {
1549
+ export interface ChartOfAccountsTableStringOverrides {
1550
+ headerText?: string;
1551
+ addAccountButtonText?: string;
1552
+ nameColumnHeader?: string;
1553
+ typeColumnHeader?: string;
1554
+ balanceColumnHeader?: string;
1555
+ subtypeColumnHeader?: string;
1556
+ chartOfAccountsForm?: ChartOfAccountsFormStringOverrides;
1557
+ }
1558
+ export const ChartOfAccountsTable: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, stringOverrides, }: {
1482
1559
  view: View;
1483
1560
  containerRef: RefObject<HTMLDivElement>;
1484
1561
  asWidget?: boolean | undefined;
1485
1562
  withDateControl?: boolean | undefined;
1486
1563
  withExpandAllButton?: boolean | undefined;
1564
+ stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
1487
1565
  }) => React.JSX.Element;
1488
1566
 
1489
1567
  }
@@ -1818,15 +1896,20 @@ declare module '@layerfi/components/components/Input/index' {
1818
1896
  }
1819
1897
  declare module '@layerfi/components/components/Journal/Journal' {
1820
1898
  import React from 'react';
1899
+ import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTable';
1821
1900
  export type View = 'mobile' | 'tablet' | 'desktop';
1822
1901
  export interface JournalConfig {
1823
1902
  form: {
1824
1903
  addEntryLinesLimit?: number;
1825
1904
  };
1826
1905
  }
1906
+ export interface JournalStringOverrides {
1907
+ journalTable?: JournalTableStringOverrides;
1908
+ }
1827
1909
  export interface JournalProps {
1828
1910
  asWidget?: boolean;
1829
1911
  config?: JournalConfig;
1912
+ stringOverrides?: JournalStringOverrides;
1830
1913
  }
1831
1914
  export const JOURNAL_CONFIG: JournalConfig;
1832
1915
  export const Journal: (props: JournalProps) => React.JSX.Element;
@@ -1848,8 +1931,15 @@ declare module '@layerfi/components/components/JournalEntryDetails/index' {
1848
1931
  declare module '@layerfi/components/components/JournalForm/JournalForm' {
1849
1932
  import React from 'react';
1850
1933
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1851
- export const JournalForm: ({ config }: {
1934
+ export interface JournalFormStringOverrides {
1935
+ header?: string;
1936
+ cancelButton?: string;
1937
+ retryButton?: string;
1938
+ saveButton?: string;
1939
+ }
1940
+ export const JournalForm: ({ config, stringOverrides }: {
1852
1941
  config: JournalConfig;
1942
+ stringOverrides?: JournalFormStringOverrides | undefined;
1853
1943
  }) => React.JSX.Element;
1854
1944
 
1855
1945
  }
@@ -1899,9 +1989,11 @@ declare module '@layerfi/components/components/JournalRow/index' {
1899
1989
  declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
1900
1990
  import React, { RefObject } from 'react';
1901
1991
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1902
- export const JournalSidebar: ({ parentRef: _parentRef, config, }: {
1992
+ import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
1993
+ export const JournalSidebar: ({ parentRef: _parentRef, config, stringOverrides, }: {
1903
1994
  parentRef?: React.RefObject<HTMLDivElement> | undefined;
1904
1995
  config: JournalConfig;
1996
+ stringOverrides?: JournalFormStringOverrides | undefined;
1905
1997
  }) => React.JSX.Element;
1906
1998
 
1907
1999
  }
@@ -1913,11 +2005,24 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
1913
2005
  import React, { RefObject } from 'react';
1914
2006
  import { View } from '@layerfi/components/components/Journal/index';
1915
2007
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
1916
- export const JournalTable: ({ view, containerRef, pageSize, config, }: {
2008
+ import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
2009
+ export interface JournalTableStringOverrides {
2010
+ componentTitle?: string;
2011
+ addEntryButton?: string;
2012
+ idColumnHeader?: string;
2013
+ dateColumnHeader?: string;
2014
+ transactionColumnHeader?: string;
2015
+ accountColumnHeader?: string;
2016
+ debitColumnHeader?: string;
2017
+ creditColumnHeader?: string;
2018
+ journalForm?: JournalFormStringOverrides;
2019
+ }
2020
+ export const JournalTable: ({ view, containerRef, pageSize, config, stringOverrides, }: {
1917
2021
  view: View;
1918
2022
  containerRef: RefObject<HTMLDivElement>;
1919
2023
  pageSize?: number | undefined;
1920
2024
  config: JournalConfig;
2025
+ stringOverrides?: JournalTableStringOverrides | undefined;
1921
2026
  }) => React.JSX.Element;
1922
2027
 
1923
2028
  }
@@ -1928,12 +2033,27 @@ declare module '@layerfi/components/components/JournalTable/index' {
1928
2033
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
1929
2034
  import React, { RefObject } from 'react';
1930
2035
  import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
2036
+ import { LedgerAccountEntryDetailsStringOverrides } from '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails';
2037
+ interface LedgerEntriesTableStringOverrides {
2038
+ dateColumnHeader?: string;
2039
+ journalIdColumnHeader?: string;
2040
+ sourceColumnHeader?: string;
2041
+ debitColumnHeader?: string;
2042
+ creditColumnHeader?: string;
2043
+ runningBalanceColumnHeader?: string;
2044
+ }
2045
+ export interface LedgerAccountStringOverrides {
2046
+ ledgerEntryDetail?: LedgerAccountEntryDetailsStringOverrides;
2047
+ ledgerEntriesTable?: LedgerEntriesTableStringOverrides;
2048
+ }
1931
2049
  export interface LedgerAccountProps {
1932
2050
  view: View;
1933
2051
  containerRef: RefObject<HTMLDivElement>;
1934
2052
  pageSize?: number;
2053
+ stringOverrides?: LedgerAccountStringOverrides;
1935
2054
  }
1936
- export const LedgerAccount: ({ containerRef, pageSize, view, }: LedgerAccountProps) => React.JSX.Element;
2055
+ export const LedgerAccount: ({ containerRef, pageSize, view, stringOverrides, }: LedgerAccountProps) => React.JSX.Element;
2056
+ export {};
1937
2057
 
1938
2058
  }
1939
2059
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
@@ -1956,10 +2076,51 @@ declare module '@layerfi/components/components/LedgerAccount/index' {
1956
2076
  declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails' {
1957
2077
  import React from 'react';
1958
2078
  import { LedgerEntrySource } from '@layerfi/components/types/ledger_accounts';
1959
- export const SourceDetailView: ({ source }: {
2079
+ interface SourceDetailStringOverrides {
2080
+ sourceLabel?: string;
2081
+ accountNameLabel?: string;
2082
+ dateLabel?: string;
2083
+ amountLabel?: string;
2084
+ directionLabel?: string;
2085
+ counterpartyLabel?: string;
2086
+ invoiceNumberLabel?: string;
2087
+ recipientNameLabel?: string;
2088
+ memoLabel?: string;
2089
+ createdByLabel?: string;
2090
+ processorLabel?: string;
2091
+ }
2092
+ export const SourceDetailView: ({ source, stringOverrides }: {
1960
2093
  source: LedgerEntrySource;
2094
+ stringOverrides?: SourceDetailStringOverrides | undefined;
1961
2095
  }) => React.JSX.Element | null;
1962
- export const LedgerAccountEntryDetails: () => React.JSX.Element;
2096
+ interface JournalEntryDetailsStringOverrides {
2097
+ entryTypeLabel?: string;
2098
+ dateLabel?: string;
2099
+ creationDateLabel?: string;
2100
+ reversalLabel?: string;
2101
+ }
2102
+ interface LineItemsTableStringOverrides {
2103
+ lineItemsColumnHeader?: string;
2104
+ debitColumnHeader?: string;
2105
+ creditColumnHeader?: string;
2106
+ totalRowHeader?: string;
2107
+ }
2108
+ export interface LedgerAccountEntryDetailsStringOverrides {
2109
+ title?: string;
2110
+ transactionSource?: {
2111
+ header?: string;
2112
+ details?: SourceDetailStringOverrides;
2113
+ };
2114
+ journalEntry?: {
2115
+ header?: (entryId?: string) => string;
2116
+ details?: JournalEntryDetailsStringOverrides;
2117
+ };
2118
+ lineItemsTable?: LineItemsTableStringOverrides;
2119
+ }
2120
+ export const LedgerAccountEntryDetails: ({ stringOverrides }: {
2121
+ stringOverrides?: LedgerAccountEntryDetailsStringOverrides | undefined;
2122
+ }) => React.JSX.Element;
2123
+ export {};
1963
2124
 
1964
2125
  }
1965
2126
  declare module '@layerfi/components/components/LedgerAccountEntryDetails/index' {
@@ -2027,9 +2188,12 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
2027
2188
  showLedgerBalance?: boolean;
2028
2189
  showUnlinkItem?: boolean;
2029
2190
  showBreakConnection?: boolean;
2191
+ stringOverrides?: {
2192
+ title?: string;
2193
+ };
2030
2194
  }
2031
2195
  export const LinkedAccounts: (props: LinkedAccountsProps) => React.JSX.Element;
2032
- export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection, }: LinkedAccountsProps) => React.JSX.Element;
2196
+ export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection, stringOverrides, }: LinkedAccountsProps) => React.JSX.Element;
2033
2197
 
2034
2198
  }
2035
2199
  declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsContent' {
@@ -2212,19 +2376,22 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2212
2376
  setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
2213
2377
  }>;
2214
2378
  DatePicker: () => React.JSX.Element;
2215
- Summaries: ({ vertical, revenueLabel, actionable, }: {
2216
- revenueLabel?: string | undefined;
2379
+ Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
2217
2380
  vertical?: boolean | undefined;
2218
2381
  actionable?: boolean | undefined;
2382
+ revenueLabel?: string | undefined;
2383
+ stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides | undefined;
2219
2384
  }) => React.JSX.Element;
2220
- Table: ({ lockExpanded, asContainer }: {
2385
+ Table: ({ lockExpanded, asContainer, stringOverrides }: {
2221
2386
  lockExpanded?: boolean | undefined;
2222
2387
  asContainer?: boolean | undefined;
2388
+ stringOverrides?: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable").ProfitAndLossTableStringOverrides | undefined;
2223
2389
  }) => React.JSX.Element;
2224
- DetailedCharts: ({ scope, hideClose, showDatePicker, }: {
2390
+ DetailedCharts: ({ scope, hideClose, showDatePicker, stringOverrides, }: {
2225
2391
  scope?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
2226
2392
  hideClose?: boolean | undefined;
2227
2393
  showDatePicker?: boolean | undefined;
2394
+ stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides | undefined;
2228
2395
  }) => React.JSX.Element;
2229
2396
  };
2230
2397
  export { ProfitAndLoss };
@@ -2294,6 +2461,11 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
2294
2461
  import { Scope, SidebarScope, ProfitAndLossFilters } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
2295
2462
  import { SortDirection } from '@layerfi/components/types';
2296
2463
  import { LineBaseItem } from '@layerfi/components/types/line_item';
2464
+ export interface DetailedTableStringOverrides {
2465
+ categoryColumnHeader?: string;
2466
+ typeColumnHeader?: string;
2467
+ valueColumnHeader?: string;
2468
+ }
2297
2469
  export interface DetailedTableProps {
2298
2470
  filteredData: LineBaseItem[];
2299
2471
  hoveredItem?: string;
@@ -2301,12 +2473,13 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
2301
2473
  sidebarScope: SidebarScope;
2302
2474
  filters: ProfitAndLossFilters;
2303
2475
  sortBy: (scope: Scope, field: string, direction?: SortDirection) => void;
2476
+ stringOverrides?: DetailedTableStringOverrides;
2304
2477
  }
2305
2478
  export const mapColorsToTypes: (data: any[]) => {
2306
2479
  color: any;
2307
2480
  opacity: any;
2308
2481
  }[];
2309
- export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, }: DetailedTableProps) => React.JSX.Element;
2482
+ export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, stringOverrides, }: DetailedTableProps) => React.JSX.Element;
2310
2483
 
2311
2484
  }
2312
2485
  declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filters' {
@@ -2325,10 +2498,15 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filte
2325
2498
  declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts' {
2326
2499
  import React from 'react';
2327
2500
  import { SidebarScope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
2328
- export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, }: {
2501
+ import { DetailedTableStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedTable';
2502
+ export interface ProfitAndLossDetailedChartsStringOverrides {
2503
+ detailedTableStringOverrides?: DetailedTableStringOverrides;
2504
+ }
2505
+ export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, stringOverrides, }: {
2329
2506
  scope?: SidebarScope;
2330
2507
  hideClose?: boolean | undefined;
2331
2508
  showDatePicker?: boolean | undefined;
2509
+ stringOverrides?: ProfitAndLossDetailedChartsStringOverrides | undefined;
2332
2510
  }) => React.JSX.Element;
2333
2511
 
2334
2512
  }
@@ -2369,12 +2547,18 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/MiniChart'
2369
2547
  }
2370
2548
  declare module '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries' {
2371
2549
  import React from 'react';
2372
- type Props = {
2550
+ export interface ProfitAndLossSummariesStringOverrides {
2373
2551
  revenueLabel?: string;
2552
+ expensesLabel?: string;
2553
+ netProfitLabel?: string;
2554
+ }
2555
+ type Props = {
2374
2556
  vertical?: boolean;
2375
2557
  actionable?: boolean;
2558
+ revenueLabel?: string;
2559
+ stringOverrides?: ProfitAndLossSummariesStringOverrides;
2376
2560
  };
2377
- export const ProfitAndLossSummaries: ({ vertical, revenueLabel, actionable, }: Props) => React.JSX.Element;
2561
+ export const ProfitAndLossSummaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: Props) => React.JSX.Element;
2378
2562
  export {};
2379
2563
 
2380
2564
  }
@@ -2384,11 +2568,17 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/index' {
2384
2568
  }
2385
2569
  declare module '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable' {
2386
2570
  import React from 'react';
2571
+ export interface ProfitAndLossTableStringOverrides {
2572
+ grossProfitLabel?: string;
2573
+ profitBeforeTaxesLabel?: string;
2574
+ netProfitLabel?: string;
2575
+ }
2387
2576
  type Props = {
2388
2577
  lockExpanded?: boolean;
2389
2578
  asContainer?: boolean;
2579
+ stringOverrides?: ProfitAndLossTableStringOverrides;
2390
2580
  };
2391
- export const ProfitAndLossTable: ({ lockExpanded, asContainer }: Props) => React.JSX.Element;
2581
+ export const ProfitAndLossTable: ({ lockExpanded, asContainer, stringOverrides }: Props) => React.JSX.Element;
2392
2582
  export {};
2393
2583
 
2394
2584
  }
@@ -2404,10 +2594,19 @@ declare module '@layerfi/components/components/ProfitAndLossTable/index' {
2404
2594
  }
2405
2595
  declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView' {
2406
2596
  import React, { RefObject } from 'react';
2597
+ import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
2598
+ import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
2599
+ import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable';
2407
2600
  export interface ProfitAndLossViewProps {
2408
2601
  hideTable?: boolean;
2409
2602
  hideChart?: boolean;
2410
2603
  showDetailedCharts?: boolean;
2604
+ stringOverrides?: {
2605
+ header?: string;
2606
+ profitAndLossTable?: ProfitAndLossTableStringOverrides;
2607
+ profitAndLossSummaries?: ProfitAndLossSummariesStringOverrides;
2608
+ profitAndLossDetailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
2609
+ };
2411
2610
  }
2412
2611
  export interface ProfitAndLossViewPanelProps extends ProfitAndLossViewProps {
2413
2612
  containerRef: RefObject<HTMLDivElement>;
@@ -2464,7 +2663,13 @@ declare module '@layerfi/components/components/SkeletonTableLoader/index' {
2464
2663
  }
2465
2664
  declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
2466
2665
  import React from 'react';
2467
- export const StatementOfCashFlow: () => React.JSX.Element;
2666
+ import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
2667
+ export interface StatementOfCashFlowStringOverrides {
2668
+ statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
2669
+ }
2670
+ export const StatementOfCashFlow: ({ stringOverrides }: {
2671
+ stringOverrides?: StatementOfCashFlowStringOverrides | undefined;
2672
+ }) => React.JSX.Element;
2468
2673
 
2469
2674
  }
2470
2675
  declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
@@ -2492,9 +2697,14 @@ declare module '@layerfi/components/components/StatementOfCashFlowTable/Statemen
2492
2697
  summarize: boolean;
2493
2698
  type: string;
2494
2699
  };
2495
- export const StatementOfCashFlowTable: ({ data, config, }: {
2700
+ export interface StatementOfCashFlowTableStringOverrides {
2701
+ typeColumnHeader?: string;
2702
+ totalColumnHeader?: string;
2703
+ }
2704
+ export const StatementOfCashFlowTable: ({ data, config, stringOverrides, }: {
2496
2705
  data: StatementOfCashFlow;
2497
2706
  config: StatementOfCashFlowRowProps[];
2707
+ stringOverrides?: StatementOfCashFlowTableStringOverrides | undefined;
2498
2708
  }) => React.JSX.Element;
2499
2709
  export {};
2500
2710
 
@@ -2657,20 +2867,25 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
2657
2867
  refetch: () => void;
2658
2868
  submitResponseToTask: (taskId: string, userResponse: string) => void;
2659
2869
  };
2660
- export const Tasks: ({ tasksHeader, collapsable, defaultCollapsed, collapsedWhenComplete, }: {
2870
+ export interface TasksStringOverrides {
2871
+ header?: string;
2872
+ }
2873
+ export const Tasks: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
2661
2874
  tasksHeader?: string | undefined;
2662
2875
  collapsable?: boolean | undefined;
2663
2876
  defaultCollapsed?: boolean | undefined;
2664
2877
  collapsedWhenComplete?: boolean | undefined;
2878
+ stringOverrides?: TasksStringOverrides | undefined;
2665
2879
  }) => React.JSX.Element;
2666
2880
  export const TasksProvider: ({ children }: {
2667
2881
  children: ReactNode;
2668
2882
  }) => React.JSX.Element;
2669
- export const TasksComponent: ({ tasksHeader, collapsable, defaultCollapsed, collapsedWhenComplete, }: {
2883
+ export const TasksComponent: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
2670
2884
  tasksHeader?: string | undefined;
2671
2885
  collapsable?: boolean | undefined;
2672
2886
  defaultCollapsed?: boolean | undefined;
2673
2887
  collapsedWhenComplete?: boolean | undefined;
2888
+ stringOverrides?: TasksStringOverrides | undefined;
2674
2889
  }) => React.JSX.Element;
2675
2890
 
2676
2891
  }
@@ -5144,13 +5359,24 @@ declare module '@layerfi/components/utils/profitAndLossUtils' {
5144
5359
  }
5145
5360
  declare module '@layerfi/components/views/AccountingOverview/AccountingOverview' {
5146
5361
  import React, { ReactNode } from 'react';
5362
+ import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
5363
+ import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
5364
+ interface AccountingOverviewStringOverrides {
5365
+ header?: string;
5366
+ profitAndLoss?: {
5367
+ detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
5368
+ summaries?: ProfitAndLossSummariesStringOverrides;
5369
+ };
5370
+ }
5147
5371
  export interface AccountingOverviewProps {
5148
5372
  title?: string;
5149
5373
  enableOnboarding?: boolean;
5150
5374
  onTransactionsToReviewClick?: () => void;
5151
5375
  middleBanner?: ReactNode;
5376
+ stringOverrides?: AccountingOverviewStringOverrides;
5152
5377
  }
5153
- export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, middleBanner, }: AccountingOverviewProps) => React.JSX.Element;
5378
+ export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, middleBanner, stringOverrides, }: AccountingOverviewProps) => React.JSX.Element;
5379
+ export {};
5154
5380
 
5155
5381
  }
5156
5382
  declare module '@layerfi/components/views/AccountingOverview/index' {
@@ -5159,7 +5385,13 @@ declare module '@layerfi/components/views/AccountingOverview/index' {
5159
5385
  }
5160
5386
  declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts' {
5161
5387
  import React from 'react';
5162
- import { MobileComponentType } from "@layerfi/components/components/BankTransactions/constants";
5388
+ import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
5389
+ import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
5390
+ interface BankTransactionsWithLinkedAccountsStringOverrides {
5391
+ title?: string;
5392
+ linkedAccounts?: BankTransactionsWithLinkedAccountsStringOverrides;
5393
+ bankTransactions?: BankTransactionsStringOverrides;
5394
+ }
5163
5395
  export interface BankTransactionsWithLinkedAccountsProps {
5164
5396
  title?: string;
5165
5397
  elevatedLinkedAccounts?: boolean;
@@ -5171,8 +5403,10 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
5171
5403
  categorizedOnly?: boolean;
5172
5404
  hardRefreshPnlOnCategorize?: boolean;
5173
5405
  mobileComponent?: MobileComponentType;
5406
+ stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
5174
5407
  }
5175
- export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, categorizedOnly, hardRefreshPnlOnCategorize, showDescriptions, showReceiptUploads, mobileComponent, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5408
+ export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, categorizedOnly, hardRefreshPnlOnCategorize, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5409
+ export {};
5176
5410
 
5177
5411
  }
5178
5412
  declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index' {
@@ -5181,10 +5415,22 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/ind
5181
5415
  }
5182
5416
  declare module '@layerfi/components/views/BookkeepingOverview/BookkeepingOverview' {
5183
5417
  import React from 'react';
5418
+ import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
5419
+ import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
5420
+ import { TasksStringOverrides } from '@layerfi/components/components/Tasks/Tasks';
5184
5421
  export interface BookkeepingOverviewProps {
5185
5422
  title?: string;
5423
+ stringOverrides?: {
5424
+ title?: string;
5425
+ tasks?: TasksStringOverrides;
5426
+ profitAndLoss?: {
5427
+ header?: string;
5428
+ detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
5429
+ summaries?: ProfitAndLossSummariesStringOverrides;
5430
+ };
5431
+ };
5186
5432
  }
5187
- export const BookkeepingOverview: ({ title, }: BookkeepingOverviewProps) => React.JSX.Element;
5433
+ export const BookkeepingOverview: ({ title, stringOverrides, }: BookkeepingOverviewProps) => React.JSX.Element;
5188
5434
 
5189
5435
  }
5190
5436
  declare module '@layerfi/components/views/BookkeepingOverview/index' {
@@ -5193,10 +5439,20 @@ declare module '@layerfi/components/views/BookkeepingOverview/index' {
5193
5439
  }
5194
5440
  declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
5195
5441
  import React from 'react';
5442
+ import { ChartOfAccountsStringOverrides } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
5443
+ import { JournalStringOverrides } from '@layerfi/components/components/Journal/Journal';
5444
+ export interface GeneralLedgerStringOverrides {
5445
+ title?: string;
5446
+ chartOfAccountsToggleOption?: string;
5447
+ journalToggleOption?: string;
5448
+ chartOfAccounts: ChartOfAccountsStringOverrides;
5449
+ journal: JournalStringOverrides;
5450
+ }
5196
5451
  export interface GeneralLedgerProps {
5197
5452
  title?: string;
5453
+ stringOverrides?: GeneralLedgerStringOverrides;
5198
5454
  }
5199
- export const GeneralLedgerView: ({ title, }: GeneralLedgerProps) => React.JSX.Element;
5455
+ export const GeneralLedgerView: ({ title, stringOverrides, }: GeneralLedgerProps) => React.JSX.Element;
5200
5456
 
5201
5457
  }
5202
5458
  declare module '@layerfi/components/views/GeneralLedger/index' {
@@ -5205,15 +5461,35 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
5205
5461
  }
5206
5462
  declare module '@layerfi/components/views/Reports/Reports' {
5207
5463
  import React, { RefObject } from 'react';
5464
+ import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
5465
+ import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
5466
+ import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
5467
+ import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable';
5468
+ interface ReportsStringOverrides {
5469
+ title?: string;
5470
+ downloadButton?: DownloadButtonStringOverrides;
5471
+ profitAndLoss?: {
5472
+ detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
5473
+ table?: ProfitAndLossTableStringOverrides;
5474
+ };
5475
+ balanceSheet?: BalanceSheetStringOverrides;
5476
+ statementOfCashflow?: StatementOfCashFlowStringOverrides;
5477
+ }
5208
5478
  export interface ReportsProps {
5209
5479
  title?: string;
5480
+ stringOverrides?: ReportsStringOverrides;
5210
5481
  }
5211
5482
  type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
5212
5483
  export interface ReportsPanelProps {
5213
5484
  containerRef: RefObject<HTMLDivElement>;
5214
5485
  openReport: ReportType;
5486
+ stringOverrides?: ReportsStringOverrides;
5487
+ }
5488
+ interface DownloadButtonStringOverrides {
5489
+ downloadButtonText?: string;
5490
+ retryButtonText?: string;
5215
5491
  }
5216
- export const Reports: ({ title }: ReportsProps) => React.JSX.Element;
5492
+ export const Reports: ({ title, stringOverrides }: ReportsProps) => React.JSX.Element;
5217
5493
  export {};
5218
5494
 
5219
5495
  }