@layerfi/components 0.1.31 → 0.1.33
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/README.md +122 -21
- package/dist/esm/index.js +7911 -7418
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +308 -60
- package/dist/index.js +10856 -10371
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +527 -183
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
- package/.idea/codeStyles/Project.xml +0 -61
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/layer-react.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -36,13 +36,17 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
|
|
|
36
36
|
}
|
|
37
37
|
declare module '@layerfi/components/api/layer/balance_sheet' {
|
|
38
38
|
import { BalanceSheet } from '@layerfi/components/types';
|
|
39
|
-
export
|
|
39
|
+
export const getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
40
|
+
params?: GetBalanceSheetParams | undefined;
|
|
41
|
+
} | undefined) => () => Promise<GetBalanceSheetReturn>;
|
|
42
|
+
export type GetBalanceSheetReturn = {
|
|
43
|
+
data?: BalanceSheet;
|
|
44
|
+
error?: unknown;
|
|
45
|
+
};
|
|
46
|
+
export interface GetBalanceSheetParams extends Record<string, string | undefined> {
|
|
40
47
|
businessId: string;
|
|
41
|
-
|
|
48
|
+
effectiveDate: string;
|
|
42
49
|
}
|
|
43
|
-
export const getBalanceSheet: (_token: string, _params: {
|
|
44
|
-
params: GetBalanceSheetParams;
|
|
45
|
-
}) => () => BalanceSheet;
|
|
46
50
|
|
|
47
51
|
}
|
|
48
52
|
declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
@@ -319,6 +323,22 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
319
323
|
error?: unknown;
|
|
320
324
|
}>;
|
|
321
325
|
|
|
326
|
+
}
|
|
327
|
+
declare module '@layerfi/components/api/layer/statement-of-cash-flow' {
|
|
328
|
+
import { StatementOfCashFlow } from '@layerfi/components/types';
|
|
329
|
+
export const getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
330
|
+
params?: GetStatementOfCashFlowParams | undefined;
|
|
331
|
+
} | undefined) => () => Promise<GetStatementOfCashFlowReturn>;
|
|
332
|
+
export type GetStatementOfCashFlowReturn = {
|
|
333
|
+
data?: StatementOfCashFlow;
|
|
334
|
+
error?: unknown;
|
|
335
|
+
};
|
|
336
|
+
export interface GetStatementOfCashFlowParams extends Record<string, string | undefined> {
|
|
337
|
+
businessId: string;
|
|
338
|
+
startDate: string;
|
|
339
|
+
endDate: string;
|
|
340
|
+
}
|
|
341
|
+
|
|
322
342
|
}
|
|
323
343
|
declare module '@layerfi/components/api/layer/tasks' {
|
|
324
344
|
import { TaskTypes } from '@layerfi/components/types/tasks';
|
|
@@ -383,9 +403,9 @@ declare module '@layerfi/components/api/layer' {
|
|
|
383
403
|
} | undefined) => Promise<{
|
|
384
404
|
data: import("@layerfi/components/types").Account;
|
|
385
405
|
}>;
|
|
386
|
-
getBalanceSheet: (
|
|
387
|
-
params
|
|
388
|
-
}) => () => import("@layerfi/components/
|
|
406
|
+
getBalanceSheet: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
407
|
+
params?: import("@layerfi/components/api/layer/balance_sheet").GetBalanceSheetParams | undefined;
|
|
408
|
+
} | undefined) => () => Promise<import("@layerfi/components/api/layer/balance_sheet").GetBalanceSheetReturn>;
|
|
389
409
|
getBankTransactions: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
390
410
|
params?: import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsParams | undefined;
|
|
391
411
|
} | undefined) => () => Promise<import("@layerfi/components/api/layer/bankTransactions").GetBankTransactionsReturn>;
|
|
@@ -575,6 +595,9 @@ declare module '@layerfi/components/api/layer' {
|
|
|
575
595
|
} | undefined;
|
|
576
596
|
body?: Record<string, unknown> | undefined;
|
|
577
597
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
598
|
+
getStatementOfCashFlow: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
599
|
+
params?: import("@layerfi/components/api/layer/statement-of-cash-flow").GetStatementOfCashFlowParams | undefined;
|
|
600
|
+
} | undefined) => () => Promise<import("@layerfi/components/api/layer/statement-of-cash-flow").GetStatementOfCashFlowReturn>;
|
|
578
601
|
};
|
|
579
602
|
|
|
580
603
|
}
|
|
@@ -666,8 +689,22 @@ declare module '@layerfi/components/components/BadgeLoader/index' {
|
|
|
666
689
|
|
|
667
690
|
}
|
|
668
691
|
declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
|
|
669
|
-
import React from 'react';
|
|
670
|
-
export
|
|
692
|
+
import React, { PropsWithChildren } from 'react';
|
|
693
|
+
export type BalanceSheetViewProps = PropsWithChildren & {
|
|
694
|
+
withExpandAllButton?: boolean;
|
|
695
|
+
};
|
|
696
|
+
export type BalanceSheetProps = PropsWithChildren & {
|
|
697
|
+
effectiveDate?: Date;
|
|
698
|
+
};
|
|
699
|
+
export const BalanceSheet: (props: BalanceSheetProps) => React.JSX.Element;
|
|
700
|
+
|
|
701
|
+
}
|
|
702
|
+
declare module '@layerfi/components/components/BalanceSheet/constants' {
|
|
703
|
+
export const BALANCE_SHEET_ROWS: {
|
|
704
|
+
name: string;
|
|
705
|
+
displayName: string;
|
|
706
|
+
lineItem: string;
|
|
707
|
+
}[];
|
|
671
708
|
|
|
672
709
|
}
|
|
673
710
|
declare module '@layerfi/components/components/BalanceSheet/index' {
|
|
@@ -676,17 +713,25 @@ declare module '@layerfi/components/components/BalanceSheet/index' {
|
|
|
676
713
|
}
|
|
677
714
|
declare module '@layerfi/components/components/BalanceSheetDatePicker/BalanceSheetDatePicker' {
|
|
678
715
|
import React from 'react';
|
|
679
|
-
type
|
|
680
|
-
|
|
681
|
-
|
|
716
|
+
export type BalanceSheetDatePickerProps = {
|
|
717
|
+
effectiveDate: Date;
|
|
718
|
+
setEffectiveDate: (date: Date) => void;
|
|
682
719
|
};
|
|
683
|
-
export const BalanceSheetDatePicker: ({
|
|
684
|
-
export {};
|
|
720
|
+
export const BalanceSheetDatePicker: ({ effectiveDate, setEffectiveDate, }: BalanceSheetDatePickerProps) => React.JSX.Element;
|
|
685
721
|
|
|
686
722
|
}
|
|
687
723
|
declare module '@layerfi/components/components/BalanceSheetDatePicker/index' {
|
|
688
724
|
export { BalanceSheetDatePicker } from '@layerfi/components/components/BalanceSheetDatePicker/BalanceSheetDatePicker';
|
|
689
725
|
|
|
726
|
+
}
|
|
727
|
+
declare module '@layerfi/components/components/BalanceSheetExpandAllButton/BalanceSheetExpandAllButton' {
|
|
728
|
+
import React from 'react';
|
|
729
|
+
export const BalanceSheetExpandAllButton: () => React.JSX.Element;
|
|
730
|
+
|
|
731
|
+
}
|
|
732
|
+
declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index' {
|
|
733
|
+
export { BalanceSheetExpandAllButton } from '@layerfi/components/components/BalanceSheetExpandAllButton/BalanceSheetExpandAllButton';
|
|
734
|
+
|
|
690
735
|
}
|
|
691
736
|
declare module '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow' {
|
|
692
737
|
import React from 'react';
|
|
@@ -697,14 +742,34 @@ declare module '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow'
|
|
|
697
742
|
lineItem?: LineItem | null;
|
|
698
743
|
variant?: string;
|
|
699
744
|
summarize?: boolean;
|
|
745
|
+
defaultExpanded?: boolean;
|
|
700
746
|
};
|
|
701
|
-
export const BalanceSheetRow: ({ lineItem, depth, maxDepth, variant, summarize, }: Props) => React.JSX.Element | null;
|
|
747
|
+
export const BalanceSheetRow: ({ lineItem, depth, maxDepth, variant, summarize, defaultExpanded, }: Props) => React.JSX.Element | null;
|
|
702
748
|
export {};
|
|
703
749
|
|
|
704
750
|
}
|
|
705
751
|
declare module '@layerfi/components/components/BalanceSheetRow/index' {
|
|
706
752
|
export { BalanceSheetRow } from '@layerfi/components/components/BalanceSheetRow/BalanceSheetRow';
|
|
707
753
|
|
|
754
|
+
}
|
|
755
|
+
declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
|
|
756
|
+
import React from 'react';
|
|
757
|
+
import { BalanceSheet } from '@layerfi/components/types';
|
|
758
|
+
type BalanceSheetRowProps = {
|
|
759
|
+
name: string;
|
|
760
|
+
displayName: string;
|
|
761
|
+
lineItem: string;
|
|
762
|
+
};
|
|
763
|
+
export const BalanceSheetTable: ({ data, config, }: {
|
|
764
|
+
data: BalanceSheet;
|
|
765
|
+
config: BalanceSheetRowProps[];
|
|
766
|
+
}) => React.JSX.Element;
|
|
767
|
+
export {};
|
|
768
|
+
|
|
769
|
+
}
|
|
770
|
+
declare module '@layerfi/components/components/BalanceSheetTable/index' {
|
|
771
|
+
export { BalanceSheetTable } from '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable';
|
|
772
|
+
|
|
708
773
|
}
|
|
709
774
|
declare module '@layerfi/components/components/BankTransactionList/Assignment' {
|
|
710
775
|
import React from 'react';
|
|
@@ -1354,6 +1419,23 @@ declare module '@layerfi/components/components/DataState/DataState' {
|
|
|
1354
1419
|
declare module '@layerfi/components/components/DataState/index' {
|
|
1355
1420
|
export { DataState, DataStateStatus } from '@layerfi/components/components/DataState/DataState';
|
|
1356
1421
|
|
|
1422
|
+
}
|
|
1423
|
+
declare module '@layerfi/components/components/DateDayPicker/DateDayPicker' {
|
|
1424
|
+
import React from 'react';
|
|
1425
|
+
interface DateDayPickerProps {
|
|
1426
|
+
dateDay: Date;
|
|
1427
|
+
changeDateDay: (dateDay: Date) => void;
|
|
1428
|
+
enableFutureDates?: boolean;
|
|
1429
|
+
currentDateOption?: boolean;
|
|
1430
|
+
minDate?: Date;
|
|
1431
|
+
}
|
|
1432
|
+
export const DateDayPicker: ({ dateDay, changeDateDay, minDate, enableFutureDates, currentDateOption, }: DateDayPickerProps) => React.JSX.Element;
|
|
1433
|
+
export {};
|
|
1434
|
+
|
|
1435
|
+
}
|
|
1436
|
+
declare module '@layerfi/components/components/DateDayPicker/index' {
|
|
1437
|
+
export { DateDayPicker } from '@layerfi/components/components/DateDayPicker/DateDayPicker';
|
|
1438
|
+
|
|
1357
1439
|
}
|
|
1358
1440
|
declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker' {
|
|
1359
1441
|
import React from 'react';
|
|
@@ -1364,8 +1446,9 @@ declare module '@layerfi/components/components/DateMonthPicker/DateMonthPicker'
|
|
|
1364
1446
|
enableFutureDates?: boolean;
|
|
1365
1447
|
minDate?: Date;
|
|
1366
1448
|
currentDateOption?: boolean;
|
|
1449
|
+
responsive?: boolean;
|
|
1367
1450
|
}
|
|
1368
|
-
export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, currentDateOption, }: DateMonthPickerProps) => React.JSX.Element;
|
|
1451
|
+
export const DateMonthPicker: ({ dateRange, changeDateRange, enableFutureDates, minDate, currentDateOption, responsive, }: DateMonthPickerProps) => React.JSX.Element;
|
|
1369
1452
|
export {};
|
|
1370
1453
|
|
|
1371
1454
|
}
|
|
@@ -1474,19 +1557,6 @@ declare module '@layerfi/components/components/GlobalWidgets/GlobalWidgets' {
|
|
|
1474
1557
|
declare module '@layerfi/components/components/GlobalWidgets/index' {
|
|
1475
1558
|
export { GlobalWidgets } from '@layerfi/components/components/GlobalWidgets/GlobalWidgets';
|
|
1476
1559
|
|
|
1477
|
-
}
|
|
1478
|
-
declare module '@layerfi/components/components/Hello/Hello' {
|
|
1479
|
-
import React from 'react';
|
|
1480
|
-
type Props = {
|
|
1481
|
-
user?: string | undefined;
|
|
1482
|
-
};
|
|
1483
|
-
export const Hello: ({ user }: Props) => React.JSX.Element;
|
|
1484
|
-
export {};
|
|
1485
|
-
|
|
1486
|
-
}
|
|
1487
|
-
declare module '@layerfi/components/components/Hello/index' {
|
|
1488
|
-
export { Hello } from '@layerfi/components/components/Hello/Hello';
|
|
1489
|
-
|
|
1490
1560
|
}
|
|
1491
1561
|
declare module '@layerfi/components/components/HoverMenu/HoverMenu' {
|
|
1492
1562
|
import React, { ReactNode } from 'react';
|
|
@@ -1506,7 +1576,6 @@ declare module '@layerfi/components/components/HoverMenu/index' {
|
|
|
1506
1576
|
}
|
|
1507
1577
|
declare module '@layerfi/components/components/Input/DateInput' {
|
|
1508
1578
|
import React from 'react';
|
|
1509
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
1510
1579
|
export const DateInput: ({ selected, onChange, ...props }: {
|
|
1511
1580
|
selected?: string | undefined;
|
|
1512
1581
|
onChange?: ((date: string) => void) | undefined;
|
|
@@ -1518,6 +1587,18 @@ declare module '@layerfi/components/components/Input/DateInput' {
|
|
|
1518
1587
|
showTimeSelectOnly?: boolean | undefined;
|
|
1519
1588
|
}) => React.JSX.Element;
|
|
1520
1589
|
|
|
1590
|
+
}
|
|
1591
|
+
declare module '@layerfi/components/components/Input/DateRangeInput' {
|
|
1592
|
+
import React from 'react';
|
|
1593
|
+
export const DateRangeInput: ({ selected, onChange, ...props }: {
|
|
1594
|
+
selected?: Date[] | undefined;
|
|
1595
|
+
onChange?: ((dates: [Date | null, Date | null]) => void) | undefined;
|
|
1596
|
+
dateFormat?: string | undefined;
|
|
1597
|
+
timeIntervals?: number | undefined;
|
|
1598
|
+
timeCaption?: string | undefined;
|
|
1599
|
+
placeholderText?: string | undefined;
|
|
1600
|
+
}) => React.JSX.Element;
|
|
1601
|
+
|
|
1521
1602
|
}
|
|
1522
1603
|
declare module '@layerfi/components/components/Input/FileInput' {
|
|
1523
1604
|
import React from 'react';
|
|
@@ -1588,6 +1669,7 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
1588
1669
|
export { Select } from '@layerfi/components/components/Input/Select';
|
|
1589
1670
|
export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
|
|
1590
1671
|
export { DateInput } from '@layerfi/components/components/Input/DateInput';
|
|
1672
|
+
export { DateRangeInput } from '@layerfi/components/components/Input/DateRangeInput';
|
|
1591
1673
|
|
|
1592
1674
|
}
|
|
1593
1675
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
@@ -1929,6 +2011,29 @@ declare module '@layerfi/components/components/Panel/Panel' {
|
|
|
1929
2011
|
declare module '@layerfi/components/components/Panel/index' {
|
|
1930
2012
|
export { Panel } from '@layerfi/components/components/Panel/Panel';
|
|
1931
2013
|
|
|
2014
|
+
}
|
|
2015
|
+
declare module '@layerfi/components/components/PanelView/PanelView' {
|
|
2016
|
+
import React, { ReactNode } from 'react';
|
|
2017
|
+
export interface PanelViewProps {
|
|
2018
|
+
children: ReactNode;
|
|
2019
|
+
title?: string;
|
|
2020
|
+
headerControls?: ReactNode;
|
|
2021
|
+
}
|
|
2022
|
+
export const PanelView: ({ title, children, headerControls, }: PanelViewProps) => React.JSX.Element;
|
|
2023
|
+
|
|
2024
|
+
}
|
|
2025
|
+
declare module '@layerfi/components/components/PanelView/index' {
|
|
2026
|
+
export { PanelView } from '@layerfi/components/components/PanelView/PanelView';
|
|
2027
|
+
|
|
2028
|
+
}
|
|
2029
|
+
declare module '@layerfi/components/components/PanelViewHeader/PanelViewHeader' {
|
|
2030
|
+
import React, { ReactNode } from 'react';
|
|
2031
|
+
export interface PanelViewHeaderProps {
|
|
2032
|
+
title?: string;
|
|
2033
|
+
controls?: ReactNode;
|
|
2034
|
+
}
|
|
2035
|
+
export const PanelViewHeader: ({ title, controls }: PanelViewHeaderProps) => React.JSX.Element;
|
|
2036
|
+
|
|
1932
2037
|
}
|
|
1933
2038
|
declare module '@layerfi/components/components/Pill/Pill' {
|
|
1934
2039
|
import React, { PropsWithChildren } from 'react';
|
|
@@ -2042,8 +2147,9 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
2042
2147
|
sidebarScope?: SidebarScope;
|
|
2043
2148
|
date: number | Date;
|
|
2044
2149
|
isLoading?: boolean;
|
|
2150
|
+
showDatePicker?: boolean;
|
|
2045
2151
|
}
|
|
2046
|
-
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, sidebarScope, date, isLoading, }: DetailedChartProps) => React.JSX.Element;
|
|
2152
|
+
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, sidebarScope, date, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
|
|
2047
2153
|
export {};
|
|
2048
2154
|
|
|
2049
2155
|
}
|
|
@@ -2172,17 +2278,6 @@ declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossVi
|
|
|
2172
2278
|
declare module '@layerfi/components/components/ProfitAndLossView/index' {
|
|
2173
2279
|
export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView';
|
|
2174
2280
|
|
|
2175
|
-
}
|
|
2176
|
-
declare module '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow' {
|
|
2177
|
-
import React, { PropsWithChildren } from 'react';
|
|
2178
|
-
type Props = PropsWithChildren;
|
|
2179
|
-
export const SkeletonBalanceSheetRow: ({ children }: Props) => React.JSX.Element;
|
|
2180
|
-
export {};
|
|
2181
|
-
|
|
2182
|
-
}
|
|
2183
|
-
declare module '@layerfi/components/components/SkeletonBalanceSheetRow/index' {
|
|
2184
|
-
export { SkeletonBalanceSheetRow } from '@layerfi/components/components/SkeletonBalanceSheetRow/SkeletonBalanceSheetRow';
|
|
2185
|
-
|
|
2186
2281
|
}
|
|
2187
2282
|
declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
|
|
2188
2283
|
import React from 'react';
|
|
@@ -2197,6 +2292,66 @@ declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
|
|
|
2197
2292
|
declare module '@layerfi/components/components/SkeletonLoader/index' {
|
|
2198
2293
|
export { SkeletonLoader } from '@layerfi/components/components/SkeletonLoader/SkeletonLoader';
|
|
2199
2294
|
|
|
2295
|
+
}
|
|
2296
|
+
declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
|
|
2297
|
+
import React from 'react';
|
|
2298
|
+
export const StatementOfCashFlow: () => React.JSX.Element;
|
|
2299
|
+
|
|
2300
|
+
}
|
|
2301
|
+
declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
|
|
2302
|
+
export const STATEMENT_OF_CASH_FLOW_ROWS: {
|
|
2303
|
+
name: string;
|
|
2304
|
+
displayName: string;
|
|
2305
|
+
lineItem: string;
|
|
2306
|
+
type: string;
|
|
2307
|
+
summarize: boolean;
|
|
2308
|
+
}[];
|
|
2309
|
+
export const ADJUSTMENTS_ROW_NAME = "Adjustments to Net Income";
|
|
2310
|
+
|
|
2311
|
+
}
|
|
2312
|
+
declare module '@layerfi/components/components/StatementOfCashFlow/index' {
|
|
2313
|
+
export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
|
|
2314
|
+
|
|
2315
|
+
}
|
|
2316
|
+
declare module '@layerfi/components/components/StatementOfCashFlowRow/StatementOfCashFlowRow' {
|
|
2317
|
+
import React from 'react';
|
|
2318
|
+
import { LineItem } from '@layerfi/components/types';
|
|
2319
|
+
type Props = {
|
|
2320
|
+
depth?: number;
|
|
2321
|
+
maxDepth?: number;
|
|
2322
|
+
lineItem?: LineItem | null;
|
|
2323
|
+
variant?: string;
|
|
2324
|
+
summarize?: boolean;
|
|
2325
|
+
defaultExpanded?: boolean;
|
|
2326
|
+
};
|
|
2327
|
+
export const StatementOfCashFlowRow: ({ lineItem, depth, maxDepth, variant, summarize, defaultExpanded, }: Props) => React.JSX.Element | null;
|
|
2328
|
+
export {};
|
|
2329
|
+
|
|
2330
|
+
}
|
|
2331
|
+
declare module '@layerfi/components/components/StatementOfCashFlowRow/index' {
|
|
2332
|
+
export { StatementOfCashFlowRow } from '@layerfi/components/components/StatementOfCashFlowRow/StatementOfCashFlowRow';
|
|
2333
|
+
|
|
2334
|
+
}
|
|
2335
|
+
declare module '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable' {
|
|
2336
|
+
import React from 'react';
|
|
2337
|
+
import { StatementOfCashFlow } from '@layerfi/components/types';
|
|
2338
|
+
type StatementOfCashFlowRowProps = {
|
|
2339
|
+
name: string;
|
|
2340
|
+
displayName: string;
|
|
2341
|
+
lineItem: string | undefined;
|
|
2342
|
+
summarize: boolean;
|
|
2343
|
+
type: string;
|
|
2344
|
+
};
|
|
2345
|
+
export const StatementOfCashFlowTable: ({ data, config, }: {
|
|
2346
|
+
data: StatementOfCashFlow;
|
|
2347
|
+
config: StatementOfCashFlowRowProps[];
|
|
2348
|
+
}) => React.JSX.Element;
|
|
2349
|
+
export {};
|
|
2350
|
+
|
|
2351
|
+
}
|
|
2352
|
+
declare module '@layerfi/components/components/StatementOfCashFlowTable/index' {
|
|
2353
|
+
export { StatementOfCashFlowTable } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
2354
|
+
|
|
2200
2355
|
}
|
|
2201
2356
|
declare module '@layerfi/components/components/Tabs/Tab' {
|
|
2202
2357
|
import React, { ChangeEvent, ReactNode } from 'react';
|
|
@@ -2396,13 +2551,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
2396
2551
|
floating: HTMLElement | null;
|
|
2397
2552
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
2398
2553
|
context: {
|
|
2554
|
+
update: () => void;
|
|
2399
2555
|
x: number;
|
|
2400
2556
|
y: number;
|
|
2401
2557
|
placement: import("@floating-ui/utils").Placement;
|
|
2402
2558
|
strategy: import("@floating-ui/utils").Strategy;
|
|
2403
2559
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
2404
2560
|
isPositioned: boolean;
|
|
2405
|
-
update: () => void;
|
|
2406
2561
|
floatingStyles: React.CSSProperties;
|
|
2407
2562
|
open: boolean;
|
|
2408
2563
|
onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
|
|
@@ -2445,13 +2600,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
2445
2600
|
floating: HTMLElement | null;
|
|
2446
2601
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
2447
2602
|
context: {
|
|
2603
|
+
update: () => void;
|
|
2448
2604
|
x: number;
|
|
2449
2605
|
y: number;
|
|
2450
2606
|
placement: import("@floating-ui/utils").Placement;
|
|
2451
2607
|
strategy: import("@floating-ui/utils").Strategy;
|
|
2452
2608
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
2453
2609
|
isPositioned: boolean;
|
|
2454
|
-
update: () => void;
|
|
2455
2610
|
floatingStyles: React.CSSProperties;
|
|
2456
2611
|
open: boolean;
|
|
2457
2612
|
onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
|
|
@@ -2654,6 +2809,22 @@ declare module '@layerfi/components/config/theme' {
|
|
|
2654
2809
|
};
|
|
2655
2810
|
};
|
|
2656
2811
|
|
|
2812
|
+
}
|
|
2813
|
+
declare module '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext' {
|
|
2814
|
+
/// <reference types="react" />
|
|
2815
|
+
import { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/index';
|
|
2816
|
+
export type BalanceSheetContextType = ReturnType<typeof useBalanceSheet>;
|
|
2817
|
+
export const BalanceSheetContext: import("react").Context<{
|
|
2818
|
+
data: import("@layerfi/components/types").BalanceSheet | undefined;
|
|
2819
|
+
isLoading: boolean;
|
|
2820
|
+
error: unknown;
|
|
2821
|
+
refetch: () => void;
|
|
2822
|
+
}>;
|
|
2823
|
+
|
|
2824
|
+
}
|
|
2825
|
+
declare module '@layerfi/components/contexts/BalanceSheetContext/index' {
|
|
2826
|
+
export { BalanceSheetContext } from '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext';
|
|
2827
|
+
|
|
2657
2828
|
}
|
|
2658
2829
|
declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
|
|
2659
2830
|
/// <reference types="react" />
|
|
@@ -2852,6 +3023,40 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccount
|
|
|
2852
3023
|
declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
|
|
2853
3024
|
export { LinkedAccountsContext } from '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext';
|
|
2854
3025
|
|
|
3026
|
+
}
|
|
3027
|
+
declare module '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext' {
|
|
3028
|
+
/// <reference types="react" />
|
|
3029
|
+
import { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/index';
|
|
3030
|
+
export type StatementOfCashFlowContextType = ReturnType<typeof useStatementOfCashFlow>;
|
|
3031
|
+
export const StatementOfCashFlowContext: import("react").Context<{
|
|
3032
|
+
data: import("@layerfi/components/types").StatementOfCashFlow | undefined;
|
|
3033
|
+
isLoading: boolean;
|
|
3034
|
+
error: unknown;
|
|
3035
|
+
refetch: () => void;
|
|
3036
|
+
}>;
|
|
3037
|
+
|
|
3038
|
+
}
|
|
3039
|
+
declare module '@layerfi/components/contexts/StatementOfCashContext/index' {
|
|
3040
|
+
export { StatementOfCashFlowContext } from '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext';
|
|
3041
|
+
|
|
3042
|
+
}
|
|
3043
|
+
declare module '@layerfi/components/contexts/TableExpandContext/TableExpandContext' {
|
|
3044
|
+
import React, { ReactNode } from 'react';
|
|
3045
|
+
interface TableExpandContextType {
|
|
3046
|
+
tableExpandState: boolean;
|
|
3047
|
+
toggleTableExpandState: () => void;
|
|
3048
|
+
}
|
|
3049
|
+
export const TableExpandContext: React.Context<TableExpandContextType>;
|
|
3050
|
+
interface TableExpandProviderProps {
|
|
3051
|
+
children: ReactNode;
|
|
3052
|
+
}
|
|
3053
|
+
export const TableExpandProvider: React.FC<TableExpandProviderProps>;
|
|
3054
|
+
export {};
|
|
3055
|
+
|
|
3056
|
+
}
|
|
3057
|
+
declare module '@layerfi/components/contexts/TableExpandContext/index' {
|
|
3058
|
+
export { TableExpandContext, TableExpandProvider } from '@layerfi/components/contexts/TableExpandContext/TableExpandContext';
|
|
3059
|
+
|
|
2855
3060
|
}
|
|
2856
3061
|
declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
2857
3062
|
/// <reference types="react" />
|
|
@@ -2881,6 +3086,7 @@ declare module '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet' {
|
|
|
2881
3086
|
data: BalanceSheet | undefined;
|
|
2882
3087
|
isLoading: boolean;
|
|
2883
3088
|
error: unknown;
|
|
3089
|
+
refetch: () => void;
|
|
2884
3090
|
};
|
|
2885
3091
|
export const useBalanceSheet: UseBalanceSheet;
|
|
2886
3092
|
export {};
|
|
@@ -3250,6 +3456,36 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossQuery
|
|
|
3250
3456
|
export const useProfitAndLossQuery: UseProfitAndLossQueryReturn;
|
|
3251
3457
|
export {};
|
|
3252
3458
|
|
|
3459
|
+
}
|
|
3460
|
+
declare module '@layerfi/components/hooks/useStatementOfCashFlow/index' {
|
|
3461
|
+
export { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow';
|
|
3462
|
+
|
|
3463
|
+
}
|
|
3464
|
+
declare module '@layerfi/components/hooks/useStatementOfCashFlow/useStatementOfCashFlow' {
|
|
3465
|
+
import { StatementOfCashFlow } from '@layerfi/components/types';
|
|
3466
|
+
type UseStatementOfCashFlow = (startDate?: Date, endDate?: Date) => {
|
|
3467
|
+
data: StatementOfCashFlow | undefined;
|
|
3468
|
+
isLoading: boolean;
|
|
3469
|
+
error: unknown;
|
|
3470
|
+
refetch: () => void;
|
|
3471
|
+
};
|
|
3472
|
+
export const useStatementOfCashFlow: UseStatementOfCashFlow;
|
|
3473
|
+
export {};
|
|
3474
|
+
|
|
3475
|
+
}
|
|
3476
|
+
declare module '@layerfi/components/hooks/useTableExpandRow/index' {
|
|
3477
|
+
export { useTableExpandRow } from '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow';
|
|
3478
|
+
|
|
3479
|
+
}
|
|
3480
|
+
declare module '@layerfi/components/hooks/useTableExpandRow/useTableExpandRow' {
|
|
3481
|
+
/// <reference types="react" />
|
|
3482
|
+
export const useTableExpandRow: (index: number, defaultOpen?: boolean) => {
|
|
3483
|
+
isOpen: boolean;
|
|
3484
|
+
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
3485
|
+
showComponent: boolean;
|
|
3486
|
+
INDENTATION: number;
|
|
3487
|
+
};
|
|
3488
|
+
|
|
3253
3489
|
}
|
|
3254
3490
|
declare module '@layerfi/components/hooks/useTasks/index' {
|
|
3255
3491
|
export { useTasks } from '@layerfi/components/hooks/useTasks/useTasks';
|
|
@@ -3313,13 +3549,6 @@ declare module '@layerfi/components/icons/Bell' {
|
|
|
3313
3549
|
const Bell: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
|
|
3314
3550
|
export default Bell;
|
|
3315
3551
|
|
|
3316
|
-
}
|
|
3317
|
-
declare module '@layerfi/components/icons/Calendar' {
|
|
3318
|
-
import * as React from 'react';
|
|
3319
|
-
import { SVGProps } from 'react';
|
|
3320
|
-
const Calendar: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
3321
|
-
export default Calendar;
|
|
3322
|
-
|
|
3323
3552
|
}
|
|
3324
3553
|
declare module '@layerfi/components/icons/Check' {
|
|
3325
3554
|
import * as React from 'react';
|
|
@@ -3546,20 +3775,20 @@ declare module '@layerfi/components/icons/types' {
|
|
|
3546
3775
|
}
|
|
3547
3776
|
declare module '@layerfi/components/index' {
|
|
3548
3777
|
export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
|
|
3549
|
-
export {
|
|
3550
|
-
export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
|
|
3551
|
-
export { Hello } from '@layerfi/components/components/Hello/index';
|
|
3778
|
+
export { Onboarding } from '@layerfi/components/components/Onboarding/index';
|
|
3552
3779
|
export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
|
|
3780
|
+
export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
|
|
3553
3781
|
export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
|
|
3554
|
-
export {
|
|
3782
|
+
export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
|
|
3783
|
+
export { StatementOfCashFlow } from '@layerfi/components/components/StatementOfCashFlow/index';
|
|
3555
3784
|
export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
|
|
3556
3785
|
export { Journal } from '@layerfi/components/components/Journal/index';
|
|
3557
|
-
export { Onboarding } from '@layerfi/components/components/Onboarding/index';
|
|
3558
3786
|
export { Tasks } from '@layerfi/components/components/Tasks/index';
|
|
3559
3787
|
export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/index';
|
|
3560
3788
|
export { BankTransactionsWithLinkedAccounts } from '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index';
|
|
3561
|
-
export { Reports } from '@layerfi/components/views/Reports/index';
|
|
3562
3789
|
export { GeneralLedgerView } from '@layerfi/components/views/GeneralLedger/index';
|
|
3790
|
+
export { Reports } from '@layerfi/components/views/Reports/index';
|
|
3791
|
+
export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
|
|
3563
3792
|
export { useLayerContext } from '@layerfi/components/contexts/LayerContext/index';
|
|
3564
3793
|
export { useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/index';
|
|
3565
3794
|
|
|
@@ -3671,8 +3900,8 @@ declare module '@layerfi/components/types/balance_sheet' {
|
|
|
3671
3900
|
type: 'Balance_Sheet';
|
|
3672
3901
|
start_date: string;
|
|
3673
3902
|
end_date: string;
|
|
3674
|
-
assets: LineItem
|
|
3675
|
-
liabilities_and_equity: LineItem
|
|
3903
|
+
assets: LineItem;
|
|
3904
|
+
liabilities_and_equity: LineItem;
|
|
3676
3905
|
fully_categorized: boolean;
|
|
3677
3906
|
}
|
|
3678
3907
|
|
|
@@ -4291,6 +4520,21 @@ declare module '@layerfi/components/types/profit_and_loss' {
|
|
|
4291
4520
|
months: ProfitAndLossSummary[];
|
|
4292
4521
|
}
|
|
4293
4522
|
|
|
4523
|
+
}
|
|
4524
|
+
declare module '@layerfi/components/types/statement_of_cash_flow' {
|
|
4525
|
+
import { LineItem } from '@layerfi/components/types/line_item';
|
|
4526
|
+
export interface StatementOfCashFlow {
|
|
4527
|
+
business_id: string;
|
|
4528
|
+
type: 'Cashflow_Statement';
|
|
4529
|
+
start_date: string;
|
|
4530
|
+
end_date: string;
|
|
4531
|
+
financing_activities: LineItem;
|
|
4532
|
+
investing_activities: LineItem;
|
|
4533
|
+
operating_activities: LineItem;
|
|
4534
|
+
period_net_cash_increase: number;
|
|
4535
|
+
cash_at_end_of_period: number;
|
|
4536
|
+
}
|
|
4537
|
+
|
|
4294
4538
|
}
|
|
4295
4539
|
declare module '@layerfi/components/types/tasks' {
|
|
4296
4540
|
export interface TaskTypes {
|
|
@@ -4319,6 +4563,7 @@ declare module '@layerfi/components/types' {
|
|
|
4319
4563
|
export { ProfitAndLoss } from '@layerfi/components/types/profit_and_loss';
|
|
4320
4564
|
export { LineItem } from '@layerfi/components/types/line_item';
|
|
4321
4565
|
export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
|
|
4566
|
+
export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
|
|
4322
4567
|
export { Direction, BankTransaction } from '@layerfi/components/types/bank_transactions';
|
|
4323
4568
|
export { CategorizationStatus, CategorizationScope, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
|
|
4324
4569
|
export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
|
|
@@ -4482,10 +4727,13 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
4482
4727
|
export interface ReportsProps {
|
|
4483
4728
|
title?: string;
|
|
4484
4729
|
}
|
|
4730
|
+
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
4485
4731
|
export interface ReportsPanelProps {
|
|
4486
4732
|
containerRef: RefObject<HTMLDivElement>;
|
|
4733
|
+
openReport: ReportType;
|
|
4487
4734
|
}
|
|
4488
4735
|
export const Reports: ({ title }: ReportsProps) => React.JSX.Element;
|
|
4736
|
+
export {};
|
|
4489
4737
|
|
|
4490
4738
|
}
|
|
4491
4739
|
declare module '@layerfi/components/views/Reports/index' {
|