@tesouro/embedded-components-react 0.3.23 → 0.3.25

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 (85) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +10 -10
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +2 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +47 -38
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +108 -93
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +14 -6
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +163 -82
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
  82. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +27 -27
  83. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -113
@@ -1,30 +1,113 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index73.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Info as r, X as i } from "lucide-react";
1
+ import { Button as e, Checkbox as t, Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s, Table as c, TableBody as l, TableCell as u, TableHead as d, TableHeader as f, TableRow as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillDuplicateBadge as m } from "./index57.js";
3
+ import "./index58.js";
4
+ import { DUPLICATE_BILLS_DIALOG_LABELS_EN as h } from "./index73.js";
5
+ import { useMemo as g } from "react";
6
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ import { Ban as y, ChevronRightIcon as b, CopyX as x } from "lucide-react";
4
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js
5
- function a({ onDismiss: a, testId: o, labels: s }) {
6
- let c = {
7
- ...e,
8
- ...s
9
- };
10
- return /* @__PURE__ */ n("div", {
11
- className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
- "data-testid": o,
13
- children: [
14
- /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
- /* @__PURE__ */ t("p", {
16
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
- children: c.message
18
- }),
19
- /* @__PURE__ */ t("button", {
20
- type: "button",
21
- onClick: a,
22
- "aria-label": c.dismiss,
23
- className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
- children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
- })
26
- ]
9
+ function S({ open: S, onOpenChange: C, rows: w, selectAllChecked: T = !1, onToggleAllRows: E, onKeepSelected: D, onCancelDuplicates: O, isActionDisabled: k, labels: A }) {
10
+ let j = g(() => ({
11
+ ...h,
12
+ ...A
13
+ }), [A]);
14
+ return /* @__PURE__ */ _(n, {
15
+ open: S,
16
+ onOpenChange: C,
17
+ children: /* @__PURE__ */ v(r, {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-8 ttw:sm:max-w-208.75",
19
+ showCloseButton: !0,
20
+ children: [
21
+ /* @__PURE__ */ v(o, {
22
+ className: "ttw:items-center ttw:gap-3 ttw:text-center ttw:sm:text-center",
23
+ children: [
24
+ /* @__PURE__ */ _("div", {
25
+ className: "ttw:flex ttw:items-center ttw:justify-center ttw:border ttw:rounded-full ttw:size-11 ttw:border-orange-300 ttw:bg-orange-200",
26
+ children: /* @__PURE__ */ _(x, {
27
+ className: "ttw:size-4 ttw:text-orange-950",
28
+ "aria-hidden": !0
29
+ })
30
+ }),
31
+ /* @__PURE__ */ _(s, { children: j.title }),
32
+ /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _("span", {
33
+ className: "ttw:block",
34
+ children: j.descriptionFirstLine
35
+ }), /* @__PURE__ */ _("span", {
36
+ className: "ttw:block",
37
+ children: j.descriptionSecondLine
38
+ })] })
39
+ ]
40
+ }),
41
+ /* @__PURE__ */ _("div", {
42
+ className: "ttw:max-h-80 ttw:overflow-y-auto",
43
+ children: /* @__PURE__ */ v(c, { children: [/* @__PURE__ */ _(f, {
44
+ className: "ttw:sticky ttw:top-0 ttw:bg-background",
45
+ children: /* @__PURE__ */ v(p, { children: [
46
+ /* @__PURE__ */ _(d, {
47
+ className: "ttw:w-10",
48
+ children: /* @__PURE__ */ _(t, {
49
+ "aria-label": j.selectAllRows,
50
+ checked: T,
51
+ onCheckedChange: E
52
+ })
53
+ }),
54
+ /* @__PURE__ */ _(d, { children: j.columnDuplicate }),
55
+ /* @__PURE__ */ _(d, { children: j.columnVendor }),
56
+ /* @__PURE__ */ _(d, { children: j.columnInvoiceNumber }),
57
+ /* @__PURE__ */ _(d, { children: j.columnAmount }),
58
+ /* @__PURE__ */ _(d, { children: j.columnInvoiceDate }),
59
+ /* @__PURE__ */ _(d, { children: j.columnAddedOn }),
60
+ /* @__PURE__ */ _(d, {
61
+ className: "ttw:w-10",
62
+ children: /* @__PURE__ */ _("span", {
63
+ className: "ttw:sr-only",
64
+ children: j.columnActions
65
+ })
66
+ })
67
+ ] })
68
+ }), /* @__PURE__ */ _(l, { children: w.map((n) => /* @__PURE__ */ v(p, { children: [
69
+ /* @__PURE__ */ _(u, { children: /* @__PURE__ */ _(t, {
70
+ "aria-label": n.selectLabel,
71
+ checked: n.isSelected ?? !1,
72
+ onCheckedChange: n.onToggleSelected
73
+ }) }),
74
+ /* @__PURE__ */ _(u, { children: /* @__PURE__ */ _(m, { ...n.duplicateBadge }) }),
75
+ /* @__PURE__ */ _(u, { children: n.vendorLabel }),
76
+ /* @__PURE__ */ _(u, { children: n.invoiceNumberLabel }),
77
+ /* @__PURE__ */ _(u, { children: n.amountLabel }),
78
+ /* @__PURE__ */ _(u, { children: n.invoiceDateLabel }),
79
+ /* @__PURE__ */ _(u, { children: n.addedOnLabel }),
80
+ /* @__PURE__ */ _(u, { children: /* @__PURE__ */ _("div", {
81
+ className: "ttw:flex ttw:justify-end",
82
+ children: /* @__PURE__ */ _(e, {
83
+ variant: "ghost",
84
+ size: "icon",
85
+ "aria-label": n.openLabel,
86
+ onClick: n.onOpen,
87
+ children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
88
+ })
89
+ }) })
90
+ ] }, n.id)) })] })
91
+ }),
92
+ D || O ? /* @__PURE__ */ v(a, {
93
+ className: "ttw:flex-row",
94
+ children: [D ? /* @__PURE__ */ _(e, {
95
+ variant: "outline",
96
+ className: "ttw:flex-1",
97
+ disabled: k,
98
+ onClick: D,
99
+ children: j.keepSelectedButton
100
+ }) : null, O ? /* @__PURE__ */ v(e, {
101
+ variant: "destructive",
102
+ className: "ttw:flex-1",
103
+ disabled: k,
104
+ onClick: O,
105
+ children: [/* @__PURE__ */ _(y, {}), j.cancelDuplicatesButton]
106
+ }) : null]
107
+ }) : null
108
+ ]
109
+ })
27
110
  });
28
111
  }
