@layerfi/components 0.1.76 → 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/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, isOpen, showDescriptions, }: PersonalFormProps) => React.JSX.Element;
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, isOpen, showDescriptions, }: SplitAndMatchFormProps) => React.JSX.Element;
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
- export const BankTransactionReceiptsWithProvider: React.ForwardRefExoticComponent<BankTransactionReceiptsWithProviderProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
1232
- export const BankTransactionReceipts: React.ForwardRefExoticComponent<BankTransactionReceiptsProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
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
- export interface BackButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1438
+ type BackButtonProps = {
1438
1439
  textOnly?: boolean;
1439
- }
1440
- export const BackButton: ({ className, children, textOnly, ...props }: BackButtonProps) => React.JSX.Element;
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
- export interface CloseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1469
+ type CloseButtonProps = {
1468
1470
  textOnly?: boolean;
1469
- }
1470
- export const CloseButton: ({ className, children, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
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
- export interface ExpandButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1495
+ type ExpandButtonProps = {
1493
1496
  collapsed?: boolean;
1494
- }
1495
- export const ExpandButton: ({ className, children, collapsed, ...props }: ExpandButtonProps) => React.JSX.Element;
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
- export const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
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
- export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
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
- export const ExpandedBankTransactionRow: React.ForwardRefExoticComponent<Props & React.RefAttributes<SaveHandle>>;
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
- export interface FileThumbProps {
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, type, floatingActions, uploadPending, deletePending, name, date, onDelete, enableOpen, onOpen, enableDownload, error, }: FileThumbProps) => React.JSX.Element;
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
- export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLElement>>;
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' {
@@ -2887,7 +2895,7 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/Profi
2887
2895
 
2888
2896
  }
2889
2897
  declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index' {
2890
- export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
2898
+ export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps, } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
2891
2899
 
2892
2900
  }
2893
2901
  declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
@@ -3523,7 +3531,7 @@ declare module '@layerfi/components/components/Toast/Toast' {
3523
3531
  duration?: number;
3524
3532
  isExiting?: boolean;
3525
3533
  }
3526
- export const ToastsContainer: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3534
+ export function ToastsContainer(): React.JSX.Element;
3527
3535
 
3528
3536
  }
3529
3537
  declare module '@layerfi/components/components/Toggle/Toggle' {
@@ -3556,7 +3564,7 @@ declare module '@layerfi/components/components/Toggle/index' {
3556
3564
 
3557
3565
  }
3558
3566
  declare module '@layerfi/components/components/Tooltip/Tooltip' {
3559
- import React, { ReactNode } from 'react';
3567
+ import React, { ReactNode, HTMLProps } from 'react';
3560
3568
  import type { Placement } from '@floating-ui/react';
3561
3569
  export interface TooltipOptions {
3562
3570
  initialOpen?: boolean;
@@ -3575,7 +3583,9 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
3575
3583
  export const TooltipTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
3576
3584
  asChild?: boolean | undefined;
3577
3585
  }, "ref"> & React.RefAttributes<HTMLElement>>;
3578
- export const TooltipContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3586
+ type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
3587
+ export const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
3588
+ export {};
3579
3589
 
3580
3590
  }
3581
3591
  declare module '@layerfi/components/components/Tooltip/index' {
@@ -3745,7 +3755,7 @@ declare module '@layerfi/components/components/Typography/Text' {
3745
3755
  tooltipOptions?: TextTooltipOptions;
3746
3756
  }
3747
3757
  export const Text: ({ as: Component, className, children, size, weight, withTooltip, ...props }: TextProps) => React.JSX.Element;
3748
- 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;
3749
3759
 
3750
3760
  }
3751
3761
  declare module '@layerfi/components/components/Typography/index' {
@@ -3781,7 +3791,8 @@ declare module '@layerfi/components/components/View/View' {
3781
3791
  sidebar?: ReactNode;
3782
3792
  viewClassName?: string;
3783
3793
  }
3784
- export const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
3794
+ const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
3795
+ export { View };
3785
3796
 
3786
3797
  }
3787
3798
  declare module '@layerfi/components/components/View/index' {
@@ -4290,7 +4301,7 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
4290
4301
  }
4291
4302
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
4292
4303
  import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
4293
- import { ChartWithBalances, LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
4304
+ import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
4294
4305
  import { BaseSelectOption } from '@layerfi/components/types/general';
4295
4306
  export interface ChartOfAccountsForm {
4296
4307
  action: 'new' | 'edit';
@@ -4312,12 +4323,12 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
4312
4323
  };
4313
4324
  export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
4314
4325
  export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
4315
- data: ChartWithBalances | undefined;
4326
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
4316
4327
  isLoading: boolean;
4317
4328
  isValidating: boolean;
4318
4329
  error: any;
4319
4330
  refetch: () => Promise<{
4320
- data: ChartWithBalances;
4331
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
4321
4332
  } | undefined>;
4322
4333
  create: (newAccount: NewAccount) => Promise<void>;
4323
4334
  form: ChartOfAccountsForm | undefined;
@@ -4452,7 +4463,7 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
4452
4463
  }
4453
4464
  declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
4454
4465
  import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
4455
- type UseLedgerAccounts = (showReversalEntries: Boolean) => {
4466
+ type UseLedgerAccounts = (showReversalEntries: boolean) => {
4456
4467
  data?: LedgerAccounts;
4457
4468
  entryData?: LedgerAccountsEntry;
4458
4469
  isLoading?: boolean;
@@ -5311,7 +5322,7 @@ declare module '@layerfi/components/types/bank_transactions' {
5311
5322
  processing?: boolean;
5312
5323
  suggested_matches?: SuggestedMatch[];
5313
5324
  match?: BankTransactionMatch;
5314
- document_ids: String[];
5325
+ document_ids: string[];
5315
5326
  }
5316
5327
  export interface SuggestedMatch {
5317
5328
  id: string;