@layerfi/components 0.1.87 → 0.1.88-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 +134 -43
- package/dist/esm/index.mjs +365 -274
- package/dist/index.d.ts +72 -76
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,10 @@ declare module '@layerfi/components/api/layer/business' {
|
|
|
153
153
|
declare module '@layerfi/components/api/layer/categories' {
|
|
154
154
|
import { Category } from '@layerfi/components/types';
|
|
155
155
|
export const getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
156
|
-
params?:
|
|
156
|
+
params?: {
|
|
157
|
+
businessId: string;
|
|
158
|
+
mode?: "ALL";
|
|
159
|
+
} | undefined;
|
|
157
160
|
} | undefined) => () => Promise<{
|
|
158
161
|
data: {
|
|
159
162
|
type: "Category_List";
|
|
@@ -607,7 +610,10 @@ declare module '@layerfi/components/api/layer' {
|
|
|
607
610
|
errors: unknown;
|
|
608
611
|
}>;
|
|
609
612
|
getCategories: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
610
|
-
params?:
|
|
613
|
+
params?: {
|
|
614
|
+
businessId: string;
|
|
615
|
+
mode?: "ALL";
|
|
616
|
+
} | undefined;
|
|
611
617
|
} | undefined) => () => Promise<{
|
|
612
618
|
data: {
|
|
613
619
|
type: "Category_List";
|
|
@@ -1268,7 +1274,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/index'
|
|
|
1268
1274
|
|
|
1269
1275
|
}
|
|
1270
1276
|
declare module '@layerfi/components/components/BankTransactionMobileList/useMemoText' {
|
|
1271
|
-
import
|
|
1277
|
+
import { ReactNode } from 'react';
|
|
1272
1278
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1273
1279
|
interface MemoTextProps {
|
|
1274
1280
|
bankTransaction: BankTransaction;
|
|
@@ -1278,19 +1284,19 @@ declare module '@layerfi/components/components/BankTransactionMobileList/useMemo
|
|
|
1278
1284
|
children: ReactNode;
|
|
1279
1285
|
}
|
|
1280
1286
|
export type MemoTextContextType = ReturnType<typeof useMemoText>;
|
|
1281
|
-
export const MemoTextContext:
|
|
1287
|
+
export const MemoTextContext: import("react").Context<{
|
|
1282
1288
|
memoText: string | undefined;
|
|
1283
|
-
setMemoText:
|
|
1289
|
+
setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
1284
1290
|
saveMemoText: () => Promise<void>;
|
|
1285
1291
|
}>;
|
|
1286
1292
|
export const useMemoTextContext: () => {
|
|
1287
1293
|
memoText: string | undefined;
|
|
1288
|
-
setMemoText:
|
|
1294
|
+
setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
1289
1295
|
saveMemoText: () => Promise<void>;
|
|
1290
1296
|
};
|
|
1291
1297
|
const useMemoText: ({ bankTransaction, isActive }: MemoTextProps) => {
|
|
1292
1298
|
memoText: string | undefined;
|
|
1293
|
-
setMemoText:
|
|
1299
|
+
setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
1294
1300
|
saveMemoText: () => Promise<void>;
|
|
1295
1301
|
};
|
|
1296
1302
|
export const MemoTextProvider: ({ children, bankTransaction, isActive, }: MemoTextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1318,7 +1324,6 @@ declare module '@layerfi/components/components/BankTransactionMobileList/utils'
|
|
|
1318
1324
|
|
|
1319
1325
|
}
|
|
1320
1326
|
declare module '@layerfi/components/components/BankTransactionReceipts/BankTransactionReceipts' {
|
|
1321
|
-
import React from 'react';
|
|
1322
1327
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1323
1328
|
export interface DocumentWithStatus {
|
|
1324
1329
|
id?: string;
|
|
@@ -1342,9 +1347,9 @@ declare module '@layerfi/components/components/BankTransactionReceipts/BankTrans
|
|
|
1342
1347
|
export interface BankTransactionReceiptsHandle {
|
|
1343
1348
|
uploadReceipt: (file: File) => void;
|
|
1344
1349
|
}
|
|
1345
|
-
const BankTransactionReceiptsWithProvider:
|
|
1350
|
+
const BankTransactionReceiptsWithProvider: import("react").ForwardRefExoticComponent<BankTransactionReceiptsWithProviderProps & import("react").RefAttributes<BankTransactionReceiptsHandle>>;
|
|
1346
1351
|
export { BankTransactionReceiptsWithProvider };
|
|
1347
|
-
const BankTransactionReceipts:
|
|
1352
|
+
const BankTransactionReceipts: import("react").ForwardRefExoticComponent<BankTransactionReceiptsProps & import("react").RefAttributes<BankTransactionReceiptsHandle>>;
|
|
1348
1353
|
export { BankTransactionReceipts };
|
|
1349
1354
|
|
|
1350
1355
|
}
|
|
@@ -1621,7 +1626,7 @@ declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
|
|
|
1621
1626
|
|
|
1622
1627
|
}
|
|
1623
1628
|
declare module '@layerfi/components/components/Button/IconButton' {
|
|
1624
|
-
import
|
|
1629
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
1625
1630
|
export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1626
1631
|
icon: ReactNode;
|
|
1627
1632
|
active?: boolean;
|
|
@@ -1684,7 +1689,6 @@ declare module '@layerfi/components/components/Button/SubmitButton' {
|
|
|
1684
1689
|
|
|
1685
1690
|
}
|
|
1686
1691
|
declare module '@layerfi/components/components/Button/SwitchButton' {
|
|
1687
|
-
import React from 'react';
|
|
1688
1692
|
interface SwitchButtonProps {
|
|
1689
1693
|
children: string;
|
|
1690
1694
|
labelPosition?: 'left' | 'right';
|
|
@@ -1964,7 +1968,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/index' {
|
|
|
1964
1968
|
|
|
1965
1969
|
}
|
|
1966
1970
|
declare module '@layerfi/components/components/Container/Container' {
|
|
1967
|
-
import
|
|
1971
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
1968
1972
|
export interface ContainerProps {
|
|
1969
1973
|
name: string;
|
|
1970
1974
|
className?: string;
|
|
@@ -1974,7 +1978,7 @@ declare module '@layerfi/components/components/Container/Container' {
|
|
|
1974
1978
|
children: ReactNode;
|
|
1975
1979
|
style?: CSSProperties;
|
|
1976
1980
|
}
|
|
1977
|
-
const Container:
|
|
1981
|
+
const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1978
1982
|
export { Container };
|
|
1979
1983
|
|
|
1980
1984
|
}
|
|
@@ -1983,7 +1987,7 @@ declare module '@layerfi/components/components/Container/Header' {
|
|
|
1983
1987
|
* @deprecated- use components/Header instead.
|
|
1984
1988
|
* This has been kept to not introduce breaking changes.
|
|
1985
1989
|
*/
|
|
1986
|
-
import
|
|
1990
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
1987
1991
|
export enum HeaderLayout {
|
|
1988
1992
|
DEFAULT = "default",
|
|
1989
1993
|
NEXT_LINE_ACTIONS = "next-line-actions"
|
|
@@ -1994,7 +1998,7 @@ declare module '@layerfi/components/components/Container/Header' {
|
|
|
1994
1998
|
children: ReactNode;
|
|
1995
1999
|
layout?: HeaderLayout;
|
|
1996
2000
|
}
|
|
1997
|
-
const Header:
|
|
2001
|
+
const Header: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<HTMLElement>>;
|
|
1998
2002
|
export { Header };
|
|
1999
2003
|
|
|
2000
2004
|
}
|
|
@@ -2131,7 +2135,6 @@ declare module '@layerfi/components/components/DetailsList/index' {
|
|
|
2131
2135
|
|
|
2132
2136
|
}
|
|
2133
2137
|
declare module '@layerfi/components/components/Drawer/Drawer' {
|
|
2134
|
-
import React from 'react';
|
|
2135
2138
|
export const Drawer: ({ isOpen, onClose, children, }: {
|
|
2136
2139
|
isOpen: boolean;
|
|
2137
2140
|
onClose: () => void;
|
|
@@ -2144,7 +2147,7 @@ declare module '@layerfi/components/components/Drawer/index' {
|
|
|
2144
2147
|
|
|
2145
2148
|
}
|
|
2146
2149
|
declare module '@layerfi/components/components/ErrorBoundary/ErrorBoundary' {
|
|
2147
|
-
import
|
|
2150
|
+
import { ErrorInfo, Component, type PropsWithChildren } from 'react';
|
|
2148
2151
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
2149
2152
|
interface ErrorBoundaryProps {
|
|
2150
2153
|
onError?: (error: LayerError) => void;
|
|
@@ -2159,7 +2162,7 @@ declare module '@layerfi/components/components/ErrorBoundary/ErrorBoundary' {
|
|
|
2159
2162
|
hasError: boolean;
|
|
2160
2163
|
};
|
|
2161
2164
|
componentDidCatch(error: Error, _info: ErrorInfo): void;
|
|
2162
|
-
render(): string | number | boolean | Iterable<
|
|
2165
|
+
render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
2163
2166
|
}
|
|
2164
2167
|
export {};
|
|
2165
2168
|
|
|
@@ -2183,7 +2186,6 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErr
|
|
|
2183
2186
|
|
|
2184
2187
|
}
|
|
2185
2188
|
declare module '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow' {
|
|
2186
|
-
import React from 'react';
|
|
2187
2189
|
import { BankTransaction } from '@layerfi/components/types';
|
|
2188
2190
|
import { BankTransactionsMode } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
2189
2191
|
type Props = {
|
|
@@ -2211,7 +2213,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
|
|
|
2211
2213
|
date?: string;
|
|
2212
2214
|
error?: string;
|
|
2213
2215
|
}
|
|
2214
|
-
const ExpandedBankTransactionRow:
|
|
2216
|
+
const ExpandedBankTransactionRow: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<SaveHandle>>;
|
|
2215
2217
|
export { ExpandedBankTransactionRow };
|
|
2216
2218
|
|
|
2217
2219
|
}
|
|
@@ -2220,7 +2222,6 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/index'
|
|
|
2220
2222
|
|
|
2221
2223
|
}
|
|
2222
2224
|
declare module '@layerfi/components/components/FileThumb/FileThumb' {
|
|
2223
|
-
import React from 'react';
|
|
2224
2225
|
type FileThumbProps = {
|
|
2225
2226
|
url?: string;
|
|
2226
2227
|
type?: string;
|
|
@@ -2252,7 +2253,7 @@ declare module '@layerfi/components/components/GlobalWidgets/index' {
|
|
|
2252
2253
|
|
|
2253
2254
|
}
|
|
2254
2255
|
declare module '@layerfi/components/components/Header/Header' {
|
|
2255
|
-
import
|
|
2256
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2256
2257
|
export interface HeaderProps {
|
|
2257
2258
|
className?: string;
|
|
2258
2259
|
style?: CSSProperties;
|
|
@@ -2261,7 +2262,7 @@ declare module '@layerfi/components/components/Header/Header' {
|
|
|
2261
2262
|
rounded?: boolean;
|
|
2262
2263
|
children: ReactNode;
|
|
2263
2264
|
}
|
|
2264
|
-
const Header:
|
|
2265
|
+
const Header: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<HTMLDivElement | HTMLElement>>;
|
|
2265
2266
|
export { Header };
|
|
2266
2267
|
|
|
2267
2268
|
}
|
|
@@ -2335,7 +2336,6 @@ declare module '@layerfi/components/components/Input/AmountInput' {
|
|
|
2335
2336
|
|
|
2336
2337
|
}
|
|
2337
2338
|
declare module '@layerfi/components/components/Input/FileInput' {
|
|
2338
|
-
import React from 'react';
|
|
2339
2339
|
export interface FileInputProps {
|
|
2340
2340
|
text?: string;
|
|
2341
2341
|
onUpload?: (files: File[]) => void;
|
|
@@ -2371,7 +2371,7 @@ declare module '@layerfi/components/components/Input/InputGroup' {
|
|
|
2371
2371
|
|
|
2372
2372
|
}
|
|
2373
2373
|
declare module '@layerfi/components/components/Input/InputWithBadge' {
|
|
2374
|
-
import
|
|
2374
|
+
import { HTMLProps } from 'react';
|
|
2375
2375
|
import { BadgeVariant } from '@layerfi/components/components/Badge/index';
|
|
2376
2376
|
export interface InputWithBadgeProps extends HTMLProps<HTMLInputElement> {
|
|
2377
2377
|
isInvalid?: boolean;
|
|
@@ -2511,7 +2511,7 @@ declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines
|
|
|
2511
2511
|
entrylineItems: JournalEntryLineItem[];
|
|
2512
2512
|
addEntryLine: (direction: Direction) => void;
|
|
2513
2513
|
removeEntryLine: (index: number) => void;
|
|
2514
|
-
changeFormData: (name: string, value: string | BaseSelectOption | number | undefined, lineItemIndex: number, accounts?: LedgerAccountBalance[]
|
|
2514
|
+
changeFormData: (name: string, value: string | BaseSelectOption | number | undefined, lineItemIndex: number, accounts?: LedgerAccountBalance[]) => void;
|
|
2515
2515
|
sendingForm: boolean;
|
|
2516
2516
|
config: JournalConfig;
|
|
2517
2517
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3494,12 +3494,12 @@ declare module '@layerfi/components/components/Quickbooks/index' {
|
|
|
3494
3494
|
|
|
3495
3495
|
}
|
|
3496
3496
|
declare module '@layerfi/components/components/RadioButtonGroup/RadioButton' {
|
|
3497
|
-
import
|
|
3497
|
+
import type { ChangeEvent } from 'react';
|
|
3498
3498
|
type Props = {
|
|
3499
3499
|
checked: boolean;
|
|
3500
3500
|
label: string;
|
|
3501
3501
|
name: string;
|
|
3502
|
-
onChange: (event:
|
|
3502
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
3503
3503
|
value: string;
|
|
3504
3504
|
disabled?: boolean;
|
|
3505
3505
|
size: 'small' | 'large';
|
|
@@ -3509,7 +3509,6 @@ declare module '@layerfi/components/components/RadioButtonGroup/RadioButton' {
|
|
|
3509
3509
|
|
|
3510
3510
|
}
|
|
3511
3511
|
declare module '@layerfi/components/components/RadioButtonGroup/RadioButtonGroup' {
|
|
3512
|
-
import React from 'react';
|
|
3513
3512
|
export type RadioButtonLabel = {
|
|
3514
3513
|
label: string;
|
|
3515
3514
|
value: string;
|
|
@@ -3555,7 +3554,6 @@ declare module '@layerfi/components/components/SkeletonLoader/index' {
|
|
|
3555
3554
|
|
|
3556
3555
|
}
|
|
3557
3556
|
declare module '@layerfi/components/components/SkeletonTableLoader/SkeletonTableLoader' {
|
|
3558
|
-
import React from 'react';
|
|
3559
3557
|
interface SkeletonTableLoaderProps {
|
|
3560
3558
|
rows: number;
|
|
3561
3559
|
cols: Array<{
|
|
@@ -3749,7 +3747,6 @@ declare module '@layerfi/components/components/TableHead/index' {
|
|
|
3749
3747
|
|
|
3750
3748
|
}
|
|
3751
3749
|
declare module '@layerfi/components/components/TableRow/TableRow' {
|
|
3752
|
-
import React from 'react';
|
|
3753
3750
|
import { TableRowProps } from '@layerfi/components/types/table';
|
|
3754
3751
|
export const TableRow: React.FC<TableRowProps>;
|
|
3755
3752
|
|
|
@@ -3799,10 +3796,10 @@ declare module '@layerfi/components/components/Tabs/index' {
|
|
|
3799
3796
|
|
|
3800
3797
|
}
|
|
3801
3798
|
declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
3802
|
-
import
|
|
3799
|
+
import { ReactNode } from 'react';
|
|
3803
3800
|
import { useTasks } from '@layerfi/components/hooks/useTasks/index';
|
|
3804
3801
|
export type UseTasksContextType = ReturnType<typeof useTasks>;
|
|
3805
|
-
export const UseTasksContext:
|
|
3802
|
+
export const UseTasksContext: import("react").Context<{
|
|
3806
3803
|
data?: import("@layerfi/components/types/tasks").Task[];
|
|
3807
3804
|
monthlyData?: import("@layerfi/components/types/tasks").TasksMonthly[];
|
|
3808
3805
|
isLoading?: boolean;
|
|
@@ -4014,7 +4011,7 @@ declare module '@layerfi/components/components/Toggle/index' {
|
|
|
4014
4011
|
|
|
4015
4012
|
}
|
|
4016
4013
|
declare module '@layerfi/components/components/Tooltip/Tooltip' {
|
|
4017
|
-
import
|
|
4014
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
4018
4015
|
import type { Placement } from '@floating-ui/react';
|
|
4019
4016
|
export interface TooltipOptions {
|
|
4020
4017
|
initialOpen?: boolean;
|
|
@@ -4030,11 +4027,11 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
|
|
|
4030
4027
|
export const Tooltip: ({ children, ...options }: {
|
|
4031
4028
|
children: ReactNode;
|
|
4032
4029
|
} & TooltipOptions) => import("react/jsx-runtime").JSX.Element;
|
|
4033
|
-
export const TooltipTrigger:
|
|
4030
|
+
export const TooltipTrigger: import("react").ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & {
|
|
4034
4031
|
asChild?: boolean;
|
|
4035
|
-
}, "ref"> &
|
|
4032
|
+
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
4036
4033
|
type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
|
|
4037
|
-
export const TooltipContent:
|
|
4034
|
+
export const TooltipContent: import("react").ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4038
4035
|
export {};
|
|
4039
4036
|
|
|
4040
4037
|
}
|
|
@@ -4044,10 +4041,9 @@ declare module '@layerfi/components/components/Tooltip/index' {
|
|
|
4044
4041
|
|
|
4045
4042
|
}
|
|
4046
4043
|
declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
4047
|
-
import React from 'react';
|
|
4048
4044
|
import { TooltipOptions } from '@layerfi/components/components/Tooltip/Tooltip';
|
|
4049
4045
|
export type ContextType = ReturnType<typeof useTooltip> | null;
|
|
4050
|
-
export const TooltipContext:
|
|
4046
|
+
export const TooltipContext: import("react").Context<ContextType>;
|
|
4051
4047
|
export const useTooltipContext: () => {
|
|
4052
4048
|
placement: import("@floating-ui/utils").Placement;
|
|
4053
4049
|
strategy: import("@floating-ui/utils").Strategy;
|
|
@@ -4058,7 +4054,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
4058
4054
|
update: () => void;
|
|
4059
4055
|
floatingStyles: React.CSSProperties;
|
|
4060
4056
|
refs: {
|
|
4061
|
-
reference:
|
|
4057
|
+
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
4062
4058
|
floating: React.MutableRefObject<HTMLElement | null>;
|
|
4063
4059
|
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
4064
4060
|
setFloating: (node: HTMLElement | null) => void;
|
|
@@ -4094,7 +4090,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
4094
4090
|
open: boolean;
|
|
4095
4091
|
setOpen: (open: boolean) => void;
|
|
4096
4092
|
isMounted: boolean;
|
|
4097
|
-
styles:
|
|
4093
|
+
styles: import("react").CSSProperties;
|
|
4098
4094
|
disabled: boolean | undefined;
|
|
4099
4095
|
};
|
|
4100
4096
|
export const useTooltip: ({ initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen, disabled, offset: offsetProp, shift: shiftProp, }?: TooltipOptions) => {
|
|
@@ -4107,7 +4103,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
4107
4103
|
update: () => void;
|
|
4108
4104
|
floatingStyles: React.CSSProperties;
|
|
4109
4105
|
refs: {
|
|
4110
|
-
reference:
|
|
4106
|
+
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
4111
4107
|
floating: React.MutableRefObject<HTMLElement | null>;
|
|
4112
4108
|
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
4113
4109
|
setFloating: (node: HTMLElement | null) => void;
|
|
@@ -4143,7 +4139,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
4143
4139
|
open: boolean;
|
|
4144
4140
|
setOpen: (open: boolean) => void;
|
|
4145
4141
|
isMounted: boolean;
|
|
4146
|
-
styles:
|
|
4142
|
+
styles: import("react").CSSProperties;
|
|
4147
4143
|
disabled: boolean | undefined;
|
|
4148
4144
|
};
|
|
4149
4145
|
|
|
@@ -4155,7 +4151,7 @@ declare module '@layerfi/components/components/Typography/ErrorText' {
|
|
|
4155
4151
|
|
|
4156
4152
|
}
|
|
4157
4153
|
declare module '@layerfi/components/components/Typography/Heading' {
|
|
4158
|
-
import
|
|
4154
|
+
import { ReactNode } from 'react';
|
|
4159
4155
|
export enum HeadingSize {
|
|
4160
4156
|
primary = "primary",
|
|
4161
4157
|
secondary = "secondary",
|
|
@@ -4172,7 +4168,7 @@ declare module '@layerfi/components/components/Typography/Heading' {
|
|
|
4172
4168
|
|
|
4173
4169
|
}
|
|
4174
4170
|
declare module '@layerfi/components/components/Typography/Text' {
|
|
4175
|
-
import
|
|
4171
|
+
import { ReactNode } from 'react';
|
|
4176
4172
|
export enum TextSize {
|
|
4177
4173
|
lg = "lg",
|
|
4178
4174
|
md = "md",
|
|
@@ -4227,7 +4223,7 @@ declare module '@layerfi/components/components/UpsellBanner/index' {
|
|
|
4227
4223
|
|
|
4228
4224
|
}
|
|
4229
4225
|
declare module '@layerfi/components/components/View/View' {
|
|
4230
|
-
import
|
|
4226
|
+
import { ReactNode } from 'react';
|
|
4231
4227
|
export interface ViewProps {
|
|
4232
4228
|
children: ReactNode;
|
|
4233
4229
|
title?: string;
|
|
@@ -4239,7 +4235,7 @@ declare module '@layerfi/components/components/View/View' {
|
|
|
4239
4235
|
sidebar?: ReactNode;
|
|
4240
4236
|
viewClassName?: string;
|
|
4241
4237
|
}
|
|
4242
|
-
const View:
|
|
4238
|
+
const View: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4243
4239
|
export { View };
|
|
4244
4240
|
|
|
4245
4241
|
}
|
|
@@ -4262,15 +4258,14 @@ declare module '@layerfi/components/components/ViewHeader/index' {
|
|
|
4262
4258
|
|
|
4263
4259
|
}
|
|
4264
4260
|
declare module '@layerfi/components/components/ui/Button/Button' {
|
|
4265
|
-
import React from 'react';
|
|
4266
4261
|
import { type ButtonProps } from 'react-aria-components';
|
|
4267
4262
|
type ButtonVariant = 'solid' | 'ghost';
|
|
4268
4263
|
type ButtonSize = 'md' | 'lg';
|
|
4269
|
-
const Button:
|
|
4264
|
+
const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "className"> & {
|
|
4270
4265
|
icon?: true;
|
|
4271
4266
|
size?: ButtonSize;
|
|
4272
4267
|
variant?: ButtonVariant;
|
|
4273
|
-
} &
|
|
4268
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4274
4269
|
export { Button };
|
|
4275
4270
|
|
|
4276
4271
|
}
|
|
@@ -4287,16 +4282,16 @@ declare module '@layerfi/components/components/ui/Loading/LoadingSpinner' {
|
|
|
4287
4282
|
|
|
4288
4283
|
}
|
|
4289
4284
|
declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
4290
|
-
import
|
|
4285
|
+
import { type ComponentProps } from 'react';
|
|
4291
4286
|
import { type DialogProps, type ModalOverlayProps } from 'react-aria-components';
|
|
4292
4287
|
type ModalSize = 'md' | 'lg';
|
|
4293
|
-
const ModalOverlay:
|
|
4294
|
-
const InternalModal:
|
|
4288
|
+
const ModalOverlay: import("react").ForwardRefExoticComponent<Omit<ModalOverlayProps, "className"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4289
|
+
const InternalModal: import("react").ForwardRefExoticComponent<{
|
|
4295
4290
|
size?: ModalSize;
|
|
4296
4291
|
} & {
|
|
4297
|
-
children?:
|
|
4298
|
-
} &
|
|
4299
|
-
const Dialog:
|
|
4292
|
+
children?: import("react").ReactNode | undefined;
|
|
4293
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
4294
|
+
const Dialog: import("react").ForwardRefExoticComponent<Omit<DialogProps, "className"> & import("react").RefAttributes<HTMLElement>>;
|
|
4300
4295
|
type AllowedModalOverlayProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
|
|
4301
4296
|
type AllowedInternalModalProps = Pick<ComponentProps<typeof InternalModal>, 'size'>;
|
|
4302
4297
|
type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
|
|
@@ -4306,23 +4301,23 @@ declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
|
4306
4301
|
|
|
4307
4302
|
}
|
|
4308
4303
|
declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
|
|
4309
|
-
import
|
|
4304
|
+
import { type PropsWithChildren } from 'react';
|
|
4310
4305
|
type ModalContextBarProps = {
|
|
4311
4306
|
onClose?: () => void;
|
|
4312
4307
|
};
|
|
4313
4308
|
function ModalContextBar({ onClose }: ModalContextBarProps): import("react/jsx-runtime").JSX.Element;
|
|
4314
|
-
const ModalHeading:
|
|
4309
|
+
const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & {
|
|
4315
4310
|
size?: "sm";
|
|
4316
4311
|
pbe?: "2xs" | "xs" | "sm" | "md" | "lg";
|
|
4317
|
-
}, "ref"> &
|
|
4318
|
-
const ModalDescription:
|
|
4312
|
+
}, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
4313
|
+
const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
4319
4314
|
slot?: string;
|
|
4320
4315
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4321
4316
|
pbe?: "xs" | "sm" | "md" | "lg";
|
|
4322
4317
|
align?: "center";
|
|
4323
4318
|
} & {
|
|
4324
|
-
children?:
|
|
4325
|
-
} &
|
|
4319
|
+
children?: import("react").ReactNode | undefined;
|
|
4320
|
+
} & import("react").RefAttributes<HTMLParagraphElement>, "slot">, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
4326
4321
|
function ModalContent({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
4327
4322
|
function ModalActions({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
4328
4323
|
export { ModalContextBar, ModalHeading, ModalDescription, ModalContent, ModalActions, };
|
|
@@ -4341,31 +4336,29 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
4341
4336
|
|
|
4342
4337
|
}
|
|
4343
4338
|
declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
4344
|
-
import React from 'react';
|
|
4345
4339
|
type HeadingDataProps = {
|
|
4346
4340
|
size?: 'sm';
|
|
4347
4341
|
pbe?: '2xs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
4348
4342
|
};
|
|
4349
|
-
const Heading:
|
|
4343
|
+
const Heading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
4350
4344
|
export { Heading };
|
|
4351
4345
|
|
|
4352
4346
|
}
|
|
4353
4347
|
declare module '@layerfi/components/components/ui/Typography/Text' {
|
|
4354
|
-
import React from 'react';
|
|
4355
4348
|
type TextProps = {
|
|
4356
4349
|
slot?: string;
|
|
4357
4350
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4358
4351
|
pbe?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4359
4352
|
align?: 'center';
|
|
4360
4353
|
};
|
|
4361
|
-
const P:
|
|
4362
|
-
children?:
|
|
4363
|
-
} &
|
|
4354
|
+
const P: import("react").ForwardRefExoticComponent<TextProps & {
|
|
4355
|
+
children?: import("react").ReactNode | undefined;
|
|
4356
|
+
} & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
4364
4357
|
export { P };
|
|
4365
4358
|
|
|
4366
4359
|
}
|
|
4367
4360
|
declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
4368
|
-
import
|
|
4361
|
+
import type { PropsWithChildren } from 'react';
|
|
4369
4362
|
type ConditionalListProps<T> = {
|
|
4370
4363
|
list: ReadonlyArray<T>;
|
|
4371
4364
|
Empty: React.ReactNode;
|
|
@@ -4380,24 +4373,23 @@ declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
|
4380
4373
|
isLoading?: never;
|
|
4381
4374
|
Loading?: never;
|
|
4382
4375
|
});
|
|
4383
|
-
export function ConditionalList<T>({ list, isLoading, Empty, Container, Loading, children, }: ConditionalListProps<T>): string | number | boolean | Iterable<
|
|
4376
|
+
export function ConditionalList<T>({ list, isLoading, Empty, Container, Loading, children, }: ConditionalListProps<T>): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
4384
4377
|
export {};
|
|
4385
4378
|
|
|
4386
4379
|
}
|
|
4387
4380
|
declare module '@layerfi/components/components/utility/InvisibleDownload' {
|
|
4388
|
-
import React from 'react';
|
|
4389
4381
|
type InvisibleDownloadHandle = {
|
|
4390
4382
|
trigger: (options: {
|
|
4391
4383
|
url: string;
|
|
4392
4384
|
}) => Promise<void>;
|
|
4393
4385
|
};
|
|
4394
4386
|
export function useInvisibleDownload(): {
|
|
4395
|
-
invisibleDownloadRef:
|
|
4387
|
+
invisibleDownloadRef: import("react").RefObject<InvisibleDownloadHandle>;
|
|
4396
4388
|
triggerInvisibleDownload: (options: {
|
|
4397
4389
|
url: string;
|
|
4398
4390
|
}) => void;
|
|
4399
4391
|
};
|
|
4400
|
-
const InvisibleDownload:
|
|
4392
|
+
const InvisibleDownload: import("react").ForwardRefExoticComponent<import("react").RefAttributes<InvisibleDownloadHandle>>;
|
|
4401
4393
|
export default InvisibleDownload;
|
|
4402
4394
|
|
|
4403
4395
|
}
|
|
@@ -4762,9 +4754,9 @@ declare module '@layerfi/components/contexts/StatementOfCashContext/index' {
|
|
|
4762
4754
|
|
|
4763
4755
|
}
|
|
4764
4756
|
declare module '@layerfi/components/contexts/TableContext/TableContext' {
|
|
4765
|
-
import
|
|
4757
|
+
import { ReactNode } from 'react';
|
|
4766
4758
|
import { TableContextProps } from '@layerfi/components/types/table';
|
|
4767
|
-
export const TableContext:
|
|
4759
|
+
export const TableContext: import("react").Context<TableContextProps>;
|
|
4768
4760
|
interface TableProviderProps {
|
|
4769
4761
|
children: ReactNode;
|
|
4770
4762
|
}
|
|
@@ -4807,6 +4799,10 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
|
4807
4799
|
declare module '@layerfi/components/contexts/TasksContext/index' {
|
|
4808
4800
|
export { TasksContext } from '@layerfi/components/contexts/TasksContext/TasksContext';
|
|
4809
4801
|
|
|
4802
|
+
}
|
|
4803
|
+
declare module '@layerfi/components/hooks/categories/useAllCategories' {
|
|
4804
|
+
export function useAllCategories(): import("swr").SWRResponse<import("../../types").Category[], any, any>;
|
|
4805
|
+
|
|
4810
4806
|
}
|
|
4811
4807
|
declare module '@layerfi/components/hooks/useAuth' {
|
|
4812
4808
|
export function useAuth(): import("swr").SWRResponse<{
|