@tesouro/embedded-components-react 0.11.219 → 0.11.220

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 (54) hide show
  1. package/README.md +7 -4
  2. package/dist/experimental/QuickViewWidget.d.ts +25 -13
  3. package/dist/experimental/index.d.ts +25 -13
  4. package/dist/index.css +388 -25
  5. package/dist/index.d.ts +18 -2
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
  7. package/dist/lib/BankAccountsWidget.d.ts +4 -0
  8. package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
  9. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  10. package/dist/lib/WidgetSuite.d.ts +12 -0
  11. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
  12. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
  13. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
  27. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
  32. package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
  34. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
  35. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
  36. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
  38. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
  39. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
  40. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
  41. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +86 -77
  44. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
  49. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
  50. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
  51. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
  53. package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
  54. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2609,6 +2609,10 @@ interface Labels$3 {
2609
2609
  statementColumn: string;
2610
2610
  statementsActionsColumn: string;
2611
2611
  viewStatementButton: string;
2612
+ /**
2613
+ * The View button's accessible name. Starts with `viewStatementButton`'s
2614
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
2615
+ */
2612
2616
  viewStatementButtonAriaLabel: string;
2613
2617
  statementsRowsPerPageLabel: string;
2614
2618
  statementsPreviousPageButton: string;
@@ -3616,6 +3620,11 @@ interface ExpensesTransactionsTableLabels {
3616
3620
  interface ExpensesTransactionsFilterBarLabels {
3617
3621
  searchPlaceholder: string;
3618
3622
  searchAriaLabel: string;
3623
+ /**
3624
+ * Visible text of the filters button, followed by "(N)" when filters are
3625
+ * active; it is also the button's accessible name. Named for its old
3626
+ * aria-label role and kept so existing host overrides still apply.
3627
+ */
3619
3628
  filtersButtonAriaLabel: string;
3620
3629
  clearAll: string;
3621
3630
  dateRangeFieldLabel: string;
@@ -3642,6 +3651,8 @@ interface Labels$2 {
3642
3651
 
3643
3652
  interface FileViewerLabels {
3644
3653
  filePreview: string;
3654
+ /** Names the scrollable viewport that holds the zoomed file. */
3655
+ previewRegion: string;
3645
3656
  zoomIn: string;
3646
3657
  zoomOut: string;
3647
3658
  moreActions: string;
@@ -4698,6 +4709,7 @@ interface ReceivablePreviewLabels {
4698
4709
  noItems: string;
4699
4710
  payOnline: string;
4700
4711
  paymentQrCodeLabel: string;
4712
+ previewRegionLabel: string;
4701
4713
  }
4702
4714
 
4703
4715
  interface RecurringSeriesScreenLabels {
@@ -6109,6 +6121,10 @@ interface AcceptDisclosuresWidgetLabels {
6109
6121
  acceptButton: string;
6110
6122
  submittingButton?: string;
6111
6123
  successToast?: string;
6124
+ /**
6125
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
6126
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
6127
+ */
6112
6128
  agreementCheckboxAriaLabel: string;
6113
6129
  /** Fallback when the accept API fails without a usable message. */
6114
6130
  acceptErrorFallback: string;
@@ -6144,8 +6160,8 @@ interface AcceptDisclosuresWidgetLabels {
6144
6160
  /** Use `{bankName}` when the backend returned no documents. */
6145
6161
  noDocumentsAgreementTextTemplate?: string;
6146
6162
  /**
6147
- * Checkbox `aria-label` when the backend returned no documents. Use
6148
- * `{bankName}`. Must not say the user is agreeing to disclosures.
6163
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
6164
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
6149
6165
  */
6150
6166
  noDocumentsAgreementCheckboxAriaLabel?: string;
6151
6167
  /**
@@ -8,6 +8,10 @@ interface AcceptDisclosuresWidgetLabels {
8
8
  acceptButton: string;
9
9
  submittingButton?: string;
10
10
  successToast?: string;
11
+ /**
12
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
13
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
14
+ */
11
15
  agreementCheckboxAriaLabel: string;
12
16
  /** Fallback when the accept API fails without a usable message. */
13
17
  acceptErrorFallback: string;
@@ -43,8 +47,8 @@ interface AcceptDisclosuresWidgetLabels {
43
47
  /** Use `{bankName}` when the backend returned no documents. */
44
48
  noDocumentsAgreementTextTemplate?: string;
45
49
  /**
46
- * Checkbox `aria-label` when the backend returned no documents. Use
47
- * `{bankName}`. Must not say the user is agreeing to disclosures.
50
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
51
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
48
52
  */
49
53
  noDocumentsAgreementCheckboxAriaLabel?: string;
50
54
  /**
@@ -676,6 +676,10 @@ interface Labels {
676
676
  statementColumn: string;
677
677
  statementsActionsColumn: string;
678
678
  viewStatementButton: string;
679
+ /**
680
+ * The View button's accessible name. Starts with `viewStatementButton`'s
681
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
682
+ */
679
683
  viewStatementButtonAriaLabel: string;
680
684
  statementsRowsPerPageLabel: string;
681
685
  statementsPreviousPageButton: string;
@@ -33,6 +33,11 @@ interface ExpensesTransactionsTableLabels {
33
33
  interface ExpensesTransactionsFilterBarLabels {
34
34
  searchPlaceholder: string;
35
35
  searchAriaLabel: string;
36
+ /**
37
+ * Visible text of the filters button, followed by "(N)" when filters are
38
+ * active; it is also the button's accessible name. Named for its old
39
+ * aria-label role and kept so existing host overrides still apply.
40
+ */
36
41
  filtersButtonAriaLabel: string;
37
42
  clearAll: string;
38
43
  dateRangeFieldLabel: string;
@@ -59,6 +64,8 @@ interface Labels {
59
64
 
60
65
  interface FileViewerLabels {
61
66
  filePreview: string;
67
+ /** Names the scrollable viewport that holds the zoomed file. */
68
+ previewRegion: string;
62
69
  zoomIn: string;
63
70
  zoomOut: string;
64
71
  moreActions: string;
@@ -1345,6 +1345,7 @@ interface ReceivablePreviewLabels {
1345
1345
  noItems: string;
1346
1346
  payOnline: string;
1347
1347
  paymentQrCodeLabel: string;
1348
+ previewRegionLabel: string;
1348
1349
  }
1349
1350
 
1350
1351
  interface RecurringSeriesScreenLabels {
@@ -1724,6 +1724,10 @@ interface Labels$3 {
1724
1724
  statementColumn: string;
1725
1725
  statementsActionsColumn: string;
1726
1726
  viewStatementButton: string;
1727
+ /**
1728
+ * The View button's accessible name. Starts with `viewStatementButton`'s
1729
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
1730
+ */
1727
1731
  viewStatementButtonAriaLabel: string;
1728
1732
  statementsRowsPerPageLabel: string;
1729
1733
  statementsPreviousPageButton: string;
@@ -2677,6 +2681,11 @@ interface ExpensesTransactionsTableLabels {
2677
2681
  interface ExpensesTransactionsFilterBarLabels {
2678
2682
  searchPlaceholder: string;
2679
2683
  searchAriaLabel: string;
2684
+ /**
2685
+ * Visible text of the filters button, followed by "(N)" when filters are
2686
+ * active; it is also the button's accessible name. Named for its old
2687
+ * aria-label role and kept so existing host overrides still apply.
2688
+ */
2680
2689
  filtersButtonAriaLabel: string;
2681
2690
  clearAll: string;
2682
2691
  dateRangeFieldLabel: string;
@@ -2703,6 +2712,8 @@ interface Labels$2 {
2703
2712
 
2704
2713
  interface FileViewerLabels {
2705
2714
  filePreview: string;
2715
+ /** Names the scrollable viewport that holds the zoomed file. */
2716
+ previewRegion: string;
2706
2717
  zoomIn: string;
2707
2718
  zoomOut: string;
2708
2719
  moreActions: string;
@@ -3579,6 +3590,7 @@ interface ReceivablePreviewLabels {
3579
3590
  noItems: string;
3580
3591
  payOnline: string;
3581
3592
  paymentQrCodeLabel: string;
3593
+ previewRegionLabel: string;
3582
3594
  }
3583
3595
 
3584
3596
  interface RecurringSeriesScreenLabels {
@@ -109,8 +109,7 @@ function E({ displayedVersion: t, labelOverrides: r, content: i, labels: a, onAc
109
109
  return /* @__PURE__ */ S(m, {
110
110
  labels: {
111
111
  ...r,
112
- title: i.title,
113
- agreementCheckboxAriaLabel: i.agreementCheckboxAriaLabel
112
+ title: i.title
114
113
  },
115
114
  providerAttribution: w(i.vspName, i.bankName, a),
116
115
  agreementText: i.agreementText,
@@ -21,8 +21,7 @@ function i(t) {
21
21
  label: e.title,
22
22
  href: e.url
23
23
  })),
24
- agreementText: l,
25
- agreementCheckboxAriaLabel: c ? o.agreementCheckboxAriaLabel : o.noDocumentsAgreementCheckboxAriaLabel.replaceAll("{bankName}", a)
24
+ agreementText: l
26
25
  };
27
26
  }
28
27
  export { i as resolveAcceptDisclosuresContent };
@@ -24,7 +24,6 @@ function s({ providerAttribution: s, agreementText: c, disclosureLinks: l, isAgr
24
24
  checked: u,
25
25
  disabled: v,
26
26
  onCheckedChange: d,
27
- checkboxAriaLabel: y.agreementCheckboxAriaLabel,
28
27
  testIds: {
29
28
  links: _?.disclosureLinks,
30
29
  checkbox: _?.agreeCheckbox,
@@ -29,6 +29,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
29
29
  }),
30
30
  /* @__PURE__ */ v(n, {
31
31
  id: "firstName",
32
+ autoComplete: "given-name",
32
33
  value: r.firstName.value,
33
34
  onChange: (e) => r.firstName.onValueChange(e.target.value),
34
35
  onBlur: r.firstName.onBlur,
@@ -48,6 +49,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
48
49
  }),
49
50
  /* @__PURE__ */ v(n, {
50
51
  id: "lastName",
52
+ autoComplete: "family-name",
51
53
  value: r.lastName.value,
52
54
  onChange: (e) => r.lastName.onValueChange(e.target.value),
53
55
  onBlur: r.lastName.onBlur,
@@ -139,6 +141,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
139
141
  }),
140
142
  /* @__PURE__ */ v(n, {
141
143
  id: "homeAddress",
144
+ autoComplete: "street-address",
142
145
  value: r.homeAddress.value,
143
146
  onChange: (e) => r.homeAddress.onValueChange(e.target.value),
144
147
  onBlur: r.homeAddress.onBlur,
@@ -163,6 +166,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
163
166
  }),
164
167
  /* @__PURE__ */ v(n, {
165
168
  id: "city",
169
+ autoComplete: "address-level2",
166
170
  value: r.city.value,
167
171
  onChange: (e) => r.city.onValueChange(e.target.value),
168
172
  onBlur: r.city.onBlur,
@@ -214,6 +218,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
214
218
  }),
215
219
  /* @__PURE__ */ v(n, {
216
220
  id: "zipCode",
221
+ autoComplete: "postal-code",
217
222
  value: r.zipCode.value,
218
223
  onChange: (e) => r.zipCode.onValueChange(e.target.value),
219
224
  onBlur: r.zipCode.onBlur,
@@ -237,6 +242,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
237
242
  }),
238
243
  /* @__PURE__ */ v(n, {
239
244
  id: "mobilePhoneNumber",
245
+ autoComplete: "mobile tel",
240
246
  type: "tel",
241
247
  value: r.mobilePhoneNumber.value,
242
248
  onChange: (e) => r.mobilePhoneNumber.onValueChange(e.target.value),
@@ -257,6 +263,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
257
263
  }),
258
264
  /* @__PURE__ */ v(n, {
259
265
  id: "workEmail",
266
+ autoComplete: "work email",
260
267
  type: "email",
261
268
  value: r.workEmail.value,
262
269
  onChange: (e) => r.workEmail.onValueChange(e.target.value),
@@ -34,7 +34,7 @@ var e = {
34
34
  statementColumn: "Statement",
35
35
  statementsActionsColumn: "Actions",
36
36
  viewStatementButton: "View",
37
- viewStatementButtonAriaLabel: "Open {date} statement",
37
+ viewStatementButtonAriaLabel: "View {date} statement",
38
38
  statementsRowsPerPageLabel: "Rows per page",
39
39
  statementsPreviousPageButton: "Previous page",
40
40
  statementsNextPageButton: "Next page",
@@ -6,7 +6,8 @@ import "react-pdf/dist/Page/TextLayer.css";
6
6
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js
7
7
  var o = {
8
8
  previewUnavailable: "Preview not available for this file type.",
9
- openFile: "Open file"
9
+ openFile: "Open file",
10
+ previewRegion: "Attachment preview"
10
11
  }, s = 720, c = 280, l = 1.3;
11
12
  function u(e) {
12
13
  return (e.trim().split(/\s+/)[0] ?? "").split("#")[0] ?? e;
@@ -75,6 +76,9 @@ function f({ url: a, labels: o }) {
75
76
  let { Document: w, Page: T } = v;
76
77
  return /* @__PURE__ */ i("div", {
77
78
  ref: f,
79
+ role: "region",
80
+ "aria-label": o.previewRegion,
81
+ tabIndex: 0,
78
82
  className: "ttw:flex ttw:h-full ttw:w-full ttw:justify-center ttw:overflow-auto ttw:bg-white",
79
83
  children: /* @__PURE__ */ i(w, {
80
84
  suspense: !1,
@@ -40,16 +40,23 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
40
40
  labels: v
41
41
  }) : d.hasPaymentInstructions ? p?.onEditExisting ? /* @__PURE__ */ a("button", {
42
42
  type: "button",
43
- "aria-label": v.editPaymentInstructionsAction,
44
43
  onClick: p.onEditExisting,
45
44
  className: u,
46
- children: [/* @__PURE__ */ i("span", {
47
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
48
- children: d.methodLabel
49
- }), /* @__PURE__ */ i(o, {
50
- "aria-hidden": "true",
51
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
52
- })]
45
+ children: [
46
+ /* @__PURE__ */ i("span", {
47
+ className: "ttw:sr-only",
48
+ children: v.editPaymentInstructionsAction
49
+ }),
50
+ " ",
51
+ /* @__PURE__ */ i("span", {
52
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
53
+ children: d.methodLabel
54
+ }),
55
+ /* @__PURE__ */ i(o, {
56
+ "aria-hidden": "true",
57
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
58
+ })
59
+ ]
53
60
  }) : /* @__PURE__ */ i("p", {
54
61
  className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
55
62
  children: d.methodLabel
@@ -99,13 +106,20 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
99
106
  children: v.vendorLabel
100
107
  }), f && !y ? /* @__PURE__ */ a("button", {
101
108
  type: "button",
102
- "aria-label": v.editAction,
103
109
  onClick: f,
104
110
  className: u,
105
- children: [b, /* @__PURE__ */ i(o, {
106
- "aria-hidden": "true",
107
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
108
- })]
111
+ children: [
112
+ /* @__PURE__ */ i("span", {
113
+ className: "ttw:sr-only",
114
+ children: v.editAction
115
+ }),
116
+ " ",
117
+ b,
118
+ /* @__PURE__ */ i(o, {
119
+ "aria-hidden": "true",
120
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
121
+ })
122
+ ]
109
123
  }) : /* @__PURE__ */ i("div", {
110
124
  className: "ttw:flex ttw:flex-1",
111
125
  children: b
@@ -15,6 +15,7 @@ var d = {
15
15
  cancelButton: "Cancel",
16
16
  saveDraftButton: "Save and close",
17
17
  submitButton: "Submit",
18
+ documentPaneRegion: "Attachment",
18
19
  saveButton: "Save",
19
20
  hiddenDescription: "Enter the details of the bill you want to pay.",
20
21
  vendorSection: l,
@@ -147,6 +147,9 @@ function D({ open: D, onOpenChange: O, title: k, subtitle: A, notice: j, vendor:
147
147
  ] })
148
148
  ]
149
149
  }), /* @__PURE__ */ C("div", {
150
+ role: "region",
151
+ "aria-label": Q.documentPaneRegion,
152
+ tabIndex: 0,
150
153
  className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
151
154
  children: L
152
155
  })]
@@ -1,33 +1,31 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index20.js";
3
- import { useState as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Eye as a, EyeOff as o } from "lucide-react";
1
+ import { Button as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { REVEALABLE_FIELD_LABELS_EN as n } from "./index20.js";
3
+ import { useState as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { Eye as o, EyeOff as s } from "lucide-react";
6
6
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
7
- function s({ field: s, labels: c }) {
8
- let l = {
9
- ...t,
10
- ...c
11
- }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
- return /* @__PURE__ */ i("div", {
13
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
- children: [/* @__PURE__ */ i("div", {
15
- className: "ttw:min-w-0",
16
- children: [/* @__PURE__ */ r("dt", {
17
- className: "ttw:text-xs ttw:text-muted-foreground",
18
- children: s.label
19
- }), /* @__PURE__ */ r("dd", {
20
- className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
- children: f
22
- })]
23
- }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
- type: "button",
25
- variant: "ghost",
26
- size: "icon",
27
- "aria-label": u ? l.hideValue : l.revealValue,
28
- onClick: () => d((e) => !e),
29
- children: r(u ? o : a, { className: "ttw:size-4" })
30
- }) : null]
7
+ function c({ field: c, labels: l }) {
8
+ let u = {
9
+ ...n,
10
+ ...l
11
+ }, [d, f] = r(!1), p = c.maskedValue && !d ? c.maskedValue : c.value;
12
+ return /* @__PURE__ */ a("div", {
13
+ className: t("ttw:relative ttw:min-w-0", c.maskedValue && "ttw:min-h-9 ttw:pr-12"),
14
+ children: [/* @__PURE__ */ i("dt", {
15
+ className: "ttw:text-xs ttw:text-muted-foreground",
16
+ children: c.label
17
+ }), /* @__PURE__ */ a("dd", {
18
+ className: "ttw:break-words ttw:text-sm ttw:font-medium",
19
+ children: [p, c.maskedValue ? /* @__PURE__ */ i(e, {
20
+ type: "button",
21
+ variant: "ghost",
22
+ size: "icon",
23
+ className: "ttw:absolute ttw:top-0 ttw:right-0",
24
+ "aria-label": d ? u.hideValue : u.revealValue,
25
+ onClick: () => f((e) => !e),
26
+ children: i(d ? s : o, { className: "ttw:size-4" })
27
+ }) : null]
28
+ })]
31
29
  });
32
30
  }
33
- export { s as RevealableField, s as default };
31
+ export { c as RevealableField, c as default };
@@ -1,6 +1,7 @@
1
1
  // ../../libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js
2
2
  var e = {
3
3
  ReceiptPdfPreviewTitle: "Receipt PDF preview",
4
+ ReceiptPdfPreviewRegion: "Zoomable receipt preview",
4
5
  FlowTitle: "Match receipts",
5
6
  DropReceipts: "Drop to upload receipts",
6
7
  DropReceiptRules: "PDF, PNG or JPG, 10 files at a time",
@@ -210,6 +210,9 @@ function E() {
210
210
  }
211
211
  function D({ url: e, fileName: t, zoom: n }) {
212
212
  return h(e, t) ? /* @__PURE__ */ _("div", {
213
+ tabIndex: 0,
214
+ role: "region",
215
+ "aria-label": g.ReceiptPdfPreviewRegion,
213
216
  className: "ttw:absolute ttw:inset-0 ttw:overflow-auto",
214
217
  children: /* @__PURE__ */ _(m, {
215
218
  url: e,
@@ -284,6 +284,7 @@ function H({ title: e, cardLabel: t, cardName: n, cardholder: r, showCardholder:
284
284
  className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-3 ttw:px-3 ttw:py-1",
285
285
  children: [/* @__PURE__ */ T(y, {
286
286
  "aria-label": Z.memo,
287
+ "aria-required": x || void 0,
287
288
  className: "ttw:max-h-24 ttw:min-h-24 ttw:resize-none",
288
289
  value: G,
289
290
  onChange: q,
@@ -442,6 +443,7 @@ function W({ title: i, rows: a, isLoading: o, isError: c, historyLabels: l }) {
442
443
  });
443
444
  }
444
445
  function G({ label: e, highlighted: t, value: n, options: r, onChange: i, disabled: a }) {
446
+ let o = C(), s = `${o}-label`, c = `${o}-value`;
445
447
  return /* @__PURE__ */ E("div", {
446
448
  className: "ttw:flex ttw:items-center",
447
449
  children: [/* @__PURE__ */ T("div", {
@@ -456,7 +458,10 @@ function G({ label: e, highlighted: t, value: n, options: r, onChange: i, disabl
456
458
  "aria-hidden": !0
457
459
  }),
458
460
  " ",
459
- e
461
+ /* @__PURE__ */ T("span", {
462
+ id: s,
463
+ children: e
464
+ })
460
465
  ]
461
466
  })
462
467
  }), /* @__PURE__ */ T("div", {
@@ -467,8 +472,8 @@ function G({ label: e, highlighted: t, value: n, options: r, onChange: i, disabl
467
472
  disabled: a,
468
473
  children: [/* @__PURE__ */ T(_, {
469
474
  className: "ttw:w-full",
470
- "aria-label": e,
471
- children: /* @__PURE__ */ T(v, {})
475
+ "aria-labelledby": `${s} ${c}`,
476
+ children: /* @__PURE__ */ T(v, { id: c })
472
477
  }), /* @__PURE__ */ T(h, { children: r.map((e) => /* @__PURE__ */ T(g, {
473
478
  value: e.value,
474
479
  children: e.label
@@ -74,7 +74,7 @@ function _(_) {
74
74
  children: /* @__PURE__ */ p(n, {
75
75
  activeCount: _.activeFilterCount,
76
76
  onClick: x.toggleMenu,
77
- "aria-label": v.filtersButtonAriaLabel
77
+ labels: { filters: v.filtersButtonAriaLabel }
78
78
  })
79
79
  }), /* @__PURE__ */ m(o, {
80
80
  align: "start",
@@ -28,6 +28,9 @@ function w({ url: w, className: T, isPreview: E, showDeleteOption: D, onDeleteCl
28
28
  return E ? I : /* @__PURE__ */ h("div", {
29
29
  className: l("ttw:relative ttw:flex-1 ttw:overflow-hidden ttw:rounded-md ttw:bg-background", T),
30
30
  children: [/* @__PURE__ */ m("div", {
31
+ tabIndex: 0,
32
+ role: "region",
33
+ "aria-label": M.previewRegion,
31
34
  className: "ttw:absolute ttw:inset-0 ttw:overflow-auto",
32
35
  children: /* @__PURE__ */ m("div", {
33
36
  className: "ttw:box-border ttw:p-6",
@@ -1,6 +1,7 @@
1
1
  // ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js
2
2
  var e = {
3
3
  filePreview: "File preview",
4
+ previewRegion: "Zoomable file preview",
4
5
  zoomIn: "Zoom in",
5
6
  zoomOut: "Zoom out",
6
7
  moreActions: "Attachment actions",