29
112
  //#endregion
30
- export { a as ExtractionNotice, a as default };
113
+ export { S as DuplicateBillsDialog, S as default };
@@ -1,7 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js
2
2
  var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
3
+ message: "Data extracted automatically — please review all details to make sure they match",
4
+ dismiss: "Dismiss this notice"
5
5
  };
6
6
  //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };
7
+ export { e as EXTRACTION_NOTICE_LABELS_EN };
@@ -1,34 +1,30 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index76.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 { EXTRACTION_NOTICE_LABELS_EN as e } from "./index76.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Info as r, X as i } from "lucide-react";
6
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.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]
5
+ function a({ onDismiss: a, testId: o, labels: s }) {
6
+ let c = {
7
+ ...e,
8
+ ...s
9
+ };
10
+ return /* @__PURE__ */ n("div", {
11
+ className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
+ "data-testid": o,
13
+ children: [
14
+ /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
+ /* @__PURE__ */ t("p", {
16
+ className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
+ children: c.message
18
+ }),
19
+ /* @__PURE__ */ t("button", {
20
+ type: "button",
21
+ onClick: a,
22
+ "aria-label": c.dismiss,
23
+ className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
+ children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
+ })
26
+ ]
31
27
  });
32
28
  }
33
29
  //#endregion
