@tesouro/embedded-components-react 0.11.59 → 0.11.61
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/README.md +37 -37
- package/dist/index.css +77 -230
- package/dist/index.d.ts +69 -23
- package/dist/lib/BankAccountsWidget.d.ts +20 -7
- package/dist/lib/CardDetailsWidget.d.ts +11 -3
- package/dist/lib/CreditCardsWidget.d.ts +19 -6
- package/dist/lib/DebitCardsWidget.d.ts +19 -6
- package/dist/lib/LinkedAccountsWidget.d.ts +30 -10
- package/dist/lib/WidgetSuite.d.ts +69 -23
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +112 -110
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +94 -83
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialRow.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialsFace.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +30 -25
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +162 -190
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyButton.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyableValue.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameEditor.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +110 -104
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CreateCardWidget.js +74 -68
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/PreparingView.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js +110 -108
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js +33 -42
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/labels.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +159 -145
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +255 -112
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
- 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/index.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/DetailCopyRow.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameRow.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/statusBadge.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +0 -103
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/statusBadge.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index9.js";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { CopyIcon as n } from "lucide-react";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js
|
|
4
|
-
function r({ value: r, copyAriaLabel: i, onCopy: a }) {
|
|
5
|
-
return /* @__PURE__ */ t("div", {
|
|
6
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
7
|
-
children: [/* @__PURE__ */ e("span", {
|
|
8
|
-
className: "ttw:min-w-0 ttw:truncate ttw:text-sm ttw:text-foreground",
|
|
9
|
-
children: r
|
|
10
|
-
}), i && a ? /* @__PURE__ */ e("button", {
|
|
11
|
-
type: "button",
|
|
12
|
-
"aria-label": i,
|
|
13
|
-
onClick: a,
|
|
14
|
-
className: "ttw:inline-flex ttw:size-5 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-none",
|
|
15
|
-
children: /* @__PURE__ */ e(n, {
|
|
16
|
-
className: "ttw:size-3",
|
|
17
|
-
"aria-hidden": "true"
|
|
18
|
-
})
|
|
19
|
-
}) : null]
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { r as AddressLine };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { CopyIcon as r } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/DetailCopyRow.js
|
|
5
|
-
function i({ label: i, children: a, copyAriaLabel: o, onCopy: s, trailing: c, isLast: l }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3" + (l ? "" : " ttw:border-b ttw:border-border"),
|
|
8
|
-
children: [/* @__PURE__ */ n("div", {
|
|
9
|
-
className: "ttw:min-w-0 ttw:space-y-1",
|
|
10
|
-
children: [/* @__PURE__ */ t("p", {
|
|
11
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
12
|
-
children: i
|
|
13
|
-
}), /* @__PURE__ */ t("div", {
|
|
14
|
-
className: "ttw:text-sm ttw:text-foreground",
|
|
15
|
-
children: a
|
|
16
|
-
})]
|
|
17
|
-
}), c ?? (o && s ? /* @__PURE__ */ t(e, {
|
|
18
|
-
type: "button",
|
|
19
|
-
variant: "ghost",
|
|
20
|
-
size: "icon",
|
|
21
|
-
className: "ttw:size-8 ttw:shrink-0 ttw:text-muted-foreground",
|
|
22
|
-
"aria-label": o,
|
|
23
|
-
onClick: s,
|
|
24
|
-
children: /* @__PURE__ */ t(r, { className: "ttw:size-4" })
|
|
25
|
-
}) : null)]
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export { i as DetailCopyRow };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Button as e, Input as t, cn as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { InlineErrorAlert as r } from "../../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
-
import "../../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { DetailCopyRow as i } from "./DetailCopyRow.js";
|
|
5
|
-
import { useEffect as a, useRef as o } from "react";
|
|
6
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
-
import { SquarePenIcon as l } from "lucide-react";
|
|
8
|
-
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameRow.js
|
|
9
|
-
function u({ fieldLabels: u, labels: d, nickname: f, editState: p, onEdit: m, draft: h = "", onDraftChange: g, onSave: _, onCancel: v, isSaveDisabled: y, onCopy: b, copyAriaLabel: x, isLast: S }) {
|
|
10
|
-
let C = p !== "closed", w = o(null);
|
|
11
|
-
return a(() => {
|
|
12
|
-
C && w.current?.focus();
|
|
13
|
-
}, [C]), m && C ? /* @__PURE__ */ c("div", {
|
|
14
|
-
className: n("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-3", !S && "ttw:border-b ttw:border-border"),
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ s("p", {
|
|
17
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
18
|
-
children: u.nickname
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ s(t, {
|
|
21
|
-
ref: w,
|
|
22
|
-
value: h,
|
|
23
|
-
"aria-label": d.inputAriaLabel,
|
|
24
|
-
disabled: p === "saving",
|
|
25
|
-
onChange: (e) => g?.(e.target.value)
|
|
26
|
-
}),
|
|
27
|
-
/* @__PURE__ */ c("div", {
|
|
28
|
-
className: "ttw:flex ttw:gap-2",
|
|
29
|
-
children: [/* @__PURE__ */ s(e, {
|
|
30
|
-
type: "button",
|
|
31
|
-
size: "sm",
|
|
32
|
-
disabled: y,
|
|
33
|
-
loading: p === "saving",
|
|
34
|
-
onClick: _,
|
|
35
|
-
children: d.save
|
|
36
|
-
}), /* @__PURE__ */ s(e, {
|
|
37
|
-
type: "button",
|
|
38
|
-
size: "sm",
|
|
39
|
-
variant: "outline",
|
|
40
|
-
disabled: p === "saving",
|
|
41
|
-
onClick: v,
|
|
42
|
-
children: d.cancel
|
|
43
|
-
})]
|
|
44
|
-
}),
|
|
45
|
-
p === "errored" ? /* @__PURE__ */ s(r, { children: d.errorDescription }) : null
|
|
46
|
-
]
|
|
47
|
-
}) : /* @__PURE__ */ s(i, {
|
|
48
|
-
label: u.nickname,
|
|
49
|
-
copyAriaLabel: x,
|
|
50
|
-
onCopy: b,
|
|
51
|
-
trailing: m ? /* @__PURE__ */ s(e, {
|
|
52
|
-
type: "button",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
size: "icon",
|
|
55
|
-
className: "ttw:size-8 ttw:shrink-0 ttw:text-muted-foreground",
|
|
56
|
-
"aria-label": d.editAriaLabel,
|
|
57
|
-
onClick: m,
|
|
58
|
-
children: /* @__PURE__ */ s(l, { className: "ttw:size-4" })
|
|
59
|
-
}) : void 0,
|
|
60
|
-
isLast: S,
|
|
61
|
-
children: f ?? u.emptyValue
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
export { u as NicknameRow };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/statusBadge.js
|
|
2
|
-
var e = {
|
|
3
|
-
success: "ttw:bg-[#ECFDF5] ttw:text-[#027A48]",
|
|
4
|
-
info: "ttw:bg-[#EFF8FF] ttw:text-[#175CD3]",
|
|
5
|
-
warning: "ttw:bg-[#FFFAEB] ttw:text-[#B54708]",
|
|
6
|
-
neutral: "ttw:bg-[#F2F4F7] ttw:text-[#344054]"
|
|
7
|
-
}, t = "ttw:rounded ttw:border-transparent ttw:px-2 ttw:py-0.5 ttw:text-xs ttw:font-medium";
|
|
8
|
-
function n(n) {
|
|
9
|
-
return `${t} ${e[n]}`;
|
|
10
|
-
}
|
|
11
|
-
export { n as cardStatusToneClassName };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
// ../../libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js
|
|
3
|
-
function t({ testIds: t }) {
|
|
4
|
-
return /* @__PURE__ */ e("span", {
|
|
5
|
-
"aria-hidden": !0,
|
|
6
|
-
"data-testid": t?.root,
|
|
7
|
-
className: "ttw:flex ttw:h-7 ttw:w-[42px] ttw:shrink-0 ttw:items-end ttw:rounded-[3.5px] ttw:bg-foreground ttw:p-1",
|
|
8
|
-
children: /* @__PURE__ */ e("span", { className: "ttw:h-1 ttw:w-2.5 ttw:rounded-[1px] ttw:bg-muted-foreground" })
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export { t as CardFaceSwatch, t as default };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Button as e, TableCell as t, TableRow as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { cardStatusToneClassName as r } from "./statusBadge.js";
|
|
7
|
-
import { CardFaceSwatch as i } from "./CardFaceSwatch.js";
|
|
8
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
-
// ../../libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js
|
|
10
|
-
function c({ row: e, labels: t, testIds: n }) {
|
|
11
|
-
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(i, { testIds: n?.cardFaceSwatch }), /* @__PURE__ */ s("span", {
|
|
12
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
|
|
13
|
-
children: [/* @__PURE__ */ s("span", {
|
|
14
|
-
className: "ttw:flex ttw:gap-1 ttw:text-sm ttw:leading-none",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ o("span", {
|
|
17
|
-
className: "ttw:truncate ttw:font-medium ttw:text-foreground",
|
|
18
|
-
children: e.nickname
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ o("span", {
|
|
21
|
-
className: "ttw:text-muted-foreground",
|
|
22
|
-
"aria-hidden": !0,
|
|
23
|
-
children: t.cardNameSeparator
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ o("span", {
|
|
26
|
-
className: "ttw:text-muted-foreground",
|
|
27
|
-
children: e.lastFour
|
|
28
|
-
})
|
|
29
|
-
]
|
|
30
|
-
}), /* @__PURE__ */ o("span", {
|
|
31
|
-
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
32
|
-
children: e.typeLabel
|
|
33
|
-
})]
|
|
34
|
-
})] });
|
|
35
|
-
}
|
|
36
|
-
function l({ row: i, columns: a, labels: l, testIds: u }) {
|
|
37
|
-
let d = !!i.onActivate, f = !!i.onSelect, p = {
|
|
38
|
-
cardName: /* @__PURE__ */ o("span", {
|
|
39
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-3",
|
|
40
|
-
children: /* @__PURE__ */ o(c, {
|
|
41
|
-
row: i,
|
|
42
|
-
labels: l,
|
|
43
|
-
testIds: u
|
|
44
|
-
})
|
|
45
|
-
}),
|
|
46
|
-
fundingAccount: /* @__PURE__ */ s("span", {
|
|
47
|
-
className: "ttw:flex ttw:min-w-0 ttw:items-baseline ttw:gap-1 ttw:text-sm",
|
|
48
|
-
children: [/* @__PURE__ */ o("span", {
|
|
49
|
-
className: "ttw:truncate ttw:text-foreground",
|
|
50
|
-
children: i.fundingAccount
|
|
51
|
-
}), i.fundingAccountLastFour && /* @__PURE__ */ s("span", {
|
|
52
|
-
className: "ttw:shrink-0 ttw:text-muted-foreground",
|
|
53
|
-
children: [
|
|
54
|
-
l.cardNameSeparator,
|
|
55
|
-
" ",
|
|
56
|
-
i.fundingAccountLastFour
|
|
57
|
-
]
|
|
58
|
-
})]
|
|
59
|
-
}),
|
|
60
|
-
cardholder: /* @__PURE__ */ o("span", {
|
|
61
|
-
className: "ttw:text-sm ttw:text-foreground",
|
|
62
|
-
children: i.cardholder
|
|
63
|
-
}),
|
|
64
|
-
status: /* @__PURE__ */ o("span", {
|
|
65
|
-
className: r(i.statusTone),
|
|
66
|
-
children: i.statusLabel
|
|
67
|
-
}),
|
|
68
|
-
limit: i.limit ? /* @__PURE__ */ s("span", {
|
|
69
|
-
className: "ttw:flex ttw:gap-1 ttw:text-sm",
|
|
70
|
-
children: [/* @__PURE__ */ o("span", {
|
|
71
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
72
|
-
children: i.limit
|
|
73
|
-
}), i.limitPeriod && /* @__PURE__ */ o("span", {
|
|
74
|
-
className: "ttw:text-muted-foreground",
|
|
75
|
-
children: i.limitPeriod
|
|
76
|
-
})]
|
|
77
|
-
}) : /* @__PURE__ */ o("span", {
|
|
78
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
79
|
-
children: l.noLimit
|
|
80
|
-
})
|
|
81
|
-
};
|
|
82
|
-
return /* @__PURE__ */ s(n, {
|
|
83
|
-
"data-testid": u?.rootPrefix ? `${u.rootPrefix}-${i.key}` : void 0,
|
|
84
|
-
className: f ? "ttw:relative ttw:h-18 ttw:cursor-pointer" : "ttw:h-18",
|
|
85
|
-
children: [a.map((e, n) => /* @__PURE__ */ s(t, { children: [n === 0 && f ? /* @__PURE__ */ o("button", {
|
|
86
|
-
type: "button",
|
|
87
|
-
"aria-label": `${l.selectCardButton} ${i.nickname} ${i.lastFour} ${i.typeLabel}`,
|
|
88
|
-
onClick: () => i.onSelect?.(),
|
|
89
|
-
className: "ttw:absolute ttw:inset-0 ttw:z-10 ttw:cursor-pointer ttw:rounded-md ttw:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:ring-offset-2"
|
|
90
|
-
}) : null, p[e]] }, e)), /* @__PURE__ */ o(t, {
|
|
91
|
-
className: f ? "ttw:relative ttw:z-20 ttw:text-right" : "ttw:text-right",
|
|
92
|
-
children: d && /* @__PURE__ */ o(e, {
|
|
93
|
-
size: "sm",
|
|
94
|
-
"aria-label": `${l.activateButtonForCard} ${i.nickname}`,
|
|
95
|
-
onClick: (e) => {
|
|
96
|
-
e.stopPropagation(), i.onActivate?.();
|
|
97
|
-
},
|
|
98
|
-
children: l.activateButton
|
|
99
|
-
})
|
|
100
|
-
})]
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
export { l as CardsListRow, l as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// ../../libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/statusBadge.js
|
|
2
|
-
var e = {
|
|
3
|
-
success: "ttw:bg-green-100 ttw:text-green-700",
|
|
4
|
-
info: "ttw:bg-blue-100 ttw:text-blue-700",
|
|
5
|
-
warning: "ttw:bg-amber-100 ttw:text-amber-700",
|
|
6
|
-
neutral: "ttw:bg-secondary ttw:text-secondary-foreground"
|
|
7
|
-
}, t = "ttw:inline-flex ttw:w-fit ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:px-2 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:leading-4 ttw:whitespace-nowrap";
|
|
8
|
-
function n(n) {
|
|
9
|
-
return `${t} ${e[n]}`;
|
|
10
|
-
}
|
|
11
|
-
export { n as cardStatusToneClassName };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js
|
|
2
|
-
var e = {
|
|
3
|
-
title: "Linked accounts",
|
|
4
|
-
connectButton: "Add external account",
|
|
5
|
-
verifyCtaButton: "Click here to verify",
|
|
6
|
-
learnMoreButton: "Learn more about linked accounts",
|
|
7
|
-
connectTitle: "Link Account",
|
|
8
|
-
nicknameLabel: "Account nickname",
|
|
9
|
-
nameOnAccountLabel: "Legal name on account",
|
|
10
|
-
accountNumberLabel: "Account number",
|
|
11
|
-
routingNumberLabel: "Routing number",
|
|
12
|
-
routingNumberError: "Routing number must be a valid 9-digit ABA routing number.",
|
|
13
|
-
nicknamePlaceholder: "e.g. Operating account",
|
|
14
|
-
holderTypeLabel: "Who owns this account?",
|
|
15
|
-
personalOption: "Personal",
|
|
16
|
-
personalOptionDescription: "Owned by an individual",
|
|
17
|
-
businessOption: "Business",
|
|
18
|
-
businessOptionDescription: "Owned by a company or organization",
|
|
19
|
-
typeLabel: "Account type",
|
|
20
|
-
checkingOption: "Checking",
|
|
21
|
-
savingsOption: "Savings",
|
|
22
|
-
cancelButton: "Cancel",
|
|
23
|
-
closeButton: "Close",
|
|
24
|
-
nextButton: "Next",
|
|
25
|
-
backButton: "Back",
|
|
26
|
-
stepIndicator: "Step {current}/{total}",
|
|
27
|
-
connectStep1Heading: "Enter your bank details",
|
|
28
|
-
connectStep1Description: "Tell us about the account you're linking, then enter its routing and account numbers.",
|
|
29
|
-
connectStep2Heading: "Set team member access",
|
|
30
|
-
connectStep2Description: "Who from your team should have access to manage/view this external account?",
|
|
31
|
-
teamMemberAccessTooltip: "Members with access can view and manage this external account.",
|
|
32
|
-
teamMembersLoadingLabel: "Loading team members",
|
|
33
|
-
teamMembersErrorTitle: "Unable to load team members",
|
|
34
|
-
teamMembersEmptyLabel: "No additional team members to add.",
|
|
35
|
-
summaryTitle: "Verification deposits sent",
|
|
36
|
-
summaryAccountAddedTitle: "Account added",
|
|
37
|
-
summaryNextStepsHeading: "Next steps",
|
|
38
|
-
summaryAccountPrefix: "Account",
|
|
39
|
-
backToTransfersButton: "Back to Transfers",
|
|
40
|
-
doneButton: "Done",
|
|
41
|
-
saveButton: "Save account",
|
|
42
|
-
editButton: "Edit",
|
|
43
|
-
verifyButton: "Verify this account",
|
|
44
|
-
unlinkButton: "Unlink",
|
|
45
|
-
linkButton: "Link",
|
|
46
|
-
editTitle: "Edit linked account",
|
|
47
|
-
verifyTitle: "Enter deposit amounts",
|
|
48
|
-
verifyDescription: "To verify this account, please enter the two deposit amounts seen in your personal bank account.",
|
|
49
|
-
verifySectionHeading: "Enter the two deposit amounts that were sent to:",
|
|
50
|
-
verifyExampleLabel: "Example:",
|
|
51
|
-
verifyExampleText: "If you received $0.12 and $0.34, enter \"0.12\" and \"0.34\".",
|
|
52
|
-
verifyAccountInProcess: "in process.",
|
|
53
|
-
verifySuccessTitle: "Success!",
|
|
54
|
-
verifySuccessDescription: "Your account {account} was successfully verified. You can now transfer money into and out of this account.",
|
|
55
|
-
unlinkTitle: "Un-link Account",
|
|
56
|
-
unlinkDescription: "Are you sure you want to un-link account {account} from business banking? Any transfers in process will continue to process, but no future money transfers will be able to process with this account.",
|
|
57
|
-
unlinkConfirmButton: "Confirm",
|
|
58
|
-
firstAmountLabel: "Deposit 1",
|
|
59
|
-
secondAmountLabel: "Deposit 2",
|
|
60
|
-
verifyAmountError: "Enter an amount between $0.01 and $0.99.",
|
|
61
|
-
loadingLabel: "Loading linked accounts",
|
|
62
|
-
errorTitle: "Unable to load linked accounts",
|
|
63
|
-
actionErrorTitle: "Unable to update linked account",
|
|
64
|
-
emptyTitle: "No Linked Accounts Yet",
|
|
65
|
-
emptyDescription: "No external accounts have been linked yet."
|
|
66
|
-
};
|
|
67
|
-
export { e as DEFAULT_LABELS };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { WidgetTitleWithIconAndChildren as n } from "../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
|
|
7
|
-
import "../../../shared/ui/dist/index.js";
|
|
8
|
-
import { DEFAULT_LABELS as r } from "./index15.js";
|
|
9
|
-
import { AccountRow as i } from "./index3.js";
|
|
10
|
-
import { linkedAccountsWidgetUiTestIds as a } from "./index8.js";
|
|
11
|
-
import { ConnectAccountDialog as o } from "./index9.js";
|
|
12
|
-
import { EditAccountDialog as s } from "./index11.js";
|
|
13
|
-
import { EmptyState as c } from "./index12.js";
|
|
14
|
-
import { UnlinkAccountDialog as l } from "./index13.js";
|
|
15
|
-
import { VerifyAccountDialog as u } from "./index14.js";
|
|
16
|
-
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
17
|
-
import { LinkIcon as m, PlusIcon as ee } from "lucide-react";
|
|
18
|
-
// ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js
|
|
19
|
-
function h({ labels: h, rows: g, isLoading: _ = !1, isError: v = !1, isConnectOpen: y, isEditOpen: b, isVerifyOpen: x, isUnlinkOpen: S, isSubmitting: C = !1, isActionDisabled: w = !1, canConnect: T = !0, isActionError: E = !1, isConnectError: D = !1, isEditError: O = !1, isVerifyError: k = !1, learnMoreUrl: A, unlinkAccountNumber: j, verifyAccountName: M, verifyAccountNumber: N, isVerifySuccess: P = !1, connectStep: F, accessRows: I, accessGrantedCount: L, isTeamMembersLoading: R = !1, isTeamMembersError: te = !1, isConnectNextDisabled: z = !1, isConnectRoutingNumberInvalid: B = !1, connectErrorMessage: V, isVerifyFirstAmountInvalid: H = !1, isVerifySecondAmountInvalid: U = !1, isVerifySubmitDisabled: W = !0, connectSummary: G, connectForm: K, editForm: q, verifyForm: J, onConnectOpenChange: Y, onEditOpenChange: X, onVerifyOpenChange: Z, onUnlinkOpenChange: Q, onConnectFormChange: ne, onEditFormChange: re, onVerifyFormChange: ie, onConnectNext: ae, onConnectBack: oe, onEditSubmit: se, onVerifySubmit: ce, onUnlinkConfirm: le }) {
|
|
20
|
-
let $ = {
|
|
21
|
-
...r,
|
|
22
|
-
...h
|
|
23
|
-
};
|
|
24
|
-
return /* @__PURE__ */ p(d, { children: [
|
|
25
|
-
/* @__PURE__ */ f(n, {
|
|
26
|
-
icon: /* @__PURE__ */ f(m, { className: "ttw:size-5 ttw:shrink-0 ttw:text-foreground" }),
|
|
27
|
-
title: $.title,
|
|
28
|
-
headerActions: T ? /* @__PURE__ */ p(e, {
|
|
29
|
-
type: "button",
|
|
30
|
-
size: "sm",
|
|
31
|
-
disabled: w,
|
|
32
|
-
"data-testid": a.connectAccountButton,
|
|
33
|
-
className: "ttw:inline-flex ttw:shrink-0 ttw:gap-2 ttw:whitespace-nowrap",
|
|
34
|
-
onClick: () => Y(!0),
|
|
35
|
-
children: [/* @__PURE__ */ f(ee, {
|
|
36
|
-
className: "ttw:size-4",
|
|
37
|
-
"aria-hidden": !0
|
|
38
|
-
}), $.connectButton]
|
|
39
|
-
}) : void 0,
|
|
40
|
-
children: /* @__PURE__ */ p("div", {
|
|
41
|
-
className: "ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border",
|
|
42
|
-
children: [
|
|
43
|
-
_ && /* @__PURE__ */ p("div", {
|
|
44
|
-
"aria-label": $.loadingLabel,
|
|
45
|
-
className: "ttw:space-y-3 ttw:p-4",
|
|
46
|
-
children: [/* @__PURE__ */ f(t, {
|
|
47
|
-
height: 44,
|
|
48
|
-
width: "100%"
|
|
49
|
-
}), /* @__PURE__ */ f(t, {
|
|
50
|
-
height: 44,
|
|
51
|
-
width: "100%"
|
|
52
|
-
})]
|
|
53
|
-
}),
|
|
54
|
-
!_ && v && /* @__PURE__ */ f("div", {
|
|
55
|
-
className: "ttw:p-4 ttw:text-sm ttw:text-destructive",
|
|
56
|
-
children: $.errorTitle
|
|
57
|
-
}),
|
|
58
|
-
!_ && !v && E && /* @__PURE__ */ f("div", {
|
|
59
|
-
role: "alert",
|
|
60
|
-
className: "ttw:border-b ttw:border-destructive/30 ttw:p-4 ttw:text-sm ttw:text-destructive",
|
|
61
|
-
children: $.actionErrorTitle
|
|
62
|
-
}),
|
|
63
|
-
!_ && !v && g.length === 0 && /* @__PURE__ */ f(c, {
|
|
64
|
-
labels: $,
|
|
65
|
-
learnMoreUrl: A,
|
|
66
|
-
testId: a.emptyState
|
|
67
|
-
}),
|
|
68
|
-
!_ && !v && g.map((e, t) => /* @__PURE__ */ f(i, {
|
|
69
|
-
row: e,
|
|
70
|
-
isLast: t === g.length - 1,
|
|
71
|
-
isActionDisabled: w
|
|
72
|
-
}, e.key))
|
|
73
|
-
]
|
|
74
|
-
})
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ f(o, {
|
|
77
|
-
open: y,
|
|
78
|
-
labels: $,
|
|
79
|
-
connectStep: F,
|
|
80
|
-
connectForm: K,
|
|
81
|
-
accessRows: I,
|
|
82
|
-
accessGrantedCount: L,
|
|
83
|
-
connectSummary: G,
|
|
84
|
-
isTeamMembersLoading: R,
|
|
85
|
-
isTeamMembersError: te,
|
|
86
|
-
isSubmitting: C,
|
|
87
|
-
isActionDisabled: w,
|
|
88
|
-
canConnect: T,
|
|
89
|
-
isConnectError: D,
|
|
90
|
-
isConnectNextDisabled: z,
|
|
91
|
-
isConnectRoutingNumberInvalid: B,
|
|
92
|
-
connectErrorMessage: V,
|
|
93
|
-
onOpenChange: Y,
|
|
94
|
-
onConnectFormChange: ne,
|
|
95
|
-
onConnectNext: ae,
|
|
96
|
-
onConnectBack: oe
|
|
97
|
-
}),
|
|
98
|
-
/* @__PURE__ */ f(s, {
|
|
99
|
-
open: b,
|
|
100
|
-
labels: $,
|
|
101
|
-
editForm: q,
|
|
102
|
-
isSubmitting: C,
|
|
103
|
-
isActionDisabled: w,
|
|
104
|
-
isEditError: O,
|
|
105
|
-
onOpenChange: X,
|
|
106
|
-
onEditFormChange: re,
|
|
107
|
-
onEditSubmit: se
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ f(u, {
|
|
110
|
-
open: x,
|
|
111
|
-
labels: $,
|
|
112
|
-
verifyForm: J,
|
|
113
|
-
accountName: M,
|
|
114
|
-
accountNumber: N,
|
|
115
|
-
isVerifySuccess: P,
|
|
116
|
-
isSubmitting: C,
|
|
117
|
-
isActionDisabled: w,
|
|
118
|
-
isVerifyFirstAmountInvalid: H,
|
|
119
|
-
isVerifySecondAmountInvalid: U,
|
|
120
|
-
isVerifySubmitDisabled: W,
|
|
121
|
-
isVerifyError: k,
|
|
122
|
-
onOpenChange: Z,
|
|
123
|
-
onVerifyFormChange: ie,
|
|
124
|
-
onVerifySubmit: ce
|
|
125
|
-
}),
|
|
126
|
-
/* @__PURE__ */ f(l, {
|
|
127
|
-
open: S,
|
|
128
|
-
labels: $,
|
|
129
|
-
accountNumber: j,
|
|
130
|
-
isSubmitting: C,
|
|
131
|
-
isActionDisabled: w,
|
|
132
|
-
isActionError: E,
|
|
133
|
-
onOpenChange: Q,
|
|
134
|
-
onUnlinkConfirm: le
|
|
135
|
-
})
|
|
136
|
-
] });
|
|
137
|
-
}
|
|
138
|
-
export { h as LinkedAccountsWidgetUi };
|