@tesouro/embedded-components-react 0.7.37 → 0.7.40
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/fixtures/index.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/lib/TransfersWidget.d.ts +5 -0
- package/dist/lib/WidgetSuite.d.ts +5 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/bankAccounts.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -75
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransfersPageState.js +49 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js +103 -85
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +3 -0
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js
CHANGED
|
@@ -2,103 +2,111 @@ import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
|
2
2
|
import "../../../../shared/data-access/dist/index.js";
|
|
3
3
|
import { AN_EXTERNAL_BANK_ACCOUNT as t, A_BANK_ACCOUNT as n, A_BANK_ACCOUNT_TRANSFER as r, A_BOOK_MONEY_MOVEMENT as i } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
|
|
4
4
|
import { SCENARIO_LABELS as a } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/labels.js";
|
|
5
|
-
import { PROXY as o, answer as s, bodyOf as c, crossCuttingScenarios as l, endpoint as u, initRoute as d, json as f,
|
|
6
|
-
import { failedRead as
|
|
7
|
-
import { TRANSFERS_LABELS as
|
|
5
|
+
import { PROXY as o, answer as s, bodyOf as c, crossCuttingScenarios as l, endpoint as u, initRoute as d, json as f, problem as p, wait as m } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
|
|
6
|
+
import { failedRead as h } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/worlds.js";
|
|
7
|
+
import { TRANSFERS_LABELS as g } from "./labels.js";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js
|
|
9
|
-
var
|
|
10
|
-
...
|
|
9
|
+
var _ = [e.TransferWriteOrg, e.BankAccountReadOrg], v = [
|
|
10
|
+
..._,
|
|
11
11
|
e.ExternalBankAccountReadOrg,
|
|
12
12
|
e.PaymentRailAch
|
|
13
|
-
],
|
|
13
|
+
], y = [
|
|
14
14
|
e.BankAccountReadOrg,
|
|
15
15
|
e.ExternalBankAccountReadOrg,
|
|
16
16
|
e.PaymentRailAch
|
|
17
|
-
],
|
|
17
|
+
], b = (e) => `00000000-0000-4000-8000-0000000002${String(e).padStart(2, "0")}`, x = (e) => ({
|
|
18
18
|
currencyCode: "USD",
|
|
19
19
|
value: e
|
|
20
|
-
}),
|
|
20
|
+
}), S = n, C = {
|
|
21
21
|
...n,
|
|
22
|
-
id:
|
|
22
|
+
id: b(6),
|
|
23
23
|
accountNumber: "000000004006",
|
|
24
24
|
nickname: "Payroll",
|
|
25
|
-
balance:
|
|
26
|
-
},
|
|
25
|
+
balance: x(185e4)
|
|
26
|
+
}, w = {
|
|
27
27
|
...n,
|
|
28
|
-
id:
|
|
28
|
+
id: b(7),
|
|
29
29
|
accountNumber: "000000004007",
|
|
30
30
|
nickname: "Tax reserve",
|
|
31
|
-
balance:
|
|
32
|
-
},
|
|
31
|
+
balance: x(625050)
|
|
32
|
+
}, T = [
|
|
33
|
+
S,
|
|
33
34
|
C,
|
|
34
|
-
w
|
|
35
|
-
|
|
36
|
-
], D = t, O = {
|
|
35
|
+
w
|
|
36
|
+
], E = t, D = {
|
|
37
37
|
...t,
|
|
38
|
-
id:
|
|
38
|
+
id: b(8),
|
|
39
39
|
accountNumber: "••••••••4321",
|
|
40
40
|
nickname: "Supplier payouts",
|
|
41
41
|
verificationStatus: "UNVERIFIED"
|
|
42
|
-
},
|
|
42
|
+
}, O = [E, D], k = (e) => ({
|
|
43
43
|
id: e.id,
|
|
44
44
|
nickname: e.nickname ?? null
|
|
45
|
-
}),
|
|
45
|
+
}), A = (e, t) => ({
|
|
46
46
|
...r,
|
|
47
|
-
id:
|
|
47
|
+
id: b(e),
|
|
48
48
|
...t
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
fromAccount:
|
|
52
|
-
toAccount:
|
|
53
|
-
amount:
|
|
49
|
+
}), j = [
|
|
50
|
+
A(12, {
|
|
51
|
+
fromAccount: k(S),
|
|
52
|
+
toAccount: k(C),
|
|
53
|
+
amount: x(12e5),
|
|
54
54
|
date: "2026-02-03T15:00:00.000Z",
|
|
55
55
|
status: "PENDING"
|
|
56
56
|
}),
|
|
57
|
-
|
|
58
|
-
fromAccount:
|
|
59
|
-
toAccount:
|
|
60
|
-
amount:
|
|
57
|
+
A(13, {
|
|
58
|
+
fromAccount: k(S),
|
|
59
|
+
toAccount: k(E),
|
|
60
|
+
amount: x(35e4),
|
|
61
61
|
date: "2026-02-02T11:30:00.000Z",
|
|
62
62
|
network: "ACH",
|
|
63
63
|
type: "INTERNAL_TO_EXTERNAL"
|
|
64
64
|
}),
|
|
65
|
-
|
|
66
|
-
fromAccount:
|
|
67
|
-
toAccount:
|
|
68
|
-
amount:
|
|
65
|
+
A(14, {
|
|
66
|
+
fromAccount: k(E),
|
|
67
|
+
toAccount: k(w),
|
|
68
|
+
amount: x(8e4),
|
|
69
69
|
date: "2026-01-29T10:00:00.000Z",
|
|
70
70
|
network: "ACH",
|
|
71
71
|
type: "EXTERNAL_TO_INTERNAL",
|
|
72
72
|
status: "FAILED"
|
|
73
73
|
}),
|
|
74
|
-
|
|
75
|
-
fromAccount:
|
|
76
|
-
toAccount:
|
|
77
|
-
amount:
|
|
74
|
+
A(15, {
|
|
75
|
+
fromAccount: k(C),
|
|
76
|
+
toAccount: k(w),
|
|
77
|
+
amount: x(62500),
|
|
78
78
|
date: "2026-01-27T09:00:00.000Z"
|
|
79
79
|
}),
|
|
80
|
-
|
|
81
|
-
fromAccount:
|
|
82
|
-
toAccount:
|
|
83
|
-
amount:
|
|
80
|
+
A(16, {
|
|
81
|
+
fromAccount: k(S),
|
|
82
|
+
toAccount: k(w),
|
|
83
|
+
amount: x(25e4),
|
|
84
84
|
date: "2026-01-15T09:00:00.000Z"
|
|
85
85
|
})
|
|
86
|
-
],
|
|
86
|
+
], M = (e) => ({
|
|
87
87
|
data: e,
|
|
88
88
|
nextPaginationToken: null,
|
|
89
89
|
prevPaginationToken: null
|
|
90
|
-
}),
|
|
90
|
+
}), N = `${o}/bank-accounts`, P = `${o}/bank-accounts/transfers`, F = (e) => e === N, I = (e) => e === P, L = (e) => e === `${o}/external-bank-accounts`, R = Array.from({ length: 57 }, (e, t) => {
|
|
91
|
+
let n = j[t % j.length], r = (/* @__PURE__ */ new Date(Date.UTC(2026, 1, 3) - t * 864e5)).toISOString();
|
|
92
|
+
return {
|
|
93
|
+
...n,
|
|
94
|
+
id: `00000000-0000-4000-8000-0000000004${String(t).padStart(2, "0")}`,
|
|
95
|
+
createdDateTime: r,
|
|
96
|
+
date: r
|
|
97
|
+
};
|
|
98
|
+
}), z = (e, t = 25) => Array.from({ length: Math.ceil(e.length / t) }, (n, r) => e.slice(r * t, (r + 1) * t)), B = (e) => {
|
|
91
99
|
let t = e.accounts.map((e) => ({ ...e })), n = [...e.transfers], r = e.externals ?? [], a = 0, l = (e) => t.find((t) => t.id === e)?.nickname ?? r.find((t) => t.id === e)?.nickname ?? null, d = (e, n) => {
|
|
92
100
|
let r = t.find((t) => t.id === e);
|
|
93
|
-
r && (r.balance =
|
|
94
|
-
},
|
|
95
|
-
await
|
|
101
|
+
r && (r.balance = x(Number(r.balance.value) + n));
|
|
102
|
+
}, h = (e) => async (t) => {
|
|
103
|
+
await m(600);
|
|
96
104
|
let r = c(t), o = String(r.fromBankAccountId ?? ""), s = String(r.toBankAccountId ?? ""), u = Number(r.amount ?? 0);
|
|
97
|
-
if (!l(o) || !l(s) || !(u > 0)) return
|
|
105
|
+
if (!l(o) || !l(s) || !(u > 0)) return p(400, "Bad Request", "The transfer is not valid.");
|
|
98
106
|
a += 1;
|
|
99
|
-
let
|
|
107
|
+
let h = `00000000-0000-4000-8000-0000000003${String(a).padStart(2, "0")}`, g = x(u), _ = (/* @__PURE__ */ new Date()).toISOString(), v = e === "BOOK" ? "INTERNAL_TO_INTERNAL" : r.type === "EXTERNAL_TO_INTERNAL" ? "EXTERNAL_TO_INTERNAL" : "INTERNAL_TO_EXTERNAL";
|
|
100
108
|
return n.unshift({
|
|
101
|
-
id:
|
|
109
|
+
id: h,
|
|
102
110
|
amount: g,
|
|
103
111
|
createdDateTime: _,
|
|
104
112
|
date: _,
|
|
@@ -116,7 +124,7 @@ var v = [e.TransferWriteOrg, e.BankAccountReadOrg], y = [
|
|
|
116
124
|
type: v
|
|
117
125
|
}), d(o, -u), d(s, u), f({
|
|
118
126
|
...i,
|
|
119
|
-
id:
|
|
127
|
+
id: h,
|
|
120
128
|
amount: g,
|
|
121
129
|
date: _,
|
|
122
130
|
fromBankAccount: {
|
|
@@ -132,53 +140,63 @@ var v = [e.TransferWriteOrg, e.BankAccountReadOrg], y = [
|
|
|
132
140
|
}, 201);
|
|
133
141
|
};
|
|
134
142
|
return [
|
|
135
|
-
s(
|
|
136
|
-
s(
|
|
137
|
-
|
|
138
|
-
u("POST", `${o}/money-movements/book`,
|
|
139
|
-
u("POST", `${o}/money-movements/ach`,
|
|
143
|
+
s(F, () => f(M(t))),
|
|
144
|
+
s(L, () => f(M(r))),
|
|
145
|
+
s(I, () => f(M(n))),
|
|
146
|
+
u("POST", `${o}/money-movements/book`, h("BOOK")),
|
|
147
|
+
u("POST", `${o}/money-movements/ach`, h("ACH"))
|
|
140
148
|
];
|
|
141
|
-
},
|
|
142
|
-
accounts:
|
|
143
|
-
transfers:
|
|
144
|
-
externals:
|
|
145
|
-
},
|
|
149
|
+
}, V = {
|
|
150
|
+
accounts: T,
|
|
151
|
+
transfers: j,
|
|
152
|
+
externals: O
|
|
153
|
+
}, H = (e, t, n, r, { transfersFail: i = !1 } = {}) => ({
|
|
146
154
|
key: e,
|
|
147
155
|
...t,
|
|
148
156
|
routes: () => [
|
|
149
157
|
d(n),
|
|
150
|
-
...i ? [
|
|
151
|
-
...
|
|
158
|
+
...i ? [h(I)] : [],
|
|
159
|
+
...B(r)
|
|
152
160
|
]
|
|
153
|
-
}),
|
|
161
|
+
}), U = g.blurbs, W = (e) => ({
|
|
154
162
|
label: a[e].label,
|
|
155
|
-
blurb:
|
|
156
|
-
}), [
|
|
157
|
-
scopes:
|
|
163
|
+
blurb: U[e] ?? a[e].blurb
|
|
164
|
+
}), G = s(L, () => f(M(O))), [K] = l({
|
|
165
|
+
scopes: v,
|
|
166
|
+
read: {
|
|
167
|
+
matches: F,
|
|
168
|
+
body: M(T)
|
|
169
|
+
},
|
|
170
|
+
supportRoutes: [G],
|
|
171
|
+
blurbs: g.blurbs
|
|
172
|
+
}, ["loading"]), [q] = l({
|
|
173
|
+
scopes: v,
|
|
158
174
|
read: {
|
|
159
175
|
matches: I,
|
|
160
|
-
body:
|
|
176
|
+
body: M(R),
|
|
177
|
+
pages: z(R)
|
|
161
178
|
},
|
|
162
|
-
supportRoutes: [s(
|
|
163
|
-
blurbs:
|
|
164
|
-
}, ["
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
...
|
|
179
|
+
supportRoutes: [s(F, () => f(M(T))), G],
|
|
180
|
+
blurbs: g.blurbs
|
|
181
|
+
}, ["paginated"]), J = [
|
|
182
|
+
H("populated", W("populated"), v, V),
|
|
183
|
+
H("empty", W("empty"), v, {
|
|
184
|
+
...V,
|
|
168
185
|
transfers: []
|
|
169
186
|
}),
|
|
170
|
-
...
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
187
|
+
...K ? [K] : [],
|
|
188
|
+
...q ? [q] : [],
|
|
189
|
+
H("error", W("error"), v, V, { transfersFail: !0 }),
|
|
190
|
+
H("control-hidden", W("control-hidden"), y, V),
|
|
191
|
+
H("internal-only", g.scenarios["internal-only"], _, {
|
|
192
|
+
accounts: T,
|
|
193
|
+
transfers: j
|
|
176
194
|
}),
|
|
177
|
-
|
|
178
|
-
accounts: [
|
|
179
|
-
transfers:
|
|
180
|
-
externals: [
|
|
195
|
+
H("single-account", g.scenarios["single-account"], v, {
|
|
196
|
+
accounts: [S],
|
|
197
|
+
transfers: j.filter((e) => e.fromAccount.id === S.id || e.toAccount.id === S.id),
|
|
198
|
+
externals: [D]
|
|
181
199
|
})
|
|
182
200
|
];
|
|
183
201
|
//#endregion
|
|
184
|
-
export {
|
|
202
|
+
export { J as transfersScenarios };
|
|
@@ -1,117 +1,129 @@
|
|
|
1
1
|
import { Button as e, Skeleton as t, Typography as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { PaginationFooter as r } from "../../../../../shared/ui/dist/lib/PaginationFooter/PaginationFooter.js";
|
|
3
|
+
import { WidgetTitleWithIconAndChildren as i } from "../../../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
|
|
3
4
|
import "../../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { TRANSFERS_WIDGET_LABELS_EN as
|
|
5
|
-
import { TransferMoneyModal as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { ArrowDownToLine as
|
|
5
|
+
import { TRANSFERS_WIDGET_LABELS_EN as a } from "./labels.js";
|
|
6
|
+
import { TransferMoneyModal as o } from "../TransferMoneyModal/TransferMoneyModal.js";
|
|
7
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { ArrowDownToLine as u, ArrowDownUp as d, ArrowUpFromLine as f } from "lucide-react";
|
|
8
9
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
},
|
|
10
|
+
function p({ transferRows: p, isLoading: m, isError: h, onRetry: g, showTransferMoneyCta: _, isTransferMoneyCtaDisabled: v = !1, onTransferMoneyClick: y, transferMoneyModal: b, pagination: x, labels: S, testIds: C }) {
|
|
11
|
+
let w = {
|
|
12
|
+
...a,
|
|
13
|
+
...S
|
|
14
|
+
}, T = x ? /* @__PURE__ */ c(r, {
|
|
15
|
+
...x,
|
|
16
|
+
labels: {
|
|
17
|
+
rowsPerPageLabel: w.paginationRowsPerPage,
|
|
18
|
+
previousPageButton: w.paginationPreviousPage,
|
|
19
|
+
nextPageButton: w.paginationNextPage
|
|
20
|
+
}
|
|
21
|
+
}) : null, E = _ && !m ? /* @__PURE__ */ c("span", {
|
|
14
22
|
className: "ttw:inline-flex ttw:shrink-0",
|
|
15
|
-
title:
|
|
16
|
-
children: /* @__PURE__ */
|
|
23
|
+
title: v ? w.transferMoneyCtaDisabledTooltip : void 0,
|
|
24
|
+
children: /* @__PURE__ */ l(e, {
|
|
17
25
|
type: "button",
|
|
18
26
|
size: "sm",
|
|
19
27
|
variant: "default",
|
|
20
28
|
className: "ttw:inline-flex ttw:shrink-0 ttw:gap-2 ttw:whitespace-nowrap",
|
|
21
|
-
disabled:
|
|
22
|
-
onClick:
|
|
23
|
-
"data-testid":
|
|
24
|
-
children: [/* @__PURE__ */
|
|
29
|
+
disabled: v,
|
|
30
|
+
onClick: v ? void 0 : y,
|
|
31
|
+
"data-testid": C?.transferMoneyButton,
|
|
32
|
+
children: [/* @__PURE__ */ c(u, {
|
|
25
33
|
className: "ttw:size-4",
|
|
26
34
|
"aria-hidden": !0
|
|
27
|
-
}),
|
|
35
|
+
}), w.transferMoneyCta]
|
|
28
36
|
})
|
|
29
37
|
}) : void 0;
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
icon: /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(i, {
|
|
39
|
+
icon: /* @__PURE__ */ c(d, {
|
|
32
40
|
className: "ttw:size-[18px] ttw:shrink-0 ttw:text-primary",
|
|
33
41
|
"aria-hidden": !0
|
|
34
42
|
}),
|
|
35
|
-
title:
|
|
36
|
-
headerActions:
|
|
37
|
-
children:
|
|
38
|
-
"data-testid":
|
|
43
|
+
title: w.widgetTitle,
|
|
44
|
+
headerActions: E,
|
|
45
|
+
children: m ? /* @__PURE__ */ c(t, {
|
|
46
|
+
"data-testid": C?.skeleton,
|
|
39
47
|
height: 120,
|
|
40
48
|
width: "100%",
|
|
41
49
|
className: "ttw:rounded-md"
|
|
42
|
-
}) :
|
|
50
|
+
}) : h ? /* @__PURE__ */ l("div", {
|
|
43
51
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
44
|
-
"data-testid":
|
|
52
|
+
"data-testid": C?.error,
|
|
45
53
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ c(n, {
|
|
47
55
|
component: "p",
|
|
48
56
|
variant: "body1",
|
|
49
57
|
className: "ttw:font-semibold",
|
|
50
|
-
children:
|
|
58
|
+
children: w.loadErrorTitle
|
|
51
59
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ c(n, {
|
|
53
61
|
component: "p",
|
|
54
62
|
variant: "body2",
|
|
55
63
|
color: "muted",
|
|
56
|
-
children:
|
|
64
|
+
children: w.loadErrorDescription
|
|
57
65
|
}),
|
|
58
|
-
|
|
66
|
+
g ? /* @__PURE__ */ c(e, {
|
|
59
67
|
type: "button",
|
|
60
68
|
variant: "outline",
|
|
61
69
|
size: "sm",
|
|
62
70
|
className: "ttw:self-start ttw:cursor-pointer",
|
|
63
|
-
onClick:
|
|
64
|
-
"data-testid":
|
|
65
|
-
children:
|
|
71
|
+
onClick: g,
|
|
72
|
+
"data-testid": C?.retry,
|
|
73
|
+
children: w.loadErrorRetry
|
|
66
74
|
}) : null
|
|
67
75
|
]
|
|
68
|
-
}) :
|
|
76
|
+
}) : p.length === 0 ? /* @__PURE__ */ l("div", {
|
|
69
77
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
70
|
-
"data-testid":
|
|
71
|
-
children: [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
"data-testid": C?.empty,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ c(n, {
|
|
81
|
+
variant: "body1",
|
|
82
|
+
className: "ttw:font-semibold",
|
|
83
|
+
children: w.emptyTitle
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ c(n, {
|
|
86
|
+
variant: "body2",
|
|
87
|
+
color: "muted",
|
|
88
|
+
component: "p",
|
|
89
|
+
children: w.emptyDescription
|
|
90
|
+
}),
|
|
91
|
+
x && !x.isPreviousDisabled ? T : null
|
|
92
|
+
]
|
|
93
|
+
}) : /* @__PURE__ */ l("div", {
|
|
82
94
|
className: "ttw:max-w-full ttw:overflow-x-auto ttw:rounded-md ttw:border ttw:border-border",
|
|
83
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ c("div", {
|
|
84
96
|
className: "ttw:min-w-[24rem] ttw:max-h-96 ttw:overflow-y-auto",
|
|
85
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ c("ul", {
|
|
86
98
|
className: "ttw:m-0 ttw:list-none ttw:divide-y ttw:divide-border ttw:p-0",
|
|
87
|
-
children:
|
|
99
|
+
children: p.map((e) => /* @__PURE__ */ l("li", {
|
|
88
100
|
title: e.detailLabel,
|
|
89
|
-
"data-testid":
|
|
101
|
+
"data-testid": C?.transferRow,
|
|
90
102
|
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
103
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ l("div", {
|
|
93
105
|
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-3",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ c("div", {
|
|
95
107
|
className: "ttw:flex ttw:size-9 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-primary/10",
|
|
96
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ c(f, {
|
|
97
109
|
className: "ttw:size-4 ttw:text-primary",
|
|
98
110
|
"aria-hidden": !0
|
|
99
111
|
})
|
|
100
|
-
}), /* @__PURE__ */
|
|
112
|
+
}), /* @__PURE__ */ c(n, {
|
|
101
113
|
variant: "body2",
|
|
102
114
|
component: "p",
|
|
103
115
|
className: "ttw:min-w-0 ttw:truncate ttw:font-medium",
|
|
104
116
|
children: e.accountsRouteLabel
|
|
105
117
|
})]
|
|
106
118
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ c(n, {
|
|
108
120
|
variant: "body2",
|
|
109
121
|
component: "p",
|
|
110
122
|
color: "muted",
|
|
111
123
|
className: "ttw:shrink-0 ttw:text-center",
|
|
112
124
|
children: e.dateLabel
|
|
113
125
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ c(n, {
|
|
115
127
|
variant: "body2",
|
|
116
128
|
component: "p",
|
|
117
129
|
className: "ttw:justify-self-end ttw:shrink-0 ttw:font-semibold ttw:tabular-nums",
|
|
@@ -120,12 +132,12 @@ function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransfer
|
|
|
120
132
|
]
|
|
121
133
|
}, e.rowKey))
|
|
122
134
|
})
|
|
123
|
-
})
|
|
135
|
+
}), T]
|
|
124
136
|
})
|
|
125
|
-
}), /* @__PURE__ */
|
|
126
|
-
...
|
|
127
|
-
labels:
|
|
137
|
+
}), /* @__PURE__ */ c(o, {
|
|
138
|
+
...b,
|
|
139
|
+
labels: w
|
|
128
140
|
})] });
|
|
129
141
|
}
|
|
130
142
|
//#endregion
|
|
131
|
-
export {
|
|
143
|
+
export { a as TRANSFERS_WIDGET_LABELS_EN, p as TransfersWidget };
|
|
@@ -12,6 +12,9 @@ var e = {
|
|
|
12
12
|
loadErrorRetry: "Try again",
|
|
13
13
|
emptyTitle: "No transfers yet",
|
|
14
14
|
emptyDescription: "When you move money between accounts, your transfers will show up here.",
|
|
15
|
+
paginationRowsPerPage: "Rows per page",
|
|
16
|
+
paginationPreviousPage: "Previous page",
|
|
17
|
+
paginationNextPage: "Next page",
|
|
15
18
|
modalTitle: "Transfer Money",
|
|
16
19
|
modalAccountsSubtitle: "ACH transfers take 1–2 business days to settle.",
|
|
17
20
|
modalFromAccountPlaceholder: "From Account",
|