@layerfi/components 0.1.57 → 0.1.59

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
@@ -337,7 +337,7 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
337
337
 
338
338
  }
339
339
  declare module '@layerfi/components/api/layer/quickbooks' {
340
- import { StatusOfSyncFromQuickbooks } from "@layerfi/components/types/quickbooks";
340
+ import { StatusOfSyncFromQuickbooks } from '@layerfi/components/types/quickbooks';
341
341
  export const syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
342
342
  params?: {
343
343
  businessId: string;
@@ -358,7 +358,7 @@ declare module '@layerfi/components/api/layer/quickbooks' {
358
358
  body?: Record<string, unknown> | undefined;
359
359
  } | undefined) => Promise<{
360
360
  data: {
361
- type: "Quickbooks_Authorization_Params";
361
+ type: 'Quickbooks_Authorization_Params';
362
362
  redirect_url: string;
363
363
  };
364
364
  }>;
@@ -839,7 +839,11 @@ declare module '@layerfi/components/components/BalanceSheetDatePicker/index' {
839
839
  }
840
840
  declare module '@layerfi/components/components/BalanceSheetExpandAllButton/BalanceSheetExpandAllButton' {
841
841
  import React from 'react';
842
- export const BalanceSheetExpandAllButton: () => React.JSX.Element;
842
+ import { View } from '@layerfi/components/types/general';
843
+ export interface BalanceSheetExpandAllButtonProps {
844
+ view?: View;
845
+ }
846
+ export const BalanceSheetExpandAllButton: ({ view, }: BalanceSheetExpandAllButtonProps) => React.JSX.Element;
843
847
 
844
848
  }
845
849
  declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index' {
@@ -1271,7 +1275,8 @@ declare module '@layerfi/components/components/Button/Button' {
1271
1275
  import React, { ButtonHTMLAttributes, ReactNode } from 'react';
1272
1276
  export enum ButtonVariant {
1273
1277
  primary = "primary",
1274
- secondary = "secondary"
1278
+ secondary = "secondary",
1279
+ tertiary = "tertiary"
1275
1280
  }
1276
1281
  export type ButtonJustify = 'center' | 'space-between' | 'start';
1277
1282
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
@@ -1282,8 +1287,9 @@ declare module '@layerfi/components/components/Button/Button' {
1282
1287
  iconAsPrimary?: boolean;
1283
1288
  justify?: ButtonJustify;
1284
1289
  fullWidth?: boolean;
1290
+ isProcessing?: boolean;
1285
1291
  }
1286
- export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, fullWidth, ...props }: ButtonProps) => React.JSX.Element;
1292
+ export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, fullWidth, isProcessing, ...props }: ButtonProps) => React.JSX.Element;
1287
1293
 
1288
1294
  }
