@layerfi/components 0.1.64 → 0.1.65

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
@@ -723,8 +723,9 @@ declare module '@layerfi/components/components/ActionableList/ActionableList' {
723
723
  options: ActionableListOption<T>[];
724
724
  onClick: (item: ActionableListOption<T>) => void;
725
725
  selectedId?: string;
726
+ showDescriptions?: boolean;
726
727
  }
727
- export const ActionableList: <T>({ options, onClick, selectedId, }: ActionableListProps<T>) => React.JSX.Element;
728
+ export const ActionableList: <T>({ options, onClick, selectedId, showDescriptions, }: ActionableListProps<T>) => React.JSX.Element;
728
729
  export {};
729
730
 
730
731
  }
@@ -896,9 +897,10 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
896
897
  removeTransaction: (bt: BankTransaction) => void;
897
898
  showDescriptions?: boolean;
898
899
  showReceiptUploads?: boolean;
900
+ showTooltips: boolean;
899
901
  stringOverrides?: BankTransactionCTAStringOverrides;
900
902
  }
901
- export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, mode, containerWidth, showDescriptions, showReceiptUploads, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
903
+ export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, mode, containerWidth, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
902
904
  export {};
903
905
 
904
906
  }
@@ -914,11 +916,12 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
914
916
  mode: BankTransactionsMode;
915
917
  showDescriptions: boolean;
916
918
  showReceiptUploads: boolean;
919
+ showTooltips: boolean;
917
920
  removeTransaction: (bt: BankTransaction) => void;
918
921
  containerWidth?: number;
919
922
  stringOverrides?: BankTransactionCTAStringOverrides;
920
923
  };
921
- export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, mode, showDescriptions, showReceiptUploads, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
924
+ export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, mode, showDescriptions, showReceiptUploads, showTooltips, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
922
925
  export {};
923
926
 
924
927
  }
@@ -933,8 +936,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
933
936
  interface BankTransactionMobileFormsProps {
934
937
  purpose: Purpose;
935
938
  bankTransaction: BankTransaction;
939
+ showTooltips: boolean;
936
940
  }
937
- export const BankTransactionMobileForms: ({ purpose, bankTransaction, }: BankTransactionMobileFormsProps) => React.JSX.Element;
941
+ export const BankTransactionMobileForms: ({ purpose, bankTransaction, showTooltips, }: BankTransactionMobileFormsProps) => React.JSX.Element;
938
942
  export {};
939
943
 
940
944
  }
@@ -947,9 +951,10 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
947
951
  editable: boolean;
948
952
  removeTransaction: (bt: BankTransaction) => void;
949
953
  initialLoad?: boolean;
954
+ showTooltips: boolean;
950
955
  mode: BankTransactionsMode;
951
956
  }
952
- export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, mode, }: BankTransactionMobileListProps) => React.JSX.Element;
957
+ export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, showTooltips, mode, }: BankTransactionMobileListProps) => React.JSX.Element;
953
958
 
954
959
  }
955
960
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
@@ -962,6 +967,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
962
967
  editable: boolean;
963
968
  removeTransaction: (bt: BankTransaction) => void;
964
969
  initialLoad?: boolean;
970
+ showTooltips: boolean;
965
971
  mode: BankTransactionsMode;
966
972
  isFirstItem?: boolean;
967
973
  }
@@ -970,7 +976,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
970
976
  personal = "personal",
971
977
  more = "more"
972
978
  }
973
- export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad, isFirstItem, }: BankTransactionMobileListItemProps) => React.JSX.Element;
979
+ export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad, showTooltips, isFirstItem, }: BankTransactionMobileListItemProps) => React.JSX.Element;
974
980
 
975
981
  }
976
982
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessCategories' {
@@ -988,8 +994,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
988
994
  import { BankTransaction } from '@layerfi/components/types';
989
995
  interface BusinessFormProps {
990
996
  bankTransaction: BankTransaction;
997
+ showTooltips: boolean;
991
998
  }
