@tesouro/embedded-components-react 0.3.15 → 0.3.17
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 +22 -1
- package/dist/index.js +10 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -1
- package/dist/lib/AcceptDisclosuresWidget.js +1 -1
- package/dist/lib/BalancesWidget.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +21 -21
- package/dist/lib/BankAccountOnboardingWidget.js +1 -1
- package/dist/lib/CardsWidget.js +1 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.js +1 -1
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +1 -1
- package/dist/lib/ReceiptMatchWidget.js +1 -1
- package/dist/lib/TransfersWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +10 -140
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +152 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index6.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/BalancesWidget.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/SingleBalance/SingleBalance.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +109 -169
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +170 -63
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +73 -81
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +77 -101
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +110 -83
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +91 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +26 -320
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +341 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index9.js +29 -100
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +42 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +80 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index5.js +24 -30
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index6.js +28 -55
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index7.js +54 -209
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +206 -81
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +95 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +31 -30
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +1 -255
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +253 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +2 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +73 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +7 -218
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +219 -79
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +2 -47
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +49 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index12.js +73 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/InsightsWidget.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +67 -46
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/testIds.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +151 -135
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index14.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index20.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1206 -1201
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +18 -99
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +116 -19
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
|
@@ -59,8 +59,8 @@ function T(e, t, n) {
|
|
|
59
59
|
let r = t.find((t) => t.optionValue === e);
|
|
60
60
|
return r ? x(r) : n;
|
|
61
61
|
}
|
|
62
|
-
function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOptions: O, fromValue: k, toValue: A, onFromValueChange: j, onToValueChange: M, amountValue: N, onAmountValueChange: P, amountError: F, amountInputPrefix: I, reviewFromAccount: L, reviewToAccount: R, reviewAmountLabel: z, isSubmitting: B, isSuccess: V, canContinueFromAccounts: H, canContinueFromAmount: U, onContinueFromAccounts: W, onContinueFromAmount: G, onBack: K, onSubmit: q, onClearSelections: J }) {
|
|
63
|
-
let
|
|
62
|
+
function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOptions: O, fromValue: k, toValue: A, onFromValueChange: j, onToValueChange: M, amountValue: N, onAmountValueChange: P, amountError: F, amountInputPrefix: I, reviewFromAccount: L, reviewToAccount: R, reviewAmountLabel: z, isSubmitting: B, isSuccess: V, canContinueFromAccounts: H, canContinueFromAmount: U, onContinueFromAccounts: W, onContinueFromAmount: G, onBack: K, onSubmit: q, onClearSelections: J, testIds: Y }) {
|
|
63
|
+
let X = /* @__PURE__ */ g(u, {
|
|
64
64
|
decorative: !0,
|
|
65
65
|
orientation: "horizontal",
|
|
66
66
|
className: "ttw:-mx-6",
|
|
@@ -71,13 +71,13 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
71
71
|
onOpenChange: x,
|
|
72
72
|
children: /* @__PURE__ */ _(n, {
|
|
73
73
|
showCloseButton: !0,
|
|
74
|
-
closeButtonTestId:
|
|
74
|
+
closeButtonTestId: Y?.closeButton,
|
|
75
75
|
className: "ttw:max-w-md ttw:gap-0 ttw:p-6",
|
|
76
|
-
"data-testid":
|
|
76
|
+
"data-testid": Y?.root,
|
|
77
77
|
children: [S === "result" ? null : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(p, {
|
|
78
78
|
title: S === "review" ? E.modalReviewHeading : E.modalTitle,
|
|
79
79
|
subtitle: E.modalAccountsSubtitle
|
|
80
|
-
}),
|
|
80
|
+
}), X] }), S === "accounts" ? /* @__PURE__ */ _(h, { children: [
|
|
81
81
|
/* @__PURE__ */ _("div", {
|
|
82
82
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:py-5",
|
|
83
83
|
children: [
|
|
@@ -86,7 +86,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
86
86
|
onValueChange: j,
|
|
87
87
|
children: [/* @__PURE__ */ g(l, {
|
|
88
88
|
className: y,
|
|
89
|
-
"data-testid":
|
|
89
|
+
"data-testid": Y?.fromAccountTrigger,
|
|
90
90
|
"aria-label": T(k, D, E.modalFromAccountPlaceholder),
|
|
91
91
|
children: /* @__PURE__ */ g("span", {
|
|
92
92
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-start ttw:text-left",
|
|
@@ -106,7 +106,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
106
106
|
onValueChange: M,
|
|
107
107
|
children: [/* @__PURE__ */ g(l, {
|
|
108
108
|
className: y,
|
|
109
|
-
"data-testid":
|
|
109
|
+
"data-testid": Y?.toAccountTrigger,
|
|
110
110
|
"aria-label": T(A, O, E.modalToAccountPlaceholder),
|
|
111
111
|
children: /* @__PURE__ */ g("span", {
|
|
112
112
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-start ttw:text-left",
|
|
@@ -144,7 +144,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
144
144
|
onChange: (e) => P(e.target.value),
|
|
145
145
|
placeholder: E.modalAmountPlaceholder,
|
|
146
146
|
"aria-invalid": F ? !0 : void 0,
|
|
147
|
-
"data-testid":
|
|
147
|
+
"data-testid": Y?.amountInput
|
|
148
148
|
})]
|
|
149
149
|
}),
|
|
150
150
|
F ? /* @__PURE__ */ g(d, {
|
|
@@ -168,7 +168,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
168
168
|
}) : null
|
|
169
169
|
]
|
|
170
170
|
}),
|
|
171
|
-
|
|
171
|
+
X,
|
|
172
172
|
/* @__PURE__ */ g("div", {
|
|
173
173
|
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:pt-4",
|
|
174
174
|
children: /* @__PURE__ */ _(e, {
|
|
@@ -177,7 +177,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
177
177
|
className: "ttw:h-11 ttw:w-full ttw:cursor-pointer ttw:gap-2 ttw:rounded-lg ttw:font-medium ttw:disabled:pointer-events-none ttw:disabled:cursor-not-allowed ttw:disabled:bg-muted ttw:disabled:text-muted-foreground ttw:disabled:opacity-100",
|
|
178
178
|
disabled: !H || !U || !!F,
|
|
179
179
|
onClick: W,
|
|
180
|
-
"data-testid":
|
|
180
|
+
"data-testid": Y?.accountsConfirm,
|
|
181
181
|
children: [E.modalAccountsConfirm, /* @__PURE__ */ g(v, {
|
|
182
182
|
className: "ttw:size-4",
|
|
183
183
|
"aria-hidden": !0
|
|
@@ -191,6 +191,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
191
191
|
isSubmitting: B,
|
|
192
192
|
onConfirm: q,
|
|
193
193
|
onGoBack: K,
|
|
194
|
+
testIds: Y?.reviewStep,
|
|
194
195
|
labels: {
|
|
195
196
|
fromAccountSection: E.modalReviewFromAccountLabel,
|
|
196
197
|
toAccountSection: E.modalReviewToAccountLabel,
|
|
@@ -202,6 +203,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
202
203
|
amountLabel: z,
|
|
203
204
|
isSuccess: V,
|
|
204
205
|
onBackToTransfers: () => x(!1),
|
|
206
|
+
testIds: Y?.resultStep,
|
|
205
207
|
labels: {
|
|
206
208
|
successTitle: E.modalResultSuccessTitle,
|
|
207
209
|
errorTitle: E.modalResultErrorTitle,
|
|
@@ -239,7 +241,7 @@ function E({ open: c, onOpenChange: x, step: S, labels: E, fromOptions: D, toOpt
|
|
|
239
241
|
]
|
|
240
242
|
})
|
|
241
243
|
}),
|
|
242
|
-
|
|
244
|
+
X,
|
|
243
245
|
/* @__PURE__ */ _(r, {
|
|
244
246
|
className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-2 ttw:pt-4 ttw:sm:justify-between",
|
|
245
247
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -3,8 +3,8 @@ import { DEFAULT_TRANSFER_RESULT_STEP_LABELS as n } from "./transferResultStepLa
|
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { ArrowLeft as a, CheckCircle2 as o, X as s } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js
|
|
6
|
-
function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d }) {
|
|
7
|
-
let
|
|
6
|
+
function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d, testIds: f }) {
|
|
7
|
+
let p = {
|
|
8
8
|
...n,
|
|
9
9
|
...d
|
|
10
10
|
};
|
|
@@ -31,7 +31,7 @@ function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d }) {
|
|
|
31
31
|
component: "h2",
|
|
32
32
|
className: "ttw:mb-2 ttw:text-center ttw:text-lg ttw:font-bold ttw:text-foreground",
|
|
33
33
|
"data-testid": l ? "embedded-banking-transfer-money-result-success-title" : "embedded-banking-transfer-money-result-error-title",
|
|
34
|
-
children: l ?
|
|
34
|
+
children: l ? p.successTitle : p.errorTitle
|
|
35
35
|
}),
|
|
36
36
|
/* @__PURE__ */ i(t, {
|
|
37
37
|
variant: "body2",
|
|
@@ -39,13 +39,13 @@ function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d }) {
|
|
|
39
39
|
component: "p",
|
|
40
40
|
className: "ttw:mb-8 ttw:max-w-sm ttw:text-center",
|
|
41
41
|
children: [
|
|
42
|
-
|
|
42
|
+
p.transferMessagePrefix,
|
|
43
43
|
/* @__PURE__ */ r("span", {
|
|
44
44
|
className: "ttw:font-semibold ttw:text-foreground",
|
|
45
45
|
children: c
|
|
46
46
|
}),
|
|
47
47
|
" ",
|
|
48
|
-
l ?
|
|
48
|
+
l ? p.successMessageSuffix : p.errorMessageSuffix
|
|
49
49
|
]
|
|
50
50
|
}),
|
|
51
51
|
/* @__PURE__ */ i(e, {
|
|
@@ -53,11 +53,11 @@ function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d }) {
|
|
|
53
53
|
variant: "outline",
|
|
54
54
|
className: "ttw:h-11 ttw:w-full ttw:cursor-pointer ttw:gap-2 ttw:rounded-lg ttw:font-semibold",
|
|
55
55
|
onClick: u,
|
|
56
|
-
"data-testid":
|
|
56
|
+
"data-testid": f?.backToTransfers,
|
|
57
57
|
children: [/* @__PURE__ */ r(a, {
|
|
58
58
|
className: "ttw:size-4",
|
|
59
59
|
"aria-hidden": !0
|
|
60
|
-
}),
|
|
60
|
+
}), p.backToTransfers]
|
|
61
61
|
})
|
|
62
62
|
]
|
|
63
63
|
});
|
|
@@ -6,13 +6,13 @@ import { TransferMoneyModal as a } from "../TransferMoneyModal/TransferMoneyModa
|
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { ArrowDownToLine as l, ArrowDownUp as u, ArrowUpFromLine as d } from "lucide-react";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
|
|
9
|
-
function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransferMoneyCta: g, isTransferMoneyCtaDisabled: _ = !1, onTransferMoneyClick: v, transferMoneyModal: y, labels: b }) {
|
|
10
|
-
let
|
|
9
|
+
function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransferMoneyCta: g, isTransferMoneyCtaDisabled: _ = !1, onTransferMoneyClick: v, transferMoneyModal: y, labels: b, testIds: x }) {
|
|
10
|
+
let S = {
|
|
11
11
|
...i,
|
|
12
12
|
...b
|
|
13
|
-
},
|
|
13
|
+
}, C = g && !p ? /* @__PURE__ */ s("span", {
|
|
14
14
|
className: "ttw:inline-flex ttw:shrink-0",
|
|
15
|
-
title: _ ?
|
|
15
|
+
title: _ ? S.transferMoneyCtaDisabledTooltip : void 0,
|
|
16
16
|
children: /* @__PURE__ */ c(e, {
|
|
17
17
|
type: "button",
|
|
18
18
|
size: "sm",
|
|
@@ -20,11 +20,11 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
20
20
|
className: "ttw:inline-flex ttw:shrink-0 ttw:gap-2 ttw:whitespace-nowrap",
|
|
21
21
|
disabled: _,
|
|
22
22
|
onClick: _ ? void 0 : v,
|
|
23
|
-
"data-testid":
|
|
23
|
+
"data-testid": x?.transferMoneyButton,
|
|
24
24
|
children: [/* @__PURE__ */ s(l, {
|
|
25
25
|
className: "ttw:size-4",
|
|
26
26
|
"aria-hidden": !0
|
|
27
|
-
}),
|
|
27
|
+
}), S.transferMoneyCta]
|
|
28
28
|
})
|
|
29
29
|
}) : void 0;
|
|
30
30
|
return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(r, {
|
|
@@ -32,28 +32,28 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
32
32
|
className: "ttw:size-[18px] ttw:shrink-0 ttw:text-primary",
|
|
33
33
|
"aria-hidden": !0
|
|
34
34
|
}),
|
|
35
|
-
title:
|
|
36
|
-
headerActions:
|
|
35
|
+
title: S.widgetTitle,
|
|
36
|
+
headerActions: C,
|
|
37
37
|
children: p ? /* @__PURE__ */ s(t, {
|
|
38
|
-
"data-testid":
|
|
38
|
+
"data-testid": x?.skeleton,
|
|
39
39
|
height: 120,
|
|
40
40
|
width: "100%",
|
|
41
41
|
className: "ttw:rounded-md"
|
|
42
42
|
}) : m ? /* @__PURE__ */ c("div", {
|
|
43
43
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
44
|
-
"data-testid":
|
|
44
|
+
"data-testid": x?.error,
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ s(n, {
|
|
47
47
|
component: "p",
|
|
48
48
|
variant: "body1",
|
|
49
49
|
className: "ttw:font-semibold",
|
|
50
|
-
children:
|
|
50
|
+
children: S.loadErrorTitle
|
|
51
51
|
}),
|
|
52
52
|
/* @__PURE__ */ s(n, {
|
|
53
53
|
component: "p",
|
|
54
54
|
variant: "body2",
|
|
55
55
|
color: "muted",
|
|
56
|
-
children:
|
|
56
|
+
children: S.loadErrorDescription
|
|
57
57
|
}),
|
|
58
58
|
h ? /* @__PURE__ */ s(e, {
|
|
59
59
|
type: "button",
|
|
@@ -61,22 +61,22 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
61
61
|
size: "sm",
|
|
62
62
|
className: "ttw:self-start ttw:cursor-pointer",
|
|
63
63
|
onClick: h,
|
|
64
|
-
"data-testid":
|
|
65
|
-
children:
|
|
64
|
+
"data-testid": x?.retry,
|
|
65
|
+
children: S.loadErrorRetry
|
|
66
66
|
}) : null
|
|
67
67
|
]
|
|
68
68
|
}) : f.length === 0 ? /* @__PURE__ */ c("div", {
|
|
69
69
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
70
|
-
"data-testid":
|
|
70
|
+
"data-testid": x?.empty,
|
|
71
71
|
children: [/* @__PURE__ */ s(n, {
|
|
72
72
|
variant: "body1",
|
|
73
73
|
className: "ttw:font-semibold",
|
|
74
|
-
children:
|
|
74
|
+
children: S.emptyTitle
|
|
75
75
|
}), /* @__PURE__ */ s(n, {
|
|
76
76
|
variant: "body2",
|
|
77
77
|
color: "muted",
|
|
78
78
|
component: "p",
|
|
79
|
-
children:
|
|
79
|
+
children: S.emptyDescription
|
|
80
80
|
})]
|
|
81
81
|
}) : /* @__PURE__ */ s("div", {
|
|
82
82
|
className: "ttw:max-w-full ttw:overflow-x-auto ttw:rounded-md ttw:border ttw:border-border",
|
|
@@ -86,7 +86,7 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
86
86
|
className: "ttw:m-0 ttw:list-none ttw:divide-y ttw:divide-border ttw:p-0",
|
|
87
87
|
children: f.map((e) => /* @__PURE__ */ c("li", {
|
|
88
88
|
title: e.detailLabel,
|
|
89
|
-
"data-testid":
|
|
89
|
+
"data-testid": x?.transferRow,
|
|
90
90
|
className: "ttw:grid ttw:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-4",
|
|
91
91
|
children: [
|
|
92
92
|
/* @__PURE__ */ c("div", {
|
|
@@ -124,7 +124,7 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
124
124
|
})
|
|
125
125
|
}), /* @__PURE__ */ s(a, {
|
|
126
126
|
...y,
|
|
127
|
-
labels:
|
|
127
|
+
labels: S
|
|
128
128
|
})] });
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
@@ -11,17 +11,17 @@ import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/d
|
|
|
11
11
|
import "../../../bank-accounts-widget/feature/dist/index.js";
|
|
12
12
|
import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index68.js";
|
|
13
13
|
import "../../../bill-pay-widget/feature/dist/index.js";
|
|
14
|
-
import { CardsWidget as a } from "../../../cards-widget/feature/dist/
|
|
14
|
+
import { CardsWidget as a } from "../../../cards-widget/feature/dist/index9.js";
|
|
15
15
|
import "../../../cards-widget/feature/dist/index.js";
|
|
16
|
-
import { BalancesWidget as o } from "../../../balances-widget/feature/dist/
|
|
16
|
+
import { BalancesWidget as o } from "../../../balances-widget/feature/dist/index6.js";
|
|
17
17
|
import "../../../balances-widget/feature/dist/index.js";
|
|
18
|
-
import { InsightsWidget as s } from "../../../insights-widget/feature/dist/
|
|
18
|
+
import { InsightsWidget as s } from "../../../insights-widget/feature/dist/index12.js";
|
|
19
19
|
import "../../../insights-widget/feature/dist/index.js";
|
|
20
20
|
import { InvoicingWidget as c } from "../../../invoicing-widget/feature/dist/index3.js";
|
|
21
21
|
import "../../../invoicing-widget/feature/dist/index.js";
|
|
22
22
|
import { SettingsWidget as l } from "../../../settings-widget/feature/dist/index6.js";
|
|
23
23
|
import "../../../settings-widget/feature/dist/index.js";
|
|
24
|
-
import { TransfersWidget as u } from "../../../transfers-widget/feature/dist/
|
|
24
|
+
import { TransfersWidget as u } from "../../../transfers-widget/feature/dist/index7.js";
|
|
25
25
|
import "../../../transfers-widget/feature/dist/index.js";
|
|
26
26
|
import { useWidgetSuiteProvider as d } from "./index6.js";
|
|
27
27
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ import { useAnalyticsTrack as n } from "../../../shared/feature/dist/lib/analyti
|
|
|
10
10
|
import { WidgetProvider as r } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
11
11
|
import { useRefetchWidget as i, useWidgetConfig as a, useWidgetError as o, useWidgetInitStaleForToken as s } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
12
|
import "../../../shared/feature/dist/index.js";
|
|
13
|
-
import { AcceptDisclosuresWidget as c } from "../../../accept-disclosures-widget/feature/dist/
|
|
13
|
+
import { AcceptDisclosuresWidget as c } from "../../../accept-disclosures-widget/feature/dist/index5.js";
|
|
14
14
|
import "../../../accept-disclosures-widget/feature/dist/index.js";
|
|
15
15
|
import { WIDGET_SUITE_CONTENT_LABELS_EN as l, WIDGET_SUITE_DISCLOSURE_LABELS_EN as u, WIDGET_SUITE_SECTION_LABELS_EN as d, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as f } from "./index4.js";
|
|
16
16
|
import { WidgetSuiteProvider as p, useWidgetSuiteProvider as m } from "./index6.js";
|