@tesouro/embedded-components-react 0.2.317 → 0.2.319

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 (136) hide show
  1. package/README.md +5 -4
  2. package/dist/index.css +9 -0
  3. package/dist/index.d.ts +4 -1
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.d.ts +4 -1
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +170 -32
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +13 -32
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +30 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +50 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +36 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +11 -8
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +33 -16
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +47 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +18 -63
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +40 -131
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +48 -11
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -20
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +18 -16
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +29 -97
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -9
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +13 -109
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +24 -4
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +30 -21
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +19 -46
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +49 -76
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +73 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +50 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +4 -50
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -43
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +38 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +115 -31
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +56 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +206 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +195 -5
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +58 -64
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +46 -139
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +34 -5
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +155 -6
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +3 -60
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +36 -7
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +92 -73
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +9 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +191 -6
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -114
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +78 -21
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +92 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +3 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -206
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +45 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +53 -0
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +11 -0
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +18 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +8 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +79 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +148 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +5 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +8 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -197
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +85 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +115 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -0
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +25 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +30 -41
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +38 -30
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +20 -151
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +158 -31
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +29 -17
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -7
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +13 -47
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +24 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -22
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +31 -283
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +261 -1
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +2 -16
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +7 -118
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +49 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +20 -94
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +286 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -12
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +14 -56
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +120 -2
  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 +8 -157
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +96 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -7
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +11 -42
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +57 -1
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -14
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +50 -20
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +138 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -54
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +5 -227
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +37 -188
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -10
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +55 -5
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +229 -84
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +195 -0
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +10 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -3
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +88 -25
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -14
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +5 -87
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +30 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -0
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +7 -0
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +34 -0
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -0
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +12 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +106 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +18 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +10 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +170 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +14 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +89 -0
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -0
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -156
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +157 -97
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1834 -1819
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +10 -10
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  135. package/package.json +1 -1
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +0 -2
@@ -1,2 +1,262 @@
1
+ import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { BillStatusBadge as a } from "./index14.js";
1
5
  import "./index15.js";
