@tesouro/embedded-components-react 0.11.253 → 0.11.255

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 (111) hide show
  1. package/dist/index.css +9 -344
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
  103. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
  104. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
  105. package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
@@ -1,2 +1,14 @@
1
- import "./index2.js";
2
- import "./index3.js";
1
+ import { Label as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js
4
+ function r({ label: r, value: i }) {
5
+ return /* @__PURE__ */ n("div", {
6
+ className: "ttw:grid ttw:content-start ttw:gap-2",
7
+ children: [/* @__PURE__ */ t(e, { children: r }), /* @__PURE__ */ t("div", {
8
+ "aria-disabled": !0,
9
+ 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",
10
+ children: i
11
+ })]
12
+ });
13
+ }
14
+ export { r as ReadOnlyAmountField };
@@ -1,13 +1,3 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index22.js";
2
- import "../../../ui/dist/index.js";
3
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
4
- var t = {
5
- title: "Review transaction",
6
- hiddenDescription: "Review the payment before submitting it.",
7
- payToHeading: "Pay to",
8
- backButton: "Back",
9
- submitButton: "Submit",
10
- close: "Close",
11
- ...e
12
- };
13
- export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
1
+ import "./index2.js";
2
+ import "./index3.js";
3
+ import "./index4.js";
@@ -1,107 +1,31 @@
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 "../../../ui/dist/index23.js";
3
- import "../../../ui/dist/index.js";
4
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index5.js";
5
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
1
+ import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
2
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.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
3
+ var r = {
4
+ title: "Mark this bill as paid",
5
+ description: "You can't undo this action.",
6
+ amountDue: "Amount due",
7
+ paymentAmount: "Payment amount",
8
+ paymentDate: "Payment date",
9
+ paymentDatePlaceholder: "Select",
10
+ today: "Today",
11
+ comments: "Comments",
12
+ commentsPlaceholder: "Additional context for this payment.",
13
+ cancelButton: "Cancel",
14
+ confirmButton: "Mark as paid",
15
+ close: "Close",
16
+ fieldMarkers: e,
17
+ requiredFieldsLegend: t
18
+ };
19
+ function i(e) {
20
+ let t = {
21
+ ...r.fieldMarkers,
22
+ ...e?.fieldMarkers
23
+ };
24
+ return {
25
+ ...r,
26
+ ...e,
27
+ fieldMarkers: t,
28
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
11
29
  };
12
- return /* @__PURE__ */ u(t, {
13
- open: f,
14
- onOpenChange: (e) => e ? p(e) : b(),
15
- children: /* @__PURE__ */ d(n, {
16
- closeDisabled: v,
17
- "data-testid": S,
18
- labels: { close: w.close },
19
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
20
- children: [
21
- /* @__PURE__ */ d(a, {
22
- className: "ttw:border-b ttw:border-border ttw:pb-7",
23
- children: [/* @__PURE__ */ u(o, {
24
- className: "ttw:text-3xl ttw:tracking-tight",
25
- children: w.title
26
- }), /* @__PURE__ */ u(r, {
27
- className: "ttw:sr-only",
28
- children: w.hiddenDescription
29
- })]
30
- }),
31
- /* @__PURE__ */ d("div", {
32
- className: "ttw:flex ttw:flex-col ttw:gap-6",
33
- children: [
34
- /* @__PURE__ */ d("div", {
35
- className: "ttw:flex ttw:flex-col ttw:gap-1",
36
- children: [/* @__PURE__ */ u("p", {
37
- className: "ttw:text-sm ttw:text-muted-foreground",
38
- children: m
39
- }), /* @__PURE__ */ u("p", {
40
- className: "ttw:text-4xl ttw:font-semibold",
41
- children: h
42
- })]
43
- }),
44
- /* @__PURE__ */ u("dl", {
45
- className: "ttw:flex ttw:flex-col",
46
- children: g.map((e, t) => /* @__PURE__ */ d("div", {
47
- className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
48
- children: [/* @__PURE__ */ u("dt", {
49
- className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
50
- children: e.label
51
- }), /* @__PURE__ */ u("dd", {
52
- className: "ttw:text-sm ttw:font-medium",
53
- children: e.value
54
- })]
55
- }, e.label))
56
- }),
57
- /* @__PURE__ */ d("section", {
58
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
59
- children: [
60
- /* @__PURE__ */ u("p", {
61
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
62
- children: w.payToHeading
63
- }),
64
- /* @__PURE__ */ u("p", {
65
- className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
66
- children: _.name
67
- }),
68
- _.email ? /* @__PURE__ */ u("p", {
69
- className: "ttw:text-sm ttw:text-muted-foreground",
70
- children: _.email
71
- }) : null,
72
- _.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
73
- className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
74
- children: [_.methodLabel ? /* @__PURE__ */ u("p", {
75
- className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
76
- children: _.methodLabel
77
- }) : null, /* @__PURE__ */ u("dl", {
78
- className: "ttw:mt-3 ttw:grid ttw:gap-3",
79
- children: _.fields.map((e) => /* @__PURE__ */ u(c, {
80
- field: e,
81
- labels: w
82
- }, e.label))
83
- })]
84
- }) : null
85
- ]
86
- })
87
- ]
88
- }),
89
- /* @__PURE__ */ d(i, {
90
- className: "ttw:pt-4 ttw:sm:gap-3",
91
- children: [/* @__PURE__ */ u(e, {
92
- type: "button",
93
- variant: "outline",
94
- onClick: y,
95
- children: w.backButton
96
- }), /* @__PURE__ */ u(e, {
97
- type: "button",
98
- loading: v,
99
- onClick: x,
100
- children: w.submitButton
101
- })]
102
- })
103
- ]
104
- })
105
- });
106
30
  }
