@layerfi/components 0.1.57 → 0.1.58
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/esm/index.js +1519 -1414
- package/dist/esm/index.js.map +3 -3
- package/dist/index.d.ts +48 -23
- package/dist/index.js +492 -387
- package/dist/index.js.map +3 -3
- package/dist/styles/index.css +5 -0
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
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
|
|
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:
|
|
361
|
+
type: 'Quickbooks_Authorization_Params';
|
|
362
362
|
redirect_url: string;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1507,7 +1507,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
|
|
|
1507
1507
|
subTypeLabel?: string;
|
|
1508
1508
|
normalityLabel?: string;
|
|
1509
1509
|
}
|
|
1510
|
-
export const ChartOfAccountsForm: ({ stringOverrides }: {
|
|
1510
|
+
export const ChartOfAccountsForm: ({ stringOverrides, }: {
|
|
1511
1511
|
stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
|
|
1512
1512
|
}) => React.JSX.Element | undefined;
|
|
1513
1513
|
|
|
@@ -1564,7 +1564,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
1564
1564
|
cumulativeIndex: number;
|
|
1565
1565
|
accountsLength: number;
|
|
1566
1566
|
}) => React.JSX.Element;
|
|
1567
|
-
export const ChartOfAccountsTableContent: ({
|
|
1567
|
+
export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, }: {
|
|
1568
1568
|
view: View;
|
|
1569
1569
|
data: ChartWithBalances;
|
|
1570
1570
|
stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
|
|
@@ -1662,8 +1662,10 @@ declare module '@layerfi/components/components/DataState/index' {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
1664
1664
|
import React from 'react';
|
|
1665
|
+
export type DatePickerMode = 'dayPicker' | 'monthRangePicker' | 'timePicker' | DateRangeDatePickerModes;
|
|
1666
|
+
export type DateRangeDatePickerModes = 'dayRangePicker' | 'monthPicker';
|
|
1665
1667
|
interface DatePickerProps {
|
|
1666
|
-
mode:
|
|
1668
|
+
mode: DatePickerMode;
|
|
1667
1669
|
selected: Date | [Date | null, Date | null];
|
|
1668
1670
|
onChange: (date: Date | [Date, Date | null]) => void;
|
|
1669
1671
|
dateFormat?: string;
|
|
@@ -1991,7 +1993,7 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
|
|
|
1991
1993
|
retryButton?: string;
|
|
1992
1994
|
saveButton?: string;
|
|
1993
1995
|
}
|
|
1994
|
-
export const JournalForm: ({ config, stringOverrides }: {
|
|
1996
|
+
export const JournalForm: ({ config, stringOverrides, }: {
|
|
1995
1997
|
config: JournalConfig;
|
|
1996
1998
|
stringOverrides?: JournalFormStringOverrides | undefined;
|
|
1997
1999
|
}) => React.JSX.Element;
|
|
@@ -2432,7 +2434,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2432
2434
|
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
2433
2435
|
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
|
|
2434
2436
|
}>;
|
|
2435
|
-
DatePicker: () => React.JSX.Element;
|
|
2437
|
+
DatePicker: ({ datePickerMode, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2436
2438
|
CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
|
|
2437
2439
|
Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
|
|
2438
2440
|
vertical?: boolean | undefined;
|
|
@@ -2517,7 +2519,11 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index
|
|
|
2517
2519
|
}
|
|
2518
2520
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
|
|
2519
2521
|
import React from 'react';
|
|
2520
|
-
|
|
2522
|
+
import { DatePickerMode } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
2523
|
+
export type ProfitAndLossDatePickerProps = {
|
|
2524
|
+
datePickerMode?: DatePickerMode;
|
|
2525
|
+
};
|
|
2526
|
+
export const ProfitAndLossDatePicker: ({ datePickerMode, }: ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2521
2527
|
|
|
2522
2528
|
}
|
|
2523
2529
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/index' {
|
|
@@ -2539,7 +2545,7 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
2539
2545
|
showDatePicker?: boolean;
|
|
2540
2546
|
chartColorsList?: string[];
|
|
2541
2547
|
}
|
|
2542
|
-
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem,
|
|
2548
|
+
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, chartColorsList, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
|
|
2543
2549
|
export {};
|
|
2544
2550
|
|
|
2545
2551
|
}
|
|
@@ -2717,7 +2723,7 @@ declare module '@layerfi/components/components/ProfitAndLossView/index' {
|
|
|
2717
2723
|
|
|
2718
2724
|
}
|
|
2719
2725
|
declare module '@layerfi/components/components/Quickbooks/Quickbooks' {
|
|
2720
|
-
import React from
|
|
2726
|
+
import React from 'react';
|
|
2721
2727
|
const Quickbooks: () => React.JSX.Element;
|
|
2722
2728
|
export { Quickbooks };
|
|
2723
2729
|
|
|
@@ -2763,13 +2769,17 @@ declare module '@layerfi/components/components/SkeletonTableLoader/index' {
|
|
|
2763
2769
|
}
|
|
2764
2770
|
declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
|
|
2765
2771
|
import React from 'react';
|
|
2772
|
+
import { DatePickerMode, DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
2766
2773
|
import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
2767
2774
|
export interface StatementOfCashFlowStringOverrides {
|
|
2768
2775
|
statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
|
|
2776
|
+
datePickerMode?: DatePickerMode;
|
|
2769
2777
|
}
|
|
2770
|
-
export
|
|
2771
|
-
stringOverrides?: StatementOfCashFlowStringOverrides
|
|
2772
|
-
|
|
2778
|
+
export interface StatementOfCashFlowProps {
|
|
2779
|
+
stringOverrides?: StatementOfCashFlowStringOverrides;
|
|
2780
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
2781
|
+
}
|
|
2782
|
+
export const StatementOfCashFlow: ({ stringOverrides, datePickerMode, }: StatementOfCashFlowProps) => React.JSX.Element;
|
|
2773
2783
|
|
|
2774
2784
|
}
|
|
2775
2785
|
declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
|
|
@@ -3501,7 +3511,7 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
|
|
|
3501
3511
|
|
|
3502
3512
|
}
|
|
3503
3513
|
declare module '@layerfi/components/contexts/BankTransactionsContext/index' {
|
|
3504
|
-
export { BankTransactionsContext, useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
|
|
3514
|
+
export { BankTransactionsContext, useBankTransactionsContext, } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
|
|
3505
3515
|
|
|
3506
3516
|
}
|
|
3507
3517
|
declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
|
|
@@ -3659,8 +3669,6 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
|
|
|
3659
3669
|
}
|
|
3660
3670
|
declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
|
|
3661
3671
|
/// <reference types="react" />
|
|
3662
|
-
import { TagComparisonOption } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
3663
|
-
import { DateRange } from '@layerfi/components/types';
|
|
3664
3672
|
export const PNLComparisonContext: import("react").Context<{
|
|
3665
3673
|
data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
|
|
3666
3674
|
isLoading: boolean;
|
|
@@ -3670,9 +3678,9 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
|
|
|
3670
3678
|
setCompareMode: (mode: boolean) => void;
|
|
3671
3679
|
compareMonths: number;
|
|
3672
3680
|
setCompareMonths: (months: number) => void;
|
|
3673
|
-
compareOptions: TagComparisonOption[];
|
|
3674
|
-
setCompareOptions: (options: TagComparisonOption[]) => void;
|
|
3675
|
-
refetch: (dateRange: DateRange, actAsInitial?: boolean | undefined) => void;
|
|
3681
|
+
compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
|
|
3682
|
+
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
3683
|
+
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
|
|
3676
3684
|
}>;
|
|
3677
3685
|
|
|
3678
3686
|
}
|
|
@@ -4312,14 +4320,14 @@ declare module '@layerfi/components/icons/ChevronDownFill' {
|
|
|
4312
4320
|
declare module '@layerfi/components/icons/ChevronLeft' {
|
|
4313
4321
|
import * as React from 'react';
|
|
4314
4322
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
4315
|
-
const ChevronLeft: ({
|
|
4323
|
+
const ChevronLeft: ({ ...props }: IconSvgProps) => React.JSX.Element;
|
|
4316
4324
|
export default ChevronLeft;
|
|
4317
4325
|
|
|
4318
4326
|
}
|
|
4319
4327
|
declare module '@layerfi/components/icons/ChevronRight' {
|
|
4320
4328
|
import * as React from 'react';
|
|
4321
4329
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
4322
|
-
const ChevronRight: ({
|
|
4330
|
+
const ChevronRight: ({ ...props }: IconSvgProps) => React.JSX.Element;
|
|
4323
4331
|
export default ChevronRight;
|
|
4324
4332
|
|
|
4325
4333
|
}
|
|
@@ -5467,7 +5475,7 @@ declare module '@layerfi/components/types' {
|
|
|
5467
5475
|
export { LineItem } from '@layerfi/components/types/line_item';
|
|
5468
5476
|
export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
|
|
5469
5477
|
export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
|
|
5470
|
-
export { Direction, BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
|
|
5478
|
+
export { Direction, BankTransaction, DisplayState, } from '@layerfi/components/types/bank_transactions';
|
|
5471
5479
|
export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
|
|
5472
5480
|
export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
|
|
5473
5481
|
export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
|
|
@@ -5486,6 +5494,7 @@ declare module '@layerfi/components/types' {
|
|
|
5486
5494
|
endDate: T;
|
|
5487
5495
|
};
|
|
5488
5496
|
export type ReportingBasis = 'CASH' | 'ACCRUAL';
|
|
5497
|
+
export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
|
|
5489
5498
|
|
|
5490
5499
|
}
|
|
5491
5500
|
declare module '@layerfi/components/utils/bankTransactions' {
|
|
@@ -5697,10 +5706,12 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
|
|
|
5697
5706
|
declare module '@layerfi/components/views/Reports/Reports' {
|
|
5698
5707
|
import React, { RefObject } from 'react';
|
|
5699
5708
|
import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
|
|
5709
|
+
import { DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
5700
5710
|
import { ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
5701
5711
|
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
5702
5712
|
import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
|
|
5703
5713
|
import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
|
|
5714
|
+
import { MoneyFormat } from '@layerfi/components/types';
|
|
5704
5715
|
interface ReportsStringOverrides {
|
|
5705
5716
|
title?: string;
|
|
5706
5717
|
downloadButton?: DownloadButtonStringOverrides;
|
|
@@ -5716,6 +5727,13 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
5716
5727
|
stringOverrides?: ReportsStringOverrides;
|
|
5717
5728
|
enabledReports?: ReportType[];
|
|
5718
5729
|
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5730
|
+
profitAndLossConfig?: {
|
|
5731
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5732
|
+
csvMoneyFormat?: MoneyFormat;
|
|
5733
|
+
};
|
|
5734
|
+
statementOfCashFlowConfig?: {
|
|
5735
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5736
|
+
};
|
|
5719
5737
|
}
|
|
5720
5738
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
5721
5739
|
export interface ReportsPanelProps {
|
|
@@ -5723,12 +5741,19 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
5723
5741
|
openReport: ReportType;
|
|
5724
5742
|
stringOverrides?: ReportsStringOverrides;
|
|
5725
5743
|
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5744
|
+
profitAndLossConfig?: {
|
|
5745
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5746
|
+
csvMoneyFormat?: MoneyFormat;
|
|
5747
|
+
};
|
|
5748
|
+
statementOfCashFlowConfig?: {
|
|
5749
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5750
|
+
};
|
|
5726
5751
|
}
|
|
5727
5752
|
interface DownloadButtonStringOverrides {
|
|
5728
5753
|
downloadButtonText?: string;
|
|
5729
5754
|
retryButtonText?: string;
|
|
5730
5755
|
}
|
|
5731
|
-
export const Reports: ({ title, stringOverrides, enabledReports, comparisonConfig, }: ReportsProps) => React.JSX.Element;
|
|
5756
|
+
export const Reports: ({ title, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => React.JSX.Element;
|
|
5732
5757
|
export {};
|
|
5733
5758
|
|
|
5734
5759
|
}
|