@tesouro/embedded-components-react 0.3.15 → 0.3.17

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