34
- export { s as RevealableField, s as default };
30
+ export { a as ExtractionNotice, a as default };
@@ -1,12 +1,7 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "./index76.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js
3
- var t = {
4
- title: "Review transaction",
5
- hiddenDescription: "Review the payment before submitting it.",
6
- payToHeading: "Pay to",
7
- backButton: "Back",
8
- submitButton: "Submit",
9
- ...e
2
+ var e = {
3
+ revealValue: "Show value",
4
+ hideValue: "Hide value"
10
5
  };
11
6
  //#endregion
12
- export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
7
+ export { e as REVEALABLE_FIELD_LABELS_EN };
@@ -1,106 +1,34 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RevealableField as c } from "./index77.js";
3
- import "./index78.js";
4
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index79.js";
5
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { REVEALABLE_FIELD_LABELS_EN as t } from "./index79.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";
6
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js
7
- function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo: _, isSubmitting: v, onBack: y, onCancel: b, onSubmit: x, testId: S, labels: C }) {
8
- let w = {
9
- ...l,
10
- ...C
11
- };
12
- return /* @__PURE__ */ u(t, {
13
- open: f,
14
- onOpenChange: (e) => e ? p(e) : b(),
15
- children: /* @__PURE__ */ d(n, {
16
- "data-testid": S,
17
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
18
- children: [
19
- /* @__PURE__ */ d(a, {
20
- className: "ttw:border-b ttw:border-border ttw:pb-7",
21
- children: [/* @__PURE__ */ u(o, {
22
- className: "ttw:text-3xl ttw:tracking-tight",
23
- children: w.title
24
- }), /* @__PURE__ */ u(r, {
25
- className: "ttw:sr-only",
26
- children: w.hiddenDescription
27
- })]
28
- }),
29
- /* @__PURE__ */ d("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-6",
31
- children: [
32
- /* @__PURE__ */ d("div", {
33
- className: "ttw:flex ttw:flex-col ttw:gap-1",
34
- children: [/* @__PURE__ */ u("p", {
35
- className: "ttw:text-sm ttw:text-muted-foreground",
36
- children: m
37
- }), /* @__PURE__ */ u("p", {
38
- className: "ttw:text-4xl ttw:font-semibold",
39
- children: h
40
- })]
41
- }),
42
- /* @__PURE__ */ u("dl", {
43
- className: "ttw:flex ttw:flex-col",
44
- children: g.map((e, t) => /* @__PURE__ */ d("div", {
45
- className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
46
- children: [/* @__PURE__ */ u("dt", {
47
- className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
48
- children: e.label
49
- }), /* @__PURE__ */ u("dd", {
50
- className: "ttw:text-sm ttw:font-medium",
51
- children: e.value
52
- })]
53
- }, e.label))
54
- }),
55
- /* @__PURE__ */ d("section", {
56
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
57
- children: [
58
- /* @__PURE__ */ u("p", {
59
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
60
- children: w.payToHeading
61
- }),
62
- /* @__PURE__ */ u("p", {
63
- className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
64
- children: _.name
65
- }),
66
- _.email ? /* @__PURE__ */ u("p", {
67
- className: "ttw:text-sm ttw:text-muted-foreground",
68
- children: _.email
69
- }) : null,
70
- _.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
71
- className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
72
- children: [_.methodLabel ? /* @__PURE__ */ u("p", {
73
- className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
74
- children: _.methodLabel
75
- }) : null, /* @__PURE__ */ u("dl", {
76
- className: "ttw:mt-3 ttw:grid ttw:gap-3",
77
- children: _.fields.map((e) => /* @__PURE__ */ u(c, {
78
- field: e,
79
- labels: w
80
- }, e.label))
81
- })]
82
- }) : null
83
- ]
84
- })
85
- ]
86
- }),
87
- /* @__PURE__ */ d(i, {
88
- className: "ttw:pt-4 ttw:sm:gap-3",
89
- children: [/* @__PURE__ */ u(e, {
90
- type: "button",
91
- variant: "outline",
92
- onClick: y,
93
- children: w.backButton
94
- }), /* @__PURE__ */ u(e, {
95
- type: "button",
96
- loading: v,
97
- onClick: x,
98
- children: w.submitButton
99
- })]
100
- })
101
- ]
102
- })
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]
103
31
  });
