@tesouro/embedded-components-react 0.5.51 → 0.5.52

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 (38) hide show
  1. package/dist/index.d.ts +42 -1
  2. package/dist/lib/CounterpartsWidget.d.ts +41 -0
  3. package/dist/lib/ReceivablesWidget.d.ts +40 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +6 -9
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +9 -12
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +8 -8
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -4
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +91 -88
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -3
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +113 -102
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +28 -20
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +148 -147
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +15 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +39 -34
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +16 -4
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +203 -174
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +15 -3
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -52
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +22 -3
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -17
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +31 -31
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +97 -96
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +15 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +57 -61
  27. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +189 -188
  28. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +1 -0
  29. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +1 -0
  30. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +54 -37
  31. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +23 -16
  32. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index3.js +1 -0
  33. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +54 -41
  34. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +88 -70
  35. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +333 -282
  36. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  37. package/dist/packages/shared-ui-shadcn/dist/index.js +3757 -3705
  38. package/package.json +1 -1
@@ -1,260 +1,261 @@
1
- import { Badge as e, Button as t, Skeleton as n, Typography as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as a } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
1
+ import { Badge as e, Button as t, RequiredFieldsLegend as n, Skeleton as r, Typography as i, cn as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as o } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
3
  import "../../../shared/ui/dist/index.js";
4
- import { ApprovalPolicyCard as o } from "./index13.js";
4
+ import { ApprovalPolicyCard as s } from "./index13.js";
5
5
  import "./index14.js";
6
- import { BillRejectionNotice as s } from "./index17.js";
7
- import { BADGE_TONE_CLASS_NAME as c } from "./index15.js";
8
- import { BillStatusBadge as l } from "./index19.js";
6
+ import { BillRejectionNotice as c } from "./index17.js";
7
+ import { BADGE_TONE_CLASS_NAME as l } from "./index15.js";
8
+ import { BillStatusBadge as u } from "./index19.js";
9
9
  import "./index20.js";
10
- import { DueDateValue as u } from "./index22.js";
10
+ import { DueDateValue as d } from "./index22.js";
11
11
  import "./index23.js";
12
- import { PaymentHistoryList as d } from "./index24.js";
12
+ import { PaymentHistoryList as f } from "./index24.js";
13
13
  import "./index25.js";
14
- import { VendorSummaryCard as f } from "./index28.js";
14
+ import { VendorSummaryCard as p } from "./index28.js";
15
15
  import "./index29.js";
