@tesouro/embedded-components-react 0.11.253 → 0.11.254

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,182 +1,87 @@
1
- import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as ee, DialogFooter as te, DialogHeader as a, DialogTitle as o, FieldRequirement as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as ne, RequiredFieldsLegend as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeSchedulePaymentDialogLabels as v } from "./index8.js";
3
- import { TONE_TEXT_CLASS as y } from "./index9.js";
4
- import { useId as b } from "react";
5
- import { Fragment as re, jsx as x, jsxs as S } from "react/jsx-runtime";
6
- import { CalendarIcon as ie } from "lucide-react";
1
+ import { DescriptionList as e, DisplayAmount as t, FlowDialog as n, Heading as r, ResultScreen as i, Separator as a, Typography as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MaskedAccountNumber as s } from "../../../../shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js";
3
+ import "../../../../shared/ui/dist/index.js";
4
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as c } from "./index9.js";
5
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ import { CircleCheckIcon as f } from "lucide-react";
7
7
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js
8
- var C = {
9
- sufficient: y.muted,
10
- warning: y.warning,
11
- error: y.error
12
- };
13
- function w({ open: y, onOpenChange: w, amountDueLabel: T, amountDue: E, dueDateSuffix: D, paymentAmountLabel: O, paymentAmount: k, selectedDate: A, selectedDateLabel: j, calendarDisabled: M, isToday: N, selectedAccountId: P, accounts: F, poweredByBankName: I, funds: L, isAccountsLoading: R, isAccountsError: z, isSubmitting: B, onDateChange: V, onAccountChange: H, onReview: U, onCancel: W, testId: G, labels: K }) {
14
- let q = v(K), J = b(), Y = b(), X = b(), Z = b(), Q = R || z || F.length === 0, $ = F.find((e) => e.id === P);
15
- return /* @__PURE__ */ x(r, {
16
- open: y,
17
- onOpenChange: (e) => e ? w(e) : W(),
18
- children: /* @__PURE__ */ S(i, {
19
- closeDisabled: B,
20
- "data-testid": G,
21
- labels: { close: q.close },
22
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
8
+ function p({ open: p, onOpenChange: m, amountLabel: h, amount: g, rows: _, payTo: v, isSubmitting: y, submitError: b, onBack: x, onCancel: S, onSubmit: C, result: w, onDone: T, testId: E, labels: D }) {
9
+ let O = {
10
+ ...c,
11
+ ...D
12
+ };
13
+ return /* @__PURE__ */ u(n, {
14
+ open: p,
15
+ onOpenChange: (e) => e ? m(e) : S(),
16
+ title: O.title,
17
+ stepLabel: O.stepLabel,
18
+ submitError: b,
19
+ onBack: x,
20
+ onNext: C,
21
+ nextLoading: y,
22
+ labels: {
23
+ back: O.backButton,
24
+ next: O.submitButton,
25
+ close: O.close
26
+ },
27
+ testIds: { content: E },
28
+ result: w ? /* @__PURE__ */ u(i, {
29
+ icon: /* @__PURE__ */ u(f, {}),
30
+ title: w.title,
31
+ details: w.details,
32
+ onDone: T,
33
+ labels: { done: O.doneButton }
34
+ }) : void 0,
35
+ children: /* @__PURE__ */ d("div", {
36
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
23
37
  children: [
24
- /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(o, { children: q.title }), /* @__PURE__ */ x(ee, {
25
- className: "ttw:sr-only",
26
- children: q.hiddenDescription
27
- })] }),
28
- /* @__PURE__ */ S("div", {
29
- className: "ttw:flex ttw:flex-col ttw:gap-3",
38
+ /* @__PURE__ */ d("div", {
39
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
40
+ children: [/* @__PURE__ */ u(o, {
41
+ variant: "caption",
42
+ color: "muted",
43
+ children: h
44
+ }), /* @__PURE__ */ u(t, { children: g })]
45
+ }),
46
+ /* @__PURE__ */ u(e, { items: _ }),
47
+ /* @__PURE__ */ d("section", {
48
+ className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:rounded-lg ttw:bg-muted ttw:p-4",
30
49
  children: [
31
- /* @__PURE__ */ S("div", {
32
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
33
- children: [/* @__PURE__ */ x("p", {
34
- className: "ttw:text-base ttw:text-muted-foreground",
35
- children: T
36
- }), /* @__PURE__ */ S("div", {
37
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
38
- children: [/* @__PURE__ */ x("p", {
39
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
40
- children: E
41
- }), D ? /* @__PURE__ */ x("p", {
42
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
43
- children: D
44
- }) : null]
45
- })]
46
- }),
47
- /* @__PURE__ */ x(d, { labels: q.requiredFieldsLegend }),
48
- /* @__PURE__ */ S("div", {
49
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
50
- children: [/* @__PURE__ */ S("div", {
51
- className: "ttw:grid ttw:gap-2.5",
52
- children: [/* @__PURE__ */ x(c, { children: O }), /* @__PURE__ */ x("div", {
53
- "aria-disabled": !0,
54
- 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",
55
- children: k
56
- })]
57
- }), /* @__PURE__ */ S("div", {
58
- className: "ttw:grid ttw:gap-2.5",
59
- children: [
60
- /* @__PURE__ */ x(c, {
61
- id: J,
62
- requirement: s.Required,
63
- labels: q.fieldMarkers,
64
- children: q.paymentDate
65
- }),
66
- /* @__PURE__ */ x("span", {
67
- id: X,
68
- className: "ttw:sr-only",
69
- children: q.fieldMarkers.requiredAccessibleText
70
- }),
71
- /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(ne, {
72
- asChild: !0,
73
- children: /* @__PURE__ */ S(t, {
74
- type: "button",
75
- variant: "outline",
76
- className: "ttw:justify-start ttw:gap-2",
77
- "aria-labelledby": `${J} ${Y} ${X}`,
78
- children: [
79
- /* @__PURE__ */ x(ie, { className: "ttw:size-4" }),
80
- /* @__PURE__ */ x("span", {
81
- id: Y,
82
- children: j ?? q.paymentDatePlaceholder
83
- }),
84
- N ? /* @__PURE__ */ x(e, {
85
- variant: "secondary",
86
- children: q.today
87
- }) : null
88
- ]
89
- })
90
- }), /* @__PURE__ */ x(u, {
91
- align: "start",
92
- className: "ttw:w-auto ttw:p-0",
93
- children: /* @__PURE__ */ x(n, {
94
- mode: "single",
95
- selected: A,
96
- onSelect: V,
97
- disabled: M
98
- })
99
- })] })
100
- ]
101
- })]
50
+ /* @__PURE__ */ u(r, {
51
+ variant: "card",
52
+ level: 3,
53
+ children: O.payToHeading
102
54
  }),
103
- /* @__PURE__ */ S("div", {
104
- className: "ttw:grid ttw:gap-2.5",
105
- children: [
106
- /* @__PURE__ */ x(c, {
107
- id: Z,
108
- requirement: s.Required,
109
- labels: q.fieldMarkers,
110
- children: q.payFrom
111
- }),
112
- /* @__PURE__ */ S(f, {
113
- value: P,
114
- disabled: Q,
115
- onValueChange: H,
116
- children: [/* @__PURE__ */ x(h, {
117
- className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
118
- "aria-labelledby": Z,
119
- "aria-required": !0,
120
- children: /* @__PURE__ */ x(g, {
121
- placeholder: q.payFromPlaceholder,
122
- children: $ ? /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ S("span", {
123
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
124
- children: [/* @__PURE__ */ x("span", {
125
- className: "ttw:truncate",
126
- children: $.primaryLabel
127
- }), $.secondaryLabel ? /* @__PURE__ */ x("span", {
128
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
129
- children: $.secondaryLabel
130
- }) : null]
131
- }), I ? /* @__PURE__ */ x(e, {
132
- variant: "secondary",
133
- className: "ttw:shrink-0",
134
- children: q.poweredByBank(I)
135
- }) : null] }) : null
136
- })
137
- }), /* @__PURE__ */ x(p, { children: F.map((e) => /* @__PURE__ */ x(m, {
138
- value: e.id,
139
- children: /* @__PURE__ */ S("span", {
140
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
141
- children: [/* @__PURE__ */ x("span", {
142
- className: "ttw:truncate",
143
- children: e.primaryLabel
144
- }), e.secondaryLabel ? /* @__PURE__ */ x("span", {
145
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
146
- children: e.secondaryLabel
147
- }) : null]
148
- })
149
- }, e.id)) })]
150
- }),
151
- Q ? /* @__PURE__ */ x("p", {
152
- className: _("ttw:text-sm", z ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
153
- role: z ? "alert" : void 0,
154
- children: R ? q.loadingAccounts : z ? q.accountsError : q.noAccounts
155
- }) : null
156
- ]
55
+ /* @__PURE__ */ u("p", {
56
+ className: "ttw:text-base ttw:font-semibold",
57
+ children: v.name
157
58
  }),
158
- L.message ? /* @__PURE__ */ x("p", {
159
- className: _("ttw:text-sm", C[L.state]),
160
- children: L.message
161
- }) : null
59
+ v.email ? /* @__PURE__ */ u("p", {
60
+ className: "ttw:text-sm ttw:text-muted-foreground",
61
+ children: v.email
62
+ }) : null,
63
+ v.methodLabel || v.fields.length > 0 ? /* @__PURE__ */ d(l, { children: [
64
+ /* @__PURE__ */ u(a, { className: "ttw:my-3" }),
65
+ v.methodLabel ? /* @__PURE__ */ u("p", {
66
+ className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
67
+ children: v.methodLabel
68
+ }) : null,
69
+ /* @__PURE__ */ u(e, {
70
+ variant: "form-review",
71
+ items: v.fields.map((e) => ({
72
+ label: e.label,
73
+ value: e.accountNumber ? /* @__PURE__ */ u(s, {
74
+ last4: e.accountNumber.slice(-4),
75
+ fullNumber: e.accountNumber,
76
+ labels: O.maskedAccountNumber
77
+ }) : e.value
78
+ }))
79
+ })
80
+ ] }) : null
162
81
  ]
163
- }),
164
- /* @__PURE__ */ S(te, {
165
- className: "ttw:pt-4 ttw:sm:gap-3",
166
- children: [/* @__PURE__ */ x(t, {
167
- type: "button",
168
- variant: "outline",
169
- onClick: W,
170
- children: q.cancelButton
171
- }), /* @__PURE__ */ x(t, {
172
- type: "button",
173
- loading: B,
174
- onClick: U,
175
- children: q.reviewButton
176
- })]
177
82
  })
178
83
  ]
179
84
  })
180
85
  });
181
86
  }
182
- export { w as SchedulePaymentDialog, w as default };
87
+ export { p as ReviewTransactionDialog, p as default };
@@ -1,2 +1,2 @@
1
- import "./index8.js";
1
+ import "./index9.js";
2
2
  import "./index10.js";
@@ -0,0 +1,33 @@
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/index12.js
3
+ var r = {
4
+ title: "Schedule payment",
5
+ stepLabel: "Step 1 of 2",
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
+ reviewButton: "Review payment",
16
+ cancelButton: "Cancel",
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 };
@@ -0,0 +1,9 @@
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js
2
+ var e = {
3
+ neutral: "ttw:text-foreground",
4
+ muted: "ttw:text-muted-foreground",
5
+ success: "ttw:text-success-foreground",
6
+ warning: "ttw:text-warning-foreground",
7
+ error: "ttw:text-destructive"
8
+ };
9
+ export { e as TONE_TEXT_CLASS };
@@ -0,0 +1,126 @@
1
+ import { Badge as e, FieldRequirement as t, FlowDialog as n, Label as r, RequiredFieldsLegend as i, Select as a, SelectContent as o, SelectItem as s, SelectTrigger as c, SelectValue as l, cn as u } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { AmountDueHeader as d } from "./index2.js";
3
+ import { PaymentDateField as f } from "./index3.js";
4
+ import { ReadOnlyAmountField as p } from "./index4.js";
5
+ import "./index5.js";
6
+ import { mergeSchedulePaymentDialogLabels as m } from "./index12.js";
7
+ import { TONE_TEXT_CLASS as h } from "./index13.js";
8
+ import { useId as g } from "react";
9
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
10
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js
11
+ var b = {
12
+ sufficient: h.muted,
13
+ warning: h.warning,
14
+ error: h.error
15
+ };
16
+ function x({ open: h, onOpenChange: x, amountDueLabel: S, amountDue: C, dueDateSuffix: w, paymentAmountLabel: T, paymentAmount: E, selectedDate: D, minDate: O, isToday: k, selectedAccountId: A, accounts: j, poweredByBankName: M, funds: N, errors: P, isAccountsLoading: F, isAccountsError: I, isSubmitting: L, onDateChange: R, onAccountChange: z, onReview: B, onCancel: V, testId: H, labels: U }) {
17
+ let W = m(U), G = g(), K = g(), q = F || I || j.length === 0, J = j.find((e) => e.id === A), Y = F ? W.loadingAccounts : I ? W.accountsError : j.length === 0 ? W.noAccounts : void 0;
18
+ return /* @__PURE__ */ v(n, {
19
+ open: h,
20
+ onOpenChange: (e) => e ? x(e) : V(),
21
+ title: W.title,
22
+ stepLabel: W.stepLabel,
23
+ onNext: B,
24
+ onCancel: V,
25
+ nextLoading: L,
26
+ labels: {
27
+ next: W.reviewButton,
28
+ cancel: W.cancelButton,
29
+ close: W.close
30
+ },
31
+ testIds: { content: H },
32
+ children: /* @__PURE__ */ y("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
34
+ children: [
35
+ /* @__PURE__ */ v(d, {
36
+ label: S,
37
+ amount: C,
38
+ suffix: w
39
+ }),
40
+ /* @__PURE__ */ v(i, { labels: W.requiredFieldsLegend }),
41
+ /* @__PURE__ */ y("div", {
42
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
43
+ children: [/* @__PURE__ */ v(p, {
44
+ label: T,
45
+ value: E
46
+ }), /* @__PURE__ */ v(f, {
47
+ value: D,
48
+ minDate: O,
49
+ isToday: k,
50
+ error: P?.paymentDate,
51
+ onChange: R,
52
+ labels: {
53
+ label: W.paymentDate,
54
+ placeholder: W.paymentDatePlaceholder,
55
+ today: W.today,
56
+ fieldMarkers: W.fieldMarkers
57
+ }
58
+ })]
59
+ }),
60
+ /* @__PURE__ */ y("div", {
61
+ className: "ttw:grid ttw:gap-2",
62
+ children: [
63
+ /* @__PURE__ */ v(r, {
64
+ id: G,
65
+ requirement: t.Required,
66
+ labels: W.fieldMarkers,
67
+ children: W.payFrom
68
+ }),
69
+ /* @__PURE__ */ y(a, {
70
+ value: A,
71
+ disabled: q,
72
+ onValueChange: z,
73
+ children: [/* @__PURE__ */ v(c, {
74
+ className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
75
+ "aria-labelledby": G,
76
+ "aria-required": !0,
77
+ "aria-invalid": P?.sourceAccount ? !0 : void 0,
78
+ "aria-describedby": P?.sourceAccount || Y ? K : void 0,
79
+ children: /* @__PURE__ */ v(l, {
80
+ placeholder: W.payFromPlaceholder,
81
+ children: J ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("span", {
82
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
83
+ children: [/* @__PURE__ */ v("span", {
84
+ className: "ttw:truncate",
85
+ children: J.primaryLabel
86
+ }), J.secondaryLabel ? /* @__PURE__ */ v("span", {
87
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
88
+ children: J.secondaryLabel
89
+ }) : null]
90
+ }), M ? /* @__PURE__ */ v(e, {
91
+ tone: "neutral",
92
+ className: "ttw:shrink-0",
93
+ children: W.poweredByBank(M)
94
+ }) : null] }) : null
95
+ })
96
+ }), /* @__PURE__ */ v(o, { children: j.map((e) => /* @__PURE__ */ v(s, {
97
+ value: e.id,
98
+ children: /* @__PURE__ */ y("span", {
99
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
100
+ children: [/* @__PURE__ */ v("span", {
101
+ className: "ttw:truncate",
102
+ children: e.primaryLabel
103
+ }), e.secondaryLabel ? /* @__PURE__ */ v("span", {
104
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
105
+ children: e.secondaryLabel
106
+ }) : null]
107
+ })
108
+ }, e.id)) })]
109
+ }),
110
+ P?.sourceAccount || Y ? /* @__PURE__ */ v("p", {
111
+ id: K,
112
+ role: I && !P?.sourceAccount ? "alert" : void 0,
113
+ className: u("ttw:text-sm", P?.sourceAccount || I ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
114
+ children: P?.sourceAccount ?? Y
115
+ }) : null,
116
+ N.message && !P?.sourceAccount ? /* @__PURE__ */ v("p", {
117
+ className: u("ttw:text-sm", b[N.state]),
118
+ children: N.message
119
+ }) : null
120
+ ]
121
+ })
122
+ ]
123
+ })
124
+ });
125
+ }
126
+ export { x as SchedulePaymentDialog, x as default };
@@ -0,0 +1,2 @@
1
+ import "./index12.js";
2
+ import "./index14.js";
@@ -1,31 +1,25 @@
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";
1
+ import { DisplayAmount as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js
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)
29
- };
4
+ function i({ label: i, amount: a, suffix: o }) {
5
+ return /* @__PURE__ */ r("div", {
6
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
7
+ children: [/* @__PURE__ */ n(t, {
8
+ variant: "caption",
9
+ color: "muted",
10
+ children: i
11
+ }), /* @__PURE__ */ r("div", {
12
+ className: "ttw:flex ttw:flex-wrap ttw:items-baseline ttw:gap-2",
13
+ children: [/* @__PURE__ */ n(e, {
14
+ component: "span",
15
+ children: a
16
+ }), o ? /* @__PURE__ */ n(t, {
17
+ component: "span",
18
+ variant: "caption",
19
+ color: "muted",
20
+ children: o
21
+ }) : null]
22
+ })]
23
+ });
30
24
  }