992
- export const BusinessForm: ({ bankTransaction }: BusinessFormProps) => React.JSX.Element;
999
+ export const BusinessForm: ({ bankTransaction, showTooltips, }: BusinessFormProps) => React.JSX.Element;
993
1000
  export {};
994
1001
 
995
1002
  }
@@ -1016,16 +1023,18 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
1016
1023
  import { BankTransaction } from '@layerfi/components/types';
1017
1024
  interface SplitAndMatchFormProps {
1018
1025
  bankTransaction: BankTransaction;
1026
+ showTooltips: boolean;
1019
1027
  }
1020
- export const SplitAndMatchForm: ({ bankTransaction, }: SplitAndMatchFormProps) => React.JSX.Element;
1028
+ export const SplitAndMatchForm: ({ bankTransaction, showTooltips, }: SplitAndMatchFormProps) => React.JSX.Element;
1021
1029
  export {};
1022
1030
 
1023
1031
  }
1024
1032
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
1025
1033
  import React from 'react';
1026
1034
  import { BankTransaction } from '@layerfi/components/types';
1027
- export const SplitForm: ({ bankTransaction, }: {
1035
+ export const SplitForm: ({ bankTransaction, showTooltips, }: {
1028
1036
  bankTransaction: BankTransaction;
1037
+ showTooltips: boolean;
1029
1038
  }) => React.JSX.Element;
1030
1039
 
1031
1040
  }
@@ -1091,13 +1100,14 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1091
1100
  initialLoad?: boolean;
1092
1101
  showDescriptions: boolean;
1093
1102
  showReceiptUploads: boolean;
1103
+ showTooltips: boolean;
1094
1104
  mode: BankTransactionsMode;
1095
1105
  stringOverrides?: BankTransactionCTAStringOverrides;
1096
1106
  };
1097
1107
  export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
1098
1108
  export const extractDescriptionForSplit: (category: Category) => string;
1099
1109
  export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
1100
- export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, stringOverrides, }: Props) => React.JSX.Element;
1110
+ export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, }: Props) => React.JSX.Element;
1101
1111
  export {};
1102
1112
 
1103
1113
  }
@@ -1149,6 +1159,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1149
1159
  mode?: BankTransactionsMode;
1150
1160
  showDescriptions?: boolean;
1151
1161
  showReceiptUploads?: boolean;
1162
+ showTooltips?: boolean;
1152
1163
  monthlyView?: boolean;
1153
1164
  categorizeView?: boolean;
1154
1165
  mobileComponent?: MobileComponentType;
@@ -1223,8 +1234,9 @@ declare module '@layerfi/components/components/BankTransactions/utils' {
1223
1234
  }
1224
1235
  declare module '@layerfi/components/components/BankTransactionsLoader/BankTransactionsLoader' {
1225
1236
  import React from 'react';
1226
- export const BankTransactionsLoader: ({ isLoading, }: {
1237
+ export const BankTransactionsLoader: ({ isLoading, showTooltips }: {
1227
1238
  isLoading: boolean;
1239
+ showTooltips: boolean;
1228
1240
  }) => React.JSX.Element;
1229
1241
 
1230
1242
  }
@@ -1255,13 +1267,14 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1255
1267
  removeTransaction: (bt: BankTransaction) => void;
1256
1268
  showDescriptions?: boolean;
1257
1269
  showReceiptUploads?: boolean;
1270
+ showTooltips: boolean;
1258
1271
  stringOverrides?: BankTransactionsStringOverrides;
1259
1272
  isSyncing?: boolean;
1260
1273
  page?: number;
1261
1274
  lastPage?: boolean;
1262
1275
  onRefresh?: () => void;
1263
1276
  }
1264
- export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1277
+ export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1265
1278
  export {};
1266
1279
 
1267
1280
  }
@@ -1458,6 +1471,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
1458
1471
  onChange: (newValue: CategoryOption) => void;
