@layerfi/components 0.1.103-alpha → 0.1.104-alpha
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/cjs/index.cjs +269 -91
- package/dist/esm/index.mjs +340 -162
- package/dist/index.css +146 -148
- package/dist/index.d.ts +94 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,8 +69,8 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
69
69
|
type GetBankTransactionsBaseParams = {
|
|
70
70
|
businessId: string;
|
|
71
71
|
categorized?: boolean;
|
|
72
|
-
descriptionFilter?: string;
|
|
73
72
|
direction?: 'INFLOW' | 'OUTFLOW';
|
|
73
|
+
query?: string;
|
|
74
74
|
startDate?: Date;
|
|
75
75
|
endDate?: Date;
|
|
76
76
|
tagFilterQueryString?: string;
|
|
@@ -2332,17 +2332,19 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
2332
2332
|
import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
|
|
2333
2333
|
import { View } from '@layerfi/components/types/general';
|
|
2334
2334
|
import { ChartOfAccountsTableStringOverrides, ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
2335
|
-
export const ChartOfAccountsTable: ({ view, stringOverrides, data, error, expandAll, templateAccountsEditable, }: {
|
|
2335
|
+
export const ChartOfAccountsTable: ({ view, stringOverrides, data, searchQuery, error, expandAll, templateAccountsEditable, }: {
|
|
2336
2336
|
view: View;
|
|
2337
2337
|
data: ChartWithBalances;
|
|
2338
|
+
searchQuery: string;
|
|
2338
2339
|
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
2339
2340
|
error?: unknown;
|
|
2340
2341
|
expandAll?: ExpandActionState;
|
|
2341
2342
|
templateAccountsEditable?: boolean;
|
|
2342
2343
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
2343
|
-
export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, templateAccountsEditable, }: {
|
|
2344
|
+
export const ChartOfAccountsTableContent: ({ stringOverrides, data, searchQuery, error, expandAll, templateAccountsEditable, }: {
|
|
2344
2345
|
view: View;
|
|
2345
2346
|
data: ChartWithBalances;
|
|
2347
|
+
searchQuery: string;
|
|
2346
2348
|
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
2347
2349
|
error?: unknown;
|
|
2348
2350
|
expandAll?: ExpandActionState;
|
|
@@ -2380,6 +2382,78 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
2380
2382
|
declare module '@layerfi/components/components/ChartOfAccountsTable/index' {
|
|
2381
2383
|
export { ChartOfAccountsTableWithPanel as ChartOfAccountsTable } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
2382
2384
|
|
|
2385
|
+
}
|
|
2386
|
+
declare module '@layerfi/components/components/ChartOfAccountsTable/utils/types' {
|
|
2387
|
+
export enum LedgerAccountTypeOrderEnum {
|
|
2388
|
+
ASSET = 0,
|
|
2389
|
+
LIABILITY = 1,
|
|
2390
|
+
EQUITY = 2,
|
|
2391
|
+
REVENUE = 3,
|
|
2392
|
+
EXPENSES = 4
|
|
2393
|
+
}
|
|
2394
|
+
export enum LedgerAccountSubtypeOrderEnum {
|
|
2395
|
+
BANK_ACCOUNTS = 0,
|
|
2396
|
+
CASH = 1,
|
|
2397
|
+
UNDEPOSITED_FUNDS = 2,
|
|
2398
|
+
PAYMENT_PROCESSOR_CLEARING_ACCOUNT = 3,
|
|
2399
|
+
INBOUND_PAYMENT_METHOD_CLEARING = 4,
|
|
2400
|
+
ACCOUNTS_RECEIVABLE = 5,
|
|
2401
|
+
INVENTORY = 6,
|
|
2402
|
+
CURRENT_ASSET = 7,
|
|
2403
|
+
FIXED_ASSET = 8,
|
|
2404
|
+
INTANGIBLE_ASSET = 9,
|
|
2405
|
+
PREPAID_EXPENSES = 10,
|
|
2406
|
+
DEVELOPMENT_COSTS = 11,
|
|
2407
|
+
CREDIT_CARD = 12,
|
|
2408
|
+
ACCOUNTS_PAYABLE = 13,
|
|
2409
|
+
LINE_OF_CREDIT = 14,
|
|
2410
|
+
REFUND_LIABILITIES = 15,
|
|
2411
|
+
PAYROLL_LIABILITY = 16,
|
|
2412
|
+
SALES_TAXES_PAYABLE = 17,
|
|
2413
|
+
OTHER_TAXES_PAYABLE = 18,
|
|
2414
|
+
TIPS = 19,
|
|
2415
|
+
UNEARNED_REVENUE = 20,
|
|
2416
|
+
UNDEPOSITED_OUTFLOWS = 21,
|
|
2417
|
+
OUTGOING_PAYMENT_CLEARING_ACCOUNT = 22,
|
|
2418
|
+
OTHER_CURRENT_LIABILITY = 23,
|
|
2419
|
+
SHAREHOLDER_LOAN = 24,
|
|
2420
|
+
NOTES_PAYABLE = 25,
|
|
2421
|
+
OTHER_LONG_TERM_LIABILITIES = 26,
|
|
2422
|
+
CONTRIBUTIONS = 27,
|
|
2423
|
+
DISTRIBUTIONS = 28,
|
|
2424
|
+
COMMON_STOCK = 29,
|
|
2425
|
+
ADDITIONAL_PAID_IN_CAPITAL = 30,
|
|
2426
|
+
RETAINED_EARNINGS = 31,
|
|
2427
|
+
ACCUMULATED_ADJUSTMENTS = 32,
|
|
2428
|
+
OPENING_BALANCE_EQUITY = 33,
|
|
2429
|
+
OTHER_EQUITY = 34,
|
|
2430
|
+
SALES = 35,
|
|
2431
|
+
REVENUE = 36,
|
|
2432
|
+
UNCATEGORIZED_REVENUE = 37,
|
|
2433
|
+
RETURNS_ALLOWANCES = 38,
|
|
2434
|
+
OTHER_INCOME = 39,
|
|
2435
|
+
COGS = 40,
|
|
2436
|
+
OPERATING_EXPENSES = 41,
|
|
2437
|
+
PAYROLL = 42,
|
|
2438
|
+
INTEREST_EXPENSES = 43,
|
|
2439
|
+
TAXES_LICENSES = 44,
|
|
2440
|
+
UNCATEGORIZED_EXPENSE = 45
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
}
|
|
2444
|
+
declare module '@layerfi/components/components/ChartOfAccountsTable/utils/utils' {
|
|
2445
|
+
import type { AugmentedLedgerAccountBalance, LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
2446
|
+
export const sortAccountsRecursive: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
|
|
2447
|
+
export const filterAccounts: (accounts: LedgerAccountBalance[], query: string) => AugmentedLedgerAccountBalance[];
|
|
2448
|
+
export const getMatchedTextIndices: ({ text, query, isMatching, }: {
|
|
2449
|
+
text: string;
|
|
2450
|
+
query: string;
|
|
2451
|
+
isMatching?: boolean;
|
|
2452
|
+
}) => {
|
|
2453
|
+
startIdx: number;
|
|
2454
|
+
endIdx: number;
|
|
2455
|
+
} | null;
|
|
2456
|
+
|
|
2383
2457
|
}
|
|
2384
2458
|
declare module '@layerfi/components/components/Container/Container' {
|
|
2385
2459
|
import { CSSProperties, ReactNode } from 'react';
|
|
@@ -4169,6 +4243,17 @@ declare module '@layerfi/components/components/ProgressSteps/ProgressSteps' {
|
|
|
4169
4243
|
declare module '@layerfi/components/components/ProjectProfitability/ProjectSelector' {
|
|
4170
4244
|
export function ProjectSelector(): import("react/jsx-runtime").JSX.Element;
|
|
4171
4245
|
|
|
4246
|
+
}
|
|
4247
|
+
declare module '@layerfi/components/components/SearchField/SearchField' {
|
|
4248
|
+
type SearchFieldProps = {
|
|
4249
|
+
value: string;
|
|
4250
|
+
slot?: string;
|
|
4251
|
+
onChange: (value: string) => void;
|
|
4252
|
+
label: string;
|
|
4253
|
+
};
|
|
4254
|
+
export function SearchField({ slot, label, ...restProps }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
4255
|
+
export {};
|
|
4256
|
+
|
|
4172
4257
|
}
|
|
4173
4258
|
declare module '@layerfi/components/components/SelectVendor/SelectVendor' {
|
|
4174
4259
|
|
|
@@ -4980,16 +5065,6 @@ declare module '@layerfi/components/components/domain/transactions/actions/Trans
|
|
|
4980
5065
|
import type { PropsWithChildren } from 'react';
|
|
4981
5066
|
export function TransactionsActions({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
4982
5067
|
|
|
4983
|
-
}
|
|
4984
|
-
declare module '@layerfi/components/components/domain/transactions/searchField/TransactionsSearchField' {
|
|
4985
|
-
type TransactionsSearchFieldProps = {
|
|
4986
|
-
value: string;
|
|
4987
|
-
slot?: string;
|
|
4988
|
-
onChange: (value: string) => void;
|
|
4989
|
-
};
|
|
4990
|
-
export function TransactionsSearchField({ slot, ...restProps }: TransactionsSearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
4991
|
-
export {};
|
|
4992
|
-
|
|
4993
5068
|
}
|
|
4994
5069
|
declare module '@layerfi/components/components/ui/Button/Button' {
|
|
4995
5070
|
import { type ButtonProps } from 'react-aria-components';
|
|
@@ -7084,7 +7159,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
|
|
|
7084
7159
|
direction?: Direction[];
|
|
7085
7160
|
categorizationStatus?: DisplayState;
|
|
7086
7161
|
dateRange?: Partial<DateRange>;
|
|
7087
|
-
|
|
7162
|
+
query?: string;
|
|
7088
7163
|
tagFilter?: TagFilterInput;
|
|
7089
7164
|
};
|
|
7090
7165
|
export type UseBankTransactionsParams = {
|
|
@@ -7132,12 +7207,12 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
|
|
|
7132
7207
|
export type UseBankTransactionsOptions = {
|
|
7133
7208
|
categorized?: boolean;
|
|
7134
7209
|
direction?: 'INFLOW' | 'OUTFLOW';
|
|
7135
|
-
|
|
7210
|
+
query?: string;
|
|
7136
7211
|
startDate?: Date;
|
|
7137
7212
|
endDate?: Date;
|
|
7138
7213
|
tagFilterQueryString?: string;
|
|
7139
7214
|
};
|
|
7140
|
-
export function useBankTransactions({ categorized,
|
|
7215
|
+
export function useBankTransactions({ categorized, direction, query, startDate, endDate, tagFilterQueryString, }: UseBankTransactionsOptions): import("swr/infinite").SWRInfiniteResponse<GetBankTransactionsReturn, any>;
|
|
7141
7216
|
export function useBankTransactionsInvalidator(): {
|
|
7142
7217
|
invalidateBankTransactions: () => Promise<undefined[]>;
|
|
7143
7218
|
debouncedInvalidateBankTransactions: import("lodash").DebouncedFunc<() => Promise<undefined[]>>;
|
|
@@ -8919,6 +8994,9 @@ declare module '@layerfi/components/types/chart_of_accounts' {
|
|
|
8919
8994
|
balance: number;
|
|
8920
8995
|
sub_accounts: LedgerAccountBalance[];
|
|
8921
8996
|
};
|
|
8997
|
+
export type AugmentedLedgerAccountBalance = LedgerAccountBalance & {
|
|
8998
|
+
isMatching?: true;
|
|
8999
|
+
};
|
|
8922
9000
|
export type NewAccount = {
|
|
8923
9001
|
name: string;
|
|
8924
9002
|
normality: Direction;
|