104
32
  }
105
33
  //#endregion
106
- export { f as ReviewTransactionDialog, f as default };
34
+ export { s as RevealableField, s as default };
@@ -1,17 +1,12 @@
1
+ import { REVEALABLE_FIELD_LABELS_EN as e } from "./index79.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
2
- var e = {
3
- title: "Mark this bill as paid",
4
- description: "You can't undo this action.",
5
- amountDue: "Amount due",
6
- paymentAmount: "Payment amount",
7
- paymentDate: "Payment date",
8
- paymentDatePlaceholder: "Select",
9
- today: "Today",
10
- comments: "Comments",
11
- commentsOptionalSuffix: "(optional)",
12
- commentsPlaceholder: "Additional context for this payment.",
13
- cancelButton: "Cancel",
14
- confirmButton: "Mark as paid"
3
+ var t = {
4
+ title: "Review transaction",
5
+ hiddenDescription: "Review the payment before submitting it.",
6
+ payToHeading: "Pay to",
7
+ backButton: "Back",
8
+ submitButton: "Submit",
9
+ ...e
15
10
  };
16
11
  //#endregion
17
- export { e as MARK_AS_PAID_DIALOG_LABELS_EN };
12
+ export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
@@ -1,120 +1,101 @@
1
- import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as o, DialogHeader as s, DialogTitle as c, Label as l, Popover as u, PopoverContent as d, PopoverTrigger as f, Textarea as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { MARK_AS_PAID_DIALOG_LABELS_EN as m } from "./index82.js";
3
- import { useId as h } from "react";
4
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
5
- import { CalendarIcon as v } from "lucide-react";
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RevealableField as c } from "./index80.js";
3
+ import "./index81.js";
4
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index82.js";
5
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js
7
- function y({ open: y, amountDue: b, dueDateSuffix: x, paymentAmount: S, selectedDate: C, selectedDateLabel: w, isToday: T, comment: E, isSubmitting: D, onDateChange: O, onCommentChange: k, onConfirm: A, onCancel: j, testId: M, confirmTestId: N, labels: P }) {
8
- let F = {
9
- ...m,
10
- ...P
11
- }, I = h(), L = h(), R = h();
12
- return /* @__PURE__ */ g(r, {
13
- open: y,
14
- onOpenChange: (e) => e ? void 0 : j(),
15
- children: /* @__PURE__ */ _(i, {
16
- "data-testid": M,
17
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
7
+ function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo: _, isSubmitting: v, onBack: y, onCancel: b, onSubmit: x, testId: S, labels: C }) {
8
+ let w = {
9
+ ...l,
10
+ ...C
11
+ };
12
+ return /* @__PURE__ */ u(t, {
13
+ open: f,
14
+ onOpenChange: (e) => e ? p(e) : b(),
15
+ children: /* @__PURE__ */ d(n, {
16
+ "data-testid": S,
17
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
18
18
  children: [
19
- /* @__PURE__ */ _(s, { children: [/* @__PURE__ */ g(c, { children: F.title }), /* @__PURE__ */ g(a, { children: F.description })] }),
20
- /* @__PURE__ */ _("div", {
21
- className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ /* @__PURE__ */ d(a, {
20
+ className: "ttw:border-b ttw:border-border ttw:pb-7",
21
+ children: [/* @__PURE__ */ u(o, {
22
+ className: "ttw:text-3xl ttw:tracking-tight",
23
+ children: w.title
24
+ }), /* @__PURE__ */ u(r, {
25
+ className: "ttw:sr-only",
26
+ children: w.hiddenDescription
27
+ })]
28
+ }),
29
+ /* @__PURE__ */ d("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
22
31
  children: [
23
- /* @__PURE__ */ _("div", {
24
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
25
- children: [/* @__PURE__ */ g("p", {
26
- className: "ttw:text-base ttw:text-muted-foreground",
27
- children: F.amountDue
28
- }), /* @__PURE__ */ _("div", {
29
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
30
- children: [/* @__PURE__ */ g("p", {
31
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
32
- children: b
33
- }), x ? /* @__PURE__ */ g("p", {
34
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
35
- children: x
36
- }) : null]
32
+ /* @__PURE__ */ d("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
34
+ children: [/* @__PURE__ */ u("p", {
35
+ className: "ttw:text-sm ttw:text-muted-foreground",
36
+ children: m
37
+ }), /* @__PURE__ */ u("p", {
38
+ className: "ttw:text-4xl ttw:font-semibold",
39
+ children: h
37
40
  })]
38
41
  }),
39
- /* @__PURE__ */ _("div", {
40
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
- children: [/* @__PURE__ */ _("div", {
42
- className: "ttw:grid ttw:gap-2.5",
43
- children: [/* @__PURE__ */ g(l, { children: F.paymentAmount }), /* @__PURE__ */ g("div", {
44
- "aria-disabled": !0,
45
- className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
46
- children: S
42
+ /* @__PURE__ */ u("dl", {
43
+ className: "ttw:flex ttw:flex-col",
44
+ children: g.map((e, t) => /* @__PURE__ */ d("div", {
45
+ className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
46
+ children: [/* @__PURE__ */ u("dt", {
47
+ className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
48
+ children: e.label
49
+ }), /* @__PURE__ */ u("dd", {
50
+ className: "ttw:text-sm ttw:font-medium",
51
+ children: e.value
47
52
  })]
48
- }), /* @__PURE__ */ _("div", {
49
- className: "ttw:grid ttw:gap-2.5",
50
- children: [/* @__PURE__ */ g(l, {
51
- id: I,
52
- children: F.paymentDate
53
- }), /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(f, {
54
- asChild: !0,
55
- children: /* @__PURE__ */ _(t, {
56
- type: "button",
57
- variant: "outline",
58
- className: "ttw:justify-start ttw:gap-2",
59
- "aria-labelledby": `${I} ${L}`,
60
- children: [
61
- /* @__PURE__ */ g(v, { className: "ttw:size-4" }),
62
- /* @__PURE__ */ g("span", {
63
- id: L,
64
- children: w ?? F.paymentDatePlaceholder
65
- }),
66
- T ? /* @__PURE__ */ g(e, {
67
- variant: "secondary",
68
- children: F.today
69
- }) : null
70
- ]
71
- })
72
- }), /* @__PURE__ */ g(d, {
73
- align: "start",
74
- className: "ttw:w-auto ttw:p-0",
75
- children: /* @__PURE__ */ g(n, {
76
- mode: "single",
77
- selected: C,
78
- onSelect: O
79
- })
80
- })] })]
81
- })]
53
+ }, e.label))
82
54
  }),
83
- /* @__PURE__ */ _("div", {
84
- className: "ttw:grid ttw:gap-2.5",
85
- children: [/* @__PURE__ */ _(l, {
86
- htmlFor: R,
87
- children: [
88
- F.comments,
89
- " ",
90
- /* @__PURE__ */ g("span", {
91
- className: "ttw:font-normal ttw:text-muted-foreground",
92
- children: F.commentsOptionalSuffix
93
- })
94
- ]
95
- }), /* @__PURE__ */ g(p, {
96
- id: R,
97
- value: E,
98
- placeholder: F.commentsPlaceholder,
99
- onChange: (e) => k(e.target.value)
100
- })]
55
+ /* @__PURE__ */ d("section", {
56
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
57
+ children: [
58
+ /* @__PURE__ */ u("p", {
59
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
60
+ children: w.payToHeading
61
+ }),
62
+ /* @__PURE__ */ u("p", {
63
+ className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
64
+ children: _.name
65
+ }),
66
+ _.email ? /* @__PURE__ */ u("p", {
67
+ className: "ttw:text-sm ttw:text-muted-foreground",
68
+ children: _.email
69
+ }) : null,
70
+ _.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
71
+ className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
72
+ children: [_.methodLabel ? /* @__PURE__ */ u("p", {
73
+ className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
74
+ children: _.methodLabel
75
+ }) : null, /* @__PURE__ */ u("dl", {
76
+ className: "ttw:mt-3 ttw:grid ttw:gap-3",
77
+ children: _.fields.map((e) => /* @__PURE__ */ u(c, {
78
+ field: e,
79
+ labels: w
80
+ }, e.label))
81
+ })]
82
+ }) : null
83
+ ]
101
84
  })
102
85
  ]
103
86
  }),
104
- /* @__PURE__ */ _(o, {
87
+ /* @__PURE__ */ d(i, {
105
88
  className: "ttw:pt-4 ttw:sm:gap-3",
106
- children: [/* @__PURE__ */ g(t, {
89
+ children: [/* @__PURE__ */ u(e, {
107
90
  type: "button",
108
91
  variant: "outline",
109
- onClick: j,
110
- children: F.cancelButton
111
- }), /* @__PURE__ */ g(t, {
92
+ onClick: y,
93
+ children: w.backButton
94
+ }), /* @__PURE__ */ u(e, {
112
95
  type: "button",
113
- "data-testid": N,
114
- disabled: !C,
115
- loading: D,
116
- onClick: A,
117
- children: F.confirmButton
96
+ loading: v,
97
+ onClick: x,
98
+ children: w.submitButton
118
99
  })]
119
100
  })
120
101
  ]
@@ -122,4 +103,4 @@ function y({ open: y, amountDue: b, dueDateSuffix: x, paymentAmount: S, selected
122
103
  });
123
104
  }
124
105
  //#endregion
125
- export { y as MarkAsPaidDialog, y as default };
106
+ export { f as ReviewTransactionDialog, f as default };
@@ -1,18 +1,17 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js
2
2
  var e = {
3
- title: "Schedule payment",
4
- hiddenDescription: "Choose the account to pay from and the payment date.",
5
- payFrom: "Pay from",
6
- payFromPlaceholder: "Select an account",
3
+ title: "Mark this bill as paid",
4
+ description: "You can't undo this action.",
5
+ amountDue: "Amount due",
6
+ paymentAmount: "Payment amount",
7
7
  paymentDate: "Payment date",
8
- paymentDatePlaceholder: "Choose a date",
8
+ paymentDatePlaceholder: "Select",
9
9
  today: "Today",
10
- noAccounts: "No accounts available",
11
- loadingAccounts: "Loading accounts",
12
- accountsError: "Couldn't load accounts. Try again.",
13
- poweredByBank: (e) => `Powered by ${e}`,
10
+ comments: "Comments",
11
+ commentsOptionalSuffix: "(optional)",
12
+ commentsPlaceholder: "Additional context for this payment.",
14
13
  cancelButton: "Cancel",
15
- reviewButton: "Review payment"
14
+ confirmButton: "Mark as paid"
16
15
  };
17
16
  //#endregion
18
- export { e as SCHEDULE_PAYMENT_DIALOG_LABELS_EN };
17
+ export { e as MARK_AS_PAID_DIALOG_LABELS_EN };