31
- export { r as MARK_AS_PAID_DIALOG_LABELS_EN, i as mergeMarkAsPaidDialogLabels };
25
+ export { i as AmountDueHeader };
@@ -1,129 +1,35 @@
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, FieldRequirement as l, Label as u, Popover as d, PopoverContent as f, PopoverTrigger as p, RequiredFieldsLegend as m, Textarea as h } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeMarkAsPaidDialogLabels as g } from "./index2.js";
3
- import { useId as _ } from "react";
4
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
5
- import { CalendarIcon as b } from "lucide-react";
1
+ import { DatePicker as e, FieldDescription as t, FieldError as n, FieldRequirement as r, Label as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { useId as a } from "react";
3
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js
7
- function x({ open: x, amountDue: S, dueDateSuffix: C, paymentAmount: w, selectedDate: T, selectedDateLabel: E, isToday: D, comment: O, isSubmitting: k, onDateChange: A, onCommentChange: j, onConfirm: M, onCancel: N, testId: P, confirmTestId: F, labels: I }) {
8
- let L = g(I), R = _(), z = _(), B = _(), V = _();
9
- return /* @__PURE__ */ v(r, {
10
- open: x,
11
- onOpenChange: (e) => e ? void 0 : N(),
12
- children: /* @__PURE__ */ y(i, {
13
- closeDisabled: k,
14
- "data-testid": P,
15
- labels: { close: L.close },
16
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
17
- children: [
18
- /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(c, { children: L.title }), /* @__PURE__ */ v(a, { children: L.description })] }),
19
- /* @__PURE__ */ y("div", {
20
- className: "ttw:flex ttw:flex-col ttw:gap-3",
21
- children: [
22
- /* @__PURE__ */ y("div", {
23
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
24
- children: [/* @__PURE__ */ v("p", {
25
- className: "ttw:text-base ttw:text-muted-foreground",
26
- children: L.amountDue
27
- }), /* @__PURE__ */ y("div", {
28
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
29
- children: [/* @__PURE__ */ v("p", {
30
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
31
- children: S
32
- }), C ? /* @__PURE__ */ v("p", {
33
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
34
- children: C
35
- }) : null]
36
- })]
37
- }),
38
- /* @__PURE__ */ v(m, { labels: L.requiredFieldsLegend }),
39
- /* @__PURE__ */ y("div", {
40
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
- children: [/* @__PURE__ */ y("div", {
42
- className: "ttw:grid ttw:gap-2.5",
43
- children: [/* @__PURE__ */ v(u, { children: L.paymentAmount }), /* @__PURE__ */ v("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: w
47
- })]
48
- }), /* @__PURE__ */ y("div", {
49
- className: "ttw:grid ttw:gap-2.5",
50
- children: [
51
- /* @__PURE__ */ v(u, {
52
- id: R,
53
- requirement: l.Required,
54
- labels: L.fieldMarkers,
55
- children: L.paymentDate
56
- }),
57
- /* @__PURE__ */ v("span", {
58
- id: B,
59
- className: "ttw:sr-only",
60
- children: L.fieldMarkers.requiredAccessibleText
61
- }),
62
- /* @__PURE__ */ y(d, { children: [/* @__PURE__ */ v(p, {
63
- asChild: !0,
64
- children: /* @__PURE__ */ y(t, {
65
- type: "button",
66
- variant: "outline",
67
- className: "ttw:justify-start ttw:gap-2",
68
- "aria-labelledby": `${R} ${z} ${B}`,
69
- children: [
70
- /* @__PURE__ */ v(b, { className: "ttw:size-4" }),
71
- /* @__PURE__ */ v("span", {
72
- id: z,
73
- children: E ?? L.paymentDatePlaceholder
74
- }),
75
- D ? /* @__PURE__ */ v(e, {
76
- variant: "secondary",
77
- children: L.today
78
- }) : null
79
- ]
80
- })
81
- }), /* @__PURE__ */ v(f, {
82
- align: "start",
83
- className: "ttw:w-auto ttw:p-0",
84
- children: /* @__PURE__ */ v(n, {
85
- mode: "single",
86
- selected: T,
87
- onSelect: A
88
- })
89
- })] })
90
- ]
91
- })]
92
- }),
93
- /* @__PURE__ */ y("div", {
94
- className: "ttw:grid ttw:gap-2.5",
95
- children: [/* @__PURE__ */ v(u, {
96
- htmlFor: V,
97
- requirement: l.Optional,
98
- labels: L.fieldMarkers,
99
- children: L.comments
100
- }), /* @__PURE__ */ v(h, {
101
- id: V,
102
- value: O,
103
- placeholder: L.commentsPlaceholder,
104
- onChange: (e) => j(e.target.value)
105
- })]
106
- })
107
- ]
108
- }),
109
- /* @__PURE__ */ y(o, {
110
- className: "ttw:pt-4 ttw:sm:gap-3",
111
- children: [/* @__PURE__ */ v(t, {
112
- type: "button",
113
- variant: "outline",
114
- onClick: N,
115
- children: L.cancelButton
116
- }), /* @__PURE__ */ v(t, {
117
- type: "button",
118
- "data-testid": F,
119
- disabled: !T,
120
- loading: k,
121
- onClick: M,
122
- children: L.confirmButton
123
- })]
124
- })
125
- ]
126
- })
5
+ function c({ value: c, minDate: l, isToday: u, error: d, onChange: f, labels: p }) {
6
+ let m = a(), h = a();
7
+ return /* @__PURE__ */ s("div", {
8
+ className: "ttw:grid ttw:content-start ttw:gap-2",
9
+ children: [
10
+ /* @__PURE__ */ o(i, {
11
+ htmlFor: m,
12
+ requirement: r.Required,
13
+ labels: p.fieldMarkers,
14
+ children: p.label
15
+ }),
16
+ /* @__PURE__ */ o(e, {
17
+ id: m,
18
+ value: c,
19
+ onChange: f,
20
+ minDate: l,
21
+ placeholder: p.placeholder,
22
+ "aria-invalid": d ? !0 : void 0,
23
+ "aria-describedby": d || u ? h : void 0
24
+ }),
25
+ d ? /* @__PURE__ */ o(n, {
26
+ id: h,
27
+ children: d
28
+ }) : u ? /* @__PURE__ */ o(t, {
29
+ id: h,
30
+ children: p.today
31
+ }) : null
32
+ ]
127
33
  });
128
34
  }
129
- export { x as MarkAsPaidDialog, x as default };
35
+ export { c as PaymentDateField };