2
- import "./index16.js";
6
+ import { mergeBillDetailBodyLabels as o } from "./index16.js";
7
+ import { BillActionButtons as s } from "./index12.js";
8
+ import { AchFieldGroup as c } from "../../../shared/counterpart-management/ui/dist/index5.js";
9
+ import "../../../shared/counterpart-management/ui/dist/index.js";
10
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
+ import { AlertTriangle as d, ChevronRight as f } from "lucide-react";
12
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
13
+ var p = "ttw:text-base ttw:font-semibold", m = "ttw:px-3 ttw:py-2", h = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
14
+ function g({ view: g, actions: _ = [], scheduledSummary: v, paymentInstructionsForm: y, isLoading: b, isError: x, labels: S }) {
15
+ let C = o(S);
16
+ if (x) return /* @__PURE__ */ l(i, {
17
+ title: C.errorTitle,
18
+ description: C.errorDescription
19
+ });
20
+ if (b || !g) return /* @__PURE__ */ u("div", {
21
+ "aria-hidden": !0,
22
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
23
+ children: [
24
+ /* @__PURE__ */ l(n, { className: "ttw:h-40 ttw:w-full" }),
25
+ /* @__PURE__ */ l(n, { className: "ttw:h-32 ttw:w-full" }),
26
+ /* @__PURE__ */ l(n, { className: "ttw:h-24 ttw:w-full" })
27
+ ]
28
+ });
29
+ let w = !g.payTo.paymentInstructionsLabel && y;
30
+ return /* @__PURE__ */ u("div", {
31
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
32
+ children: [
33
+ w ? /* @__PURE__ */ u("div", {
34
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
35
+ children: [
36
+ /* @__PURE__ */ l(d, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
37
+ /* @__PURE__ */ l("p", {
38
+ className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
39
+ children: C.missingPaymentInstructionsBanner
40
+ }),
41
+ /* @__PURE__ */ l(t, {
42
+ type: "button",
43
+ variant: "outline",
44
+ size: "sm",
45
+ onClick: y.onOpen,
46
+ children: C.addPaymentInstructions
47
+ })
48
+ ]
49
+ }) : null,
50
+ /* @__PURE__ */ u("section", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
52
+ children: [
53
+ /* @__PURE__ */ u("div", {
54
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
55
+ children: [/* @__PURE__ */ l("span", {
56
+ className: "ttw:text-sm ttw:text-muted-foreground",
57
+ children: C.amountDueHeading
58
+ }), /* @__PURE__ */ l("span", {
59
+ className: "ttw:text-3xl ttw:font-semibold",
60
+ children: g.amountDue
61
+ })]
62
+ }),
63
+ /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(a, {
64
+ status: g.status,
65
+ tone: g.statusTone,
66
+ labels: C.statusBadge
67
+ }) }),
68
+ /* @__PURE__ */ u("div", {
69
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
70
+ children: [/* @__PURE__ */ u("div", {
71
+ className: "ttw:flex ttw:flex-col",
72
+ children: [/* @__PURE__ */ l("span", {
73
+ className: "ttw:text-xs ttw:text-muted-foreground",
74
+ children: C.invoiceDateLabel
75
+ }), /* @__PURE__ */ l("span", {
76
+ className: "ttw:text-sm ttw:font-medium",
77
+ children: g.invoiceDateLabel
78
+ })]
79
+ }), /* @__PURE__ */ u("div", {
80
+ className: "ttw:flex ttw:flex-col",
81
+ children: [/* @__PURE__ */ l("span", {
82
+ className: "ttw:text-xs ttw:text-muted-foreground",
83
+ children: C.dueDateLabel
84
+ }), /* @__PURE__ */ l("span", {
85
+ className: "ttw:text-sm ttw:font-medium",
86
+ children: g.dueDateLabel
87
+ })]
88
+ })]
89
+ }),
90
+ v ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(e, {
91
+ variant: "outline",
92
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
93
+ children: v
94
+ }) }) : _.length ? /* @__PURE__ */ l("div", {
95
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
96
+ children: /* @__PURE__ */ l(s, { actions: _ })
97
+ }) : null
98
+ ]
99
+ }),
100
+ /* @__PURE__ */ u("section", {
101
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
102
+ children: [
103
+ /* @__PURE__ */ l("h3", {
104
+ className: p,
105
+ children: C.payToHeading
106
+ }),
107
+ /* @__PURE__ */ u("div", {
108
+ className: h,
109
+ children: [/* @__PURE__ */ l("span", {
110
+ className: "ttw:text-sm ttw:text-muted-foreground",
111
+ children: C.vendorRow
112
+ }), /* @__PURE__ */ u("div", {
113
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
114
+ children: [/* @__PURE__ */ u("div", {
115
+ className: "ttw:flex ttw:flex-col",
116
+ children: [/* @__PURE__ */ l("span", {
117
+ className: "ttw:text-sm ttw:font-medium ttw:text-primary",
118
+ children: g.payTo.name
119
+ }), g.payTo.email ? /* @__PURE__ */ l("span", {
120
+ className: "ttw:text-xs ttw:text-muted-foreground",
121
+ children: g.payTo.email
122
+ }) : null]
123
+ }), /* @__PURE__ */ l(f, {
124
+ "aria-hidden": !0,
125
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
126
+ })]
127
+ })]
128
+ }),
129
+ /* @__PURE__ */ u("div", {
130
+ className: h,
131
+ children: [/* @__PURE__ */ l("span", {
132
+ className: "ttw:text-sm ttw:text-muted-foreground",
133
+ children: C.paymentInstructionsRow
134
+ }), /* @__PURE__ */ u("div", {
135
+ className: "ttw:flex ttw:items-center ttw:gap-2",
136
+ children: [g.payTo.paymentInstructionsLabel ? /* @__PURE__ */ l("span", {
137
+ className: "ttw:text-sm ttw:font-medium",
138
+ children: g.payTo.paymentInstructionsLabel
139
+ }) : y ? /* @__PURE__ */ l("button", {
140
+ type: "button",
141
+ onClick: y.onOpen,
142
+ className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
143
+ children: C.addPaymentInstructions
144
+ }) : /* @__PURE__ */ l("span", {
145
+ className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
146
+ children: C.addPaymentInstructions
147
+ }), /* @__PURE__ */ l(f, {
148
+ "aria-hidden": !0,
149
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
150
+ })]
151
+ })]
152
+ }),
153
+ y?.isOpen ? /* @__PURE__ */ u("div", {
154
+ className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
155
+ children: [/* @__PURE__ */ l(c, {
156
+ idPrefix: "bill-detail-payment-instructions",
157
+ values: y.values,
158
+ errors: y.errors,
159
+ onChange: y.onChange
160
+ }), /* @__PURE__ */ u("div", {
161
+ className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
162
+ children: [/* @__PURE__ */ l(t, {
163
+ type: "button",
164
+ variant: "ghost",
165
+ onClick: y.onCancel,
166
+ children: C.paymentInstructionsCancel
167
+ }), /* @__PURE__ */ l(t, {
168
+ type: "button",
169
+ loading: y.isSaving,
170
+ onClick: y.onSave,
171
+ children: C.paymentInstructionsSave
172
+ })]
173
+ })]
174
+ }) : null
175
+ ]
176
+ }),
177
+ /* @__PURE__ */ l("dl", {
178
+ className: "ttw:flex ttw:flex-col",
179
+ children: g.invoiceFields.map((e) => /* @__PURE__ */ u("div", {
180
+ className: h,
181
+ children: [/* @__PURE__ */ l("dt", {
182
+ className: "ttw:text-sm ttw:text-muted-foreground",
183
+ children: e.label
184
+ }), /* @__PURE__ */ l("dd", {
185
+ className: "ttw:text-right ttw:text-sm ttw:font-medium",
186
+ children: e.value
187
+ })]
188
+ }, e.label))
189
+ }),
190
+ /* @__PURE__ */ l("section", { children: /* @__PURE__ */ u("table", {
191
+ className: "ttw:w-full ttw:text-sm",
192
+ children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", {
193
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
194
+ children: [
195
+ /* @__PURE__ */ l("th", {
196
+ className: r(m, "ttw:text-left ttw:font-normal"),
197
+ children: C.descriptionAndGlCodeColumn
198
+ }),
199
+ /* @__PURE__ */ l("th", {
200
+ className: r(m, "ttw:text-right ttw:font-normal"),
201
+ children: C.qtyPriceColumn
202
+ }),
203
+ /* @__PURE__ */ l("th", {
204
+ className: r(m, "ttw:text-right ttw:font-normal"),
205
+ children: C.amountColumn
206
+ })
207
+ ]
208
+ }) }), /* @__PURE__ */ u("tbody", { children: [g.lineItems.map((e) => /* @__PURE__ */ u("tr", {
209
+ className: "ttw:border-b ttw:border-border",
210
+ children: [
211
+ /* @__PURE__ */ l("td", {
212
+ className: m,
213
+ children: /* @__PURE__ */ u("div", {
214
+ className: "ttw:flex ttw:flex-col",
215
+ children: [/* @__PURE__ */ l("span", { children: e.description }), /* @__PURE__ */ l("span", {
216
+ className: "ttw:text-xs ttw:text-muted-foreground",
217
+ children: e.glCodeLabel
218
+ })]
219
+ })
220
+ }),
221
+ /* @__PURE__ */ l("td", {
222
+ className: r(m, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
223
+ children: e.qtyPriceLabel
224
+ }),
225
+ /* @__PURE__ */ l("td", {
226
+ className: r(m, "ttw:text-right ttw:whitespace-nowrap"),
227
+ children: e.amount
228
+ })
229
+ ]
230
+ }, e.id)), g.amountRows.map((e) => /* @__PURE__ */ u("tr", {
231
+ className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
232
+ children: [/* @__PURE__ */ l("td", {
233
+ colSpan: 2,
234
+ className: m,
235
+ children: e.label
236
+ }), /* @__PURE__ */ l("td", {
237
+ className: r(m, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
238
+ children: e.value
239
+ })]
240
+ }, e.label))] })]
241
+ }) }),
242
+ g.history.length ? /* @__PURE__ */ u("section", {
243
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
244
+ children: [/* @__PURE__ */ l("h3", {
245
+ className: p,
246
+ children: C.historyHeading
247
+ }), /* @__PURE__ */ l("ul", {
248
+ className: "ttw:flex ttw:flex-col",
249
+ children: g.history.map((e) => /* @__PURE__ */ u("li", {
250
+ className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
251
+ children: [/* @__PURE__ */ l("span", {
252
+ className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
253
+ children: e.dateLabel
254
+ }), /* @__PURE__ */ l("span", { children: e.description })]
255
+ }, e.id))
256
+ })]
257
+ }) : null
258
+ ]
259
+ });
260
+ }
261
+ //#endregion
262
+ export { g as BillDetailBody, g as default };
@@ -1,16 +1,2 @@
1
- import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../shared/counterpart-management/ui/dist/index2.js";
2
- import "../../../shared/counterpart-management/ui/dist/index.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js
4
- var t = {
5
- payToHeading: "Pay to",
6
- editAction: "Edit",
7
- clearAction: "Clear",
8
- paymentInstructionsHeading: "Payment instructions",
9
- paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
10
- addPaymentInstructions: "Add payment instructions",
11
- ach: e,
12
- revealField: (e) => `Show ${e.toLowerCase()}`,
13
- hideField: (e) => `Hide ${e.toLowerCase()}`
14
- };
15
- //#endregion
16
- export { t as VENDOR_SUMMARY_CARD_LABELS_EN };
1
+ import "./index16.js";
2
+ import "./index17.js";
@@ -1,120 +1,9 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { AchFieldGroup as t } from "../../../shared/counterpart-management/ui/dist/index5.js";
3
- import "../../../shared/counterpart-management/ui/dist/index.js";
4
- import { VENDOR_SUMMARY_CARD_LABELS_EN as n } from "./index18.js";
5
- import { useState as r } from "react";
6
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import { Eye as s, EyeOff as c, Pencil as l, Plus as u, X as d } from "lucide-react";
8
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
9
- function f({ field: e, labels: t }) {
10
- let [n, i] = r(!1), l = !!e.maskedValue, u = l && !n ? e.maskedValue : e.value;
11
- return /* @__PURE__ */ o("div", {
12
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm",
13
- children: [
14
- /* @__PURE__ */ a("span", {
15
- className: "ttw:w-44 ttw:shrink-0 ttw:text-muted-foreground",
16
- children: e.label
17
- }),
18
- /* @__PURE__ */ a("span", {
19
- className: "ttw:text-foreground",
20
- children: u
21
- }),
22
- l ? /* @__PURE__ */ a("button", {
23
- type: "button",
24
- onClick: () => i((e) => !e),
25
- "aria-label": n ? t.hideField(e.label) : t.revealField(e.label),
26
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
27
- children: a(n ? c : s, { className: "ttw:size-4" })
28
- }) : null
29
- ]
30
- });
31
- }
32
- function p({ summary: r, onEdit: s, onClear: c, paymentInstructions: p, testId: m, labels: h }) {
33
- let g = {
34
- ...n,
35
- ...h,
36
- ach: {
37
- ...n.ach,
38
- ...h?.ach
39
- }
40
- };
41
- return /* @__PURE__ */ o("div", {
42
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
43
- "data-testid": m,
44
- children: [/* @__PURE__ */ o("div", {
45
- className: "ttw:flex ttw:items-start ttw:justify-between",
46
- children: [/* @__PURE__ */ o("div", {
47
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
48
- children: [
49
- /* @__PURE__ */ a("span", {
50
- className: "ttw:text-xs ttw:text-muted-foreground",
51
- children: g.payToHeading
52
- }),
53
- /* @__PURE__ */ a("span", {
54
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
55
- children: r.name
56
- }),
57
- /* @__PURE__ */ a("span", {
58
- className: "ttw:text-sm ttw:text-muted-foreground",
59
- children: r.email
60
- })
61
- ]
62
- }), /* @__PURE__ */ o("div", {
63
- className: "ttw:flex ttw:items-center ttw:gap-1",
64
- children: [s ? /* @__PURE__ */ a(e, {
65
- type: "button",
66
- variant: "ghost",
67
- size: "icon",
68
- "aria-label": g.editAction,
69
- onClick: s,
70
- children: /* @__PURE__ */ a(l, { className: "ttw:size-4" })
71
- }) : null, c ? /* @__PURE__ */ a(e, {
72
- type: "button",
73
- variant: "ghost",
74
- size: "icon",
75
- "aria-label": g.clearAction,
76
- onClick: c,
77
- children: /* @__PURE__ */ a(d, { className: "ttw:size-4" })
78
- }) : null]
79
- })]
80
- }), r.fields.length ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("p", {
81
- className: "ttw:mt-3 ttw:text-xs ttw:text-muted-foreground",
82
- children: r.methodLabel
83
- }), /* @__PURE__ */ a("div", {
84
- className: "ttw:mt-2 ttw:flex ttw:flex-col ttw:gap-1",
85
- children: r.fields.map((e) => /* @__PURE__ */ a(f, {
86
- field: e,
87
- labels: g
88
- }, `${e.label}:${e.value}:${e.maskedValue ?? ""}`))
89
- })] }) : /* @__PURE__ */ o("div", {
90
- className: "ttw:mt-4 ttw:flex ttw:flex-col ttw:gap-3",
91
- children: [/* @__PURE__ */ o("div", {
92
- className: "ttw:flex ttw:flex-col ttw:gap-1",
93
- children: [/* @__PURE__ */ a("p", {
94
- className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
95
- children: g.paymentInstructionsHeading
96
- }), /* @__PURE__ */ a("p", {
97
- className: "ttw:text-sm ttw:text-muted-foreground",
98
- children: g.paymentInstructionsDescription
99
- })]
100
- }), p?.isOpen ? /* @__PURE__ */ a(t, {
101
- idPrefix: "vendor-summary-ach",
102
- values: p.values,
103
- errors: p.errors,
104
- onChange: p.onChange,
105
- labels: g.ach
106
- }) : p ? /* @__PURE__ */ o(e, {
107
- type: "button",
108
- variant: "link",
109
- className: "ttw:w-fit ttw:px-0",
110
- onClick: p.onOpen,
111
- children: [/* @__PURE__ */ a(u, { className: "ttw:size-4" }), g.addPaymentInstructions]
112
- }) : /* @__PURE__ */ a("p", {
113
- className: "ttw:text-sm ttw:text-muted-foreground",
114
- children: r.methodLabel
115
- })]
116
- })]
117
- });
118
- }
2
+ var e = {
3
+ invoiceNumber: "Invoice number",
4
+ invoiceDate: "Invoice date",
5
+ dueDate: "Due date",
6
+ poNumber: "PO number (optional)"
7
+ };
119
8
  //#endregion
