@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.
Files changed (157) hide show
  1. package/NOTICE +24 -0
  2. package/README.md +15 -37
  3. package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
  4. package/dist/experimental/QuickViewWidget.d.ts +0 -11
  5. package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
  6. package/dist/experimental/index.d.ts +0 -11
  7. package/dist/fixtures/index.d.ts +27 -1
  8. package/dist/index.css +6976 -6246
  9. package/dist/index.d.ts +67 -173
  10. package/dist/index.js +9 -10
  11. package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
  12. package/dist/lib/BalancesWidget.d.ts +0 -11
  13. package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
  14. package/dist/lib/BankAccountsWidget.d.ts +3 -11
  15. package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
  16. package/dist/lib/BillPayWidget.d.ts +0 -11
  17. package/dist/lib/CardDetailsWidget.d.ts +0 -11
  18. package/dist/lib/CounterpartsWidget.d.ts +1 -12
  19. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
  20. package/dist/lib/CreditCardsWidget.d.ts +1 -11
  21. package/dist/lib/DebitCardsWidget.d.ts +1 -11
  22. package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
  23. package/dist/lib/InsightsWidget.d.ts +0 -11
  24. package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
  25. package/dist/lib/OfferWidget.d.ts +0 -11
  26. package/dist/lib/ReceivablesWidget.d.ts +60 -17
  27. package/dist/lib/ReceivablesWidget.js +3 -2
  28. package/dist/lib/SettingsWidget.d.ts +0 -11
  29. package/dist/lib/TransfersWidget.d.ts +0 -11
  30. package/dist/lib/WidgetProvider.d.ts +0 -11
  31. package/dist/lib/WidgetProviderPublic.d.ts +0 -11
  32. package/dist/lib/WidgetSuite.d.ts +63 -15
  33. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
  39. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
  41. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
  42. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
  43. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
  44. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
  45. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
  62. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
  63. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
  64. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
  65. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
  68. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
  110. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
  111. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
  112. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
  113. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
  114. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
  116. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
  118. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
  119. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
  120. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
  121. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
  123. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
  126. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
  127. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
  128. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
  129. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
  131. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
  132. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
  136. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
  137. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
  138. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
  141. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
  142. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
  143. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
  144. package/dist/node_modules/sonner/dist/index.js +620 -0
  145. package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
  146. package/dist/scenarios/index.d.ts +1 -3
  147. package/dist/scenarios/index.js +17 -20
  148. package/package.json +17 -4
  149. package/dist/lib/CustomersWidget.d.ts +0 -993
  150. package/dist/lib/CustomersWidget.js +0 -2
  151. package/dist/lib/ProductsWidget.d.ts +0 -893
  152. package/dist/lib/ProductsWidget.js +0 -2
  153. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
  154. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
  155. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
  156. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
  157. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
