@layerfi/components 0.1.2 → 0.1.4

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
@@ -233,7 +233,10 @@ declare module '@layerfi/components/components/BankTransactionRow/index' {
233
233
  }
234
234
  declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
235
235
  import React from 'react';
236
- export const BankTransactions: () => React.JSX.Element;
236
+ export interface BankTransactionsProps {
237
+ asWidget?: boolean;
238
+ }
239
+ export const BankTransactions: ({ asWidget, }: BankTransactionsProps) => React.JSX.Element;
237
240
 
238
241
  }
239
242
  declare module '@layerfi/components/components/BankTransactions/index' {
@@ -329,9 +332,10 @@ declare module '@layerfi/components/components/Container/Container' {
329
332
  export interface ContainerProps {
330
333
  name: string;
331
334
  className?: string;
335
+ asWidget?: boolean;
332
336
  children: ReactNode;
333
337
  }
334
- export const Container: ({ name, className, children }: ContainerProps) => React.JSX.Element;
338
+ export const Container: ({ name, className, children, asWidget, }: ContainerProps) => React.JSX.Element;
335
339
 
336
340
  }
337
341
  declare module '@layerfi/components/components/Container/Header' {
@@ -348,6 +352,26 @@ declare module '@layerfi/components/components/Container/index' {
348
352
  export { Container } from '@layerfi/components/components/Container/Container';
349
353
  export { Header } from '@layerfi/components/components/Container/Header';
350
354
 
355
+ }
356
+ declare module '@layerfi/components/components/DataState/DataState' {
357
+ import React from 'react';
358
+ export enum DataStateStatus {
359
+ allDone = "allDone",
360
+ failed = "failed"
361
+ }
362
+ export interface DataStateProps {
363
+ status: DataStateStatus;
364
+ title?: string;
365
+ description?: string;
366
+ onRefresh?: () => void;
367
+ isLoading?: boolean;
368
+ }
369
+ export const DataState: ({ status, title, description, onRefresh, isLoading, }: DataStateProps) => React.JSX.Element;
370
+
371
+ }
372
+ declare module '@layerfi/components/components/DataState/index' {
373
+ export { DataState, DataStateStatus } from '@layerfi/components/components/DataState/DataState';
374
+
351
375
  }
352
376
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow' {
353
377
  import React from 'react';
@@ -357,7 +381,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
357
381
  close?: () => void;
358
382
  isOpen?: boolean;
359
383
  asListItem?: boolean;
360
- showSubmitButton?: boolean;
384
+ submitBtnText?: string;
361
385
  };
362
386
  export type SaveHandle = {
363
387
  save: () => void;
@@ -727,6 +751,7 @@ declare module '@layerfi/components/components/Typography/Heading' {
727
751
  declare module '@layerfi/components/components/Typography/Text' {
728
752
  import React, { ReactNode } from 'react';
729
753
  export enum TextSize {
754
+ lg = "lg",
730
755
  md = "md",
731
756
  sm = "sm"
732
757
  }
@@ -799,12 +824,14 @@ declare module '@layerfi/components/hooks/useBankTransactions/index' {
799
824
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
800
825
  import { BankTransaction, CategoryUpdate, Metadata } from '@layerfi/components/types';
801
826
  type UseBankTransactions = () => {
802
- data: BankTransaction[];
827
+ data?: BankTransaction[];
803
828
  metadata: Metadata;
804
829
  isLoading: boolean;
830
+ isValidating: boolean;
805
831
  error: unknown;
806
832
  categorize: (id: BankTransaction['id'], newCategory: CategoryUpdate) => Promise<void>;
807
833
  updateOneLocal: (bankTransaction: BankTransaction) => void;
834
+ refetch: () => void;
808
835
  };
809
836
  export const useBankTransactions: UseBankTransactions;
810
837
  export {};
@@ -872,6 +899,13 @@ declare module '@layerfi/components/icons/AlertCircle' {
872
899
  const AlertCircle: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
873
900
  export default AlertCircle;
874
901
 
902
+ }
903
+ declare module '@layerfi/components/icons/AlertOctagon' {
904
+ import * as React from 'react';
905
+ import { IconSvgProps } from '@layerfi/components/icons/types';
906
+ const AlertOctagon: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
907
+ export default AlertOctagon;
908
+
875
909
  }
876
910
  declare module '@layerfi/components/icons/Calendar' {
877
911
  import * as React from 'react';
@@ -957,11 +991,11 @@ declare module '@layerfi/components/icons/RefreshCcw' {
957
991
  export default RefreshCcw;
958
992
 
959
993
  }
960
- declare module '@layerfi/components/icons/ScissorsFullOpen' {
994
+ declare module '@layerfi/components/icons/Scissors' {
961
995
  import * as React from 'react';
962
996
  import { IconSvgProps } from '@layerfi/components/icons/types';
963
- const ScissorsFullOpen: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
964
- export default ScissorsFullOpen;
997
+ const Scissors: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
998
+ export default Scissors;
965
999
 
966
1000
  }
967
1001
  declare module '@layerfi/components/icons/UploadCloud' {
@@ -1150,6 +1184,7 @@ declare module '@layerfi/components/types/categories' {
1150
1184
  }[];
1151
1185
  };
1152
1186
  export type CategoryUpdate = SingleCategoryUpdate | SplitCategoryUpdate;
1187
+ export function hasSuggestions(categorization: Categorization): categorization is SuggestedCategorization;
1153
1188
 
1154
1189
  }
1155
1190
  declare module '@layerfi/components/types/chart_of_accounts' {