@layerfi/components 0.1.64 → 0.1.66
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/esm/index.js +103 -33
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +34 -16
- package/dist/index.js +103 -33
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4881,7 +4881,8 @@ import classNames23 from "classnames";
|
|
|
4881
4881
|
var ActionableList = ({
|
|
4882
4882
|
options,
|
|
4883
4883
|
onClick,
|
|
4884
|
-
selectedId
|
|
4884
|
+
selectedId,
|
|
4885
|
+
showDescriptions = false
|
|
4885
4886
|
}) => {
|
|
4886
4887
|
return /* @__PURE__ */ React68.createElement("ul", { className: "Layer__actionable-list" }, options.map((x, idx) => /* @__PURE__ */ React68.createElement(
|
|
4887
4888
|
"li",
|
|
@@ -4900,7 +4901,7 @@ var ActionableList = ({
|
|
|
4900
4901
|
{ className: "Layer__actionable-list__content" },
|
|
4901
4902
|
/* @__PURE__ */ React68.createElement(Text, { size: "sm" /* sm */ }, x.label),
|
|
4902
4903
|
/*TODO: Replace 'See all categories' with something more generic*/
|
|
4903
|
-
x.description && x.label !== "See all categories" && /* @__PURE__ */ React68.createElement(
|
|
4904
|
+
showDescriptions && x.description && x.label !== "See all categories" && /* @__PURE__ */ React68.createElement(
|
|
4904
4905
|
Text,
|
|
4905
4906
|
{
|
|
4906
4907
|
className: "Layer__actionable-list__content-description",
|
|
@@ -4986,7 +4987,8 @@ var getAssignedValue = (bankTransaction) => {
|
|
|
4986
4987
|
// src/components/BankTransactionMobileList/BusinessCategories.tsx
|
|
4987
4988
|
var BusinessCategories = ({
|
|
4988
4989
|
select,
|
|
4989
|
-
selectedId
|
|
4990
|
+
selectedId,
|
|
4991
|
+
showTooltips
|
|
4990
4992
|
}) => {
|
|
4991
4993
|
const { categories } = useLayerContext();
|
|
4992
4994
|
const categoryOptions = flattenCategories(
|
|
@@ -5014,7 +5016,8 @@ var BusinessCategories = ({
|
|
|
5014
5016
|
{
|
|
5015
5017
|
options: optionsToShow,
|
|
5016
5018
|
onClick: onCategorySelect,
|
|
5017
|
-
selectedId
|
|
5019
|
+
selectedId,
|
|
5020
|
+
showDescriptions: showTooltips
|
|
5018
5021
|
}
|
|
5019
5022
|
));
|
|
5020
5023
|
};
|
|
@@ -5023,7 +5026,8 @@ var BusinessCategories = ({
|
|
|
5023
5026
|
import classNames24 from "classnames";
|
|
5024
5027
|
var CategorySelectDrawer = ({
|
|
5025
5028
|
onSelect,
|
|
5026
|
-
selected
|
|
5029
|
+
selected,
|
|
5030
|
+
showTooltips
|
|
5027
5031
|
}) => {
|
|
5028
5032
|
const { setContent, close } = useContext9(DrawerContext);
|
|
5029
5033
|
const onDrawerCategorySelect = (value) => {
|
|
@@ -5043,7 +5047,8 @@ var CategorySelectDrawer = ({
|
|
|
5043
5047
|
CategorySelectDrawerContent,
|
|
5044
5048
|
{
|
|
5045
5049
|
selected,
|
|
5046
|
-
onSelect: onDrawerCategorySelect
|
|
5050
|
+
onSelect: onDrawerCategorySelect,
|
|
5051
|
+
showTooltips: true
|
|
5047
5052
|
}
|
|
5048
5053
|
)
|
|
5049
5054
|
)
|
|
@@ -5060,7 +5065,8 @@ var CategorySelectDrawer = ({
|
|
|
5060
5065
|
};
|
|
5061
5066
|
var CategorySelectDrawerContent = ({
|
|
5062
5067
|
onSelect,
|
|
5063
|
-
selected
|
|
5068
|
+
selected,
|
|
5069
|
+
showTooltips
|
|
5064
5070
|
}) => /* @__PURE__ */ React70.createElement(
|
|
5065
5071
|
BusinessCategories,
|
|
5066
5072
|
{
|
|
@@ -5072,7 +5078,8 @@ var CategorySelectDrawerContent = ({
|
|
|
5072
5078
|
}
|
|
5073
5079
|
});
|
|
5074
5080
|
},
|
|
5075
|
-
selectedId: selected?.payload?.id
|
|
5081
|
+
selectedId: selected?.payload?.id,
|
|
5082
|
+
showTooltips
|
|
5076
5083
|
}
|
|
5077
5084
|
);
|
|
5078
5085
|
|
|
@@ -5156,7 +5163,7 @@ var Option2 = (props) => {
|
|
|
5156
5163
|
className: `Layer__select__option-menu-content ${props.className}`
|
|
5157
5164
|
},
|
|
5158
5165
|
/* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--name" }, props.isSelected ? /* @__PURE__ */ React71.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ React71.createElement(Check_default, { size: 16 })) : /* @__PURE__ */ React71.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ React71.createElement("div", { style: { width: 16, height: 16 } })), /* @__PURE__ */ React71.createElement("div", null, props.data.payload.display_name)),
|
|
5159
|
-
props.data.payload.description && /* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ React71.createElement(Tooltip, null, /* @__PURE__ */ React71.createElement(TooltipTrigger, null, /* @__PURE__ */ React71.createElement(InfoIcon_default, null)), /* @__PURE__ */ React71.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ React71.createElement(
|
|
5166
|
+
props.showTooltips && props.data.payload.description && /* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ React71.createElement(Tooltip, null, /* @__PURE__ */ React71.createElement(TooltipTrigger, null, /* @__PURE__ */ React71.createElement(InfoIcon_default, null)), /* @__PURE__ */ React71.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ React71.createElement(
|
|
5160
5167
|
Text,
|
|
5161
5168
|
{
|
|
5162
5169
|
className: "Layer__actionable-list__content-description",
|
|
@@ -5205,6 +5212,7 @@ var CategorySelect = ({
|
|
|
5205
5212
|
onChange,
|
|
5206
5213
|
disabled,
|
|
5207
5214
|
className,
|
|
5215
|
+
showTooltips,
|
|
5208
5216
|
excludeMatches = false,
|
|
5209
5217
|
asDrawer = false
|
|
5210
5218
|
}) => {
|
|
@@ -5244,7 +5252,14 @@ var CategorySelect = ({
|
|
|
5244
5252
|
const selected = value ? value : !excludeMatches && matchOptions?.length === 1 && matchOptions[0].options.length === 1 ? matchOptions[0].options[0] : void 0;
|
|
5245
5253
|
const placeholder = matchOptions?.length === 1 && matchOptions[0].options.length > 1 ? `${matchOptions[0].options.length} possible matches...` : "Categorize or match...";
|
|
5246
5254
|
if (asDrawer) {
|
|
5247
|
-
return /* @__PURE__ */ React71.createElement(
|
|
5255
|
+
return /* @__PURE__ */ React71.createElement(
|
|
5256
|
+
CategorySelectDrawer,
|
|
5257
|
+
{
|
|
5258
|
+
onSelect: onChange,
|
|
5259
|
+
selected: value,
|
|
5260
|
+
showTooltips
|
|
5261
|
+
}
|
|
5262
|
+
);
|
|
5248
5263
|
}
|
|
5249
5264
|
return /* @__PURE__ */ React71.createElement(
|
|
5250
5265
|
Select,
|
|
@@ -5268,7 +5283,11 @@ var CategorySelect = ({
|
|
|
5268
5283
|
styles: {
|
|
5269
5284
|
menuPortal: (base) => ({ ...base, zIndex: 9999 })
|
|
5270
5285
|
},
|
|
5271
|
-
components: {
|
|
5286
|
+
components: {
|
|
5287
|
+
DropdownIndicator,
|
|
5288
|
+
GroupHeading,
|
|
5289
|
+
Option: (optionProps) => /* @__PURE__ */ React71.createElement(Option2, { ...optionProps, showTooltips })
|
|
5290
|
+
},
|
|
5272
5291
|
isDisabled: disabled,
|
|
5273
5292
|
isOptionDisabled: (option) => option.disabled ?? false,
|
|
5274
5293
|
isOptionSelected: (option) => selected?.payload.display_name == option.payload.display_name
|
|
@@ -6117,7 +6136,8 @@ var ExpandedBankTransactionRow = forwardRef5(
|
|
|
6117
6136
|
containerWidth,
|
|
6118
6137
|
showDescriptions,
|
|
6119
6138
|
mode,
|
|
6120
|
-
showReceiptUploads
|
|
6139
|
+
showReceiptUploads,
|
|
6140
|
+
showTooltips
|
|
6121
6141
|
}, ref) => {
|
|
6122
6142
|
const {
|
|
6123
6143
|
categorize: categorizeBankTransaction2,
|
|
@@ -6471,7 +6491,8 @@ var ExpandedBankTransactionRow = forwardRef5(
|
|
|
6471
6491
|
onChange: (value) => changeCategory(index, value),
|
|
6472
6492
|
className: "Layer__category-menu--full",
|
|
6473
6493
|
disabled: bankTransaction.processing || !categorizationEnabled(mode),
|
|
6474
|
-
excludeMatches: true
|
|
6494
|
+
excludeMatches: true,
|
|
6495
|
+
showTooltips
|
|
6475
6496
|
}
|
|
6476
6497
|
),
|
|
6477
6498
|
index > 0 && /* @__PURE__ */ React87.createElement(
|
|
@@ -6640,6 +6661,7 @@ var BankTransactionRow = ({
|
|
|
6640
6661
|
initialLoad,
|
|
6641
6662
|
showDescriptions,
|
|
6642
6663
|
showReceiptUploads,
|
|
6664
|
+
showTooltips,
|
|
6643
6665
|
stringOverrides
|
|
6644
6666
|
}) => {
|
|
6645
6667
|
const expandedRowRef = useRef9(null);
|
|
@@ -6795,7 +6817,8 @@ var BankTransactionRow = ({
|
|
|
6795
6817
|
setSelectedCategory(category);
|
|
6796
6818
|
setShowRetry(false);
|
|
6797
6819
|
},
|
|
6798
|
-
disabled: bankTransaction.processing
|
|
6820
|
+
disabled: bankTransaction.processing,
|
|
6821
|
+
showTooltips
|
|
6799
6822
|
}
|
|
6800
6823
|
) : null,
|
|
6801
6824
|
categorized && !open ? /* @__PURE__ */ React89.createElement(Text, { as: "span", className: `${className}__category-text` }, bankTransaction.categorization_status === "SPLIT" /* SPLIT */ && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(
|
|
@@ -6887,7 +6910,8 @@ var BankTransactionRow = ({
|
|
|
6887
6910
|
close: () => setOpen(false),
|
|
6888
6911
|
containerWidth,
|
|
6889
6912
|
showDescriptions,
|
|
6890
|
-
showReceiptUploads
|
|
6913
|
+
showReceiptUploads,
|
|
6914
|
+
showTooltips
|
|
6891
6915
|
}
|
|
6892
6916
|
))));
|
|
6893
6917
|
};
|
|
@@ -6940,6 +6964,7 @@ var BankTransactionListItem = ({
|
|
|
6940
6964
|
mode,
|
|
6941
6965
|
showDescriptions,
|
|
6942
6966
|
showReceiptUploads,
|
|
6967
|
+
showTooltips,
|
|
6943
6968
|
containerWidth,
|
|
6944
6969
|
removeTransaction,
|
|
6945
6970
|
stringOverrides
|
|
@@ -7036,7 +7061,8 @@ var BankTransactionListItem = ({
|
|
|
7036
7061
|
submitBtnText: categorized ? stringOverrides?.updateButtonText || "Update" : stringOverrides?.approveButtonText || "Approve",
|
|
7037
7062
|
containerWidth,
|
|
7038
7063
|
showDescriptions,
|
|
7039
|
-
showReceiptUploads
|
|
7064
|
+
showReceiptUploads,
|
|
7065
|
+
showTooltips
|
|
7040
7066
|
}
|
|
7041
7067
|
)), /* @__PURE__ */ React91.createElement("span", { className: `${className}__base-row` }, !categorized ? /* @__PURE__ */ React91.createElement(
|
|
7042
7068
|
CategorySelect,
|
|
@@ -7048,7 +7074,8 @@ var BankTransactionListItem = ({
|
|
|
7048
7074
|
setShowRetry(false);
|
|
7049
7075
|
setSelectedCategory(category);
|
|
7050
7076
|
},
|
|
7051
|
-
disabled: bankTransaction.processing
|
|
7077
|
+
disabled: bankTransaction.processing,
|
|
7078
|
+
showTooltips
|
|
7052
7079
|
}
|
|
7053
7080
|
) : null, categorized ? /* @__PURE__ */ React91.createElement(Assignment, { bankTransaction }) : null, !categorized && !showRetry ? /* @__PURE__ */ React91.createElement(
|
|
7054
7081
|
SubmitButton,
|
|
@@ -7088,6 +7115,7 @@ var BankTransactionList = ({
|
|
|
7088
7115
|
containerWidth,
|
|
7089
7116
|
showDescriptions = false,
|
|
7090
7117
|
showReceiptUploads = false,
|
|
7118
|
+
showTooltips,
|
|
7091
7119
|
stringOverrides
|
|
7092
7120
|
}) => {
|
|
7093
7121
|
return /* @__PURE__ */ React92.createElement("ul", { className: "Layer__bank-transactions__list" }, bankTransactions?.map(
|
|
@@ -7104,6 +7132,7 @@ var BankTransactionList = ({
|
|
|
7104
7132
|
containerWidth,
|
|
7105
7133
|
showDescriptions,
|
|
7106
7134
|
showReceiptUploads,
|
|
7135
|
+
showTooltips,
|
|
7107
7136
|
stringOverrides
|
|
7108
7137
|
}
|
|
7109
7138
|
)
|
|
@@ -7121,7 +7150,10 @@ import React98 from "react";
|
|
|
7121
7150
|
|
|
7122
7151
|
// src/components/BankTransactionMobileList/BusinessForm.tsx
|
|
7123
7152
|
import React93, { useContext as useContext10, useEffect as useEffect14, useMemo as useMemo4, useState as useState17 } from "react";
|
|
7124
|
-
var BusinessForm = ({
|
|
7153
|
+
var BusinessForm = ({
|
|
7154
|
+
bankTransaction,
|
|
7155
|
+
showTooltips
|
|
7156
|
+
}) => {
|
|
7125
7157
|
const { setContent, close } = useContext10(DrawerContext);
|
|
7126
7158
|
const { categorize: categorizeBankTransaction2, isLoading } = useBankTransactionsContext();
|
|
7127
7159
|
const [selectedCategory, setSelectedCategory] = useState17(
|
|
@@ -7163,7 +7195,8 @@ var BusinessForm = ({ bankTransaction }) => {
|
|
|
7163
7195
|
BusinessCategories,
|
|
7164
7196
|
{
|
|
7165
7197
|
selectedId: selectedCategory?.id,
|
|
7166
|
-
select: onDrawerCategorySelect
|
|
7198
|
+
select: onDrawerCategorySelect,
|
|
7199
|
+
showTooltips
|
|
7167
7200
|
}
|
|
7168
7201
|
)
|
|
7169
7202
|
);
|
|
@@ -7204,7 +7237,8 @@ var BusinessForm = ({ bankTransaction }) => {
|
|
|
7204
7237
|
{
|
|
7205
7238
|
options,
|
|
7206
7239
|
onClick: onCategorySelect,
|
|
7207
|
-
selectedId: selectedCategory?.id
|
|
7240
|
+
selectedId: selectedCategory?.id,
|
|
7241
|
+
showDescriptions: showTooltips
|
|
7208
7242
|
}
|
|
7209
7243
|
), options.length === 0 ? /* @__PURE__ */ React93.createElement(
|
|
7210
7244
|
Button,
|
|
@@ -7341,7 +7375,8 @@ var MatchForm2 = ({
|
|
|
7341
7375
|
import React96, { useEffect as useEffect17, useState as useState20 } from "react";
|
|
7342
7376
|
import classNames38 from "classnames";
|
|
7343
7377
|
var SplitForm = ({
|
|
7344
|
-
bankTransaction
|
|
7378
|
+
bankTransaction,
|
|
7379
|
+
showTooltips
|
|
7345
7380
|
}) => {
|
|
7346
7381
|
const {
|
|
7347
7382
|
categorize: categorizeBankTransaction2,
|
|
@@ -7492,7 +7527,8 @@ var SplitForm = ({
|
|
|
7492
7527
|
className: "Layer__category-menu--full",
|
|
7493
7528
|
disabled: bankTransaction.processing,
|
|
7494
7529
|
excludeMatches: true,
|
|
7495
|
-
asDrawer: true
|
|
7530
|
+
asDrawer: true,
|
|
7531
|
+
showTooltips
|
|
7496
7532
|
}
|
|
7497
7533
|
)),
|
|
7498
7534
|
/* @__PURE__ */ React96.createElement(
|
|
@@ -7544,28 +7580,48 @@ var SplitForm = ({
|
|
|
7544
7580
|
|
|
7545
7581
|
// src/components/BankTransactionMobileList/SplitAndMatchForm.tsx
|
|
7546
7582
|
var SplitAndMatchForm = ({
|
|
7547
|
-
bankTransaction
|
|
7583
|
+
bankTransaction,
|
|
7584
|
+
showTooltips
|
|
7548
7585
|
}) => {
|
|
7549
7586
|
const anyMatch = hasMatch(bankTransaction);
|
|
7550
7587
|
const [formType, setFormType] = useState21(
|
|
7551
7588
|
bankTransaction.category ? "categorize" /* categorize */ : anyMatch ? "match" /* match */ : "categorize" /* categorize */
|
|
7552
7589
|
);
|
|
7553
|
-
return /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ React97.createElement(
|
|
7590
|
+
return /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ React97.createElement(
|
|
7591
|
+
SplitForm,
|
|
7592
|
+
{
|
|
7593
|
+
bankTransaction,
|
|
7594
|
+
showTooltips
|
|
7595
|
+
}
|
|
7596
|
+
), formType === "match" /* match */ && /* @__PURE__ */ React97.createElement(MatchForm2, { bankTransaction }), anyMatch && formType === "match" /* match */ ? /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ React97.createElement(TextButton, { onClick: () => setFormType("categorize" /* categorize */) }, "or split transaction")) : null, anyMatch && formType === "categorize" /* categorize */ ? /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ React97.createElement(TextButton, { onClick: () => setFormType("match" /* match */) }, "or find match")) : null);
|
|
7554
7597
|
};
|
|
7555
7598
|
|
|
7556
7599
|
// src/components/BankTransactionMobileList/BankTransactionMobileForms.tsx
|
|
7557
7600
|
var BankTransactionMobileForms = ({
|
|
7558
7601
|
purpose,
|
|
7559
|
-
bankTransaction
|
|
7602
|
+
bankTransaction,
|
|
7603
|
+
showTooltips
|
|
7560
7604
|
}) => {
|
|
7561
7605
|
const getContent = () => {
|
|
7562
7606
|
switch (purpose) {
|
|
7563
7607
|
case "business":
|
|
7564
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7608
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7609
|
+
BusinessForm,
|
|
7610
|
+
{
|
|
7611
|
+
bankTransaction,
|
|
7612
|
+
showTooltips
|
|
7613
|
+
}
|
|
7614
|
+
);
|
|
7565
7615
|
case "personal":
|
|
7566
7616
|
return /* @__PURE__ */ React98.createElement(PersonalForm, { bankTransaction });
|
|
7567
7617
|
case "more":
|
|
7568
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7618
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7619
|
+
SplitAndMatchForm,
|
|
7620
|
+
{
|
|
7621
|
+
bankTransaction,
|
|
7622
|
+
showTooltips
|
|
7623
|
+
}
|
|
7624
|
+
);
|
|
7569
7625
|
default:
|
|
7570
7626
|
return null;
|
|
7571
7627
|
}
|
|
@@ -7610,6 +7666,7 @@ var BankTransactionMobileListItem = ({
|
|
|
7610
7666
|
editable,
|
|
7611
7667
|
mode,
|
|
7612
7668
|
initialLoad,
|
|
7669
|
+
showTooltips,
|
|
7613
7670
|
isFirstItem = false
|
|
7614
7671
|
}) => {
|
|
7615
7672
|
const {
|
|
@@ -7761,7 +7818,8 @@ var BankTransactionMobileListItem = ({
|
|
|
7761
7818
|
BankTransactionMobileForms,
|
|
7762
7819
|
{
|
|
7763
7820
|
purpose,
|
|
7764
|
-
bankTransaction
|
|
7821
|
+
bankTransaction,
|
|
7822
|
+
showTooltips
|
|
7765
7823
|
}
|
|
7766
7824
|
)
|
|
7767
7825
|
)
|
|
@@ -7774,6 +7832,7 @@ var BankTransactionMobileList = ({
|
|
|
7774
7832
|
removeTransaction,
|
|
7775
7833
|
editable,
|
|
7776
7834
|
initialLoad,
|
|
7835
|
+
showTooltips,
|
|
7777
7836
|
mode
|
|
7778
7837
|
}) => {
|
|
7779
7838
|
const transactionToOpenContextData = useTransactionToOpen();
|
|
@@ -7785,6 +7844,7 @@ var BankTransactionMobileList = ({
|
|
|
7785
7844
|
mode,
|
|
7786
7845
|
key: bankTransaction.id,
|
|
7787
7846
|
bankTransaction,
|
|
7847
|
+
showTooltips,
|
|
7788
7848
|
editable,
|
|
7789
7849
|
removeTransaction,
|
|
7790
7850
|
initialLoad,
|
|
@@ -7854,7 +7914,8 @@ var SkeletonTableLoader = ({
|
|
|
7854
7914
|
|
|
7855
7915
|
// src/components/BankTransactionsLoader/BankTransactionsLoader.tsx
|
|
7856
7916
|
var BankTransactionsLoader = ({
|
|
7857
|
-
isLoading = true
|
|
7917
|
+
isLoading = true,
|
|
7918
|
+
showTooltips
|
|
7858
7919
|
}) => {
|
|
7859
7920
|
const inactiveBankTransactionsActions = /* @__PURE__ */ React103.createElement("div", { className: "Layer__bank-transaction-row__actions-container Layer__bank-transaction-row__actions-disabled" }, /* @__PURE__ */ React103.createElement(
|
|
7860
7921
|
CategorySelect,
|
|
@@ -7864,7 +7925,8 @@ var BankTransactionsLoader = ({
|
|
|
7864
7925
|
value: void 0,
|
|
7865
7926
|
onChange: () => {
|
|
7866
7927
|
},
|
|
7867
|
-
disabled: true
|
|
7928
|
+
disabled: true,
|
|
7929
|
+
showTooltips
|
|
7868
7930
|
}
|
|
7869
7931
|
), /* @__PURE__ */ React103.createElement(
|
|
7870
7932
|
SubmitButton,
|
|
@@ -7947,6 +8009,7 @@ var BankTransactionsTable = ({
|
|
|
7947
8009
|
removeTransaction,
|
|
7948
8010
|
showDescriptions = false,
|
|
7949
8011
|
showReceiptUploads = false,
|
|
8012
|
+
showTooltips,
|
|
7950
8013
|
stringOverrides,
|
|
7951
8014
|
isSyncing = false,
|
|
7952
8015
|
page,
|
|
@@ -7960,7 +8023,7 @@ var BankTransactionsTable = ({
|
|
|
7960
8023
|
className: "Layer__table Layer__bank-transactions__table with-cell-separators"
|
|
7961
8024
|
},
|
|
7962
8025
|
/* @__PURE__ */ React105.createElement("thead", null, /* @__PURE__ */ React105.createElement("tr", null, /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__date-col" }, stringOverrides?.transactionsTable?.dateColumnHeaderText || "Date"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__tx-col" }, stringOverrides?.transactionsTable?.transactionColumnHeaderText || "Transaction"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__account-col" }, stringOverrides?.transactionsTable?.accountColumnHeaderText || "Account"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-cell--amount Layer__table-cell__amount-col" }, stringOverrides?.transactionsTable?.amountColumnHeaderText || "Amount"), categorizeView && editable ? /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-header--primary Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categorizeColumnHeaderText || "Categorize") : /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categoryColumnHeaderText || "Category"))),
|
|
7963
|
-
isLoading && page && page === 1 ? /* @__PURE__ */ React105.createElement(BankTransactionsLoader, { isLoading: true }) : null,
|
|
8026
|
+
isLoading && page && page === 1 ? /* @__PURE__ */ React105.createElement(BankTransactionsLoader, { isLoading: true, showTooltips }) : null,
|
|
7964
8027
|
/* @__PURE__ */ React105.createElement("tbody", null, !isLoading && bankTransactions?.map(
|
|
7965
8028
|
(bankTransaction, index) => /* @__PURE__ */ React105.createElement(
|
|
7966
8029
|
BankTransactionRow,
|
|
@@ -7976,6 +8039,7 @@ var BankTransactionsTable = ({
|
|
|
7976
8039
|
containerWidth,
|
|
7977
8040
|
showDescriptions,
|
|
7978
8041
|
showReceiptUploads,
|
|
8042
|
+
showTooltips,
|
|
7979
8043
|
stringOverrides: stringOverrides?.bankTransactionCTAs
|
|
7980
8044
|
}
|
|
7981
8045
|
)
|
|
@@ -8819,6 +8883,7 @@ var BankTransactionsContent = ({
|
|
|
8819
8883
|
mode = "self-serve",
|
|
8820
8884
|
showDescriptions = false,
|
|
8821
8885
|
showReceiptUploads = false,
|
|
8886
|
+
showTooltips = false,
|
|
8822
8887
|
monthlyView = false,
|
|
8823
8888
|
categorizeView: categorizeViewProp,
|
|
8824
8889
|
mobileComponent,
|
|
@@ -8976,6 +9041,7 @@ var BankTransactionsContent = ({
|
|
|
8976
9041
|
removeTransaction,
|
|
8977
9042
|
showDescriptions,
|
|
8978
9043
|
showReceiptUploads,
|
|
9044
|
+
showTooltips,
|
|
8979
9045
|
page: currentPage,
|
|
8980
9046
|
stringOverrides,
|
|
8981
9047
|
lastPage: isLastPage,
|
|
@@ -8990,7 +9056,8 @@ var BankTransactionsContent = ({
|
|
|
8990
9056
|
editable,
|
|
8991
9057
|
removeTransaction,
|
|
8992
9058
|
containerWidth,
|
|
8993
|
-
stringOverrides: stringOverrides?.bankTransactionCTAs
|
|
9059
|
+
stringOverrides: stringOverrides?.bankTransactionCTAs,
|
|
9060
|
+
showTooltips
|
|
8994
9061
|
}
|
|
8995
9062
|
) : null,
|
|
8996
9063
|
!isLoading && listView && mobileComponent === "mobileList" ? /* @__PURE__ */ React115.createElement(
|
|
@@ -9000,7 +9067,8 @@ var BankTransactionsContent = ({
|
|
|
9000
9067
|
editable,
|
|
9001
9068
|
mode,
|
|
9002
9069
|
removeTransaction,
|
|
9003
|
-
initialLoad
|
|
9070
|
+
initialLoad,
|
|
9071
|
+
showTooltips
|
|
9004
9072
|
}
|
|
9005
9073
|
) : null,
|
|
9006
9074
|
listView && isLoading ? /* @__PURE__ */ React115.createElement("div", { className: "Layer__bank-transactions__list-loader" }, /* @__PURE__ */ React115.createElement(Loader2, null)) : null,
|
|
@@ -16781,6 +16849,7 @@ var BankTransactionsWithLinkedAccounts = ({
|
|
|
16781
16849
|
mode = "self-serve",
|
|
16782
16850
|
showDescriptions,
|
|
16783
16851
|
showReceiptUploads,
|
|
16852
|
+
showTooltips = false,
|
|
16784
16853
|
mobileComponent,
|
|
16785
16854
|
stringOverrides
|
|
16786
16855
|
}) => {
|
|
@@ -16806,6 +16875,7 @@ var BankTransactionsWithLinkedAccounts = ({
|
|
|
16806
16875
|
asWidget: true,
|
|
16807
16876
|
showDescriptions,
|
|
16808
16877
|
showReceiptUploads,
|
|
16878
|
+
showTooltips,
|
|
16809
16879
|
mobileComponent,
|
|
16810
16880
|
mode,
|
|
16811
16881
|
stringOverrides: stringOverrides?.bankTransactions
|