@layerfi/components 0.1.75 → 0.1.77
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/.eslintrc.js +21 -12
- package/README.md +5 -17
- package/dist/esm/index.js +922 -778
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +206 -97
- package/dist/index.js +1013 -869
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +147 -179
- package/dist/styles/index.css.map +3 -3
- package/package.json +5 -7
- 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/.prettierrc.json +0 -21
package/dist/index.d.ts
CHANGED
|
@@ -1061,7 +1061,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
|
|
|
1061
1061
|
selectedId?: string;
|
|
1062
1062
|
showTooltips: boolean;
|
|
1063
1063
|
}
|
|
1064
|
-
export const BusinessCategories: ({ select, selectedId, showTooltips }: BusinessCategoriesProps) => React.JSX.Element;
|
|
1064
|
+
export const BusinessCategories: ({ select, selectedId, showTooltips, }: BusinessCategoriesProps) => React.JSX.Element;
|
|
1065
1065
|
|
|
1066
1066
|
}
|
|
1067
1067
|
declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
|
|
@@ -1094,9 +1094,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
|
|
|
1094
1094
|
bankTransaction: BankTransaction;
|
|
1095
1095
|
showReceiptUploads?: boolean;
|
|
1096
1096
|
showDescriptions?: boolean;
|
|
1097
|
-
isOpen?: boolean;
|
|
1098
1097
|
}
|
|
1099
|
-
export const PersonalForm: ({ bankTransaction, showReceiptUploads,
|
|
1098
|
+
export const PersonalForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: PersonalFormProps) => React.JSX.Element;
|
|
1100
1099
|
export {};
|
|
1101
1100
|
|
|
1102
1101
|
}
|
|
@@ -1108,9 +1107,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
|
|
|
1108
1107
|
showTooltips: boolean;
|
|
1109
1108
|
showReceiptUploads?: boolean;
|
|
1110
1109
|
showDescriptions?: boolean;
|
|
1111
|
-
isOpen?: boolean;
|
|
1112
1110
|
}
|
|
1113
|
-
export const SplitAndMatchForm: ({ bankTransaction, showTooltips, showReceiptUploads,
|
|
1111
|
+
export const SplitAndMatchForm: ({ bankTransaction, showTooltips, showReceiptUploads, showDescriptions, }: SplitAndMatchFormProps) => React.JSX.Element;
|
|
1114
1112
|
export {};
|
|
1115
1113
|
|
|
1116
1114
|
}
|
|
@@ -1228,8 +1226,10 @@ declare module '@layerfi/components/components/BankTransactionReceipts/BankTrans
|
|
|
1228
1226
|
export interface BankTransactionReceiptsHandle {
|
|
1229
1227
|
uploadReceipt: (file: File) => void;
|
|
1230
1228
|
}
|
|
1231
|
-
|
|
1232
|
-
export
|
|
1229
|
+
const BankTransactionReceiptsWithProvider: React.ForwardRefExoticComponent<BankTransactionReceiptsWithProviderProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
|
|
1230
|
+
export { BankTransactionReceiptsWithProvider };
|
|
1231
|
+
const BankTransactionReceipts: React.ForwardRefExoticComponent<BankTransactionReceiptsProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
|
|
1232
|
+
export { BankTransactionReceipts };
|
|
1233
1233
|
|
|
1234
1234
|
}
|
|
1235
1235
|
declare module '@layerfi/components/components/BankTransactionReceipts/index' {
|
|
@@ -1250,6 +1250,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
1250
1250
|
initialLoad?: boolean;
|
|
1251
1251
|
showDescriptions: boolean;
|
|
1252
1252
|
showReceiptUploads: boolean;
|
|
1253
|
+
showReceiptUploadColumn: boolean;
|
|
1253
1254
|
showTooltips: boolean;
|
|
1254
1255
|
mode: BankTransactionsMode;
|
|
1255
1256
|
stringOverrides?: BankTransactionCTAStringOverrides;
|
|
@@ -1257,7 +1258,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
1257
1258
|
export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
|
|
1258
1259
|
export const extractDescriptionForSplit: (category: Category) => string;
|
|
1259
1260
|
export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
|
|
1260
|
-
export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, }: Props) => React.JSX.Element;
|
|
1261
|
+
export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, showReceiptUploadColumn, showTooltips, stringOverrides, }: Props) => React.JSX.Element;
|
|
1261
1262
|
export {};
|
|
1262
1263
|
|
|
1263
1264
|
}
|
|
@@ -1434,10 +1435,11 @@ declare module '@layerfi/components/components/BankTransactionsTable/index' {
|
|
|
1434
1435
|
}
|
|
1435
1436
|
declare module '@layerfi/components/components/Button/BackButton' {
|
|
1436
1437
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
1437
|
-
|
|
1438
|
+
type BackButtonProps = {
|
|
1438
1439
|
textOnly?: boolean;
|
|
1439
|
-
}
|
|
1440
|
-
export const BackButton: ({ className,
|
|
1440
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
1441
|
+
export const BackButton: ({ className, textOnly, ...props }: BackButtonProps) => React.JSX.Element;
|
|
1442
|
+
export {};
|
|
1441
1443
|
|
|
1442
1444
|
}
|
|
1443
1445
|
declare module '@layerfi/components/components/Button/Button' {
|
|
@@ -1464,10 +1466,11 @@ declare module '@layerfi/components/components/Button/Button' {
|
|
|
1464
1466
|
}
|
|
1465
1467
|
declare module '@layerfi/components/components/Button/CloseButton' {
|
|
1466
1468
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
1467
|
-
|
|
1469
|
+
type CloseButtonProps = {
|
|
1468
1470
|
textOnly?: boolean;
|
|
1469
|
-
}
|
|
1470
|
-
export const CloseButton: ({ className,
|
|
1471
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
1472
|
+
export const CloseButton: ({ className, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
|
|
1473
|
+
export {};
|
|
1471
1474
|
|
|
1472
1475
|
}
|
|
1473
1476
|
declare module '@layerfi/components/components/Button/DownloadButton' {
|
|
@@ -1489,10 +1492,11 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
|
|
|
1489
1492
|
}
|
|
1490
1493
|
declare module '@layerfi/components/components/Button/ExpandButton' {
|
|
1491
1494
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
1492
|
-
|
|
1495
|
+
type ExpandButtonProps = {
|
|
1493
1496
|
collapsed?: boolean;
|
|
1494
|
-
}
|
|
1495
|
-
export const ExpandButton: ({ className,
|
|
1497
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
1498
|
+
export const ExpandButton: ({ className, collapsed, ...props }: ExpandButtonProps) => React.JSX.Element;
|
|
1499
|
+
export {};
|
|
1496
1500
|
|
|
1497
1501
|
}
|
|
1498
1502
|
declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
|
|
@@ -1520,7 +1524,7 @@ declare module '@layerfi/components/components/Button/IconButton' {
|
|
|
1520
1524
|
download?: HTMLAnchorElement['download'];
|
|
1521
1525
|
onClick?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void;
|
|
1522
1526
|
}
|
|
1523
|
-
export const IconButton: ({ className, children, icon, active, withBorder, href, target, rel, download, ...props }: IconButtonProps) => React.JSX.Element;
|
|
1527
|
+
export const IconButton: ({ className, children: _children, icon, active, withBorder, href, target, rel, download, ...props }: IconButtonProps) => React.JSX.Element;
|
|
1524
1528
|
|
|
1525
1529
|
}
|
|
1526
1530
|
declare module '@layerfi/components/components/Button/Link' {
|
|
@@ -1548,7 +1552,7 @@ declare module '@layerfi/components/components/Button/RetryButton' {
|
|
|
1548
1552
|
fullWidth?: boolean;
|
|
1549
1553
|
iconOnly?: boolean;
|
|
1550
1554
|
}
|
|
1551
|
-
export const RetryButton: ({ className, processing, disabled, error, children, ...props }: RetryButtonProps) => React.JSX.Element;
|
|
1555
|
+
export const RetryButton: ({ className, processing, disabled, error: _error, children, ...props }: RetryButtonProps) => React.JSX.Element;
|
|
1552
1556
|
|
|
1553
1557
|
}
|
|
1554
1558
|
declare module '@layerfi/components/components/Button/SubmitButton' {
|
|
@@ -1672,7 +1676,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelectDraw
|
|
|
1672
1676
|
selected?: CategoryOption;
|
|
1673
1677
|
showTooltips: boolean;
|
|
1674
1678
|
}
|
|
1675
|
-
export const CategorySelectDrawer: ({ onSelect, selected, showTooltips, }: CategorySelectDrawerProps) => React.JSX.Element;
|
|
1679
|
+
export const CategorySelectDrawer: ({ onSelect, selected, showTooltips: _showTooltips, }: CategorySelectDrawerProps) => React.JSX.Element;
|
|
1676
1680
|
export {};
|
|
1677
1681
|
|
|
1678
1682
|
}
|
|
@@ -1836,7 +1840,8 @@ declare module '@layerfi/components/components/Container/Container' {
|
|
|
1836
1840
|
children: ReactNode;
|
|
1837
1841
|
style?: CSSProperties;
|
|
1838
1842
|
}
|
|
1839
|
-
|
|
1843
|
+
const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1844
|
+
export { Container };
|
|
1840
1845
|
|
|
1841
1846
|
}
|
|
1842
1847
|
declare module '@layerfi/components/components/Container/Header' {
|
|
@@ -1855,7 +1860,8 @@ declare module '@layerfi/components/components/Container/Header' {
|
|
|
1855
1860
|
children: ReactNode;
|
|
1856
1861
|
layout?: HeaderLayout;
|
|
1857
1862
|
}
|
|
1858
|
-
|
|
1863
|
+
const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
|
|
1864
|
+
export { Header };
|
|
1859
1865
|
|
|
1860
1866
|
}
|
|
1861
1867
|
declare module '@layerfi/components/components/Container/index' {
|
|
@@ -1912,7 +1918,7 @@ declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
|
1912
1918
|
ModeSelector: FC<DatePickerModeSelectorProps>;
|
|
1913
1919
|
};
|
|
1914
1920
|
}
|
|
1915
|
-
export const DatePicker: ({ selected, onChange, mode, allowedModes, dateFormat, timeIntervals, timeCaption, placeholderText, customDateRanges, wrapperClassName, calendarClassName, popperClassName, minDate, maxDate, currentDateOption, navigateArrows, onChangeMode, slots, ...props }: DatePickerProps) => React.JSX.Element;
|
|
1921
|
+
export const DatePicker: ({ selected, onChange, mode, allowedModes, dateFormat, timeIntervals, timeCaption, placeholderText: _placeholderText, customDateRanges, wrapperClassName, calendarClassName, popperClassName, minDate, maxDate, currentDateOption, navigateArrows, onChangeMode, slots, ...props }: DatePickerProps) => React.JSX.Element;
|
|
1916
1922
|
export {};
|
|
1917
1923
|
|
|
1918
1924
|
}
|
|
@@ -2075,8 +2081,8 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
|
|
|
2075
2081
|
date?: string;
|
|
2076
2082
|
error?: string;
|
|
2077
2083
|
}
|
|
2078
|
-
|
|
2079
|
-
export {};
|
|
2084
|
+
const ExpandedBankTransactionRow: React.ForwardRefExoticComponent<Props & React.RefAttributes<SaveHandle>>;
|
|
2085
|
+
export { ExpandedBankTransactionRow };
|
|
2080
2086
|
|
|
2081
2087
|
}
|
|
2082
2088
|
declare module '@layerfi/components/components/ExpandedBankTransactionRow/index' {
|
|
@@ -2085,7 +2091,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/index'
|
|
|
2085
2091
|
}
|
|
2086
2092
|
declare module '@layerfi/components/components/FileThumb/FileThumb' {
|
|
2087
2093
|
import React from 'react';
|
|
2088
|
-
|
|
2094
|
+
type FileThumbProps = {
|
|
2089
2095
|
url?: string;
|
|
2090
2096
|
type?: string;
|
|
2091
2097
|
floatingActions?: boolean;
|
|
@@ -2098,8 +2104,9 @@ declare module '@layerfi/components/components/FileThumb/FileThumb' {
|
|
|
2098
2104
|
onOpen?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
2099
2105
|
enableDownload?: boolean;
|
|
2100
2106
|
error?: string;
|
|
2101
|
-
}
|
|
2102
|
-
export const FileThumb: ({ url,
|
|
2107
|
+
};
|
|
2108
|
+
export const FileThumb: ({ url, floatingActions, uploadPending, deletePending, name, date, onDelete, enableOpen, onOpen, enableDownload, error, }: FileThumbProps) => React.JSX.Element;
|
|
2109
|
+
export {};
|
|
2103
2110
|
|
|
2104
2111
|
}
|
|
2105
2112
|
declare module '@layerfi/components/components/FileThumb/index' {
|
|
@@ -2125,7 +2132,8 @@ declare module '@layerfi/components/components/Header/Header' {
|
|
|
2125
2132
|
rounded?: boolean;
|
|
2126
2133
|
children: ReactNode;
|
|
2127
2134
|
}
|
|
2128
|
-
|
|
2135
|
+
const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLElement>>;
|
|
2136
|
+
export { Header };
|
|
2129
2137
|
|
|
2130
2138
|
}
|
|
2131
2139
|
declare module '@layerfi/components/components/Header/HeaderCol' {
|
|
@@ -2647,20 +2655,6 @@ declare module '@layerfi/components/components/MatchForm/index' {
|
|
|
2647
2655
|
export { MatchForm } from '@layerfi/components/components/MatchForm/MatchForm';
|
|
2648
2656
|
export { MatchFormMobile } from '@layerfi/components/components/MatchForm/MatchFormMobile';
|
|
2649
2657
|
|
|
2650
|
-
}
|
|
2651
|
-
declare module '@layerfi/components/components/NotificationCard/NotificationCard' {
|
|
2652
|
-
import React, { ReactNode } from 'react';
|
|
2653
|
-
export interface NotificationCardProps {
|
|
2654
|
-
onClick: () => void;
|
|
2655
|
-
children: ReactNode;
|
|
2656
|
-
className?: string;
|
|
2657
|
-
}
|
|
2658
|
-
export const NotificationCard: ({ onClick, children, className, }: NotificationCardProps) => React.JSX.Element;
|
|
2659
|
-
|
|
2660
|
-
}
|
|
2661
|
-
declare module '@layerfi/components/components/NotificationCard/index' {
|
|
2662
|
-
export { NotificationCard } from '@layerfi/components/components/NotificationCard/NotificationCard';
|
|
2663
|
-
|
|
2664
2658
|
}
|
|
2665
2659
|
declare module '@layerfi/components/components/Onboarding/ConnectAccount' {
|
|
2666
2660
|
import React from 'react';
|
|
@@ -2813,12 +2807,15 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2813
2807
|
}>;
|
|
2814
2808
|
DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/views/Reports/reportTypes").TimeRangePickerConfig) => React.JSX.Element;
|
|
2815
2809
|
CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/index").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
|
|
2816
|
-
Summaries: (
|
|
2817
|
-
vertical?: boolean | undefined;
|
|
2810
|
+
Summaries: (props: {
|
|
2818
2811
|
actionable?: boolean | undefined;
|
|
2819
|
-
revenueLabel?: string | undefined;
|
|
2820
2812
|
stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides | undefined;
|
|
2821
2813
|
chartColorsList?: string[] | undefined;
|
|
2814
|
+
variants?: Partial<{
|
|
2815
|
+
size: "lg" | "sm";
|
|
2816
|
+
}> | undefined;
|
|
2817
|
+
revenueLabel?: string | undefined;
|
|
2818
|
+
vertical?: boolean | undefined;
|
|
2822
2819
|
}) => React.JSX.Element;
|
|
2823
2820
|
Table: (props: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent").ProfitAndLossTableProps) => React.JSX.Element;
|
|
2824
2821
|
DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
|
|
@@ -2898,7 +2895,7 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/Profi
|
|
|
2898
2895
|
|
|
2899
2896
|
}
|
|
2900
2897
|
declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index' {
|
|
2901
|
-
export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
2898
|
+
export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps, } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
2902
2899
|
|
|
2903
2900
|
}
|
|
2904
2901
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
|
|
@@ -3050,41 +3047,102 @@ declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLoss
|
|
|
3050
3047
|
declare module '@layerfi/components/components/ProfitAndLossReport/index' {
|
|
3051
3048
|
export { ProfitAndLossReport } from '@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport';
|
|
3052
3049
|
|
|
3053
|
-
}
|
|
3054
|
-
declare module '@layerfi/components/components/ProfitAndLossSummaries/MiniChart' {
|
|
3055
|
-
import React from 'react';
|
|
3056
|
-
import { LineBaseItem } from '@layerfi/components/types/line_item';
|
|
3057
|
-
export interface MiniChartProps {
|
|
3058
|
-
data: LineBaseItem[];
|
|
3059
|
-
chartColorsList?: string[];
|
|
3060
|
-
}
|
|
3061
|
-
export const MiniChart: ({ data, chartColorsList }: MiniChartProps) => React.JSX.Element;
|
|
3062
|
-
|
|
3063
3050
|
}
|
|
3064
3051
|
declare module '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries' {
|
|
3065
|
-
import React from 'react';
|
|
3052
|
+
import React, { type ReactNode } from 'react';
|
|
3053
|
+
import type { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
3066
3054
|
export interface ProfitAndLossSummariesStringOverrides {
|
|
3067
3055
|
revenueLabel?: string;
|
|
3068
3056
|
expensesLabel?: string;
|
|
3069
3057
|
netProfitLabel?: string;
|
|
3070
3058
|
}
|
|
3071
3059
|
type ProfitAndLossSummariesProps = {
|
|
3072
|
-
vertical?: boolean;
|
|
3073
3060
|
actionable?: boolean;
|
|
3061
|
+
stringOverrides?: ProfitAndLossSummariesStringOverrides;
|
|
3062
|
+
chartColorsList?: string[];
|
|
3063
|
+
variants?: Variants;
|
|
3074
3064
|
/**
|
|
3075
3065
|
* @deprecated Use `stringOverrides.revenueLabel` instead
|
|
3076
3066
|
*/
|
|
3077
3067
|
revenueLabel?: string;
|
|
3078
|
-
|
|
3079
|
-
|
|
3068
|
+
/**
|
|
3069
|
+
* @deprecated Orientation is determined by the container size
|
|
3070
|
+
*/
|
|
3071
|
+
vertical?: boolean;
|
|
3080
3072
|
};
|
|
3081
|
-
|
|
3073
|
+
type Internal_ProfitAndLossSummariesProps = {
|
|
3074
|
+
slots?: {
|
|
3075
|
+
unstable_AdditionalListItems?: [ReactNode];
|
|
3076
|
+
};
|
|
3077
|
+
} & ProfitAndLossSummariesProps;
|
|
3078
|
+
export function Internal_ProfitAndLossSummaries({ actionable, revenueLabel, stringOverrides, chartColorsList, slots, variants, }: Internal_ProfitAndLossSummariesProps): React.JSX.Element;
|
|
3079
|
+
export const ProfitAndLossSummaries: (props: ProfitAndLossSummariesProps) => React.JSX.Element;
|
|
3082
3080
|
export {};
|
|
3083
3081
|
|
|
3084
3082
|
}
|
|
3085
3083
|
declare module '@layerfi/components/components/ProfitAndLossSummaries/index' {
|
|
3086
3084
|
export { ProfitAndLossSummaries } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
3087
3085
|
|
|
3086
|
+
}
|
|
3087
|
+
declare module '@layerfi/components/components/ProfitAndLossSummaries/internal/ProfitAndLossSummariesHeading' {
|
|
3088
|
+
import { PropsWithChildren } from 'react';
|
|
3089
|
+
import React from 'react';
|
|
3090
|
+
import type { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
3091
|
+
type ProfitAndLossSummariesHeadingProps = {
|
|
3092
|
+
variants?: Variants;
|
|
3093
|
+
} & PropsWithChildren;
|
|
3094
|
+
export function ProfitAndLossSummariesHeading({ variants, children, }: ProfitAndLossSummariesHeadingProps): React.JSX.Element;
|
|
3095
|
+
export {};
|
|
3096
|
+
|
|
3097
|
+
}
|
|
3098
|
+
declare module '@layerfi/components/components/ProfitAndLossSummaries/internal/ProfitAndLossSummariesList' {
|
|
3099
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3100
|
+
type ProfitAndLossSummariesListItemProps = PropsWithChildren<{
|
|
3101
|
+
isActive?: boolean;
|
|
3102
|
+
onClick?: () => void;
|
|
3103
|
+
}>;
|
|
3104
|
+
export function ProfitAndLossSummariesListItem({ children, isActive, onClick, }: ProfitAndLossSummariesListItemProps): React.JSX.Element;
|
|
3105
|
+
type ProfitAndLossSummariesListProps = PropsWithChildren<{
|
|
3106
|
+
itemCount?: number;
|
|
3107
|
+
}>;
|
|
3108
|
+
export function ProfitAndLossSummariesList({ children, itemCount, }: ProfitAndLossSummariesListProps): React.JSX.Element;
|
|
3109
|
+
export {};
|
|
3110
|
+
|
|
3111
|
+
}
|
|
3112
|
+
declare module '@layerfi/components/components/ProfitAndLossSummaries/internal/ProfitAndLossSummariesMiniChart' {
|
|
3113
|
+
import React from 'react';
|
|
3114
|
+
import type { Scope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
|
|
3115
|
+
import type { ProfitAndLoss } from '@layerfi/components/types';
|
|
3116
|
+
import type { LineBaseItem } from '@layerfi/components/types/line_item';
|
|
3117
|
+
import { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
3118
|
+
export function toMiniChartData({ scope, data, }: {
|
|
3119
|
+
scope: Scope;
|
|
3120
|
+
data?: ProfitAndLoss;
|
|
3121
|
+
}): LineBaseItem[];
|
|
3122
|
+
type ProfitAndLossMiniChartProps = {
|
|
3123
|
+
data: LineBaseItem[];
|
|
3124
|
+
chartColorsList?: string[];
|
|
3125
|
+
variants?: Variants;
|
|
3126
|
+
};
|
|
3127
|
+
export function ProfitAndLossSummariesMiniChart({ data, chartColorsList, variants, }: ProfitAndLossMiniChartProps): React.JSX.Element;
|
|
3128
|
+
export {};
|
|
3129
|
+
|
|
3130
|
+
}
|
|
3131
|
+
declare module '@layerfi/components/components/ProfitAndLossSummaries/internal/ProfitAndLossSummariesSummary' {
|
|
3132
|
+
import React, { type ReactNode } from 'react';
|
|
3133
|
+
import type { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
3134
|
+
type ProfitAndLossSummariesSummaryProps = {
|
|
3135
|
+
label: string;
|
|
3136
|
+
amount: number;
|
|
3137
|
+
isLoading?: boolean;
|
|
3138
|
+
slots?: {
|
|
3139
|
+
Chart: ReactNode;
|
|
3140
|
+
};
|
|
3141
|
+
variants?: Variants;
|
|
3142
|
+
};
|
|
3143
|
+
export function ProfitAndLossSummariesSummary({ label, amount, isLoading, slots, variants, }: ProfitAndLossSummariesSummaryProps): React.JSX.Element;
|
|
3144
|
+
export {};
|
|
3145
|
+
|
|
3088
3146
|
}
|
|
3089
3147
|
declare module '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossCompareTable' {
|
|
3090
3148
|
import React from 'react';
|
|
@@ -3473,7 +3531,7 @@ declare module '@layerfi/components/components/Toast/Toast' {
|
|
|
3473
3531
|
duration?: number;
|
|
3474
3532
|
isExiting?: boolean;
|
|
3475
3533
|
}
|
|
3476
|
-
export
|
|
3534
|
+
export function ToastsContainer(): React.JSX.Element;
|
|
3477
3535
|
|
|
3478
3536
|
}
|
|
3479
3537
|
declare module '@layerfi/components/components/Toggle/Toggle' {
|
|
@@ -3506,7 +3564,7 @@ declare module '@layerfi/components/components/Toggle/index' {
|
|
|
3506
3564
|
|
|
3507
3565
|
}
|
|
3508
3566
|
declare module '@layerfi/components/components/Tooltip/Tooltip' {
|
|
3509
|
-
import React, { ReactNode } from 'react';
|
|
3567
|
+
import React, { ReactNode, HTMLProps } from 'react';
|
|
3510
3568
|
import type { Placement } from '@floating-ui/react';
|
|
3511
3569
|
export interface TooltipOptions {
|
|
3512
3570
|
initialOpen?: boolean;
|
|
@@ -3525,7 +3583,9 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
|
|
|
3525
3583
|
export const TooltipTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
3526
3584
|
asChild?: boolean | undefined;
|
|
3527
3585
|
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3528
|
-
|
|
3586
|
+
type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
|
|
3587
|
+
export const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3588
|
+
export {};
|
|
3529
3589
|
|
|
3530
3590
|
}
|
|
3531
3591
|
declare module '@layerfi/components/components/Tooltip/index' {
|
|
@@ -3637,23 +3697,6 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
3637
3697
|
disabled: boolean | undefined;
|
|
3638
3698
|
};
|
|
3639
3699
|
|
|
3640
|
-
}
|
|
3641
|
-
declare module '@layerfi/components/components/TransactionToReviewCard/TransactionToReviewCard' {
|
|
3642
|
-
import React from 'react';
|
|
3643
|
-
export interface TransactionToReviewCardProps {
|
|
3644
|
-
onClick?: () => void;
|
|
3645
|
-
usePnlDateRange?: boolean;
|
|
3646
|
-
tagFilter?: {
|
|
3647
|
-
key: string;
|
|
3648
|
-
values: string[];
|
|
3649
|
-
};
|
|
3650
|
-
}
|
|
3651
|
-
export const TransactionToReviewCard: ({ onClick, usePnlDateRange, tagFilter, }: TransactionToReviewCardProps) => React.JSX.Element;
|
|
3652
|
-
|
|
3653
|
-
}
|
|
3654
|
-
declare module '@layerfi/components/components/TransactionToReviewCard/index' {
|
|
3655
|
-
export { TransactionToReviewCard } from '@layerfi/components/components/TransactionToReviewCard/TransactionToReviewCard';
|
|
3656
|
-
|
|
3657
3700
|
}
|
|
3658
3701
|
declare module '@layerfi/components/components/Typography/ErrorText' {
|
|
3659
3702
|
import React from 'react';
|
|
@@ -3712,7 +3755,7 @@ declare module '@layerfi/components/components/Typography/Text' {
|
|
|
3712
3755
|
tooltipOptions?: TextTooltipOptions;
|
|
3713
3756
|
}
|
|
3714
3757
|
export const Text: ({ as: Component, className, children, size, weight, withTooltip, ...props }: TextProps) => React.JSX.Element;
|
|
3715
|
-
export const TextWithTooltip: ({ as: Component, className, children, size, weight, withTooltip, tooltipOptions, ...props }: TextProps) => React.JSX.Element;
|
|
3758
|
+
export const TextWithTooltip: ({ as: Component, className, children, size: _size, weight: _weight, withTooltip: _withTooltip, tooltipOptions, ...props }: TextProps) => React.JSX.Element;
|
|
3716
3759
|
|
|
3717
3760
|
}
|
|
3718
3761
|
declare module '@layerfi/components/components/Typography/index' {
|
|
@@ -3748,7 +3791,8 @@ declare module '@layerfi/components/components/View/View' {
|
|
|
3748
3791
|
sidebar?: ReactNode;
|
|
3749
3792
|
viewClassName?: string;
|
|
3750
3793
|
}
|
|
3751
|
-
|
|
3794
|
+
const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
3795
|
+
export { View };
|
|
3752
3796
|
|
|
3753
3797
|
}
|
|
3754
3798
|
declare module '@layerfi/components/components/View/index' {
|
|
@@ -3768,15 +3812,20 @@ declare module '@layerfi/components/components/ViewHeader/ViewHeader' {
|
|
|
3768
3812
|
declare module '@layerfi/components/components/ViewHeader/index' {
|
|
3769
3813
|
export { ViewHeader } from '@layerfi/components/components/ViewHeader/ViewHeader';
|
|
3770
3814
|
|
|
3815
|
+
}
|
|
3816
|
+
declare module '@layerfi/components/components/ui/Stack' {
|
|
3817
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3818
|
+
export type StackProps = PropsWithChildren<{
|
|
3819
|
+
gap?: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '5xl';
|
|
3820
|
+
align?: 'start';
|
|
3821
|
+
}>;
|
|
3822
|
+
export function VStack({ align, children, gap }: StackProps): React.JSX.Element;
|
|
3823
|
+
|
|
3771
3824
|
}
|
|
3772
3825
|
declare module '@layerfi/components/config/charts' {
|
|
3773
3826
|
export const INACTIVE_OPACITY_LEVELS: number[];
|
|
3774
3827
|
export const DEFAULT_CHART_OPACITY: number[];
|
|
3775
3828
|
export const DEFAULT_CHART_COLOR_TYPE: string[];
|
|
3776
|
-
export const DEFAULT_MINICHART_COLORS: {
|
|
3777
|
-
color: string;
|
|
3778
|
-
opacity: number;
|
|
3779
|
-
}[];
|
|
3780
3829
|
export const TASKS_CHARTS_COLORS: {
|
|
3781
3830
|
done: string;
|
|
3782
3831
|
pending: string;
|
|
@@ -4252,7 +4301,7 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
|
|
|
4252
4301
|
}
|
|
4253
4302
|
declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
|
|
4254
4303
|
import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
|
|
4255
|
-
import {
|
|
4304
|
+
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
4256
4305
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
4257
4306
|
export interface ChartOfAccountsForm {
|
|
4258
4307
|
action: 'new' | 'edit';
|
|
@@ -4274,12 +4323,12 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
|
|
|
4274
4323
|
};
|
|
4275
4324
|
export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
|
|
4276
4325
|
export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
|
|
4277
|
-
data: ChartWithBalances | undefined;
|
|
4326
|
+
data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
|
|
4278
4327
|
isLoading: boolean;
|
|
4279
4328
|
isValidating: boolean;
|
|
4280
4329
|
error: any;
|
|
4281
4330
|
refetch: () => Promise<{
|
|
4282
|
-
data: ChartWithBalances;
|
|
4331
|
+
data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
|
|
4283
4332
|
} | undefined>;
|
|
4284
4333
|
create: (newAccount: NewAccount) => Promise<void>;
|
|
4285
4334
|
form: ChartOfAccountsForm | undefined;
|
|
@@ -4414,7 +4463,7 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
|
|
|
4414
4463
|
}
|
|
4415
4464
|
declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
|
|
4416
4465
|
import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
|
|
4417
|
-
type UseLedgerAccounts = (showReversalEntries:
|
|
4466
|
+
type UseLedgerAccounts = (showReversalEntries: boolean) => {
|
|
4418
4467
|
data?: LedgerAccounts;
|
|
4419
4468
|
entryData?: LedgerAccountsEntry;
|
|
4420
4469
|
isLoading?: boolean;
|
|
@@ -5143,6 +5192,7 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
|
5143
5192
|
url: string;
|
|
5144
5193
|
scope: string;
|
|
5145
5194
|
apiUrl: string;
|
|
5195
|
+
usePlaidSandbox: boolean;
|
|
5146
5196
|
};
|
|
5147
5197
|
export const LayerEnvironment: Record<string, LayerEnvironmentConfig>;
|
|
5148
5198
|
export type EventCallbacks = {
|
|
@@ -5272,7 +5322,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
5272
5322
|
processing?: boolean;
|
|
5273
5323
|
suggested_matches?: SuggestedMatch[];
|
|
5274
5324
|
match?: BankTransactionMatch;
|
|
5275
|
-
document_ids:
|
|
5325
|
+
document_ids: string[];
|
|
5276
5326
|
}
|
|
5277
5327
|
export interface SuggestedMatch {
|
|
5278
5328
|
id: string;
|
|
@@ -5585,7 +5635,7 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
5585
5635
|
apiUrl: string;
|
|
5586
5636
|
theme?: LayerThemeConfig;
|
|
5587
5637
|
colors: ColorsPalette;
|
|
5588
|
-
usePlaidSandbox
|
|
5638
|
+
usePlaidSandbox: boolean;
|
|
5589
5639
|
onboardingStep?: OnboardingStep;
|
|
5590
5640
|
environment: string;
|
|
5591
5641
|
toasts: (ToastProps & {
|
|
@@ -6176,12 +6226,32 @@ declare module '@layerfi/components/utils/profitAndLossUtils' {
|
|
|
6176
6226
|
export const humanizeTitle: (sidebarView: SidebarScope) => "Expenses" | "Revenue" | "Profit & Loss";
|
|
6177
6227
|
export const applyShare: (items: LineBaseItem[], total: number) => LineBaseItem[];
|
|
6178
6228
|
|
|
6229
|
+
}
|
|
6230
|
+
declare module '@layerfi/components/utils/styleUtils/sizeVariants' {
|
|
6231
|
+
const SIZE_VARIANTS: readonly ["sm", "lg"];
|
|
6232
|
+
type SizeVariant = (typeof SIZE_VARIANTS)[number];
|
|
6233
|
+
export type Variants = Partial<{
|
|
6234
|
+
size: SizeVariant;
|
|
6235
|
+
}>;
|
|
6236
|
+
export {};
|
|
6237
|
+
|
|
6238
|
+
}
|
|
6239
|
+
declare module '@layerfi/components/utils/styleUtils/toDataProperties' {
|
|
6240
|
+
type AllowedDataValue = string | number | true;
|
|
6241
|
+
type DataPrefix<T extends string> = `data-${T}`;
|
|
6242
|
+
type DataProperties<T> = {
|
|
6243
|
+
[K in keyof T as DataPrefix<Extract<K, string>>]: T[K] extends AllowedDataValue ? T[K] : never;
|
|
6244
|
+
};
|
|
6245
|
+
export function toDataProperties<T extends Record<string, unknown>>(input: T): DataProperties<T>;
|
|
6246
|
+
export {};
|
|
6247
|
+
|
|
6179
6248
|
}
|
|
6180
6249
|
declare module '@layerfi/components/views/AccountingOverview/AccountingOverview' {
|
|
6181
6250
|
import React, { ReactNode } from 'react';
|
|
6182
6251
|
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
6183
6252
|
import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
6184
6253
|
import { OnboardingStep } from '@layerfi/components/types/layer_context';
|
|
6254
|
+
import type { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
6185
6255
|
import { TagOption } from '@layerfi/components/views/ProjectProfitability/ProjectProfitability';
|
|
6186
6256
|
interface AccountingOverviewStringOverrides {
|
|
6187
6257
|
header?: string;
|
|
@@ -6201,14 +6271,37 @@ declare module '@layerfi/components/views/AccountingOverview/AccountingOverview'
|
|
|
6201
6271
|
stringOverrides?: AccountingOverviewStringOverrides;
|
|
6202
6272
|
tagFilter?: TagOption;
|
|
6203
6273
|
showTransactionsToReview?: boolean;
|
|
6274
|
+
slotProps?: {
|
|
6275
|
+
profitAndLoss?: {
|
|
6276
|
+
summaries?: {
|
|
6277
|
+
variants?: Variants;
|
|
6278
|
+
};
|
|
6279
|
+
};
|
|
6280
|
+
};
|
|
6204
6281
|
}
|
|
6205
|
-
export const AccountingOverview: ({ title, showTitle, enableOnboarding, onboardingStepOverride, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, tagFilter, showTransactionsToReview, }: AccountingOverviewProps) => React.JSX.Element;
|
|
6282
|
+
export const AccountingOverview: ({ title, showTitle, enableOnboarding, onboardingStepOverride, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, tagFilter, showTransactionsToReview, slotProps, }: AccountingOverviewProps) => React.JSX.Element;
|
|
6206
6283
|
export {};
|
|
6207
6284
|
|
|
6208
6285
|
}
|
|
6209
6286
|
declare module '@layerfi/components/views/AccountingOverview/index' {
|
|
6210
6287
|
export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/AccountingOverview';
|
|
6211
6288
|
|
|
6289
|
+
}
|
|
6290
|
+
declare module '@layerfi/components/views/AccountingOverview/internal/TransactionsToReview' {
|
|
6291
|
+
import React from 'react';
|
|
6292
|
+
import type { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
6293
|
+
type TransactionsToReviewProps = {
|
|
6294
|
+
onClick?: () => void;
|
|
6295
|
+
usePnlDateRange?: boolean;
|
|
6296
|
+
tagFilter?: {
|
|
6297
|
+
key: string;
|
|
6298
|
+
values: string[];
|
|
6299
|
+
};
|
|
6300
|
+
variants?: Variants;
|
|
6301
|
+
};
|
|
6302
|
+
export function TransactionsToReview({ onClick, usePnlDateRange, tagFilter, variants, }: TransactionsToReviewProps): React.JSX.Element;
|
|
6303
|
+
export {};
|
|
6304
|
+
|
|
6212
6305
|
}
|
|
6213
6306
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts' {
|
|
6214
6307
|
import React from 'react';
|
|
@@ -6246,8 +6339,8 @@ declare module '@layerfi/components/views/BookkeepingOverview/BookkeepingOvervie
|
|
|
6246
6339
|
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
6247
6340
|
import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
6248
6341
|
import { TasksStringOverrides } from '@layerfi/components/components/Tasks/Tasks';
|
|
6342
|
+
import { Variants } from '@layerfi/components/utils/styleUtils/sizeVariants';
|
|
6249
6343
|
export interface BookkeepingOverviewProps {
|
|
6250
|
-
title?: string;
|
|
6251
6344
|
showTitle?: boolean;
|
|
6252
6345
|
stringOverrides?: {
|
|
6253
6346
|
title?: string;
|
|
@@ -6258,13 +6351,29 @@ declare module '@layerfi/components/views/BookkeepingOverview/BookkeepingOvervie
|
|
|
6258
6351
|
summaries?: ProfitAndLossSummariesStringOverrides;
|
|
6259
6352
|
};
|
|
6260
6353
|
};
|
|
6354
|
+
slotProps?: {
|
|
6355
|
+
profitAndLoss?: {
|
|
6356
|
+
summaries?: {
|
|
6357
|
+
variants?: Variants;
|
|
6358
|
+
};
|
|
6359
|
+
};
|
|
6360
|
+
};
|
|
6361
|
+
/**
|
|
6362
|
+
* @deprecated Use `stringOverrides.title` instead
|
|
6363
|
+
*/
|
|
6364
|
+
title?: string;
|
|
6261
6365
|
}
|
|
6262
|
-
export const BookkeepingOverview: ({ title, showTitle, stringOverrides, }: BookkeepingOverviewProps) => React.JSX.Element;
|
|
6366
|
+
export const BookkeepingOverview: ({ title, showTitle, stringOverrides, slotProps, }: BookkeepingOverviewProps) => React.JSX.Element;
|
|
6263
6367
|
|
|
6264
6368
|
}
|
|
6265
6369
|
declare module '@layerfi/components/views/BookkeepingOverview/index' {
|
|
6266
6370
|
export { BookkeepingOverview } from '@layerfi/components/views/BookkeepingOverview/BookkeepingOverview';
|
|
6267
6371
|
|
|
6372
|
+
}
|
|
6373
|
+
declare module '@layerfi/components/views/BookkeepingOverview/internal/BookkeepingProfitAndLossSummariesContainer' {
|
|
6374
|
+
import React, { PropsWithChildren } from 'react';
|
|
6375
|
+
export function BookkeepingProfitAndLossSummariesContainer({ children, }: PropsWithChildren): React.JSX.Element;
|
|
6376
|
+
|
|
6268
6377
|
}
|
|
6269
6378
|
declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
|
|
6270
6379
|
import React from 'react';
|