@tesouro/embedded-components-react 0.5.141 → 0.5.144

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 (168) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
  164. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  165. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
  166. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
@@ -1,128 +1,2 @@
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 "./index101.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";
6
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.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
- "data-testid": P,
14
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
15
- children: [
16
- /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(c, { children: L.title }), /* @__PURE__ */ v(a, { children: L.description })] }),
17
- /* @__PURE__ */ y("div", {
18
- className: "ttw:flex ttw:flex-col ttw:gap-3",
19
- children: [
20
- /* @__PURE__ */ y("div", {
21
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
22
- children: [/* @__PURE__ */ v("p", {
23
- className: "ttw:text-base ttw:text-muted-foreground",
24
- children: L.amountDue
25
- }), /* @__PURE__ */ y("div", {
26
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
27
- children: [/* @__PURE__ */ v("p", {
28
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
29
- children: S
30
- }), C ? /* @__PURE__ */ v("p", {
31
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
32
- children: C
33
- }) : null]
34
- })]
35
- }),
36
- /* @__PURE__ */ v(m, { labels: L.requiredFieldsLegend }),
37
- /* @__PURE__ */ y("div", {
38
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
39
- children: [/* @__PURE__ */ y("div", {
40
- className: "ttw:grid ttw:gap-2.5",
41
- children: [/* @__PURE__ */ v(u, { children: L.paymentAmount }), /* @__PURE__ */ v("div", {
42
- "aria-disabled": !0,
43
- 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",
44
- children: w
45
- })]
46
- }), /* @__PURE__ */ y("div", {
47
- className: "ttw:grid ttw:gap-2.5",
48
- children: [
49
- /* @__PURE__ */ v(u, {
50
- id: R,
51
- requirement: l.Required,
52
- labels: L.fieldMarkers,
53
- children: L.paymentDate
54
- }),
55
- /* @__PURE__ */ v("span", {
56
- id: B,
57
- className: "ttw:sr-only",
58
- children: L.fieldMarkers.requiredAccessibleText
59
- }),
60
- /* @__PURE__ */ y(d, { children: [/* @__PURE__ */ v(p, {
61
- asChild: !0,
62
- children: /* @__PURE__ */ y(t, {
63
- type: "button",
64
- variant: "outline",
65
- className: "ttw:justify-start ttw:gap-2",
66
- "aria-labelledby": `${R} ${z} ${B}`,
67
- children: [
68
- /* @__PURE__ */ v(b, { className: "ttw:size-4" }),
69
- /* @__PURE__ */ v("span", {
70
- id: z,
71
- children: E ?? L.paymentDatePlaceholder
72
- }),
73
- D ? /* @__PURE__ */ v(e, {
74
- variant: "secondary",
75
- children: L.today
76
- }) : null
77
- ]
78
- })
79
- }), /* @__PURE__ */ v(f, {
80
- align: "start",
81
- className: "ttw:w-auto ttw:p-0",
82
- children: /* @__PURE__ */ v(n, {
83
- mode: "single",
84
- selected: T,
85
- onSelect: A
86
- })
87
- })] })
88
- ]
89
- })]
90
- }),
91
- /* @__PURE__ */ y("div", {
92
- className: "ttw:grid ttw:gap-2.5",
93
- children: [/* @__PURE__ */ v(u, {
94
- htmlFor: V,
95
- requirement: l.Optional,
96
- labels: L.fieldMarkers,
97
- children: L.comments
98
- }), /* @__PURE__ */ v(h, {
99
- id: V,
100
- value: O,
101
- placeholder: L.commentsPlaceholder,
102
- onChange: (e) => j(e.target.value)
103
- })]
104
- })
105
- ]
106
- }),
107
- /* @__PURE__ */ y(o, {
108
- className: "ttw:pt-4 ttw:sm:gap-3",
109
- children: [/* @__PURE__ */ v(t, {
110
- type: "button",
111
- variant: "outline",
112
- onClick: N,
113
- children: L.cancelButton
114
- }), /* @__PURE__ */ v(t, {
115
- type: "button",
116
- "data-testid": F,
117
- disabled: !T,
118
- loading: k,
119
- onClick: M,
120
- children: L.confirmButton
121
- })]
122
- })
123
- ]
124
- })
125
- });
126
- }
127
- //#endregion
128
- export { x as MarkAsPaidDialog, x as default };
1
+ import "./index100.js";
2
+ import "./index101.js";
@@ -1,2 +1,31 @@
1
- import "./index101.js";
2
- import "./index102.js";
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
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.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
+ fieldMarkers: e,
16
+ requiredFieldsLegend: t
17
+ };
18
+ function i(e) {
19
+ let t = {
20
+ ...r.fieldMarkers,
21
+ ...e?.fieldMarkers
22
+ };
23
+ return {
24
+ ...r,
25
+ ...e,
26
+ fieldMarkers: t,
27
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
28
+ };
29
+ }
30
+ //#endregion
31
+ export { r as MARK_AS_PAID_DIALOG_LABELS_EN, i as mergeMarkAsPaidDialogLabels };
@@ -1,33 +1,128 @@
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 { 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 "./index103.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";
2
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.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
- fieldMarkers: e,
18
- requiredFieldsLegend: t
19
- };
20
- function i(e) {
21
- let t = {
22
- ...r.fieldMarkers,
23
- ...e?.fieldMarkers
24
- };
25
- return {
26
- ...r,
27
- ...e,
28
- fieldMarkers: t,
29
- requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
30
- };
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
+ "data-testid": P,
14
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
15
+ children: [
16
+ /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(c, { children: L.title }), /* @__PURE__ */ v(a, { children: L.description })] }),
17
+ /* @__PURE__ */ y("div", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ children: [
20
+ /* @__PURE__ */ y("div", {
21
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
22
+ children: [/* @__PURE__ */ v("p", {
23
+ className: "ttw:text-base ttw:text-muted-foreground",
24
+ children: L.amountDue
25
+ }), /* @__PURE__ */ y("div", {
26
+ className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
27
+ children: [/* @__PURE__ */ v("p", {
28
+ className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
29
+ children: S
30
+ }), C ? /* @__PURE__ */ v("p", {
31
+ className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
32
+ children: C
33
+ }) : null]
34
+ })]
35
+ }),
36
+ /* @__PURE__ */ v(m, { labels: L.requiredFieldsLegend }),
37
+ /* @__PURE__ */ y("div", {
38
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
39
+ children: [/* @__PURE__ */ y("div", {
40
+ className: "ttw:grid ttw:gap-2.5",
41
+ children: [/* @__PURE__ */ v(u, { children: L.paymentAmount }), /* @__PURE__ */ v("div", {
42
+ "aria-disabled": !0,
43
+ 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",
44
+ children: w
45
+ })]
46
+ }), /* @__PURE__ */ y("div", {
47
+ className: "ttw:grid ttw:gap-2.5",
48
+ children: [
49
+ /* @__PURE__ */ v(u, {
50
+ id: R,
51
+ requirement: l.Required,
52
+ labels: L.fieldMarkers,
53
+ children: L.paymentDate
54
+ }),
55
+ /* @__PURE__ */ v("span", {
56
+ id: B,
57
+ className: "ttw:sr-only",
58
+ children: L.fieldMarkers.requiredAccessibleText
59
+ }),
60
+ /* @__PURE__ */ y(d, { children: [/* @__PURE__ */ v(p, {
61
+ asChild: !0,
62
+ children: /* @__PURE__ */ y(t, {
63
+ type: "button",
64
+ variant: "outline",
65
+ className: "ttw:justify-start ttw:gap-2",
66
+ "aria-labelledby": `${R} ${z} ${B}`,
67
+ children: [
68
+ /* @__PURE__ */ v(b, { className: "ttw:size-4" }),
69
+ /* @__PURE__ */ v("span", {
70
+ id: z,
71
+ children: E ?? L.paymentDatePlaceholder
72
+ }),
73
+ D ? /* @__PURE__ */ v(e, {
74
+ variant: "secondary",
75
+ children: L.today
76
+ }) : null
77
+ ]
78
+ })
79
+ }), /* @__PURE__ */ v(f, {
80
+ align: "start",
81
+ className: "ttw:w-auto ttw:p-0",
82
+ children: /* @__PURE__ */ v(n, {
83
+ mode: "single",
84
+ selected: T,
85
+ onSelect: A
86
+ })
87
+ })] })
88
+ ]
89
+ })]
90
+ }),
91
+ /* @__PURE__ */ y("div", {
92
+ className: "ttw:grid ttw:gap-2.5",
93
+ children: [/* @__PURE__ */ v(u, {
94
+ htmlFor: V,
95
+ requirement: l.Optional,
96
+ labels: L.fieldMarkers,
97
+ children: L.comments
98
+ }), /* @__PURE__ */ v(h, {
99
+ id: V,
100
+ value: O,
101
+ placeholder: L.commentsPlaceholder,
102
+ onChange: (e) => j(e.target.value)
103
+ })]
104
+ })
105
+ ]
106
+ }),
107
+ /* @__PURE__ */ y(o, {
108
+ className: "ttw:pt-4 ttw:sm:gap-3",
109
+ children: [/* @__PURE__ */ v(t, {
110
+ type: "button",
111
+ variant: "outline",
112
+ onClick: N,
113
+ children: L.cancelButton
114
+ }), /* @__PURE__ */ v(t, {
115
+ type: "button",
116
+ "data-testid": F,
117
+ disabled: !T,
118
+ loading: k,
119
+ onClick: M,
120
+ children: L.confirmButton
121
+ })]
122
+ })
123
+ ]
124
+ })
125
+ });
31
126
  }