107
- export { f as ReviewTransactionDialog, f as default };
31
+ export { r as MARK_AS_PAID_DIALOG_LABELS_EN, i as mergeMarkAsPaidDialogLabels };
@@ -1,2 +1,73 @@
1
+ import { FieldRequirement as e, FormDialog as t, Label as n, RequiredFieldsLegend as r, Textarea as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeMarkAsPaidDialogLabels as a } from "./index6.js";
3
+ import { AmountDueHeader as o } from "./index2.js";
4
+ import { PaymentDateField as s } from "./index3.js";
5
+ import { ReadOnlyAmountField as c } from "./index4.js";
1
6
  import "./index5.js";
2
- import "./index6.js";
7
+ import { useId as l } from "react";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js
10
+ function f({ open: f, amountDue: p, dueDateSuffix: m, paymentAmount: h, selectedDate: g, isToday: _, paymentDateError: v, comment: y, isSubmitting: b, onDateChange: x, onCommentChange: S, onConfirm: C, onCancel: w, testId: T, confirmTestId: E, labels: D }) {
11
+ let O = a(D), k = l();
12
+ return /* @__PURE__ */ u(t, {
13
+ open: f,
14
+ onOpenChange: (e) => e ? void 0 : w(),
15
+ title: O.title,
16
+ description: O.description,
17
+ onSubmit: C,
18
+ submitting: b,
19
+ labels: {
20
+ submit: O.confirmButton,
21
+ cancel: O.cancelButton,
22
+ close: O.close
23
+ },
24
+ testIds: {
25
+ content: T,
26
+ submit: E
27
+ },
28
+ children: /* @__PURE__ */ d("div", {
29
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
30
+ children: [
31
+ /* @__PURE__ */ u(o, {
32
+ label: O.amountDue,
33
+ amount: p,
34
+ suffix: m
35
+ }),
36
+ /* @__PURE__ */ u(r, { labels: O.requiredFieldsLegend }),
37
+ /* @__PURE__ */ d("div", {
38
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
39
+ children: [/* @__PURE__ */ u(c, {
40
+ label: O.paymentAmount,
41
+ value: h
42
+ }), /* @__PURE__ */ u(s, {
43
+ value: g,
44
+ isToday: _,
45
+ error: v,
46
+ onChange: x,
47
+ labels: {
48
+ label: O.paymentDate,
49
+ placeholder: O.paymentDatePlaceholder,
50
+ today: O.today,
51
+ fieldMarkers: O.fieldMarkers
52
+ }
53
+ })]
54
+ }),
55
+ /* @__PURE__ */ d("div", {
56
+ className: "ttw:grid ttw:gap-2",
57
+ children: [/* @__PURE__ */ u(n, {
58
+ htmlFor: k,
59
+ requirement: e.Optional,
60
+ labels: O.fieldMarkers,
61
+ children: O.comments
62
+ }), /* @__PURE__ */ u(i, {
63
+ id: k,
64
+ value: y,
65
+ placeholder: O.commentsPlaceholder,
66
+ onChange: (e) => S(e.target.value)
67
+ })]
68
+ })
69
+ ]
70
+ })
71
+ });
72
+ }
73
+ export { f as MarkAsPaidDialog, f as default };
@@ -1,33 +1,2 @@
1
- import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js
3
- var r = {
4
- title: "Schedule payment",
5
- hiddenDescription: "Choose the account to pay from and the payment date.",
6
- payFrom: "Pay from",
7
- payFromPlaceholder: "Select an account",
8
- paymentDate: "Payment date",
9
- paymentDatePlaceholder: "Choose a date",
10
- today: "Today",
11
- noAccounts: "No accounts available",
12
- loadingAccounts: "Loading accounts",
13
- accountsError: "Couldn't load accounts. Try again.",
14
- poweredByBank: (e) => `Powered by ${e}`,
15
- cancelButton: "Cancel",
16
- reviewButton: "Review payment",
17
- close: "Close",
18
- fieldMarkers: e,
19
- requiredFieldsLegend: t
20
- };
21
- function i(e) {
22
- let t = {
23
- ...r.fieldMarkers,
24
- ...e?.fieldMarkers
25
- };
26
- return {
27
- ...r,
28
- ...e,
29
- fieldMarkers: t,
30
- requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
31
- };
32
- }
33
- export { r as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, i as mergeSchedulePaymentDialogLabels };
1
+ import "./index6.js";
2
+ import "./index7.js";
@@ -1,9 +1,14 @@
1
+ import { MASKED_ACCOUNT_NUMBER_LABELS_EN as e } from "../../../../shared/ui/dist/lib/MaskedAccountNumber/labels.js";
2
+ import "../../../../shared/ui/dist/index.js";
1
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js
2
- var e = {
3
- neutral: "ttw:text-foreground",
4
- muted: "ttw:text-muted-foreground",
5
- success: "ttw:text-emerald-700",
6
- warning: "ttw:text-amber-700",
7
- error: "ttw:text-destructive"
4
+ var t = {
5
+ title: "Review payment",
6
+ stepLabel: "Step 2 of 2",
7
+ payToHeading: "Pay to",
8
+ backButton: "Back",
9
+ submitButton: "Schedule payment",
10
+ doneButton: "Done",
11
+ close: "Close",
12
+ maskedAccountNumber: e
8
13
  };
9
- export { e as TONE_TEXT_CLASS };
14
+ export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
@@ -8,16 +8,13 @@ import { BillDuplicateWarning as i } from "./index8.js";
8
8
  import "./index9.js";
9
9
  import { BillFailedPaymentIcon as a } from "./index10.js";
10
10
  import "./index11.js";
11
- import { groupBySectionHeading as o } from "./index12.js";
12
- import { BillOverflowMenu as s } from "./index13.js";
11
+ import "./index12.js";
12
+ import { BillOverflowMenu as o } from "./index13.js";
13
13
  import "./index14.js";
14
14
  import "./index15.js";
15
- import { BillPayWidgetHeaderUi as c, BillPayWidgetUi as l } from "./index16.js";
15
+ import { BillPayWidgetHeaderUi as s, BillPayWidgetUi as c } from "./index16.js";
16
16
  import "./index17.js";
17
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as u } from "./index18.js";
18
- import { BillUploadDropzone as d, getAcceptedBillUploadFiles as f } from "./index19.js";
17
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as l } from "./index18.js";
18
+ import { BillUploadDropzone as u, getAcceptedBillUploadFiles as d } from "./index19.js";
19
19
  import "./index21.js";