@@ -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 { IconActionButton as n } from "../../../account-details/ui/dist/index2.js";
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 r, jsxs as i } from "react/jsx-runtime";
10
- import { CheckIcon as a, CopyIcon as o, EyeIcon as s, EyeOffIcon as c } from "lucide-react";
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 l = "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", u = "ttw:pointer-events-auto ttw:relative ttw:z-10";
13
- function d({ labels: e, card: d, testId: f }) {
14
- let p = d.isAccountNumberCopied ? e.copiedLabel : e.copyAccountNumber, m = d.isRoutingNumberCopied ? e.copiedLabel : e.copyRoutingNumber;
15
- return /* @__PURE__ */ i("article", {
16
- "data-testid": f,
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__ */ r("button", {
20
+ children: [/* @__PURE__ */ i("button", {
19
21
  type: "button",
20
- className: l,
21
- "aria-label": t(d.name, e),
22
- onClick: d.onSelect
23
- }), /* @__PURE__ */ i("div", {
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__ */ i("div", {
28
+ /* @__PURE__ */ a("div", {
27
29
  className: "ttw:space-y-1",
28
- children: [/* @__PURE__ */ r("p", {
30
+ children: [/* @__PURE__ */ i("p", {
29
31
  className: "ttw:truncate ttw:text-sm ttw:font-semibold ttw:text-foreground",
30
- children: d.name
31
- }), /* @__PURE__ */ r("p", {
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: d.balanceLabel
35
+ children: f.balanceLabel
34
36
  })]
35
37
  }),
36
- /* @__PURE__ */ i("div", {
38
+ /* @__PURE__ */ a("div", {
37
39
  className: "ttw:space-y-1",
38
- children: [/* @__PURE__ */ r("p", {
40
+ children: [/* @__PURE__ */ i("p", {
39
41
  className: "ttw:text-xs ttw:text-muted-foreground",
40
42
  children: e.accountNumberLabel
41
- }), /* @__PURE__ */ i("div", {
43
+ }), /* @__PURE__ */ a("div", {
42
44
  className: "ttw:flex ttw:items-center ttw:gap-1",
43
45
  children: [
44
- /* @__PURE__ */ r("span", {
46
+ /* @__PURE__ */ i("span", {
45
47
  className: "ttw:text-sm ttw:tabular-nums",
46
- children: d.isAccountNumberVisible ? d.accountNumberLabel : d.maskedAccountNumberLabel
48
+ children: f.isAccountNumberVisible ? f.accountNumberLabel : /* @__PURE__ */ i(n, {
49
+ last4: f.accountNumberLast4,
50
+ labels: { endingIn: e.accountNumberEndingIn }
51
+ })
47
52
  }),
48
- /* @__PURE__ */ r(n, {
49
- label: d.isAccountNumberVisible ? e.hideAccountNumber : e.showAccountNumber,
50
- className: u,
51
- onClick: d.onToggleAccountNumberVisibility,
52
- children: d.isAccountNumberVisible ? /* @__PURE__ */ r(c, {}) : /* @__PURE__ */ r(s, {})
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(n, {
55
- label: p,
56
- className: u,
57
- onClick: d.onCopyAccountNumber,
58
- children: d.isAccountNumberCopied ? /* @__PURE__ */ r(a, {}) : /* @__PURE__ */ r(o, {})
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__ */ i("div", {
68
+ /* @__PURE__ */ a("div", {
64
69
  className: "ttw:space-y-1",
65
- children: [/* @__PURE__ */ r("p", {
70
+ children: [/* @__PURE__ */ i("p", {
66
71
  className: "ttw:text-xs ttw:text-muted-foreground",
67
72
  children: e.routingNumberLabel
68
- }), /* @__PURE__ */ i("div", {
73
+ }), /* @__PURE__ */ a("div", {
69
74
  className: "ttw:flex ttw:items-center ttw:gap-1",
70
- children: [/* @__PURE__ */ r("span", {
75
+ children: [/* @__PURE__ */ i("span", {
71
76
  className: "ttw:text-sm ttw:tabular-nums",
72
- children: d.routingNumberLabel
73
- }), /* @__PURE__ */ r(n, {
74
- label: m,
75
- className: u,
76
- onClick: d.onCopyRoutingNumber,
77
- children: d.isRoutingNumberCopied ? /* @__PURE__ */ r(a, {}) : /* @__PURE__ */ r(o, {})
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 f() {
86
- return /* @__PURE__ */ r(e, { className: "ttw:h-52 ttw:w-80 ttw:max-w-full ttw:rounded-lg" });
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 { d as AccountCard, f as AccountCardSkeleton };
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 { LoadingRegion as a } from "../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
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 o, AccountCardSkeleton as s } from "./AccountCard.js";
13
- import { BankingHeader as c } from "./BankingHeader.js";
14
- import { CreateAccountDialog as l } from "./CreateAccountDialog.js";
15
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
16
- import { LandmarkIcon as p } from "lucide-react";
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 m({ labels: m, "data-testid": h, bankDisplayName: g, bankLogoSrc: _, bankLogoAlt: v, availableBalanceLabel: y, shouldDisplayAvailableBalance: b, isBankingTaglineVisible: x, accountCards: S, accountCardTestId: C, shouldDisplayAddAccountCard: w, isLoading: T, isError: E, onRetry: D, isCreateOpen: O, createForm: k, legalCopy: A, accessRows: j, isTeamMembersLoading: M, isTeamMembersError: N, isCreateError: P, hasNicknameError: F, hasTeamAccessError: I, isSubmitting: L, isAuthPending: R = !1, isCreateDisabled: z, onCreateOpenChange: B, onCreateFormChange: V, onCreateSubmit: H, onTeamMembersRetry: U, onAddAccountClick: W }) {
19
- let G = {
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
- ...m
22
- }, K = !T && !E && S.length === 0, q = w ? /* @__PURE__ */ d(n, {
23
- label: G.addAccountButton,
24
- disabled: z,
25
- onClick: W,
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__ */ f("section", {
29
+ return /* @__PURE__ */ p("section", {
29
30
  className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-6",
30
- "data-testid": h,
31
+ "data-testid": g,
31
32
  children: [
32
- /* @__PURE__ */ d(l, {
33
- labels: G,
34
- open: O,
35
- form: k,
36
- legalCopy: A,
37
- accessRows: j,
38
- isTeamMembersLoading: M,
39
- isTeamMembersError: N,
40
- isSubmitting: L,
41
- isAuthPending: R,
42
- isError: P,
43
- hasNicknameError: F,
44
- hasTeamAccessError: I,
45
- onOpenChange: B,
46
- onFormChange: V,
47
- onSubmit: H,
48
- onTeamMembersRetry: U
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__ */ d(c, {
51
- labels: G,
52
- bankDisplayName: g,
53
- bankLogoSrc: _,
54
- bankLogoAlt: v,
55
- availableBalanceLabel: y,
56
- shouldDisplayAvailableBalance: b,
57
- isBankingTaglineVisible: x
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
- E ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(i, {
60
- title: G.errorTitle,
61
- retryLabel: G.retryButton,
62
- onRetry: D
63
- }), q ? /* @__PURE__ */ d("div", {
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: q
66
- }) : null] }) : K ? /* @__PURE__ */ d(r, {
67
- icon: /* @__PURE__ */ d(p, {}),
68
- title: G.emptyAccountsLabel,
69
- actionLabel: w ? G.addAccountButton : void 0,
70
- onAction: w && !z ? W : void 0
71
- }) : /* @__PURE__ */ d(a, {
72
- isLoading: T,
73
- loadingLabel: G.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: T ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(s, {}), /* @__PURE__ */ d(s, {})] }) : /* @__PURE__ */ f(e, { children: [S.map((e) => /* @__PURE__ */ d(o, {
76
- labels: G,
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: C
79
- }, e.id)), q] })
82
+ testId: w
83
+ }, e.id)), X] })
80
84
  })
81
85
  ]
82
86
  });
83
87
  }
84
- export { m as BankAccountsWidgetUi };
88
+ export { h as BankAccountsWidgetUi };
@@ -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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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 "../../../../../../packages/shared-ui-shadcn/dist/index.js";
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";
@@ -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 };