32
127
  //#endregion
33
- export { r as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, i as mergeSchedulePaymentDialogLabels };
128
+ export { x as MarkAsPaidDialog, x as default };
@@ -1,10 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.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"
8
- };
9
- //#endregion
10
- export { e as TONE_TEXT_CLASS };
1
+ import "./index103.js";
2
+ import "./index104.js";
@@ -1,181 +1,33 @@
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 re, SelectItem as p, SelectTrigger as m, SelectValue as h, cn as g } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeSchedulePaymentDialogLabels as _ } from "./index104.js";
3
- import { TONE_TEXT_CLASS as v } from "./index105.js";
4
- import { useId as y } from "react";
5
- import { Fragment as ie, jsx as b, jsxs as x } from "react/jsx-runtime";
6
- import { CalendarIcon as S } from "lucide-react";
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";
7
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js
8
- var C = {
9
- sufficient: v.muted,
10
- warning: v.warning,
11
- error: v.error
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
+ fieldMarkers: e,
18
+ requiredFieldsLegend: t
12
19
  };
13
- function w({ open: v, 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 = _(K), J = y(), Y = y(), X = y(), Z = y(), Q = R || z || F.length === 0, $ = F.find((e) => e.id === P);
15
- return /* @__PURE__ */ b(r, {
16
- open: v,
17
- onOpenChange: (e) => e ? w(e) : W(),
18
- children: /* @__PURE__ */ x(i, {
19
- "data-testid": G,
20
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
21
- children: [
22
- /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(o, { children: q.title }), /* @__PURE__ */ b(ee, {
23
- className: "ttw:sr-only",
24
- children: q.hiddenDescription
25
- })] }),
26
- /* @__PURE__ */ x("div", {
27
- className: "ttw:flex ttw:flex-col ttw:gap-3",
28
- children: [
29
- /* @__PURE__ */ x("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
31
- children: [/* @__PURE__ */ b("p", {
32
- className: "ttw:text-base ttw:text-muted-foreground",
33
- children: T
34
- }), /* @__PURE__ */ x("div", {
35
- className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
36
- children: [/* @__PURE__ */ b("p", {
37
- className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
38
- children: E
39
- }), D ? /* @__PURE__ */ b("p", {
40
- className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
41
- children: D
42
- }) : null]
43
- })]
44
- }),
45
- /* @__PURE__ */ b(d, { labels: q.requiredFieldsLegend }),
46
- /* @__PURE__ */ x("div", {
47
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
48
- children: [/* @__PURE__ */ x("div", {
49
- className: "ttw:grid ttw:gap-2.5",
50
- children: [/* @__PURE__ */ b(c, { children: O }), /* @__PURE__ */ b("div", {
51
- "aria-disabled": !0,
52
- 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",
53
- children: k
54
- })]
55
- }), /* @__PURE__ */ x("div", {
56
- className: "ttw:grid ttw:gap-2.5",
57
- children: [
58
- /* @__PURE__ */ b(c, {
59
- id: J,
60
- requirement: s.Required,
61
- labels: q.fieldMarkers,
62
- children: q.paymentDate
63
- }),
64
- /* @__PURE__ */ b("span", {
65
- id: X,
66
- className: "ttw:sr-only",
67
- children: q.fieldMarkers.requiredAccessibleText
68
- }),
69
- /* @__PURE__ */ x(l, { children: [/* @__PURE__ */ b(ne, {
70
- asChild: !0,
71
- children: /* @__PURE__ */ x(t, {
72
- type: "button",
73
- variant: "outline",
74
- className: "ttw:justify-start ttw:gap-2",
75
- "aria-labelledby": `${J} ${Y} ${X}`,
76
- children: [
77
- /* @__PURE__ */ b(S, { className: "ttw:size-4" }),
78
- /* @__PURE__ */ b("span", {
79
- id: Y,
80
- children: j ?? q.paymentDatePlaceholder
81
- }),
82
- N ? /* @__PURE__ */ b(e, {
83
- variant: "secondary",
84
- children: q.today
85
- }) : null
86
- ]
87
- })
88
- }), /* @__PURE__ */ b(u, {
89
- align: "start",
90
- className: "ttw:w-auto ttw:p-0",
91
- children: /* @__PURE__ */ b(n, {
92
- mode: "single",
93
- selected: A,
94
- onSelect: V,
95
- disabled: M
96
- })
97
- })] })
98
- ]
99
- })]
100
- }),
101
- /* @__PURE__ */ x("div", {
102
- className: "ttw:grid ttw:gap-2.5",
103
- children: [
104
- /* @__PURE__ */ b(c, {
105
- id: Z,
106
- requirement: s.Required,
107
- labels: q.fieldMarkers,
108
- children: q.payFrom
109
- }),
110
- /* @__PURE__ */ x(f, {
111
- value: P,
112
- disabled: Q,
113
- onValueChange: H,
114
- children: [/* @__PURE__ */ b(m, {
115
- 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",
116
- "aria-labelledby": Z,
117
- "aria-required": !0,
118
- children: /* @__PURE__ */ b(h, {
119
- placeholder: q.payFromPlaceholder,
120
- children: $ ? /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ x("span", {
121
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
122
- children: [/* @__PURE__ */ b("span", {
123
- className: "ttw:truncate",
124
- children: $.primaryLabel
125
- }), $.secondaryLabel ? /* @__PURE__ */ b("span", {
126
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
127
- children: $.secondaryLabel
128
- }) : null]
129
- }), I ? /* @__PURE__ */ b(e, {
130
- variant: "secondary",
131
- className: "ttw:shrink-0",
132
- children: q.poweredByBank(I)
133
- }) : null] }) : null
134
- })
135
- }), /* @__PURE__ */ b(re, { children: F.map((e) => /* @__PURE__ */ b(p, {
136
- value: e.id,
137
- children: /* @__PURE__ */ x("span", {
138
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
139
- children: [/* @__PURE__ */ b("span", {
140
- className: "ttw:truncate",
141
- children: e.primaryLabel
142
- }), e.secondaryLabel ? /* @__PURE__ */ b("span", {
143
- className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
144
- children: e.secondaryLabel
145
- }) : null]
146
- })
147
- }, e.id)) })]
148
- }),
149
- Q ? /* @__PURE__ */ b("p", {
150
- className: g("ttw:text-sm", z ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
151
- role: z ? "alert" : void 0,
152
- children: R ? q.loadingAccounts : z ? q.accountsError : q.noAccounts
153
- }) : null
154
- ]
155
- }),
156
- L.message ? /* @__PURE__ */ b("p", {
157
- className: g("ttw:text-sm", C[L.state]),
158
- children: L.message
159
- }) : null
160
- ]
161
- }),
162
- /* @__PURE__ */ x(te, {
163
- className: "ttw:pt-4 ttw:sm:gap-3",
164
- children: [/* @__PURE__ */ b(t, {
165
- type: "button",
166
- variant: "outline",
167
- onClick: W,
168
- children: q.cancelButton
169
- }), /* @__PURE__ */ b(t, {
170
- type: "button",
171
- loading: B,
172
- onClick: U,
173
- children: q.reviewButton
174
- })]
175
- })
176
- ]
177
- })
178
- });
20
+ function i(e) {
21
+ let t = {
22
+ ...r.fieldMarkers,
23
+ ...e?.fieldMarkers
24
+ };
25
+ return {
26
+ ...r,
27
+ ...e,
28
+ fieldMarkers: t,
29
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
30
+ };
179
31
  }
180
32
  //#endregion
181
- export { w as SchedulePaymentDialog, w as default };
33
+ export { r as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, i as mergeSchedulePaymentDialogLabels };
@@ -1,2 +1,10 @@
1
- import "./index104.js";
2
- import "./index106.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.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"
8
+ };
9
+ //#endregion
10
+ export { e as TONE_TEXT_CLASS };