@tesouro/embedded-components-react 0.11.141 → 0.11.168
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/NOTICE +24 -0
- package/README.md +15 -37
- package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
- package/dist/experimental/QuickViewWidget.d.ts +0 -11
- package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
- package/dist/experimental/index.d.ts +0 -11
- package/dist/fixtures/index.d.ts +27 -1
- package/dist/index.css +6976 -6246
- package/dist/index.d.ts +67 -173
- package/dist/index.js +9 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
- package/dist/lib/BalancesWidget.d.ts +0 -11
- package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
- package/dist/lib/BankAccountsWidget.d.ts +3 -11
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
- package/dist/lib/BillPayWidget.d.ts +0 -11
- package/dist/lib/CardDetailsWidget.d.ts +0 -11
- package/dist/lib/CounterpartsWidget.d.ts +1 -12
- package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
- package/dist/lib/CreditCardsWidget.d.ts +1 -11
- package/dist/lib/DebitCardsWidget.d.ts +1 -11
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
- package/dist/lib/InsightsWidget.d.ts +0 -11
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
- package/dist/lib/OfferWidget.d.ts +0 -11
- package/dist/lib/ReceivablesWidget.d.ts +60 -17
- package/dist/lib/ReceivablesWidget.js +3 -2
- package/dist/lib/SettingsWidget.d.ts +0 -11
- package/dist/lib/TransfersWidget.d.ts +0 -11
- package/dist/lib/WidgetProvider.d.ts +0 -11
- package/dist/lib/WidgetProviderPublic.d.ts +0 -11
- package/dist/lib/WidgetSuite.d.ts +63 -15
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
- 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/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
- package/dist/node_modules/sonner/dist/index.js +620 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
- package/dist/scenarios/index.d.ts +1 -3
- package/dist/scenarios/index.js +17 -20
- package/package.json +17 -4
- package/dist/lib/CustomersWidget.d.ts +0 -993
- package/dist/lib/CustomersWidget.js +0 -2
- package/dist/lib/ProductsWidget.d.ts +0 -893
- package/dist/lib/ProductsWidget.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js
CHANGED
|
@@ -4,77 +4,82 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { Skeleton as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { formatOpenAccountAriaLabel as t } from "./labels.js";
|
|
7
|
-
import {
|
|
7
|
+
import { MaskedAccountNumber as n } from "../../../../shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js";
|
|
8
|
+
import "../../../../shared/ui/dist/index.js";
|
|
9
|
+
import { IconActionButton as r } from "../../../account-details/ui/dist/index2.js";
|
|
8
10
|
import "../../../account-details/ui/dist/index.js";
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { CheckIcon as
|
|
11
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
12
|
+
import { CheckIcon as o, CopyIcon as s, EyeIcon as c, EyeOffIcon as l } from "lucide-react";
|
|
11
13
|
// ../../libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
let
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
"data-testid":
|
|
14
|
+
var u = "ttw:absolute ttw:inset-0 ttw:z-0 ttw:cursor-pointer ttw:rounded-lg ttw:outline-none ttw:focus-visible:outline-solid ttw:focus-visible:outline-2 ttw:focus-visible:outline-offset-2 ttw:focus-visible:outline-ring", d = "ttw:pointer-events-auto ttw:relative ttw:z-10";
|
|
15
|
+
function f({ labels: e, card: f, testId: p }) {
|
|
16
|
+
let m = f.isAccountNumberCopied ? e.copiedLabel : e.copyAccountNumber, h = f.isRoutingNumberCopied ? e.copiedLabel : e.copyRoutingNumber;
|
|
17
|
+
return /* @__PURE__ */ a("article", {
|
|
18
|
+
"data-testid": p,
|
|
17
19
|
className: "ttw:relative ttw:flex ttw:w-80 ttw:max-w-full ttw:cursor-pointer ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:transition-colors ttw:duration-150 ttw:hover:bg-muted",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ i("button", {
|
|
19
21
|
type: "button",
|
|
20
|
-
className:
|
|
21
|
-
"aria-label": t(
|
|
22
|
-
onClick:
|
|
23
|
-
}), /* @__PURE__ */
|
|
22
|
+
className: u,
|
|
23
|
+
"aria-label": t(f.name, e),
|
|
24
|
+
onClick: f.onSelect
|
|
25
|
+
}), /* @__PURE__ */ a("div", {
|
|
24
26
|
className: "ttw:pointer-events-none ttw:relative ttw:z-10 ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col ttw:gap-3",
|
|
25
27
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ a("div", {
|
|
27
29
|
className: "ttw:space-y-1",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ i("p", {
|
|
29
31
|
className: "ttw:truncate ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
30
|
-
children:
|
|
31
|
-
}), /* @__PURE__ */
|
|
32
|
+
children: f.name
|
|
33
|
+
}), /* @__PURE__ */ i("p", {
|
|
32
34
|
className: "ttw:truncate ttw:text-xl ttw:font-semibold ttw:tabular-nums ttw:text-foreground",
|
|
33
|
-
children:
|
|
35
|
+
children: f.balanceLabel
|
|
34
36
|
})]
|
|
35
37
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ a("div", {
|
|
37
39
|
className: "ttw:space-y-1",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ i("p", {
|
|
39
41
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
40
42
|
children: e.accountNumberLabel
|
|
41
|
-
}), /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ a("div", {
|
|
42
44
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
43
45
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ i("span", {
|
|
45
47
|
className: "ttw:text-sm ttw:tabular-nums",
|
|
46
|
-
children:
|
|
48
|
+
children: f.isAccountNumberVisible ? f.accountNumberLabel : /* @__PURE__ */ i(n, {
|
|
49
|
+
last4: f.accountNumberLast4,
|
|
50
|
+
labels: { endingIn: e.accountNumberEndingIn }
|
|
51
|
+
})
|
|
47
52
|
}),
|
|
48
|
-
/* @__PURE__ */ r
|
|
49
|
-
label:
|
|
50
|
-
className:
|
|
51
|
-
onClick:
|
|
52
|
-
children:
|
|
53
|
+
/* @__PURE__ */ i(r, {
|
|
54
|
+
label: f.isAccountNumberVisible ? e.hideAccountNumber : e.showAccountNumber,
|
|
55
|
+
className: d,
|
|
56
|
+
onClick: f.onToggleAccountNumberVisibility,
|
|
57
|
+
children: f.isAccountNumberVisible ? /* @__PURE__ */ i(l, {}) : /* @__PURE__ */ i(c, {})
|
|
53
58
|
}),
|
|
54
|
-
/* @__PURE__ */ r
|
|
55
|
-
label:
|
|
56
|
-
className:
|
|
57
|
-
onClick:
|
|
58
|
-
children:
|
|
59
|
+
/* @__PURE__ */ i(r, {
|
|
60
|
+
label: m,
|
|
61
|
+
className: d,
|
|
62
|
+
onClick: f.onCopyAccountNumber,
|
|
63
|
+
children: f.isAccountNumberCopied ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(s, {})
|
|
59
64
|
})
|
|
60
65
|
]
|
|
61
66
|
})]
|
|
62
67
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ a("div", {
|
|
64
69
|
className: "ttw:space-y-1",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ i("p", {
|
|
66
71
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
67
72
|
children: e.routingNumberLabel
|
|
68
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ a("div", {
|
|
69
74
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
75
|
+
children: [/* @__PURE__ */ i("span", {
|
|
71
76
|
className: "ttw:text-sm ttw:tabular-nums",
|
|
72
|
-
children:
|
|
73
|
-
}), /* @__PURE__ */ r
|
|
74
|
-
label:
|
|
75
|
-
className:
|
|
76
|
-
onClick:
|
|
77
|
-
children:
|
|
77
|
+
children: f.routingNumberLabel
|
|
78
|
+
}), /* @__PURE__ */ i(r, {
|
|
79
|
+
label: h,
|
|
80
|
+
className: d,
|
|
81
|
+
onClick: f.onCopyRoutingNumber,
|
|
82
|
+
children: f.isRoutingNumberCopied ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(s, {})
|
|
78
83
|
})]
|
|
79
84
|
})]
|
|
80
85
|
})
|
|
@@ -82,7 +87,7 @@ function d({ labels: e, card: d, testId: f }) {
|
|
|
82
87
|
})]
|
|
83
88
|
});
|
|
84
89
|
}
|
|
85
|
-
function
|
|
86
|
-
return /* @__PURE__ */
|
|
90
|
+
function p() {
|
|
91
|
+
return /* @__PURE__ */ i(e, { className: "ttw:h-52 ttw:w-80 ttw:max-w-full ttw:rounded-lg" });
|
|
87
92
|
}
|
|
88
|
-
export {
|
|
93
|
+
export { f as AccountCard, p as AccountCardSkeleton };
|
|
@@ -7,78 +7,82 @@ import { DEFAULT_LABELS as t } from "./labels.js";
|
|
|
7
7
|
import { AddTile as n } from "../../../../shared/ui/dist/lib/AddTile/AddTile.js";
|
|
8
8
|
import { EmptyState as r } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
9
9
|
import { ErrorState as i } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
10
|
-
import {
|
|
10
|
+
import { NoAccessState as a } from "../../../../shared/ui/dist/lib/StatePanel/NoAccessState.js";
|
|
11
|
+
import { LoadingRegion as o } from "../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
11
12
|
import "../../../../shared/ui/dist/index.js";
|
|
12
|
-
import { AccountCard as
|
|
13
|
-
import { BankingHeader as
|
|
14
|
-
import { CreateAccountDialog as
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { LandmarkIcon as
|
|
13
|
+
import { AccountCard as s, AccountCardSkeleton as c } from "./AccountCard.js";
|
|
14
|
+
import { BankingHeader as l } from "./BankingHeader.js";
|
|
15
|
+
import { CreateAccountDialog as u } from "./CreateAccountDialog.js";
|
|
16
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
17
|
+
import { LandmarkIcon as m } from "lucide-react";
|
|
17
18
|
// ../../libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js
|
|
18
|
-
function
|
|
19
|
-
let
|
|
19
|
+
function h({ labels: h, "data-testid": g, bankDisplayName: _, bankLogoSrc: v, bankLogoAlt: y, availableBalanceLabel: b, shouldDisplayAvailableBalance: x, isBankingTaglineVisible: S, accountCards: C, accountCardTestId: w, shouldDisplayAddAccountCard: T, isLoading: E, isError: D, isAccessRestricted: O = !1, accessRestrictedTestId: k, onRetry: A, isCreateOpen: j, createForm: M, legalCopy: N, accessRows: P, isTeamMembersLoading: F, isTeamMembersError: I, isCreateError: L, hasNicknameError: R, hasTeamAccessError: z, isSubmitting: B, isAuthPending: V = !1, isCreateDisabled: H, onCreateOpenChange: U, onCreateFormChange: W, onCreateSubmit: G, onTeamMembersRetry: K, onAddAccountClick: q }) {
|
|
20
|
+
let J = {
|
|
20
21
|
...t,
|
|
21
|
-
...
|
|
22
|
-
},
|
|
23
|
-
label:
|
|
24
|
-
disabled:
|
|
25
|
-
onClick:
|
|
22
|
+
...h
|
|
23
|
+
}, Y = !E && !D && C.length === 0, X = T ? /* @__PURE__ */ f(n, {
|
|
24
|
+
label: J.addAccountButton,
|
|
25
|
+
disabled: H,
|
|
26
|
+
onClick: q,
|
|
26
27
|
className: "ttw:w-80 ttw:max-w-full ttw:min-h-52"
|
|
27
28
|
}) : null;
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ p("section", {
|
|
29
30
|
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-6",
|
|
30
|
-
"data-testid":
|
|
31
|
+
"data-testid": g,
|
|
31
32
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
labels:
|
|
34
|
-
open:
|
|
35
|
-
form:
|
|
36
|
-
legalCopy:
|
|
37
|
-
accessRows:
|
|
38
|
-
isTeamMembersLoading:
|
|
39
|
-
isTeamMembersError:
|
|
40
|
-
isSubmitting:
|
|
41
|
-
isAuthPending:
|
|
42
|
-
isError:
|
|
43
|
-
hasNicknameError:
|
|
44
|
-
hasTeamAccessError:
|
|
45
|
-
onOpenChange:
|
|
46
|
-
onFormChange:
|
|
47
|
-
onSubmit:
|
|
48
|
-
onTeamMembersRetry:
|
|
33
|
+
/* @__PURE__ */ f(u, {
|
|
34
|
+
labels: J,
|
|
35
|
+
open: j,
|
|
36
|
+
form: M,
|
|
37
|
+
legalCopy: N,
|
|
38
|
+
accessRows: P,
|
|
39
|
+
isTeamMembersLoading: F,
|
|
40
|
+
isTeamMembersError: I,
|
|
41
|
+
isSubmitting: B,
|
|
42
|
+
isAuthPending: V,
|
|
43
|
+
isError: L,
|
|
44
|
+
hasNicknameError: R,
|
|
45
|
+
hasTeamAccessError: z,
|
|
46
|
+
onOpenChange: U,
|
|
47
|
+
onFormChange: W,
|
|
48
|
+
onSubmit: G,
|
|
49
|
+
onTeamMembersRetry: K
|
|
49
50
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
labels:
|
|
52
|
-
bankDisplayName:
|
|
53
|
-
bankLogoSrc:
|
|
54
|
-
bankLogoAlt:
|
|
55
|
-
availableBalanceLabel:
|
|
56
|
-
shouldDisplayAvailableBalance:
|
|
57
|
-
isBankingTaglineVisible:
|
|
51
|
+
/* @__PURE__ */ f(l, {
|
|
52
|
+
labels: J,
|
|
53
|
+
bankDisplayName: _,
|
|
54
|
+
bankLogoSrc: v,
|
|
55
|
+
bankLogoAlt: y,
|
|
56
|
+
availableBalanceLabel: b,
|
|
57
|
+
shouldDisplayAvailableBalance: x,
|
|
58
|
+
isBankingTaglineVisible: S
|
|
58
59
|
}),
|
|
59
|
-
|
|
60
|
-
title:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
O ? /* @__PURE__ */ f(a, {
|
|
61
|
+
title: J.accessRestrictedTitle,
|
|
62
|
+
testId: k
|
|
63
|
+
}) : D ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(i, {
|
|
64
|
+
title: J.errorTitle,
|
|
65
|
+
retryLabel: J.retryButton,
|
|
66
|
+
onRetry: A
|
|
67
|
+
}), X ? /* @__PURE__ */ f("div", {
|
|
64
68
|
className: "ttw:flex ttw:flex-wrap ttw:gap-4",
|
|
65
|
-
children:
|
|
66
|
-
}) : null] }) :
|
|
67
|
-
icon: /* @__PURE__ */
|
|
68
|
-
title:
|
|
69
|
-
actionLabel:
|
|
70
|
-
onAction:
|
|
71
|
-
}) : /* @__PURE__ */
|
|
72
|
-
isLoading:
|
|
73
|
-
loadingLabel:
|
|
69
|
+
children: X
|
|
70
|
+
}) : null] }) : Y ? /* @__PURE__ */ f(r, {
|
|
71
|
+
icon: /* @__PURE__ */ f(m, {}),
|
|
72
|
+
title: J.emptyAccountsLabel,
|
|
73
|
+
actionLabel: T ? J.addAccountButton : void 0,
|
|
74
|
+
onAction: T && !H ? q : void 0
|
|
75
|
+
}) : /* @__PURE__ */ f(o, {
|
|
76
|
+
isLoading: E,
|
|
77
|
+
loadingLabel: J.loadingLabel,
|
|
74
78
|
className: "ttw:flex ttw:flex-wrap ttw:gap-4",
|
|
75
|
-
children:
|
|
76
|
-
labels:
|
|
79
|
+
children: E ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(c, {}), /* @__PURE__ */ f(c, {})] }) : /* @__PURE__ */ p(e, { children: [C.map((e) => /* @__PURE__ */ f(s, {
|
|
80
|
+
labels: J,
|
|
77
81
|
card: e,
|
|
78
|
-
testId:
|
|
79
|
-
}, e.id)),
|
|
82
|
+
testId: w
|
|
83
|
+
}, e.id)), X] })
|
|
80
84
|
})
|
|
81
85
|
]
|
|
82
86
|
});
|
|
83
87
|
}
|
|
84
|
-
export {
|
|
88
|
+
export { h as BankAccountsWidgetUi };
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js
CHANGED
|
@@ -7,6 +7,7 @@ var e = {
|
|
|
7
7
|
routingNumberLabel: "Routing number",
|
|
8
8
|
addAccountButton: "Add account",
|
|
9
9
|
emptyAccountsLabel: "No accounts yet",
|
|
10
|
+
accessRestrictedTitle: "You don't have access to bank accounts",
|
|
10
11
|
createDialogTitle: "Create an account",
|
|
11
12
|
createDialogSubtitle: "The account gets its own account number.",
|
|
12
13
|
createNicknameLabel: "Account nickname",
|
|
@@ -24,9 +25,10 @@ var e = {
|
|
|
24
25
|
teamMembersErrorTitle: "Couldn't load team members",
|
|
25
26
|
teamMembersEmptyLabel: "No team members found.",
|
|
26
27
|
teamMemberAccessTooltip: "Role information",
|
|
28
|
+
accountNumberEndingIn: "ending in {last4}",
|
|
27
29
|
showAccountNumber: "Show account number",
|
|
28
30
|
hideAccountNumber: "Hide account number",
|
|
29
|
-
copyAccountNumber: "Copy account number",
|
|
31
|
+
copyAccountNumber: "Copy full account number",
|
|
30
32
|
copyRoutingNumber: "Copy routing number",
|
|
31
33
|
copiedLabel: "Copied",
|
|
32
34
|
openAccountAriaLabel: "Open account details",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import "../../../../shared/ui/dist/index.js";
|
|
7
7
|
import { useWidgetConfig as t } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
8
8
|
import "../../../../shared/feature/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
7
|
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
7
|
import { Scope as ee } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import "../../../../shared/ui/dist/index.js";
|
|
7
7
|
import { useUpdatePayableMutation as t } from "../../data-access/dist/index16.js";
|
|
8
8
|
import "../../data-access/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
7
|
import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
8
|
import "../../../../shared/util/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
|
|
7
7
|
import "../../../../shared/util/dist/index.js";
|
|
8
8
|
import { isApiConflictError as n } from "../../../../shared/data-access/dist/lib/isApiConflictError.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { getPayablesIdOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
7
|
import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
8
|
import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
7
|
import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
8
|
import "../../../../shared/util/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
7
|
import { useMailboxAddress as ee } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
|
|
8
8
|
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
7
|
import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
8
|
import "../../../../shared/util/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
7
|
import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
8
|
import "../../../../shared/util/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { isApiConflictError as n } from "../../../../shared/data-access/dist/lib/isApiConflictError.js";
|
|
8
8
|
import { isApiUnprocessableError as r } from "../../../../shared/data-access/dist/lib/isApiUnprocessableError.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { isApiConflictError as t } from "../../../../shared/data-access/dist/lib/isApiConflictError.js";
|
|
7
7
|
import "../../../../shared/data-access/dist/index.js";
|
|
8
8
|
import "../../../../shared/ui/dist/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { isApiConflictError as t } from "../../../../shared/data-access/dist/lib/isApiConflictError.js";
|
|
7
7
|
import "../../../../shared/data-access/dist/index.js";
|
|
8
8
|
import "../../../../shared/ui/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { getStateOptions as t } from "../../../../shared/util/dist/lib/usStates.js";
|
|
7
7
|
import "../../../../shared/util/dist/index.js";
|
|
8
8
|
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js
CHANGED
|
@@ -4,11 +4,13 @@ var e = {
|
|
|
4
4
|
row: "cards-list-row",
|
|
5
5
|
empty: "cards-list-empty",
|
|
6
6
|
error: "cards-list-error",
|
|
7
|
+
accessRestricted: "cards-list-access-restricted",
|
|
7
8
|
detailsSheet: "cards-list-details-sheet"
|
|
8
9
|
}, t = {
|
|
9
10
|
root: e.list,
|
|
10
11
|
empty: e.empty,
|
|
11
12
|
error: e.error,
|
|
13
|
+
accessRestricted: e.accessRestricted,
|
|
12
14
|
row: e.row
|
|
13
15
|
}, n = { root: e.detailsSheet };
|
|
14
16
|
export { n as cardsListDetailsSheetTestIds, t as cardsListTestIds, e as cardsWidgetTestIds };
|