16
- import { mergeBillDetailBodyLabels as p } from "./index30.js";
17
- import { BillActionButtons as m, NO_BILL_ACTIONS as h } from "./index16.js";
18
- import { useMemo as g } from "react";
19
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
20
- import { AlertTriangle as y } from "lucide-react";
16
+ import { mergeBillDetailBodyLabels as m } from "./index30.js";
17
+ import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index16.js";
18
+ import { useMemo as _ } from "react";
19
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
20
+ import { AlertTriangle as b } from "lucide-react";
21
21
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
22
- var b = "ttw:text-base ttw:font-semibold", x = "ttw:px-3 ttw:py-2", S = "ttw:py-2 ttw:pr-3", C = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", w = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
23
- function T({ view: T, actions: E = h, scheduledSummary: D, scheduledStatusLabel: O, showApprovalOverrideNotice: k, awaitingApprovalNotice: A, payTo: j, hideMissingPaymentInstructions: M, paymentHistoryError: N, paymentHistoryLoading: P, isLoading: F, isError: I, labels: L }) {
24
- let R = g(() => p(L), [L]), z = g(() => ({
25
- ...R.payToCard,
26
- payToHeading: T?.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
27
- vendorLabel: R.vendorRow,
28
- achBankAccountLabel: R.paymentInstructionsRow
29
- }), [R, T?.paidOnLabel]), B = g(() => ({
30
- ...R.statusBadge,
31
- ...O ? { scheduled: O } : void 0
32
- }), [R.statusBadge, O]);
33
- if (I) return /* @__PURE__ */ _(a, {
34
- title: R.errorTitle,
35
- description: R.errorDescription
22
+ var x = "ttw:text-base ttw:font-semibold", S = "ttw:px-3 ttw:py-2", C = "ttw:py-2 ttw:pr-3", w = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", T = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
23
+ function E({ view: E, actions: D = g, scheduledSummary: O, scheduledStatusLabel: k, showApprovalOverrideNotice: A, awaitingApprovalNotice: j, payTo: M, hideMissingPaymentInstructions: N, paymentHistoryError: P, paymentHistoryLoading: F, isLoading: I, isError: L, labels: R }) {
24
+ let z = _(() => m(R), [R]), B = _(() => ({
25
+ ...z.payToCard,
26
+ payToHeading: E?.paidOnLabel ? z.payToHeadingPaid : z.payToHeading,
27
+ vendorLabel: z.vendorRow,
28
+ achBankAccountLabel: z.paymentInstructionsRow
29
+ }), [z, E?.paidOnLabel]), V = _(() => ({
30
+ ...z.statusBadge,
31
+ ...k ? { scheduled: k } : void 0
32
+ }), [z.statusBadge, k]);
33
+ if (L) return /* @__PURE__ */ v(o, {
34
+ title: z.errorTitle,
35
+ description: z.errorDescription
36
36
  });
37
- if (F || !T) return /* @__PURE__ */ v("div", {
37
+ if (I || !E) return /* @__PURE__ */ y("div", {
38
38
  "aria-hidden": !0,
39
39
  className: "ttw:flex ttw:flex-col ttw:gap-6",
40
40
  children: [
41
- /* @__PURE__ */ _(n, { className: "ttw:h-40 ttw:w-full" }),
42
- /* @__PURE__ */ _(n, { className: "ttw:h-32 ttw:w-full" }),
43
- /* @__PURE__ */ _(n, { className: "ttw:h-24 ttw:w-full" })
41
+ /* @__PURE__ */ v(r, { className: "ttw:h-40 ttw:w-full" }),
42
+ /* @__PURE__ */ v(r, { className: "ttw:h-32 ttw:w-full" }),
43
+ /* @__PURE__ */ v(r, { className: "ttw:h-24 ttw:w-full" })
44
44
  ]
45
45
  });
46
- let V = M ? void 0 : j?.paymentInstructions, H = T.payTo.hasPaymentInstructions ? void 0 : V;
47
- return /* @__PURE__ */ v("div", {
46
+ let H = N ? void 0 : M?.paymentInstructions, U = E.payTo.hasPaymentInstructions ? void 0 : H;
47
+ return /* @__PURE__ */ y("div", {
48
48
  className: "ttw:flex ttw:flex-col ttw:gap-6",
49
49
  children: [
50
- H ? /* @__PURE__ */ v("div", {
50
+ U ? /* @__PURE__ */ y("div", {
51
51
  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",
52
52
  children: [
53
- /* @__PURE__ */ _(y, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
54
- /* @__PURE__ */ _("p", {
53
+ /* @__PURE__ */ v(b, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
54
+ /* @__PURE__ */ v("p", {
55
55
  className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
56
- children: R.missingPaymentInstructionsBanner
56
+ children: z.missingPaymentInstructionsBanner
57
57
  }),
58
- /* @__PURE__ */ _(t, {
58
+ /* @__PURE__ */ v(t, {
59
59
  type: "button",
60
60
  variant: "outline",
61
61
  size: "sm",
62
- onClick: H.onOpen,
63
- children: R.addPaymentInstructions
62
+ onClick: U.onOpen,
63
+ children: z.addPaymentInstructions
64
64
  })
65
65
  ]
66
66
  }) : null,
67
- /* @__PURE__ */ v("section", {
67
+ /* @__PURE__ */ y("section", {
68
68
  className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
69
69
  children: [
70
- T.paidOnLabel ? /* @__PURE__ */ v("div", {
70
+ E.paidOnLabel ? /* @__PURE__ */ y("div", {
71
71
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
72
- children: [/* @__PURE__ */ v("div", {
72
+ children: [/* @__PURE__ */ y("div", {
73
73
  className: "ttw:flex ttw:flex-col ttw:gap-1",
74
- children: [/* @__PURE__ */ _("span", {
74
+ children: [/* @__PURE__ */ v("span", {
75
75
  className: "ttw:text-sm ttw:text-muted-foreground",
76
- children: R.amountDueHeading
77
- }), /* @__PURE__ */ _("span", {
76
+ children: z.amountDueHeading
77
+ }), /* @__PURE__ */ v("span", {
78
78
  className: "ttw:text-3xl ttw:font-semibold",
79
- children: T.amountDue
79
+ children: E.amountDue
80
80
  })]
81
- }), /* @__PURE__ */ v("div", {
81
+ }), /* @__PURE__ */ y("div", {
82
82
  className: "ttw:flex ttw:flex-col ttw:gap-1",
83
- children: [/* @__PURE__ */ _("span", {
83
+ children: [/* @__PURE__ */ v("span", {
84
84
  className: "ttw:text-sm ttw:text-muted-foreground",
85
- children: R.amountPaidHeading
86
- }), /* @__PURE__ */ _("span", {
85
+ children: z.amountPaidHeading
86
+ }), /* @__PURE__ */ v("span", {
87
87
  className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
88
- children: T.amountPaid
88
+ children: E.amountPaid
89
89
  })]
90
90
  })]
91
- }) : /* @__PURE__ */ v("div", {
91
+ }) : /* @__PURE__ */ y("div", {
92
92
  className: "ttw:flex ttw:flex-col ttw:gap-1",
93
- children: [/* @__PURE__ */ _("span", {
93
+ children: [/* @__PURE__ */ v("span", {
94
94
  className: "ttw:text-sm ttw:text-muted-foreground",
95
- children: R.amountDueHeading
96
- }), /* @__PURE__ */ _("span", {
95
+ children: z.amountDueHeading
96
+ }), /* @__PURE__ */ v("span", {
97
97
  className: "ttw:text-3xl ttw:font-semibold",
98
- children: T.amountDue
98
+ children: E.amountDue
99
99
  })]
100
100
  }),
101
- /* @__PURE__ */ _("div", { children: T.paidOnLabel ? /* @__PURE__ */ _(e, {
101
+ /* @__PURE__ */ v("div", { children: E.paidOnLabel ? /* @__PURE__ */ v(e, {
102
102
  variant: "outline",
103
103
  className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
104
- children: T.paidOnLabel
105
- }) : D ? /* @__PURE__ */ _(e, {
104
+ children: E.paidOnLabel
105
+ }) : O ? /* @__PURE__ */ v(e, {
106
106
  variant: "outline",
107
- className: c.committed,
108
- children: D
109
- }) : /* @__PURE__ */ _(l, {
110
- status: T.status,
111
- tone: T.statusTone,
112
- labels: B
107
+ className: l.committed,
108
+ children: O
109
+ }) : /* @__PURE__ */ v(u, {
110
+ status: E.status,
111
+ tone: E.statusTone,
112
+ labels: V
113
113
  }) }),
114
- /* @__PURE__ */ v("div", {
114
+ /* @__PURE__ */ y("div", {
115
115
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
116
- children: [/* @__PURE__ */ v("div", {
116
+ children: [/* @__PURE__ */ y("div", {
117
117
  className: "ttw:flex ttw:flex-col",
118
- children: [/* @__PURE__ */ _("span", {
118
+ children: [/* @__PURE__ */ v("span", {
119
119
  className: "ttw:text-xs ttw:text-muted-foreground",
120
- children: R.invoiceDateLabel
121
- }), /* @__PURE__ */ _("span", {
120
+ children: z.invoiceDateLabel
121
+ }), /* @__PURE__ */ v("span", {
122
122
  className: "ttw:text-sm ttw:font-medium",
123
- children: T.invoiceDateLabel
123
+ children: E.invoiceDateLabel
124
124
  })]
125
- }), /* @__PURE__ */ v("div", {
125
+ }), /* @__PURE__ */ y("div", {
126
126
  className: "ttw:flex ttw:flex-col",
127
- children: [/* @__PURE__ */ _("span", {
127
+ children: [/* @__PURE__ */ v("span", {
128
128
  className: "ttw:text-xs ttw:text-muted-foreground",
129
- children: R.dueDateLabel
130
- }), /* @__PURE__ */ _(u, {
129
+ children: z.dueDateLabel
130
+ }), /* @__PURE__ */ v(d, {
131
131
  className: "ttw:text-sm ttw:font-medium",
132
- value: T.dueDateLabel,
133
- tone: T.dueDateTone,
134
- labels: R.dueDate
132
+ value: E.dueDateLabel,
133
+ tone: E.dueDateTone,
134
+ labels: z.dueDate
135
135
  })]
136
136
  })]
137
137
  }),
138
- T.rejection ? /* @__PURE__ */ _(s, { ...T.rejection }) : null,
139
- k ? /* @__PURE__ */ _(r, {
138
+ E.rejection ? /* @__PURE__ */ v(c, { ...E.rejection }) : null,
139
+ A ? /* @__PURE__ */ v(i, {
140
140
  variant: "caption",
141
141
  color: "muted",
142
- children: R.approvalOverrideNotice
143
- }) : A ? /* @__PURE__ */ _(r, {
142
+ children: z.approvalOverrideNotice
143
+ }) : j ? /* @__PURE__ */ v(i, {
144
144
  variant: "caption",
145
145
  color: "muted",
146
- children: A
146
+ children: j
147
147
  }) : null,
148
- !D && E.row.length ? /* @__PURE__ */ _("div", {
148
+ !O && D.row.length ? /* @__PURE__ */ v("div", {
149
149
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
150
- children: /* @__PURE__ */ _(m, { actions: E.row })
150
+ children: /* @__PURE__ */ v(h, { actions: D.row })
151
151
  }) : null
152
152
  ]
153
153
  }),
154
- j?.editForm ?? /* @__PURE__ */ _(f, {
155
- summary: T.payTo,
156
- onEdit: j?.onEdit,
157
- paymentInstructions: V,
158
- labels: z
154
+ H?.isOpen && !N ? /* @__PURE__ */ v(n, { labels: z.requiredFieldsLegend }) : null,
155
+ M?.editForm ?? /* @__PURE__ */ v(p, {
156
+ summary: E.payTo,
157
+ onEdit: M?.onEdit,
158
+ paymentInstructions: H,
159
+ labels: B
159
160
  }),
160
- T.paymentHistory.length || N || P ? /* @__PURE__ */ v("section", {
161
+ E.paymentHistory.length || P || F ? /* @__PURE__ */ y("section", {
161
162
  className: "ttw:flex ttw:flex-col ttw:gap-3",
162
- children: [/* @__PURE__ */ _("h3", {
163
- className: b,
164
- children: R.paymentHistoryHeading
165
- }), N ? /* @__PURE__ */ _("p", {
163
+ children: [/* @__PURE__ */ v("h3", {
164
+ className: x,
165
+ children: z.paymentHistoryHeading
166
+ }), P ? /* @__PURE__ */ v("p", {
166
167
  className: "ttw:text-sm ttw:text-muted-foreground",
167
- children: R.paymentHistoryErrorDescription
168
- }) : P ? /* @__PURE__ */ _(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ _(d, { records: T.paymentHistory })]
168
+ children: z.paymentHistoryErrorDescription
169
+ }) : F ? /* @__PURE__ */ v(r, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ v(f, { records: E.paymentHistory })]
169
170
  }) : null,
170
- /* @__PURE__ */ v("section", {
171
+ /* @__PURE__ */ y("section", {
171
172
  className: "ttw:flex ttw:flex-col ttw:gap-3",
172
- children: [/* @__PURE__ */ _("h3", {
173
- className: b,
174
- children: R.invoiceDetailsHeading
175
- }), /* @__PURE__ */ _("dl", {
173
+ children: [/* @__PURE__ */ v("h3", {
174
+ className: x,
175
+ children: z.invoiceDetailsHeading
176
+ }), /* @__PURE__ */ v("dl", {
176
177
  className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
177
- children: T.invoiceFields.map((e) => /* @__PURE__ */ v("div", {
178
- className: C,
179
- children: [/* @__PURE__ */ _("dt", {
180
- className: w,
178
+ children: E.invoiceFields.map((e) => /* @__PURE__ */ y("div", {
179
+ className: w,
180
+ children: [/* @__PURE__ */ v("dt", {
181
+ className: T,
181
182
  children: e.label
182
- }), /* @__PURE__ */ _("dd", {
183
+ }), /* @__PURE__ */ v("dd", {
183
184
  className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
184
185
  children: e.value
185
186
  })]
186
187
  }, e.label))
187
188
  })]
188
189
  }),
189
- /* @__PURE__ */ _("section", { children: /* @__PURE__ */ v("table", {
190
+ /* @__PURE__ */ v("section", { children: /* @__PURE__ */ y("table", {
190
191
  className: "ttw:w-full ttw:text-sm",
191
- children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v("tr", {
192
+ children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
192
193
  className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
193
194
  children: [
194
- /* @__PURE__ */ _("th", {
195
- className: i(S, "ttw:text-left ttw:font-normal"),
196
- children: R.descriptionAndGlCodeColumn
195
+ /* @__PURE__ */ v("th", {
196
+ className: a(C, "ttw:text-left ttw:font-normal"),
197
+ children: z.descriptionAndGlCodeColumn
197
198
  }),
198
- /* @__PURE__ */ _("th", {
199
- className: i(x, "ttw:text-right ttw:font-normal"),
200
- children: R.qtyPriceColumn
199
+ /* @__PURE__ */ v("th", {
200
+ className: a(S, "ttw:text-right ttw:font-normal"),
201
+ children: z.qtyPriceColumn
201
202
  }),
202
- /* @__PURE__ */ _("th", {
203
- className: i(x, "ttw:text-right ttw:font-normal"),
204
- children: R.amountColumn
203
+ /* @__PURE__ */ v("th", {
204
+ className: a(S, "ttw:text-right ttw:font-normal"),
205
+ children: z.amountColumn
205
206
  })
206
207
  ]
207
- }) }), /* @__PURE__ */ v("tbody", { children: [T.lineItems.map((e) => /* @__PURE__ */ v("tr", {
208
+ }) }), /* @__PURE__ */ y("tbody", { children: [E.lineItems.map((e) => /* @__PURE__ */ y("tr", {
208
209
  className: "ttw:border-b ttw:border-border",
209
210
  children: [
210
- /* @__PURE__ */ _("td", {
211
- className: S,
212
- children: /* @__PURE__ */ v("div", {
211
+ /* @__PURE__ */ v("td", {
212
+ className: C,
213
+ children: /* @__PURE__ */ y("div", {
213
214
  className: "ttw:flex ttw:flex-col",
214
- children: [/* @__PURE__ */ _("span", { children: e.description }), /* @__PURE__ */ _("span", {
215
+ children: [/* @__PURE__ */ v("span", { children: e.description }), /* @__PURE__ */ v("span", {
215
216
  className: "ttw:text-xs ttw:text-muted-foreground",
216
217
  children: e.glCodeLabel
217
218
  })]
218
219
  })
219
220
  }),
220
- /* @__PURE__ */ _("td", {
221
- className: i(x, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
221
+ /* @__PURE__ */ v("td", {
222
+ className: a(S, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
222
223
  children: e.qtyPriceLabel
223
224
  }),
224
- /* @__PURE__ */ _("td", {
225
- className: i(x, "ttw:text-right ttw:whitespace-nowrap"),
225
+ /* @__PURE__ */ v("td", {
226
+ className: a(S, "ttw:text-right ttw:whitespace-nowrap"),
226
227
  children: e.amount
227
228
  })
228
229
  ]
229
- }, e.id)), T.amountRows.map((e) => /* @__PURE__ */ v("tr", {
230
- className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
231
- children: [/* @__PURE__ */ _("td", {
230
+ }, e.id)), E.amountRows.map((e) => /* @__PURE__ */ y("tr", {
231
+ className: a(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
232
+ children: [/* @__PURE__ */ v("td", {
232
233
  colSpan: 2,
233
- className: S,
234
+ className: C,
234
235
  children: e.label
235
- }), /* @__PURE__ */ _("td", {
236
- className: i(x, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
236
+ }), /* @__PURE__ */ v("td", {
237
+ className: a(S, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
237
238
  children: e.value
238
239
  })]
239
240
  }, e.label))] })]
240
241
  }) }),
241
- T.approvalPolicy ? /* @__PURE__ */ _(o, {
242
- view: T.approvalPolicy,
243
- labels: R.approvalPolicy
242
+ E.approvalPolicy ? /* @__PURE__ */ v(s, {
243
+ view: E.approvalPolicy,
244
+ labels: z.approvalPolicy
244
245
  }) : null,
245
- T.history.length ? /* @__PURE__ */ v("section", {
246
+ E.history.length ? /* @__PURE__ */ y("section", {
246
247
  className: "ttw:flex ttw:flex-col ttw:gap-3",
247
- children: [/* @__PURE__ */ _("h3", {
248
- className: b,
249
- children: R.historyHeading
250
- }), /* @__PURE__ */ _("ul", {
248
+ children: [/* @__PURE__ */ v("h3", {
249
+ className: x,
250
+ children: z.historyHeading
251
+ }), /* @__PURE__ */ v("ul", {
251
252
  className: "ttw:flex ttw:flex-col",
252
- children: T.history.map((e) => /* @__PURE__ */ v("li", {
253
+ children: E.history.map((e) => /* @__PURE__ */ y("li", {
253
254
  className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
254
- children: [/* @__PURE__ */ _("span", {
255
+ children: [/* @__PURE__ */ v("span", {
255
256
  className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
256
257
  children: e.dateLabel
257
- }), /* @__PURE__ */ _("span", { children: e.description })]
258
+ }), /* @__PURE__ */ v("span", { children: e.description })]
258
259
  }, e.id))
259
260
  })]
260
261
  }) : null
@@ -262,4 +263,4 @@ function T({ view: T, actions: E = h, scheduledSummary: D, scheduledStatusLabel:
262
263
  });
263
264
  }
264
265
  //#endregion
265
- export { T as BillDetailBody, T as default };
266
+ export { E as BillDetailBody, E as default };
@@ -1,9 +1,21 @@
1
+ import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
2
- var e = {
3
+ var t = {
3
4
  invoiceNumber: "Invoice number",
4
5
  invoiceDate: "Invoice date",
5
6
  dueDate: "Due date",
6
- poNumber: "PO number (optional)"
7
+ poNumber: "PO number",
8
+ fieldMarkers: e
7
9
  };
10
+ function n(e) {
11
+ return {
12
+ ...t,
13
+ ...e,
14
+ fieldMarkers: {
15
+ ...t.fieldMarkers,
16
+ ...e?.fieldMarkers
17
+ }
18
+ };
19
+ }
8
20
  //#endregion
9
- export { e as BILL_FORM_FIELDS_LABELS_EN };
21
+ export { t as BILL_FORM_FIELDS_LABELS_EN, n as mergeBillFormFieldsLabels };
@@ -1,51 +1,56 @@
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 "./index33.js";
3
- import { useId as r } from "react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { FieldRequirement as e, Input as t, Label as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeBillFormFieldsLabels as r } from "./index33.js";
3
+ import { useId as i } from "react";
4
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js
6
- var o = 255;
7
- function s({ values: s, errors: c, onChange: l, disabled: u, testId: d, labels: f }) {
8
- let p = {
9
- ...n,
10
- ...f
11
- }, m = r(), h = (n, r, d) => {
12
- let f = `${m}-${n}`, p = `${f}-error`, h = c?.[n];
13
- return /* @__PURE__ */ a("div", {
6
+ var s = 255, c = {
7
+ invoiceDate: e.Required,
8
+ dueDate: e.Required,
9
+ invoiceNumber: e.Required,
10
+ poNumber: e.Optional
11
+ };
12
+ function l({ values: l, errors: u, onChange: d, disabled: f, testId: p, labels: m }) {
13
+ let h = r(m), g = i(), _ = (r, i, p) => {
14
+ let m = `${g}-${r}`, _ = `${m}-error`, v = u?.[r], y = c[r];
15
+ return /* @__PURE__ */ o("div", {
14
16
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
15
17
  children: [
16
- /* @__PURE__ */ i(t, {
17
- htmlFor: f,
18
- children: r
18
+ /* @__PURE__ */ a(n, {
19
+ htmlFor: m,
20
+ requirement: y,
21
+ labels: h.fieldMarkers,
22
+ children: i
19
23
  }),
20
- /* @__PURE__ */ i(e, {
21
- id: f,
22
- type: d,
23
- value: s[n],
24
- disabled: u,
25
- maxLength: n === "poNumber" ? o : void 0,
26
- "aria-invalid": h ? !0 : void 0,
27
- "aria-describedby": h ? p : void 0,
28
- onChange: (e) => l({ [n]: e.target.value })
24
+ /* @__PURE__ */ a(t, {
25
+ id: m,
26
+ type: p,
27
+ value: l[r],
28
+ disabled: f,
29
+ "aria-required": y === e.Required || void 0,
30
+ maxLength: r === "poNumber" ? s : void 0,
31
+ "aria-invalid": v ? !0 : void 0,
32
+ "aria-describedby": v ? _ : void 0,
33
+ onChange: (e) => d({ [r]: e.target.value })
29
34
  }),
30
- h ? /* @__PURE__ */ i("p", {
31
- id: p,
35
+ v ? /* @__PURE__ */ a("p", {
36
+ id: _,
32
37
  className: "ttw:text-sm ttw:text-destructive",
33
- children: h
38
+ children: v
34
39
  }) : null
35
40
  ]
36
41
  });
37
42
  };
38
- return /* @__PURE__ */ a("div", {
43
+ return /* @__PURE__ */ o("div", {
39
44
  className: "ttw:flex ttw:flex-col ttw:gap-4",
40
- "data-testid": d,
41
- children: [/* @__PURE__ */ a("div", {
45
+ "data-testid": p,
46
+ children: [/* @__PURE__ */ o("div", {
42
47
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
43
- children: [h("invoiceDate", p.invoiceDate, "date"), h("dueDate", p.dueDate, "date")]
44
- }), /* @__PURE__ */ a("div", {
48
+ children: [_("invoiceDate", h.invoiceDate, "date"), _("dueDate", h.dueDate, "date")]
49
+ }), /* @__PURE__ */ o("div", {
45
50
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
46
- children: [h("invoiceNumber", p.invoiceNumber), h("poNumber", p.poNumber)]
51
+ children: [_("invoiceNumber", h.invoiceNumber), _("poNumber", h.poNumber)]
47
52
  })]
48
53
  });
49
54
  }
50
55
  //#endregion
51
- export { s as BillFormFields, s as default };
56
+ export { l as BillFormFields, l as default };
@@ -1,10 +1,11 @@
1
+ import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
2
- var e = {
3
+ var t = {
3
4
  heading: "Line items",
4
5
  helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
5
6
  description: "Description",
6
7
  descriptionPlaceholder: "e.g., Office supplies",
7
- glCode: "GL code (optional)",
8
+ glCode: "GL code",
8
9
  glCodePlaceholder: "Select",
9
10
  glCodeClear: "Clear GL code",
10
11
  quantity: "Quantity",
@@ -17,7 +18,18 @@ var e = {
17
18
  addLineItem: "+ Add line item",
18
19
  increaseQuantity: (e) => `Increase quantity — line item ${e}`,
19
20
  decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
20
- removeLineItem: (e) => `Remove line item ${e}`
21
+ removeLineItem: (e) => `Remove line item ${e}`,
22
+ fieldMarkers: e
21
23
  };
24
+ function n(e) {
25
+ return {
26
+ ...t,
27
+ ...e,
28
+ fieldMarkers: {
29
+ ...t.fieldMarkers,
30
+ ...e?.fieldMarkers
31
+ }
32
+ };
33
+ }
22
34
  //#endregion
23
- export { e as LINE_ITEMS_SECTION_LABELS_EN };
35
+ export { t as LINE_ITEMS_SECTION_LABELS_EN, n as mergeLineItemsSectionLabels };