120
- export { p as VendorSummaryCard, p as default };
9
+ export { e as BILL_FORM_FIELDS_LABELS_EN };
@@ -1,2 +1,49 @@
1
- import "./index18.js";
2
- import "./index19.js";
1
+ import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index19.js";
3
+ import { useId as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js
6
+ function o({ values: o, errors: s, onChange: c, disabled: l, testId: u, labels: d }) {
7
+ let f = {
8
+ ...n,
9
+ ...d
10
+ }, p = r(), m = (n, r, u) => {
11
+ let d = `${p}-${n}`, f = `${d}-error`, m = s?.[n];
12
+ return /* @__PURE__ */ a("div", {
13
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
14
+ children: [
15
+ /* @__PURE__ */ i(t, {
16
+ htmlFor: d,
17
+ children: r
18
+ }),
19
+ /* @__PURE__ */ i(e, {
20
+ id: d,
21
+ type: u,
22
+ value: o[n],
23
+ disabled: l,
24
+ "aria-invalid": m ? !0 : void 0,
25
+ "aria-describedby": m ? f : void 0,
26
+ onChange: (e) => c({ [n]: e.target.value })
27
+ }),
28
+ m ? /* @__PURE__ */ i("p", {
29
+ id: f,
30
+ className: "ttw:text-sm ttw:text-destructive",
31
+ children: m
32
+ }) : null
33
+ ]
34
+ });
35
+ };
36
+ return /* @__PURE__ */ a("div", {
37
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
38
+ "data-testid": u,
39
+ children: [/* @__PURE__ */ a("div", {
40
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
+ children: [m("invoiceDate", f.invoiceDate, "date"), m("dueDate", f.dueDate, "date")]
42
+ }), /* @__PURE__ */ a("div", {
43
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
44
+ children: [m("invoiceNumber", f.invoiceNumber), m("poNumber", f.poNumber)]
45
+ })]
46
+ });
47
+ }
48
+ //#endregion
49
+ export { o as BillFormFields, o as default };
@@ -1,10 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
2
- var e = {
3
- fieldLabel: "Select or add vendor",
4
- placeholder: "Search",
5
- loading: "Searching vendors...",
6
- emptyResults: "No vendors found",
7
- addVendorAction: "Add vendor"
8
- };
9
- //#endregion
10
- export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
1
+ import "./index19.js";
2
+ import "./index20.js";
@@ -1,96 +1,22 @@
1
- import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, Label as o, Popover as s, PopoverContent as c, PopoverTrigger as l, Skeleton as u, cn as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as f } from "./index21.js";
3
- import { useId as p, useState as m } from "react";
4
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
- import { Plus as _, Search as v } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js
7
- var y = 5, b = "ttw:min-h-44";
8
- function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
9
- let O = {
10
- ...f,
11
- ...D
12
- }, k = p(), [A, j] = m(!1);
13
- return /* @__PURE__ */ g("div", {
14
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
15
- "data-testid": E,
16
- children: [/* @__PURE__ */ h(o, {
17
- htmlFor: k,
18
- children: O.fieldLabel
19
- }), /* @__PURE__ */ g(s, {
20
- open: A,
21
- onOpenChange: j,
22
- children: [/* @__PURE__ */ h(l, {
23
- asChild: !0,
24
- children: /* @__PURE__ */ g("button", {
25
- type: "button",
26
- id: k,
27
- role: "combobox",
28
- "aria-expanded": A,
29
- className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
30
- children: [/* @__PURE__ */ h(v, {
31
- "aria-hidden": !0,
32
- className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
33
- }), /* @__PURE__ */ h("span", {
34
- className: d("ttw:min-w-0 ttw:flex-1 ttw:truncate", !x && "ttw:text-muted-foreground"),
35
- children: x || O.placeholder
36
- })]
37
- })
38
- }), /* @__PURE__ */ h(c, {
39
- align: "start",
40
- className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
41
- children: /* @__PURE__ */ g(e, {
42
- shouldFilter: !1,
43
- children: [/* @__PURE__ */ h(n, {
44
- value: x,
45
- onValueChange: S,
46
- placeholder: O.placeholder,
47
- "aria-label": O.placeholder
48
- }), /* @__PURE__ */ g(i, {
49
- className: d("ttw:max-h-72", b),
50
- children: [
51
- w ? /* @__PURE__ */ g("div", {
52
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
53
- "aria-busy": "true",
54
- children: [/* @__PURE__ */ h("span", {
55
- className: "ttw:sr-only",
56
- children: O.loading
57
- }), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
58
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
59
- children: [/* @__PURE__ */ h(u, {
60
- height: 14,
61
- width: "55%"
62
- }), /* @__PURE__ */ h(u, {
63
- height: 14,
64
- width: "30%"
65
- })]
66
- }, t))]
67
- }) : C.length === 0 && x ? /* @__PURE__ */ h("div", {
68
- className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
69
- children: O.emptyResults
70
- }) : C.length > 0 ? /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
71
- value: `${e.name} ${e.email} ${t}`,
72
- onSelect: () => e.onSelect(),
73
- children: [/* @__PURE__ */ h("span", {
74
- className: "ttw:text-foreground",
75
- children: e.name
76
- }), /* @__PURE__ */ h("span", {
77
- className: "ttw:ml-auto ttw:text-muted-foreground",
78
- children: e.email
79
- })]
80
- }, `${e.name}:${e.email}:${t}`)) }) : null,
81
- w || C.length > 0 || x ? /* @__PURE__ */ h(a, {}) : null,
82
- /* @__PURE__ */ g(r, {
83
- value: "__add_vendor__",
84
- onSelect: T,
85
- className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
86
- children: [/* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
87
- })
88
- ]
89
- })]
90
- })
91
- })]
92
- })]
93
- });
94
- }
2
+ var e = {
3
+ heading: "Line items",
4
+ helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
5
+ description: "Description",
6
+ descriptionPlaceholder: "e.g., Office supplies",
7
+ glCode: "GL code (optional)",
8
+ glCodePlaceholder: "Select",
9
+ quantity: "Quantity",
10
+ price: "Price",
11
+ amount: "Amount",
12
+ currencySymbol: "$",
13
+ discount: "Discounts",
14
+ tax: "Tax",
15
+ totalAmount: "Total amount",
16
+ addLineItem: "+ Add line item",
17
+ increaseQuantity: (e) => `Increase quantity — line item ${e}`,
18
+ decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
19
+ removeLineItem: (e) => `Remove line item ${e}`
20
+ };
95
21
  //#endregion
96
- export { x as VendorSearchCombobox, x as default };
22
+ export { e as LINE_ITEMS_SECTION_LABELS_EN };