1289
1295
  declare module '@layerfi/components/components/Button/CloseButton' {
@@ -1293,6 +1299,21 @@ declare module '@layerfi/components/components/Button/CloseButton' {
1293
1299
  }
1294
1300
  export const CloseButton: ({ className, children, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
1295
1301
 
1302
+ }
1303
+ declare module '@layerfi/components/components/Button/DownloadButton' {
1304
+ import React from 'react';
1305
+ interface DownloadButtonProps {
1306
+ onClick?: () => void | Promise<void>;
1307
+ iconOnly?: boolean;
1308
+ isDownloading?: boolean;
1309
+ requestFailed?: boolean;
1310
+ text?: string;
1311
+ retryText?: string;
1312
+ errorText?: string;
1313
+ }
1314
+ export const DownloadButton: ({ iconOnly, onClick, isDownloading, requestFailed, text, retryText, errorText, }: DownloadButtonProps) => React.JSX.Element;
1315
+ export {};
1316
+
1296
1317
  }
1297
1318
  declare module '@layerfi/components/components/Button/ExpandButton' {
1298
1319
  import React, { ButtonHTMLAttributes } from 'react';
@@ -1301,6 +1322,19 @@ declare module '@layerfi/components/components/Button/ExpandButton' {
1301
1322
  }
1302
1323
  export const ExpandButton: ({ className, children, collapsed, ...props }: ExpandButtonProps) => React.JSX.Element;
1303
1324
 
1325
+ }
1326
+ declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
1327
+ import React from 'react';
1328
+ import { ButtonVariant } from '@layerfi/components/components/Button/Button';
1329
+ export interface ExpandCollapseButtonProps {
1330
+ onClick: (value: boolean) => void;
1331
+ expanded?: boolean;
1332
+ className?: string;
1333
+ iconOnly?: boolean;
1334
+ variant?: ButtonVariant;
1335
+ }
1336
+ export const ExpandCollapseButton: ({ onClick, expanded, className, iconOnly, variant, }: ExpandCollapseButtonProps) => React.JSX.Element;
1337
+
1304
1338
  }
1305
1339
  declare module '@layerfi/components/components/Button/IconButton' {
1306
1340
  import React, { ButtonHTMLAttributes, ReactNode } from 'react';
@@ -1389,6 +1423,8 @@ declare module '@layerfi/components/components/Button/index' {
1389
1423
  export { ExpandButton } from '@layerfi/components/components/Button/ExpandButton';
1390
1424
  export { SwitchButton } from '@layerfi/components/components/Button/SwitchButton';
1391
1425
  export { Link } from '@layerfi/components/components/Button/Link';
1426
+ export { DownloadButton } from '@layerfi/components/components/Button/DownloadButton';
1427
+ export { ExpandCollapseButton } from '@layerfi/components/components/Button/ExpandCollapseButton';
1392
1428
 
1393
1429
  }
1394
1430
  declare module '@layerfi/components/components/Card/Card' {
@@ -1466,7 +1502,6 @@ declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts'
1466
1502
  import React from 'react';
1467
1503
  import { ChartOfAccountsTableStringOverrides } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
1468
1504
  import { LedgerAccountStringOverrides } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
1469
- export type View = 'mobile' | 'tablet' | 'desktop';
1470
1505
  export interface ChartOfAccountsStringOverrides {
1471
1506
  chartOfAccountsTable?: ChartOfAccountsTableStringOverrides;
1472
1507
  ledgerAccount?: LedgerAccountStringOverrides;
@@ -1481,7 +1516,7 @@ declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts'
1481
1516
 
1482
1517
  }
1483
1518
  declare module '@layerfi/components/components/ChartOfAccounts/index' {
1484
- export { ChartOfAccounts, View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
1519
+ export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
1485
1520
 
1486
1521
  }
1487
1522
  declare module '@layerfi/components/components/ChartOfAccountsDatePicker/ChartOfAccountsDatePicker' {
@@ -1507,7 +1542,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
1507
1542
  subTypeLabel?: string;
1508
1543
  normalityLabel?: string;
1509
1544
  }
1510
- export const ChartOfAccountsForm: ({ stringOverrides }: {
1545
+ export const ChartOfAccountsForm: ({ stringOverrides, }: {
1511
1546
  stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
1512
1547
  }) => React.JSX.Element | undefined;
1513
1548
 
@@ -1553,7 +1588,7 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
1553
1588
  declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
1554
1589
  import React from 'react';
1555
1590
  import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
1556
- import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
1591
+ import { View } from '@layerfi/components/types/general';
1557
1592
  import { ChartOfAccountsTableStringOverrides, ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
1558
1593
  export const ChartOfAccountsTable: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, }: {
1559
1594
  view: View;
@@ -1564,7 +1599,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
1564
1599
  cumulativeIndex: number;
1565
1600
  accountsLength: number;
1566
1601
  }) => React.JSX.Element;
1567
- export const ChartOfAccountsTableContent: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, }: {
1602
+ export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, }: {
1568
1603
  view: View;
1569
1604
  data: ChartWithBalances;
1570
1605
  stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
@@ -1577,7 +1612,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
1577
1612
  }
1578
1613
  declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel' {
1579
1614
  import React, { RefObject } from 'react';
1580
- import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
1615
+ import { View } from '@layerfi/components/types/general';
1581
1616
  import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
1582
1617
  export type ExpandActionState = undefined | 'expanded' | 'collapsed';
1583
1618
  export interface ChartOfAccountsTableStringOverrides {
@@ -1618,6 +1653,10 @@ declare module '@layerfi/components/components/Container/Container' {
1618
1653
 
1619
1654
  }
1620
1655
  declare module '@layerfi/components/components/Container/Header' {
1656
+ /**
1657
+ * @deprecated- use components/Header instead.
1658
+ * This has been kept to not introduce breaking changes.
1659
+ */
1621
1660
  import React, { CSSProperties, ReactNode } from 'react';
1622
1661
  export enum HeaderLayout {
1623
1662
  DEFAULT = "default",
@@ -1662,8 +1701,10 @@ declare module '@layerfi/components/components/DataState/index' {
1662
1701
  }
1663
1702
  declare module '@layerfi/components/components/DatePicker/DatePicker' {
1664
1703
  import React from 'react';
1704
+ export type DatePickerMode = 'dayPicker' | 'monthRangePicker' | 'timePicker' | DateRangeDatePickerModes;
1705
+ export type DateRangeDatePickerModes = 'dayRangePicker' | 'monthPicker';
1665
1706
  interface DatePickerProps {
1666
- mode: 'dayPicker' | 'dayRangePicker' | 'monthPicker' | 'monthRangePicker' | 'timePicker';
1707
+ mode: DatePickerMode;
1667
1708
  selected: Date | [Date | null, Date | null];
1668
1709
  onChange: (date: Date | [Date, Date | null]) => void;
1669
1710
  dateFormat?: string;
@@ -1718,10 +1759,11 @@ declare module '@layerfi/components/components/DetailsList/DetailsList' {
1718
1759
  export interface DetailsListProps {
1719
1760
  title?: string;
1720
1761
  className?: string;
1762
+ titleClassName?: string;
1721
1763
  children: ReactNode;
1722
1764
  actions?: ReactNode;
1723
1765
  }
1724
- export const DetailsList: ({ title, children, className, actions, }: DetailsListProps) => React.JSX.Element;
1766
+ export const DetailsList: ({ title, children, className, titleClassName, actions, }: DetailsListProps) => React.JSX.Element;
1725
1767
 
1726
1768
  }
1727
1769
  declare module '@layerfi/components/components/DetailsList/DetailsListItem' {
@@ -1828,6 +1870,47 @@ declare module '@layerfi/components/components/GlobalWidgets/GlobalWidgets' {
1828
1870
  declare module '@layerfi/components/components/GlobalWidgets/index' {
1829
1871
  export { GlobalWidgets } from '@layerfi/components/components/GlobalWidgets/GlobalWidgets';
1830
1872
 
1873
+ }
1874
+ declare module '@layerfi/components/components/Header/Header' {
1875
+ import React, { CSSProperties, ReactNode } from 'react';
1876
+ export interface HeaderProps {
1877
+ className?: string;
1878
+ style?: CSSProperties;
1879
+ asHeader?: boolean;
1880
+ sticky?: boolean;
1881
+ rounded?: boolean;
1882
+ children: ReactNode;
1883
+ }
1884
+ export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLElement>>;
1885
+
1886
+ }
1887
+ declare module '@layerfi/components/components/Header/HeaderCol' {
1888
+ import React, { CSSProperties, ReactNode } from 'react';
1889
+ interface HeaderColProps {
1890
+ className?: string;
1891
+ style?: CSSProperties;
1892
+ children: ReactNode;
1893
+ }
1894
+ export const HeaderCol: ({ className, children, style }: HeaderColProps) => React.JSX.Element;
1895
+ export {};
1896
+
1897
+ }
1898
+ declare module '@layerfi/components/components/Header/HeaderRow' {
1899
+ import React, { CSSProperties, ReactNode } from 'react';
1900
+ interface HeaderRowProps {
1901
+ className?: string;
1902
+ style?: CSSProperties;
1903
+ children: ReactNode;
1904
+ }
1905
+ export const HeaderRow: ({ className, children, style }: HeaderRowProps) => React.JSX.Element;
1906
+ export {};
1907
+
1908
+ }
1909
+ declare module '@layerfi/components/components/Header/index' {
1910
+ export { Header } from '@layerfi/components/components/Header/Header';
1911
+ export { HeaderRow } from '@layerfi/components/components/Header/HeaderRow';
1912
+ export { HeaderCol } from '@layerfi/components/components/Header/HeaderCol';
1913
+
1831
1914
  }
1832
1915
  declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
1833
1916
  import React, { ReactNode } from 'react';
@@ -1951,7 +2034,6 @@ declare module '@layerfi/components/components/Input/index' {
1951
2034
  declare module '@layerfi/components/components/Journal/Journal' {
1952
2035
  import React from 'react';
1953
2036
  import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
1954
- export type View = 'mobile' | 'tablet' | 'desktop';
1955
2037
  export interface JournalConfig {
1956
2038
  form: {
1957
2039
  addEntryLinesLimit?: number;
@@ -1970,7 +2052,7 @@ declare module '@layerfi/components/components/Journal/Journal' {
1970
2052
 
1971
2053
  }
1972
2054
  declare module '@layerfi/components/components/Journal/index' {
1973
- export { Journal, View } from '@layerfi/components/components/Journal/Journal';
2055
+ export { Journal } from '@layerfi/components/components/Journal/Journal';
1974
2056
 
1975
2057
  }
1976
2058
  declare module '@layerfi/components/components/JournalEntryDetails/JournalEntryDetails' {
@@ -1991,7 +2073,7 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
1991
2073
  retryButton?: string;
1992
2074
  saveButton?: string;
1993
2075
  }
1994
- export const JournalForm: ({ config, stringOverrides }: {
2076
+ export const JournalForm: ({ config, stringOverrides, }: {
1995
2077
  config: JournalConfig;
1996
2078
  stringOverrides?: JournalFormStringOverrides | undefined;
1997
2079
  }) => React.JSX.Element;
@@ -2035,7 +2117,7 @@ declare module '@layerfi/components/components/JournalSidebar/index' {
2035
2117
  declare module '@layerfi/components/components/JournalTable/JournalTable' {
2036
2118
  import React from 'react';
2037
2119
  import { JournalEntry } from '@layerfi/components/types';
2038
- import { View } from '@layerfi/components/components/Journal/index';
2120
+ import { View } from '@layerfi/components/types/general';
2039
2121
  import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
2040
2122
  export const JournalTable: ({ view, data, stringOverrides, }: {
2041
2123
  view: View;
@@ -2046,11 +2128,12 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
2046
2128
  }
2047
2129
  declare module '@layerfi/components/components/JournalTable/JournalTableWithPanel' {
2048
2130
  import React, { RefObject } from 'react';
2049
- import { View } from '@layerfi/components/components/Journal/index';
2131
+ import { View } from '@layerfi/components/types/general';
2050
2132
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
2051
2133
  import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
2052
2134
  export interface JournalTableStringOverrides {
2053
2135
  componentTitle?: string;
2136
+ componentSubtitle?: string;
2054
2137
  addEntryButton?: string;
2055
2138
  idColumnHeader?: string;
2056
2139
  dateColumnHeader?: string;
@@ -2060,7 +2143,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTableWithPane
2060
2143
  creditColumnHeader?: string;
2061
2144
  journalForm?: JournalFormStringOverrides;
2062
2145
  }
2063
- export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, }: {
2146
+ export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, view, }: {
2064
2147
  view: View;
2065
2148
  containerRef: RefObject<HTMLDivElement>;
2066
2149
  pageSize?: number | undefined;
@@ -2075,7 +2158,7 @@ declare module '@layerfi/components/components/JournalTable/index' {
2075
2158
  }
2076
2159
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
2077
2160
  import React, { RefObject } from 'react';
2078
- import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
2161
+ import { View } from '@layerfi/components/types/general';
2079
2162
  import { LedgerAccountEntryDetailsStringOverrides } from '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails';
2080
2163
  interface LedgerEntriesTableStringOverrides {
2081
2164
  dateColumnHeader?: string;
@@ -2102,7 +2185,7 @@ declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex'
2102
2185
  declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
2103
2186
  import React from 'react';
2104
2187
  import { LedgerAccountLineItem } from '@layerfi/components/types';
2105
- import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
2188
+ import { View } from '@layerfi/components/types/general';
2106
2189
  export interface LedgerAccountRowProps {
2107
2190
  row: LedgerAccountLineItem;
2108
2191
  index: number;
@@ -2432,7 +2515,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2432
2515
  setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
2433
2516
  refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
2434
2517
  }>;
2435
- DatePicker: () => React.JSX.Element;
2518
+ DatePicker: ({ datePickerMode, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
2436
2519
  CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
2437
2520
  Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
2438
2521
  vertical?: boolean | undefined;
@@ -2517,7 +2600,11 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index
2517
2600
  }
2518
2601
  declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
2519
2602
  import React from 'react';
2520
- export const ProfitAndLossDatePicker: () => React.JSX.Element;
2603
+ import { DatePickerMode } from '@layerfi/components/components/DatePicker/DatePicker';
2604
+ export type ProfitAndLossDatePickerProps = {
2605
+ datePickerMode?: DatePickerMode;
2606
+ };
2607
+ export const ProfitAndLossDatePicker: ({ datePickerMode, }: ProfitAndLossDatePickerProps) => React.JSX.Element;
2521
2608
 
2522
2609
  }
2523
2610
  declare module '@layerfi/components/components/ProfitAndLossDatePicker/index' {
@@ -2539,7 +2626,7 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
2539
2626
  showDatePicker?: boolean;
2540
2627
  chartColorsList?: string[];
2541
2628
  }
2542
- export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, sidebarScope, date, chartColorsList, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
2629
+ export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, chartColorsList, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
2543
2630
  export {};
2544
2631
 
2545
2632
  }
@@ -2717,7 +2804,7 @@ declare module '@layerfi/components/components/ProfitAndLossView/index' {
2717
2804
 
2718
2805
  }
2719
2806
  declare module '@layerfi/components/components/Quickbooks/Quickbooks' {
2720
- import React from "react";
2807
+ import React from 'react';
2721
2808
  const Quickbooks: () => React.JSX.Element;
2722
2809
  export { Quickbooks };
2723
2810
 
@@ -2763,13 +2850,17 @@ declare module '@layerfi/components/components/SkeletonTableLoader/index' {
2763
2850
  }
2764
2851
  declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
2765
2852
  import React from 'react';
2853
+ import { DatePickerMode, DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
2766
2854
  import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
2767
2855
  export interface StatementOfCashFlowStringOverrides {
2768
2856
  statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
2857
+ datePickerMode?: DatePickerMode;
2769
2858
  }
2770
- export const StatementOfCashFlow: ({ stringOverrides }: {
2771
- stringOverrides?: StatementOfCashFlowStringOverrides | undefined;
2772
- }) => React.JSX.Element;
2859
+ export interface StatementOfCashFlowProps {
2860
+ stringOverrides?: StatementOfCashFlowStringOverrides;
2861
+ datePickerMode?: DateRangeDatePickerModes;
2862
+ }
2863
+ export const StatementOfCashFlow: ({ stringOverrides, datePickerMode, }: StatementOfCashFlowProps) => React.JSX.Element;
2773
2864
 
2774
2865
  }
2775
2866
  declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
@@ -2887,7 +2978,7 @@ declare module '@layerfi/components/components/TableBody/index' {
2887
2978
  declare module '@layerfi/components/components/TableCell/TableCell' {
2888
2979
  import React from 'react';
2889
2980
  import { TableCellProps } from '@layerfi/components/types/table';
2890
- export const TableCell: ({ children, isHeaderCell, isCurrency, primary, withExpandIcon, fullWidth, colSpan, onClick, }: TableCellProps) => React.JSX.Element;
2981
+ export const TableCell: ({ children, className, isHeaderCell, isCurrency, align, primary, withExpandIcon, fullWidth, colSpan, onClick, style, width, }: TableCellProps) => React.JSX.Element;
2891
2982
 
2892
2983
  }
2893
2984
  declare module '@layerfi/components/components/TableCell/index' {
@@ -2913,46 +3004,6 @@ declare module '@layerfi/components/components/TableRow/TableRow' {
2913
3004
  declare module '@layerfi/components/components/TableRow/index' {
2914
3005
  export { TableRow } from '@layerfi/components/components/TableRow/TableRow';
2915
3006
 
2916
- }
2917
- declare module '@layerfi/components/components/Tabs/Tab' {
2918
- import React, { ChangeEvent, ReactNode } from 'react';
2919
- interface TabProps {
2920
- checked: boolean;
2921
- label: string;
2922
- name: string;
2923
- onChange: (event: ChangeEvent<HTMLInputElement>) => void;
2924
- value: string;
2925
- disabled?: boolean;
2926
- disabledMessage?: string;
2927
- leftIcon?: ReactNode;
2928
- index: number;
2929
- }
2930
- export const Tab: ({ checked, label, name, onChange, value, leftIcon, disabled, disabledMessage, index, }: TabProps) => React.JSX.Element;
2931
- export {};
2932
-
2933
- }
2934
- declare module '@layerfi/components/components/Tabs/Tabs' {
2935
- import React, { ChangeEvent, ReactNode } from 'react';
2936
- interface Option {
2937
- label: string;
2938
- value: string;
2939
- disabled?: boolean;
2940
- disabledMessage?: string;
2941
- leftIcon?: ReactNode;
2942
- }
2943
- interface TabsProps {
2944
- name: string;
2945
- options: Option[];
2946
- selected?: Option['value'];
2947
- onChange: (event: ChangeEvent<HTMLInputElement>) => void;
2948
- }
2949
- export const Tabs: ({ name, options, selected, onChange }: TabsProps) => React.JSX.Element;
2950
- export {};
2951
-
2952
- }
2953
- declare module '@layerfi/components/components/Tabs/index' {
2954
- export { Tabs } from '@layerfi/components/components/Tabs/Tabs';
2955
-
2956
3007
  }
2957
3008
  declare module '@layerfi/components/components/Tasks/Tasks' {
2958
3009
  import React, { ReactNode } from 'react';
@@ -3332,13 +3383,14 @@ declare module '@layerfi/components/components/View/View' {
3332
3383
  export interface ViewProps {
3333
3384
  children: ReactNode;
3334
3385
  title?: string;
3386
+ showHeader?: boolean;
3335
3387
  headerControls?: ReactNode;
3336
3388
  type?: 'default' | 'panel';
3337
3389
  withSidebar?: boolean;
3338
3390
  sidebar?: ReactNode;
3339
3391
  viewClassName?: string;
3340
3392
  }
3341
- export const View: ({ title, children, headerControls, type, withSidebar, sidebar, viewClassName, }: ViewProps) => React.JSX.Element;
3393
+ export const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
3342
3394
 
3343
3395
  }
3344
3396
  declare module '@layerfi/components/components/View/index' {
@@ -3501,7 +3553,7 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
3501
3553
 
3502
3554
  }
3503
3555
  declare module '@layerfi/components/contexts/BankTransactionsContext/index' {
3504
- export { BankTransactionsContext, useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
3556
+ export { BankTransactionsContext, useBankTransactionsContext, } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
3505
3557
 
3506
3558
  }
3507
3559
  declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
@@ -3659,8 +3711,6 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
3659
3711
  }
3660
3712
  declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
3661
3713
  /// <reference types="react" />
3662
- import { TagComparisonOption } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
3663
- import { DateRange } from '@layerfi/components/types';
3664
3714
  export const PNLComparisonContext: import("react").Context<{
3665
3715
  data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
3666
3716
  isLoading: boolean;
@@ -3670,9 +3720,9 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
3670
3720
  setCompareMode: (mode: boolean) => void;
3671
3721
  compareMonths: number;
3672
3722
  setCompareMonths: (months: number) => void;
3673
- compareOptions: TagComparisonOption[];
3674
- setCompareOptions: (options: TagComparisonOption[]) => void;
3675
- refetch: (dateRange: DateRange, actAsInitial?: boolean | undefined) => void;
3723
+ compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
3724
+ setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
3725
+ refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
3676
3726
  }>;
3677
3727
 
3678
3728
  }
@@ -3912,6 +3962,16 @@ declare module '@layerfi/components/hooks/useElementSize/useElementSize' {
3912
3962
  clientHeight: number;
3913
3963
  }) => void) => import("react").RefObject<T>;
3914
3964
 
3965
+ }
3966
+ declare module '@layerfi/components/hooks/useElementViewSize/index' {
3967
+ export { useElementViewSize } from '@layerfi/components/hooks/useElementViewSize/useElementViewSize';
3968
+
3969
+ }
3970
+ declare module '@layerfi/components/hooks/useElementViewSize/useElementViewSize' {
3971
+ /// <reference types="react" />
3972
+ import { View } from '@layerfi/components/types/general';
3973
+ export const useElementViewSize: <T extends HTMLElement>(callback: (view: View) => void) => import("react").RefObject<T>;
3974
+
3915
3975
  }
3916
3976
  declare module '@layerfi/components/hooks/useJournal/index' {
3917
3977
  export { useJournal } from '@layerfi/components/hooks/useJournal/useJournal';
@@ -4312,14 +4372,14 @@ declare module '@layerfi/components/icons/ChevronDownFill' {
4312
4372
  declare module '@layerfi/components/icons/ChevronLeft' {
4313
4373
  import * as React from 'react';
4314
4374
  import { IconSvgProps } from '@layerfi/components/icons/types';
4315
- const ChevronLeft: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4375
+ const ChevronLeft: ({ ...props }: IconSvgProps) => React.JSX.Element;
4316
4376
  export default ChevronLeft;
4317
4377
 
4318
4378
  }
4319
4379
  declare module '@layerfi/components/icons/ChevronRight' {
4320
4380
  import * as React from 'react';
4321
4381
  import { IconSvgProps } from '@layerfi/components/icons/types';
4322
- const ChevronRight: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4382
+ const ChevronRight: ({ ...props }: IconSvgProps) => React.JSX.Element;
4323
4383
  export default ChevronRight;
4324
4384
 
4325
4385
  }
@@ -4336,6 +4396,13 @@ declare module '@layerfi/components/icons/Coffee' {
4336
4396
  const CoffeeIcon: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4337
4397
  export default CoffeeIcon;
4338
4398
 
4399
+ }
4400
+ declare module '@layerfi/components/icons/Collapse' {
4401
+ import * as React from 'react';
4402
+ import { IconSvgProps } from '@layerfi/components/icons/types';
4403
+ const Collapse: ({ ...props }: IconSvgProps) => React.JSX.Element;
4404
+ export default Collapse;
4405
+
4339
4406
  }
4340
4407
  declare module '@layerfi/components/icons/CreditCard' {
4341
4408
  import * as React from 'react';
@@ -4357,6 +4424,13 @@ declare module '@layerfi/components/icons/Edit2' {
4357
4424
  const Edit2: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4358
4425
  export default Edit2;
4359
4426
 
4427
+ }
4428
+ declare module '@layerfi/components/icons/Expand' {
4429
+ import * as React from 'react';
4430
+ import { IconSvgProps } from '@layerfi/components/icons/types';
4431
+ const Expand: ({ ...props }: IconSvgProps) => React.JSX.Element;
4432
+ export default Expand;
4433
+
4360
4434
  }
4361
4435
  declare module '@layerfi/components/icons/Folder' {
4362
4436
  import * as React from 'react';
@@ -4419,6 +4493,13 @@ declare module '@layerfi/components/icons/PlaidIcon' {
4419
4493
  const PlaidIcon: () => React.JSX.Element;
4420
4494
  export default PlaidIcon;
4421
4495
 
4496
+ }
4497
+ declare module '@layerfi/components/icons/Plus' {
4498
+ import * as React from 'react';
4499
+ import { IconSvgProps } from '@layerfi/components/icons/types';
4500
+ const Plus: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
4501
+ export default Plus;
4502
+
4422
4503
  }
4423
4504
  declare module '@layerfi/components/icons/PlusIcon' {
4424
4505
  import * as React from 'react';
@@ -4926,6 +5007,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
4926
5007
  }
4927
5008
  declare module '@layerfi/components/types/general' {
4928
5009
  export type SortDirection = 'asc' | 'desc';
5010
+ export type View = 'mobile' | 'tablet' | 'desktop';
4929
5011
  export interface BaseSelectOption {
4930
5012
  label: string;
4931
5013
  value: string | number;
@@ -5392,7 +5474,7 @@ declare module '@layerfi/components/types/statement_of_cash_flow' {
5392
5474
 
5393
5475
  }
5394
5476
  declare module '@layerfi/components/types/table' {
5395
- import { ReactNode } from 'react';
5477
+ import { CSSProperties, ReactNode } from 'react';
5396
5478
  export interface TableContextProps {
5397
5479
  expandedRows: string[];
5398
5480
  setExpandedRows: (rowKey: string) => void;
@@ -5400,6 +5482,10 @@ declare module '@layerfi/components/types/table' {
5400
5482
  expandedAllRows: boolean;
5401
5483
  setExpandedAllRows: (expanded: boolean) => void;
5402
5484
  }
5485
+ export enum TableCellAlign {
5486
+ RIGHT = "right",
5487
+ LEFT = "left"
5488
+ }
5403
5489
  export interface TableProps {
5404
5490
  children: ReactNode | ReactNode[];
5405
5491
  componentName?: string;
@@ -5428,11 +5514,15 @@ declare module '@layerfi/components/types/table' {
5428
5514
  }
5429
5515
  export interface TableCellProps {
5430
5516
  children?: number | string | ReactNode;
5517
+ className?: string;
5431
5518
  isCurrency?: boolean;
5432
5519
  isHeaderCell?: boolean;
5520
+ align?: TableCellAlign;
5433
5521
  primary?: boolean;
5434
5522
  withExpandIcon?: boolean;
5435
5523
  fullWidth?: boolean;
5524
+ width?: string;
5525
+ style?: CSSProperties;
5436
5526
  colSpan?: number;
5437
5527
  onClick?: (e: React.MouseEvent<HTMLTableCellElement, MouseEvent>) => void;
5438
5528
  }
@@ -5467,7 +5557,7 @@ declare module '@layerfi/components/types' {
5467
5557
  export { LineItem } from '@layerfi/components/types/line_item';
5468
5558
  export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
5469
5559
  export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
5470
- export { Direction, BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
5560
+ export { Direction, BankTransaction, DisplayState, } from '@layerfi/components/types/bank_transactions';
5471
5561
  export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
5472
5562
  export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
5473
5563
  export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
@@ -5486,6 +5576,7 @@ declare module '@layerfi/components/types' {
5486
5576
  endDate: T;
5487
5577
  };
5488
5578
  export type ReportingBasis = 'CASH' | 'ACCRUAL';
5579
+ export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
5489
5580
 
5490
5581
  }
5491
5582
  declare module '@layerfi/components/utils/bankTransactions' {
@@ -5605,13 +5696,14 @@ declare module '@layerfi/components/views/AccountingOverview/AccountingOverview'
5605
5696
  }
5606
5697
  export interface AccountingOverviewProps {
5607
5698
  title?: string;
5699
+ showTitle?: boolean;
5608
5700
  enableOnboarding?: boolean;
5609
5701
  onTransactionsToReviewClick?: () => void;
5610
5702
  middleBanner?: ReactNode;
5611
5703
  chartColorsList?: string[];
5612
5704
  stringOverrides?: AccountingOverviewStringOverrides;
5613
5705
  }
5614
- export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, }: AccountingOverviewProps) => React.JSX.Element;
5706
+ export const AccountingOverview: ({ title, showTitle, enableOnboarding, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, }: AccountingOverviewProps) => React.JSX.Element;
5615
5707
  export {};
5616
5708
 
5617
5709
  }
@@ -5630,6 +5722,7 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
5630
5722
  }
5631
5723
  export interface BankTransactionsWithLinkedAccountsProps {
5632
5724
  title?: string;
5725
+ showTitle?: boolean;
5633
5726
  elevatedLinkedAccounts?: boolean;
5634
5727
  showLedgerBalance?: boolean;
5635
5728
  showUnlinkItem?: boolean;
@@ -5640,7 +5733,7 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
5640
5733
  mobileComponent?: MobileComponentType;
5641
5734
  stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
5642
5735
  }
5643
- export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5736
+ export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5644
5737
  export {};
5645
5738
 
5646
5739
  }
@@ -5685,9 +5778,10 @@ declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
5685
5778
  }
5686
5779
  export interface GeneralLedgerProps {
5687
5780
  title?: string;
5781
+ showTitle?: boolean;
5688
5782
  stringOverrides?: GeneralLedgerStringOverrides;
5689
5783
  }
5690
- export const GeneralLedgerView: ({ title, stringOverrides, }: GeneralLedgerProps) => React.JSX.Element;
5784
+ export const GeneralLedgerView: ({ title, showTitle, stringOverrides, }: GeneralLedgerProps) => React.JSX.Element;
5691
5785
 
5692
5786
  }
5693
5787
  declare module '@layerfi/components/views/GeneralLedger/index' {
@@ -5697,10 +5791,12 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
5697
5791
  declare module '@layerfi/components/views/Reports/Reports' {
5698
5792
  import React, { RefObject } from 'react';
5699
5793
  import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
5794
+ import { DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
5700
5795
  import { ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
5701
5796
  import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
5702
5797
  import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
5703
5798
  import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
5799
+ import { MoneyFormat } from '@layerfi/components/types';
5704
5800
  interface ReportsStringOverrides {
5705
5801
  title?: string;
5706
5802
  downloadButton?: DownloadButtonStringOverrides;
@@ -5713,9 +5809,17 @@ declare module '@layerfi/components/views/Reports/Reports' {
5713
5809
  }
5714
5810
  export interface ReportsProps {
5715
5811
  title?: string;
5812
+ showTitle?: boolean;
5716
5813
  stringOverrides?: ReportsStringOverrides;
5717
5814
  enabledReports?: ReportType[];
5718
5815
  comparisonConfig?: ProfitAndLossCompareOptionsProps;
5816
+ profitAndLossConfig?: {
5817
+ datePickerMode?: DateRangeDatePickerModes;
5818
+ csvMoneyFormat?: MoneyFormat;
5819
+ };
5820
+ statementOfCashFlowConfig?: {
5821
+ datePickerMode?: DateRangeDatePickerModes;
5822
+ };
5719
5823
  }
5720
5824
  type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
5721
5825
  export interface ReportsPanelProps {
@@ -5723,12 +5827,19 @@ declare module '@layerfi/components/views/Reports/Reports' {
5723
5827
  openReport: ReportType;
5724
5828
  stringOverrides?: ReportsStringOverrides;
5725
5829
  comparisonConfig?: ProfitAndLossCompareOptionsProps;
5830
+ profitAndLossConfig?: {
5831
+ datePickerMode?: DateRangeDatePickerModes;
5832
+ csvMoneyFormat?: MoneyFormat;
5833
+ };
5834
+ statementOfCashFlowConfig?: {
5835
+ datePickerMode?: DateRangeDatePickerModes;
5836
+ };
5726
5837
  }
5727
5838
  interface DownloadButtonStringOverrides {
5728
5839
  downloadButtonText?: string;
5729
5840
  retryButtonText?: string;
5730
5841
  }
5731
- export const Reports: ({ title, stringOverrides, enabledReports, comparisonConfig, }: ReportsProps) => React.JSX.Element;
5842
+ export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => React.JSX.Element;
5732
5843
  export {};
5733
5844
 
5734
5845
  }