1459
1472
  disabled?: boolean;
1460
1473
  className?: string;
1474
+ showTooltips: boolean;
1461
1475
  excludeMatches?: boolean;
1462
1476
  asDrawer?: boolean;
1463
1477
  };
@@ -1486,7 +1500,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
1486
1500
  export const mapCategoryToOption: (category: Category) => CategoryOption;
1487
1501
  export const mapCategoryToExclusionOption: (category: Category) => CategoryOption;
1488
1502
  export const mapSuggestedMatchToOption: (record: SuggestedMatch) => CategoryOption;
1489
- export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, excludeMatches, asDrawer, }: Props) => React.JSX.Element;
1503
+ export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, showTooltips, excludeMatches, asDrawer, }: Props) => React.JSX.Element;
1490
1504
  export {};
1491
1505
 
1492
1506
  }
@@ -1861,6 +1875,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
1861
1875
  categorized?: boolean;
1862
1876
  showDescriptions: boolean;
1863
1877
  showReceiptUploads: boolean;
1878
+ showTooltips: boolean;
1864
1879
  };
1865
1880
  export type SaveHandle = {
1866
1881
  save: () => void;
@@ -5812,11 +5827,12 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
5812
5827
  showBreakConnection?: boolean;
5813
5828
  showDescriptions?: boolean;
5814
5829
  showReceiptUploads?: boolean;
5830
+ showTooltips?: boolean;
5815
5831
  mode?: BankTransactionsMode;
5816
5832
  mobileComponent?: MobileComponentType;
5817
5833
  stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
5818
5834
  }