20
- import { REVEALABLE_FIELD_LABELS_EN as p } from "./index22.js";
21
- import { RevealableField as m } from "./index23.js";
22
- import "./index24.js";
23
- export { u as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, a as BillFailedPaymentIcon, s as BillOverflowMenu, c as BillPayWidgetHeaderUi, l as BillPayWidgetUi, d as BillUploadDropzone, t as NO_BILL_ACTIONS, p as REVEALABLE_FIELD_LABELS_EN, m as RevealableField, f as getAcceptedBillUploadFiles, o as groupBySectionHeading };
20
+ export { l as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, a as BillFailedPaymentIcon, o as BillOverflowMenu, s as BillPayWidgetHeaderUi, c as BillPayWidgetUi, u as BillUploadDropzone, t as NO_BILL_ACTIONS, d as getAcceptedBillUploadFiles };
@@ -1,13 +1,10 @@
1
1
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js
2
- function e(e) {
3
- let t = [];
4
- for (let n of e) {
5
- let e = t.at(-1);
6
- e && e.heading === n.sectionHeading ? e.items = [...e.items, n] : t.push({
7
- heading: n.sectionHeading,
8
- items: [n]
9
- });
2
+ function e(e, t) {
3
+ let n = [], r;
4
+ for (let i of e) {
5
+ let e = t(i), a = n.at(-1);
6
+ a && e === r ? a.push(i) : n.push([i]), r = e;
10
7
  }
11
- return t;
8
+ return n;
12
9
  }
13
10
  export { e as groupBySectionHeading };
@@ -1,53 +1,54 @@
1
- import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { DropdownMenu as e, DropdownMenuContent as t, DropdownMenuGroup as n, DropdownMenuItem as r, DropdownMenuLabel as i, DropdownMenuSeparator as a, DropdownMenuTrigger as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TooltipIconButton as s } from "../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
3
+ import "../../../shared/ui/dist/index.js";
2
4
  import { groupBySectionHeading as c } from "./index12.js";
3
5
  import { Fragment as l, useId as u } from "react";
4
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
7
+ import { MoreVerticalIcon as p } from "lucide-react";
6
8
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js
7
- function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
- let y = u();
9
- if (!h.length) return null;
10
- let b = _ === "header", x = _ === "header" || _ === "table", S = b ? p : m, C = c(h);
11
- return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
9
+ function m({ actions: m, triggerLabel: h, disabled: g, testId: _ }) {
10
+ let v = u();
11
+ if (!m.length) return null;
12
+ let y = c(m, (e) => e.destructive ? "destructive" : e.sectionHeading);
13
+ return /* @__PURE__ */ f(e, { children: [/* @__PURE__ */ d(o, {
12
14
  asChild: !0,
13
- children: /* @__PURE__ */ d(e, {
14
- type: "button",
15
- variant: x ? "ghost" : "outline",
16
- size: "icon",
17
- "aria-label": g,
18
- "data-testid": v,
15
+ children: /* @__PURE__ */ d(s, {
16
+ label: h,
17
+ icon: p,
18
+ disabled: g,
19
+ testId: _,
19
20
  onPointerDown: (e) => e.stopPropagation(),
20
- onClick: (e) => e.stopPropagation(),
21
- children: /* @__PURE__ */ d(S, { className: "ttw:size-4" })
21
+ onClick: (e) => e.stopPropagation()
22
22
  })
23
- }), /* @__PURE__ */ d(n, {
23
+ }), /* @__PURE__ */ d(t, {
24
24
  align: "end",
25
25
  onPointerDown: (e) => e.stopPropagation(),
26
26
  onClick: (e) => e.stopPropagation(),
27
- children: C.map((e, t) => {
28
- let n = e.items.map((e) => {
27
+ children: y.map((e, t) => {
28
+ let o = e[0], s = e.map((e) => {
29
29
  let t = e.icon;
30
- return /* @__PURE__ */ f(i, {
30
+ return /* @__PURE__ */ f(r, {
31
+ variant: e.destructive ? "destructive" : void 0,
31
32
  disabled: e.disabled,
32
33
  onClick: e.onSelect,
33
34
  children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
34
35
  }, e.id);
35
- });
36
- if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
37
- let s = `${y}-${t}`;
36
+ }), c = t > 0 ? /* @__PURE__ */ d(a, {}) : null;
37
+ if (!o?.sectionHeading || o.destructive) return /* @__PURE__ */ f(l, { children: [o?.destructive ? c : null, s] }, o?.id);
38
+ let u = `${v}-${t}`;
38
39
  return /* @__PURE__ */ f(l, { children: [
39
- t > 0 ? /* @__PURE__ */ d(o, {}) : null,
40
- /* @__PURE__ */ d(a, {
41
- id: s,
40
+ c,
41
+ /* @__PURE__ */ d(i, {
42
+ id: u,
42
43
  className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
43
- children: e.heading
44
+ children: o.sectionHeading
44
45
  }),
45
- /* @__PURE__ */ d(r, {
46
- "aria-labelledby": s,
47
- children: n
46
+ /* @__PURE__ */ d(n, {
47
+ "aria-labelledby": u,
48
+ children: s
48
49
  })
49
- ] }, e.items[0]?.id);
50
+ ] }, o.id);
50
51
  })
51
52
  })] });
52
53
  }
53
- export { h as BillOverflowMenu, h as default };
54
+ export { m as BillOverflowMenu, m as default };
@@ -2,13 +2,15 @@ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index
2
2
  import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js
4
4
  var r = {
5
- row: [],
5
+ header: [],
6
+ footer: {},
6
7
  menu: []
7
8
  };
8
- function i({ actions: r }) {
9
+ function i({ actions: r, size: i = "default" }) {
9
10
  return /* @__PURE__ */ n(t, { children: r.map((t) => /* @__PURE__ */ n(e, {
10
11
  type: "button",
11
12
  variant: t.variant,
13
+ size: i,
12
14
  disabled: t.disabled,
13
15
  loading: t.loading,
14
16
  onClick: t.onSelect,
@@ -1,19 +1,29 @@
1
1
  import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js
3
- var t = {
3
+ var t = [
4
+ "First",
5
+ "Second",
6
+ "Third",
7
+ "Fourth",
8
+ "Fifth"
9
+ ], n = {
4
10
  cancelButton: "Cancel",
5
11
  close: "Close",
6
12
  orConnector: "or",
13
+ pendingApproverStep: (e) => {
14
+ let n = t[e - 1];
15
+ return n ? `${n} approval` : `Approval ${e}`;
16
+ },
7
17
  fieldMarkers: e
8
18
  };
9
- function n(e) {
19
+ function r(e) {
10
20
  return {
11
- ...t,
21
+ ...n,
12
22
  ...e,
13
23
  fieldMarkers: {
14
- ...t.fieldMarkers,
24
+ ...n.fieldMarkers,
15
25
  ...e?.fieldMarkers
16
26
  }
17
27
  };
18
28
  }
19
- export { t as BILL_DECISION_DIALOG_LABELS_EN, n as mergeBillDecisionDialogLabels };
29
+ export { n as BILL_DECISION_DIALOG_LABELS_EN, r as mergeBillDecisionDialogLabels };
@@ -1,89 +1,58 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, FieldRequirement as s, Label as c, Textarea as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeBillDecisionDialogLabels as u } from "./index3.js";
3
- import { Fragment as d, useEffect as f, useState as p } from "react";
4
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
1
+ import { ConfirmDialog as e, FieldRequirement as t, Label as n, Textarea as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeBillDecisionDialogLabels as i } from "./index3.js";
3
+ import { useEffect as a, useState as o } from "react";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js
6
- function g({ open: g, copy: _, onConfirm: v, onCancel: y, isPending: b, confirmIcon: x, labels: S, testId: C, confirmTestId: w, reasonTestId: T, reasonFieldId: E = "bill-decision-reason" }) {
7
- let D = u(S), [O, k] = p("");
8
- if (f(() => {
9
- g || k("");
10
- }, [g]), !_) return null;
11
- let { alignment: A = "start", icon: j, tone: M = "default", actionWidth: N = "auto" } = _.presentation ?? {}, P = A === "center", F = N === "equal", I = _.pendingApprovers ?? [];
12
- return /* @__PURE__ */ m(e, {
13
- open: g,
6
+ function l({ open: l, copy: u, onConfirm: d, onCancel: f, isPending: p, labels: m, testId: h, confirmTestId: g, reasonTestId: _, reasonFieldId: v = "bill-decision-reason" }) {
7
+ let y = i(m), [b, x] = o("");
8
+ if (a(() => {
9
+ l || x("");
10
+ }, [l]), !u) return null;
11
+ let { icon: S, tone: C = "default" } = u.presentation ?? {}, w = C === "destructive", T = u.pendingApprovers ?? [], E = T.length > 1, D = (e) => e.join(` ${y.orConnector} `), O = T.length === 1 ? T[0] : null;
12
+ return /* @__PURE__ */ c(e, {
13
+ open: l,
14
14
  onOpenChange: (e) => {
15
- e || y();
15
+ !e && !p && f();
16
16
  },
17
- children: /* @__PURE__ */ h(t, {
18
- closeDisabled: b,
19
- "data-testid": C,
20
- labels: { close: D.close },
21
- children: [
22
- /* @__PURE__ */ h(i, {
23
- className: P ? "ttw:items-center ttw:sm:text-center" : void 0,
24
- children: [
25
- j ? /* @__PURE__ */ m("span", {
26
- className: M === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
27
- children: /* @__PURE__ */ m(j, { className: M === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
28
- }) : null,
29
- /* @__PURE__ */ m(a, { children: _.title }),
30
- /* @__PURE__ */ m(n, { children: _.description })
31
- ]
32
- }),
33
- I.length > 0 ? /* @__PURE__ */ m("div", {
34
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
35
- children: /* @__PURE__ */ m("ul", {
36
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
37
- children: I.map((e) => /* @__PURE__ */ m("li", {
38
- className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
39
- children: e.names.map((e, t) => /* @__PURE__ */ h(d, { children: [t > 0 ? /* @__PURE__ */ m("span", {
40
- className: "ttw:text-muted-foreground",
41
- children: ` ${D.orConnector} `
42
- }) : null, /* @__PURE__ */ m("span", {
43
- className: "ttw:font-medium",
44
- children: e
45
- })] }, e))
46
- }, e.id))
47
- })
48
- }) : null,
49
- _.reason ? /* @__PURE__ */ h("div", {
50
- className: "ttw:flex ttw:flex-col ttw:gap-2",
51
- children: [/* @__PURE__ */ m(c, {
52
- htmlFor: E,
53
- requirement: s.Optional,
54
- labels: D.fieldMarkers,
55
- children: _.reason.label
56
- }), /* @__PURE__ */ m(l, {
57
- id: E,
58
- value: O,
59
- placeholder: _.reason.placeholder,
60
- onChange: (e) => k(e.target.value),
61
- disabled: b,
62
- "data-testid": T
63
- })]
64
- }) : null,
65
- /* @__PURE__ */ h(r, {
66
- className: P ? "ttw:sm:justify-center" : void 0,
67
- children: [/* @__PURE__ */ m(o, {
68
- type: "button",
69
- variant: "outline",
70
- onClick: y,
71
- disabled: b,
72
- className: F ? "ttw:flex-1" : void 0,
73
- children: D.cancelButton
74
- }), /* @__PURE__ */ h(o, {
75
- type: "button",
76
- variant: M === "destructive" ? "destructive" : "default",
77
- loading: b,
78
- disabled: b,
79
- onClick: () => v(_.reason ? O.trim() : void 0),
80
- className: F ? "ttw:flex-1" : void 0,
81
- "data-testid": w,
82
- children: [b ? null : x, _.confirmButton]
83
- })]
84
- })
85
- ]
86
- })
17
+ title: u.title,
18
+ description: u.description,
19
+ icon: w && S ? /* @__PURE__ */ s(S, {}) : void 0,
20
+ destructive: w,
21
+ details: E ? T.map((e, t) => ({
22
+ label: y.pendingApproverStep(t + 1),
23
+ value: D(e.names)
24
+ })) : void 0,
25
+ onConfirm: () => d(u.reason ? b.trim() : void 0),
26
+ confirmDisabled: p,
27
+ loading: p,
28
+ labels: {
29
+ confirm: u.confirmButton,
30
+ cancel: y.cancelButton,
31
+ close: y.close
32
+ },
33
+ testIds: {
34
+ content: h,
35
+ confirm: g
36
+ },
37
+ children: [O ? /* @__PURE__ */ s("p", {
38
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
39
+ children: D(O.names)
40
+ }) : null, u.reason ? /* @__PURE__ */ c("div", {
41
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
42
+ children: [/* @__PURE__ */ s(n, {
43
+ htmlFor: v,
44
+ requirement: t.Optional,
45
+ labels: y.fieldMarkers,
46
+ children: u.reason.label
47
+ }), /* @__PURE__ */ s(r, {
48
+ id: v,
49
+ value: b,
50
+ placeholder: u.reason.placeholder,
51
+ onChange: (e) => x(e.target.value),
52
+ disabled: p,
53
+ "data-testid": _
54
+ })]
55
+ }) : null]
87
56
  });
88
57
  }
89
- export { g as BillDecisionDialog, g as default };
58
+ export { l as BillDecisionDialog, l as default };