5819
- export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5835
+ export const BankTransactionsWithLinkedAccounts: ({ title, showTitle, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, showTooltips, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5820
5836
  export {};
5821
5837
 
5822
5838
  }
package/dist/index.js CHANGED
@@ -4920,7 +4920,8 @@ var import_classnames23 = __toESM(require("classnames"));
4920
4920
  var ActionableList = ({
4921
4921
  options,
4922
4922
  onClick,
4923
- selectedId
4923
+ selectedId,
4924
+ showDescriptions = false
4924
4925
  }) => {
4925
4926
  return /* @__PURE__ */ import_react55.default.createElement("ul", { className: "Layer__actionable-list" }, options.map((x, idx) => /* @__PURE__ */ import_react55.default.createElement(
4926
4927
  "li",
@@ -4939,7 +4940,7 @@ var ActionableList = ({
4939
4940
  { className: "Layer__actionable-list__content" },
4940
4941
  /* @__PURE__ */ import_react55.default.createElement(Text, { size: "sm" /* sm */ }, x.label),
4941
4942
  /*TODO: Replace 'See all categories' with something more generic*/
4942
- x.description && x.label !== "See all categories" && /* @__PURE__ */ import_react55.default.createElement(
4943
+ showDescriptions && x.description && x.label !== "See all categories" && /* @__PURE__ */ import_react55.default.createElement(
4943
4944
  Text,
4944
4945
  {
4945
4946
  className: "Layer__actionable-list__content-description",
@@ -5195,7 +5196,7 @@ var Option2 = (props) => {
5195
5196
  className: `Layer__select__option-menu-content ${props.className}`
5196
5197
  },
5197
5198
  /* @__PURE__ */ import_react58.default.createElement("div", { className: "Layer__select__option-menu--name" }, props.isSelected ? /* @__PURE__ */ import_react58.default.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ import_react58.default.createElement(Check_default, { size: 16 })) : /* @__PURE__ */ import_react58.default.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ import_react58.default.createElement("div", { style: { width: 16, height: 16 } })), /* @__PURE__ */ import_react58.default.createElement("div", null, props.data.payload.display_name)),
5198
- props.data.payload.description && /* @__PURE__ */ import_react58.default.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ import_react58.default.createElement(Tooltip, null, /* @__PURE__ */ import_react58.default.createElement(TooltipTrigger, null, /* @__PURE__ */ import_react58.default.createElement(InfoIcon_default, null)), /* @__PURE__ */ import_react58.default.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ import_react58.default.createElement(
5199
+ props.showTooltips && props.data.payload.description && /* @__PURE__ */ import_react58.default.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ import_react58.default.createElement(Tooltip, null, /* @__PURE__ */ import_react58.default.createElement(TooltipTrigger, null, /* @__PURE__ */ import_react58.default.createElement(InfoIcon_default, null)), /* @__PURE__ */ import_react58.default.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ import_react58.default.createElement(
5199
5200
  Text,
5200
5201
  {
5201
5202
  className: "Layer__actionable-list__content-description",
@@ -5244,6 +5245,7 @@ var CategorySelect = ({
5244
5245
  onChange,
5245
5246
  disabled,
5246
5247
  className,
5248
+ showTooltips,
5247
5249
  excludeMatches = false,
5248
5250
  asDrawer = false
5249
5251
  }) => {
@@ -5307,7 +5309,11 @@ var CategorySelect = ({
5307
5309
  styles: {
5308
5310
  menuPortal: (base) => ({ ...base, zIndex: 9999 })
5309
5311
  },
5310
- components: { DropdownIndicator, GroupHeading, Option: Option2 },
5312
+ components: {
5313
+ DropdownIndicator,
5314
+ GroupHeading,
5315
+ Option: (optionProps) => /* @__PURE__ */ import_react58.default.createElement(Option2, { ...optionProps, showTooltips })
5316
+ },
5311
5317
  isDisabled: disabled,
5312
5318
  isOptionDisabled: (option) => option.disabled ?? false,
5313
5319
  isOptionSelected: (option) => selected?.payload.display_name == option.payload.display_name
@@ -6142,7 +6148,8 @@ var ExpandedBankTransactionRow = (0, import_react71.forwardRef)(
6142
6148
  containerWidth,
6143
6149
  showDescriptions,
6144
6150
  mode,
6145
- showReceiptUploads
6151
+ showReceiptUploads,
6152
+ showTooltips
6146
6153
  }, ref) => {
6147
6154
  const {
6148
6155
  categorize: categorizeBankTransaction2,
@@ -6496,7 +6503,8 @@ var ExpandedBankTransactionRow = (0, import_react71.forwardRef)(
6496
6503
  onChange: (value) => changeCategory(index, value),
6497
6504
  className: "Layer__category-menu--full",
6498
6505
  disabled: bankTransaction.processing || !categorizationEnabled(mode),
6499
- excludeMatches: true
6506
+ excludeMatches: true,
6507
+ showTooltips
6500
6508
  }
6501
6509
  ),
6502
6510
  index > 0 && /* @__PURE__ */ import_react71.default.createElement(
@@ -6665,6 +6673,7 @@ var BankTransactionRow = ({
6665
6673
  initialLoad,
6666
6674
  showDescriptions,
6667
6675
  showReceiptUploads,
6676
+ showTooltips,
6668
6677
  stringOverrides
6669
6678
  }) => {
6670
6679
  const expandedRowRef = (0, import_react73.useRef)(null);
@@ -6820,7 +6829,8 @@ var BankTransactionRow = ({
6820
6829
  setSelectedCategory(category);
6821
6830
  setShowRetry(false);
6822
6831
  },
6823
- disabled: bankTransaction.processing
6832
+ disabled: bankTransaction.processing,
6833
+ showTooltips
6824
6834
  }
6825
6835
  ) : null,
6826
6836
  categorized && !open ? /* @__PURE__ */ import_react73.default.createElement(Text, { as: "span", className: `${className}__category-text` }, bankTransaction.categorization_status === "SPLIT" /* SPLIT */ && /* @__PURE__ */ import_react73.default.createElement(import_react73.default.Fragment, null, /* @__PURE__ */ import_react73.default.createElement(
@@ -6912,7 +6922,8 @@ var BankTransactionRow = ({
6912
6922
  close: () => setOpen(false),
6913
6923
  containerWidth,
6914
6924
  showDescriptions,
6915
- showReceiptUploads
6925
+ showReceiptUploads,
6926
+ showTooltips
6916
6927
  }
6917
6928
  ))));
6918
6929
  };
@@ -6965,6 +6976,7 @@ var BankTransactionListItem = ({
6965
6976
  mode,
6966
6977
  showDescriptions,
6967
6978
  showReceiptUploads,
6979
+ showTooltips,
6968
6980
  containerWidth,
6969
6981
  removeTransaction,
6970
6982
  stringOverrides
@@ -7061,7 +7073,8 @@ var BankTransactionListItem = ({
7061
7073
  submitBtnText: categorized ? stringOverrides?.updateButtonText || "Update" : stringOverrides?.approveButtonText || "Approve",
7062
7074
  containerWidth,
7063
7075
  showDescriptions,
7064
- showReceiptUploads
7076
+ showReceiptUploads,
7077
+ showTooltips
7065
7078
  }
7066
7079
  )), /* @__PURE__ */ import_react75.default.createElement("span", { className: `${className}__base-row` }, !categorized ? /* @__PURE__ */ import_react75.default.createElement(
7067
7080
  CategorySelect,
@@ -7073,7 +7086,8 @@ var BankTransactionListItem = ({
7073
7086
  setShowRetry(false);
7074
7087
  setSelectedCategory(category);
7075
7088
  },
7076
- disabled: bankTransaction.processing
7089
+ disabled: bankTransaction.processing,
7090
+ showTooltips
7077
7091
  }
7078
7092
  ) : null, categorized ? /* @__PURE__ */ import_react75.default.createElement(Assignment, { bankTransaction }) : null, !categorized && !showRetry ? /* @__PURE__ */ import_react75.default.createElement(
7079
7093
  SubmitButton,
@@ -7113,6 +7127,7 @@ var BankTransactionList = ({
7113
7127
  containerWidth,
7114
7128
  showDescriptions = false,
7115
7129
  showReceiptUploads = false,
7130
+ showTooltips,
7116
7131
  stringOverrides
7117
7132
  }) => {
7118
7133
  return /* @__PURE__ */ import_react76.default.createElement("ul", { className: "Layer__bank-transactions__list" }, bankTransactions?.map(
@@ -7129,6 +7144,7 @@ var BankTransactionList = ({
7129
7144
  containerWidth,
7130
7145
  showDescriptions,
7131
7146
  showReceiptUploads,
7147
+ showTooltips,
7132
7148
  stringOverrides
7133
7149
  }
7134
7150
  )
@@ -7146,7 +7162,10 @@ var import_react82 = __toESM(require("react"));
7146
7162
 
7147
7163
  // src/components/BankTransactionMobileList/BusinessForm.tsx
7148
7164
  var import_react77 = __toESM(require("react"));
7149
- var BusinessForm = ({ bankTransaction }) => {
7165
+ var BusinessForm = ({
7166
+ bankTransaction,
7167
+ showTooltips
7168
+ }) => {
7150
7169
  const { setContent, close } = (0, import_react77.useContext)(DrawerContext);
7151
7170
  const { categorize: categorizeBankTransaction2, isLoading } = useBankTransactionsContext();
7152
7171
  const [selectedCategory, setSelectedCategory] = (0, import_react77.useState)(
@@ -7229,7 +7248,8 @@ var BusinessForm = ({ bankTransaction }) => {
7229
7248
  {
7230
7249
  options,
7231
7250
  onClick: onCategorySelect,
7232
- selectedId: selectedCategory?.id
7251
+ selectedId: selectedCategory?.id,
7252
+ showDescriptions: showTooltips
7233
7253
  }
7234
7254
  ), options.length === 0 ? /* @__PURE__ */ import_react77.default.createElement(
7235
7255
  Button,
@@ -7366,7 +7386,8 @@ var MatchForm2 = ({
7366
7386
  var import_react80 = __toESM(require("react"));
7367
7387
  var import_classnames38 = __toESM(require("classnames"));
7368
7388
  var SplitForm = ({
7369
- bankTransaction
7389
+ bankTransaction,
7390
+ showTooltips
7370
7391
  }) => {
7371
7392
  const {
7372
7393
  categorize: categorizeBankTransaction2,
@@ -7517,7 +7538,8 @@ var SplitForm = ({
7517
7538
  className: "Layer__category-menu--full",
7518
7539
  disabled: bankTransaction.processing,
7519
7540
  excludeMatches: true,
7520
- asDrawer: true
7541
+ asDrawer: true,
7542
+ showTooltips
7521
7543
  }
7522
7544
  )),
7523
7545
  /* @__PURE__ */ import_react80.default.createElement(
@@ -7569,28 +7591,48 @@ var SplitForm = ({
7569
7591
 
7570
7592
  // src/components/BankTransactionMobileList/SplitAndMatchForm.tsx
7571
7593
  var SplitAndMatchForm = ({
7572
- bankTransaction
7594
+ bankTransaction,
7595
+ showTooltips
7573
7596
  }) => {
7574
7597
  const anyMatch = hasMatch(bankTransaction);
7575
7598
  const [formType, setFormType] = (0, import_react81.useState)(
7576
7599
  bankTransaction.category ? "categorize" /* categorize */ : anyMatch ? "match" /* match */ : "categorize" /* categorize */
7577
7600
  );
7578
- return /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ import_react81.default.createElement(SplitForm, { bankTransaction }), formType === "match" /* match */ && /* @__PURE__ */ import_react81.default.createElement(MatchForm2, { bankTransaction }), anyMatch && formType === "match" /* match */ ? /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ import_react81.default.createElement(TextButton, { onClick: () => setFormType("categorize" /* categorize */) }, "or split transaction")) : null, anyMatch && formType === "categorize" /* categorize */ ? /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ import_react81.default.createElement(TextButton, { onClick: () => setFormType("match" /* match */) }, "or find match")) : null);
7601
+ return /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ import_react81.default.createElement(
7602
+ SplitForm,
7603
+ {
7604
+ bankTransaction,
7605
+ showTooltips
7606
+ }
7607
+ ), formType === "match" /* match */ && /* @__PURE__ */ import_react81.default.createElement(MatchForm2, { bankTransaction }), anyMatch && formType === "match" /* match */ ? /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ import_react81.default.createElement(TextButton, { onClick: () => setFormType("categorize" /* categorize */) }, "or split transaction")) : null, anyMatch && formType === "categorize" /* categorize */ ? /* @__PURE__ */ import_react81.default.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ import_react81.default.createElement(TextButton, { onClick: () => setFormType("match" /* match */) }, "or find match")) : null);
7579
7608
  };
7580
7609
 
7581
7610
  // src/components/BankTransactionMobileList/BankTransactionMobileForms.tsx
7582
7611
  var BankTransactionMobileForms = ({
7583
7612
  purpose,
7584
- bankTransaction
7613
+ bankTransaction,
7614
+ showTooltips
7585
7615
  }) => {
7586
7616
  const getContent = () => {
7587
7617
  switch (purpose) {
7588
7618
  case "business":
7589
- return /* @__PURE__ */ import_react82.default.createElement(BusinessForm, { bankTransaction });
7619
+ return /* @__PURE__ */ import_react82.default.createElement(
7620
+ BusinessForm,
7621
+ {
7622
+ bankTransaction,
7623
+ showTooltips
7624
+ }
7625
+ );
7590
7626
  case "personal":
7591
7627
  return /* @__PURE__ */ import_react82.default.createElement(PersonalForm, { bankTransaction });
7592
7628
  case "more":
7593
- return /* @__PURE__ */ import_react82.default.createElement(SplitAndMatchForm, { bankTransaction });
7629
+ return /* @__PURE__ */ import_react82.default.createElement(
7630
+ SplitAndMatchForm,
7631
+ {
7632
+ bankTransaction,
7633
+ showTooltips
7634
+ }
7635
+ );
7594
7636
  default:
7595
7637
  return null;
7596
7638
  }
@@ -7635,6 +7677,7 @@ var BankTransactionMobileListItem = ({
7635
7677
  editable,
7636
7678
  mode,
7637
7679
  initialLoad,
7680
+ showTooltips,
7638
7681
  isFirstItem = false
7639
7682
  }) => {
7640
7683
  const {
@@ -7786,7 +7829,8 @@ var BankTransactionMobileListItem = ({
7786
7829
  BankTransactionMobileForms,
7787
7830
  {
7788
7831
  purpose,
7789
- bankTransaction
7832
+ bankTransaction,
7833
+ showTooltips
7790
7834
  }
7791
7835
  )
7792
7836
  )
@@ -7799,6 +7843,7 @@ var BankTransactionMobileList = ({
7799
7843
  removeTransaction,
7800
7844
  editable,
7801
7845
  initialLoad,
7846
+ showTooltips,
7802
7847
  mode
7803
7848
  }) => {
7804
7849
  const transactionToOpenContextData = useTransactionToOpen();
@@ -7810,6 +7855,7 @@ var BankTransactionMobileList = ({
7810
7855
  mode,
7811
7856
  key: bankTransaction.id,
7812
7857
  bankTransaction,
7858
+ showTooltips,
7813
7859
  editable,
7814
7860
  removeTransaction,
7815
7861
  initialLoad,
@@ -7879,7 +7925,8 @@ var SkeletonTableLoader = ({
7879
7925
 
7880
7926
  // src/components/BankTransactionsLoader/BankTransactionsLoader.tsx
7881
7927
  var BankTransactionsLoader = ({
7882
- isLoading = true
7928
+ isLoading = true,
7929
+ showTooltips
7883
7930
  }) => {
7884
7931
  const inactiveBankTransactionsActions = /* @__PURE__ */ import_react88.default.createElement("div", { className: "Layer__bank-transaction-row__actions-container Layer__bank-transaction-row__actions-disabled" }, /* @__PURE__ */ import_react88.default.createElement(
7885
7932
  CategorySelect,
@@ -7889,7 +7936,8 @@ var BankTransactionsLoader = ({
7889
7936
  value: void 0,
7890
7937
  onChange: () => {
7891
7938
  },
7892
- disabled: true
7939
+ disabled: true,
7940
+ showTooltips
7893
7941
  }
7894
7942
  ), /* @__PURE__ */ import_react88.default.createElement(
7895
7943
  SubmitButton,
@@ -7972,6 +8020,7 @@ var BankTransactionsTable = ({
7972
8020
  removeTransaction,
7973
8021
  showDescriptions = false,
7974
8022
  showReceiptUploads = false,
8023
+ showTooltips,
7975
8024
  stringOverrides,
7976
8025
  isSyncing = false,
7977
8026
  page,
@@ -7985,7 +8034,7 @@ var BankTransactionsTable = ({
7985
8034
  className: "Layer__table Layer__bank-transactions__table with-cell-separators"
7986
8035
  },
7987
8036
  /* @__PURE__ */ import_react90.default.createElement("thead", null, /* @__PURE__ */ import_react90.default.createElement("tr", null, /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__bank-transactions__date-col" }, stringOverrides?.transactionsTable?.dateColumnHeaderText || "Date"), /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__bank-transactions__tx-col" }, stringOverrides?.transactionsTable?.transactionColumnHeaderText || "Transaction"), /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__bank-transactions__account-col" }, stringOverrides?.transactionsTable?.accountColumnHeaderText || "Account"), /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__table-cell--amount Layer__table-cell__amount-col" }, stringOverrides?.transactionsTable?.amountColumnHeaderText || "Amount"), categorizeView && editable ? /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__table-header--primary Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categorizeColumnHeaderText || "Categorize") : /* @__PURE__ */ import_react90.default.createElement("th", { className: "Layer__table-header Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categoryColumnHeaderText || "Category"))),
7988
- isLoading && page && page === 1 ? /* @__PURE__ */ import_react90.default.createElement(BankTransactionsLoader, { isLoading: true }) : null,
8037
+ isLoading && page && page === 1 ? /* @__PURE__ */ import_react90.default.createElement(BankTransactionsLoader, { isLoading: true, showTooltips }) : null,
7989
8038
  /* @__PURE__ */ import_react90.default.createElement("tbody", null, !isLoading && bankTransactions?.map(
7990
8039
  (bankTransaction, index) => /* @__PURE__ */ import_react90.default.createElement(
7991
8040
  BankTransactionRow,
@@ -8001,6 +8050,7 @@ var BankTransactionsTable = ({
8001
8050
  containerWidth,
8002
8051
  showDescriptions,
8003
8052
  showReceiptUploads,
8053
+ showTooltips,
8004
8054
  stringOverrides: stringOverrides?.bankTransactionCTAs
8005
8055
  }
8006
8056
  )
@@ -8834,6 +8884,7 @@ var BankTransactionsContent = ({
8834
8884
  mode = "self-serve",
8835
8885
  showDescriptions = false,
8836
8886
  showReceiptUploads = false,
8887
+ showTooltips = false,
8837
8888
  monthlyView = false,
8838
8889
  categorizeView: categorizeViewProp,
8839
8890
  mobileComponent,
@@ -8991,6 +9042,7 @@ var BankTransactionsContent = ({
8991
9042
  removeTransaction,
8992
9043
  showDescriptions,
8993
9044
  showReceiptUploads,
9045
+ showTooltips,
8994
9046
  page: currentPage,
8995
9047
  stringOverrides,
8996
9048
  lastPage: isLastPage,
@@ -9005,7 +9057,8 @@ var BankTransactionsContent = ({
9005
9057
  editable,
9006
9058
  removeTransaction,
9007
9059
  containerWidth,
9008
- stringOverrides: stringOverrides?.bankTransactionCTAs
9060
+ stringOverrides: stringOverrides?.bankTransactionCTAs,
9061
+ showTooltips
9009
9062
  }
9010
9063
  ) : null,
9011
9064
  !isLoading && listView && mobileComponent === "mobileList" ? /* @__PURE__ */ import_react99.default.createElement(
@@ -9015,7 +9068,8 @@ var BankTransactionsContent = ({
9015
9068
  editable,
9016
9069
  mode,
9017
9070
  removeTransaction,
9018
- initialLoad
9071
+ initialLoad,
9072
+ showTooltips
9019
9073
  }
9020
9074
  ) : null,
9021
9075
  listView && isLoading ? /* @__PURE__ */ import_react99.default.createElement("div", { className: "Layer__bank-transactions__list-loader" }, /* @__PURE__ */ import_react99.default.createElement(Loader2, null)) : null,
@@ -16755,6 +16809,7 @@ var BankTransactionsWithLinkedAccounts = ({
16755
16809
  mode = "self-serve",
16756
16810
  showDescriptions,
16757
16811
  showReceiptUploads,
16812
+ showTooltips = false,
16758
16813
  mobileComponent,
16759
16814
  stringOverrides
16760
16815
  }) => {
@@ -16780,6 +16835,7 @@ var BankTransactionsWithLinkedAccounts = ({
16780
16835
  asWidget: true,
16781
16836
  showDescriptions,
16782
16837
  showReceiptUploads,
16838
+ showTooltips,
16783
16839
  mobileComponent,
16784
16840
  mode,
16785
16841
  stringOverrides: stringOverrides?.bankTransactions