@tesouro/embedded-components-react 0.3.24 → 0.3.26

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 (80) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +5 -5
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +158 -96
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
  78. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -113
@@ -1 +1,83 @@
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
5
+ import "./index14.js";
6
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
7
+ import "./index21.js";
8
+ import { DUE_DATE_VALUE_LABELS_EN as i } from "./index22.js";
9
+ import "./index24.js";
10
+ import { MISSING_VALUE_LABELS_EN as a } from "./index52.js";
1
11
  import "./index54.js";
12
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
13
+ var o = {
14
+ loadingTitle: "Loading bill…",
15
+ hiddenDescription: "Bill details",
16
+ errorTitle: "Couldn't load this bill",
17
+ errorDescription: "Something went wrong. Try again.",
18
+ amountDueHeading: "Amount due",
19
+ invoiceDateLabel: "Invoice date",
20
+ dueDateLabel: "Due date",
21
+ payToHeading: "Pay to",
22
+ invoiceDetailsHeading: "Invoice details",
23
+ lineItemsHeading: "Line items",
24
+ lineItemsQuantityHeading: "Qty/Price",
25
+ lineItemsAmountHeading: "Amount",
26
+ payButton: "Pay",
27
+ markAsPaidButton: "Mark as paid",
28
+ rejectButton: "Reject",
29
+ approveButton: "Approve",
30
+ cancelButton: "Cancel bill",
31
+ cancelScheduledPaymentButton: "Cancel scheduled payment",
32
+ reopenButton: "Reopen bill",
33
+ forceApproveButton: "Approve",
34
+ forceRejectButton: "Reject",
35
+ policyOverridesGroup: "Policy overrides",
36
+ overflowMenuTrigger: "Bill actions",
37
+ expandButton: "Open full screen",
38
+ closeButton: "Close",
39
+ statusBadge: r,
40
+ approvalPolicy: n,
41
+ dueDate: i
42
+ }, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
43
+ ...t,
44
+ dropzone: {
45
+ ...t.dropzone,
46
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
47
+ }
48
+ }, l = {
49
+ createButton: "Add bill",
50
+ columnVendor: "Vendor",
51
+ columnIssueDate: "Issue date",
52
+ columnDueDate: "Due date",
53
+ columnScheduledDate: "Scheduled date",
54
+ columnPaidDate: "Paid date",
55
+ columnAmountDue: "Amount due",
56
+ columnAmountScheduled: "Amount scheduled",
57
+ columnAmountPaid: "Amount paid",
58
+ columnTotalAmount: "Total amount",
59
+ columnStatus: "Status",
60
+ columnAddedOn: "Added on",
61
+ columnActions: "Actions",
62
+ openRow: (e) => `View bill — ${e}`,
63
+ duplicateBillsReviewButton: "Review duplicates",
64
+ searchPlaceholder: "Search by vendor name",
65
+ searchLabel: "Search bills by vendor name",
66
+ filterTabsLabel: "Filter bills by status",
67
+ filteredEmptyTitle: "No bills match",
68
+ filteredEmptyDescription: "Try a different search or status filter.",
69
+ errorTitle: "Couldn't load bills",
70
+ errorDescription: "Something went wrong. Try again.",
71
+ errorRetry: "Retry",
72
+ statusBadge: r,
73
+ addBill: c,
74
+ sortableHeader: {
75
+ sortedAscending: e.sortedAscending,
76
+ sortedDescending: e.sortedDescending,
77
+ notSorted: e.notSorted
78
+ },
79
+ missingValue: a,
80
+ dueDate: i
81
+ };
82
+ //#endregion
83
+ export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };
@@ -1,10 +1,266 @@
1
+ import { Button as e, Collapsible as t, CollapsibleContent as n, CollapsibleTrigger as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ApprovalPolicyCard as d } from "./index13.js";
3
+ import "./index14.js";
4
+ import { BillOverflowMenu as f } from "./index16.js";
5
+ import "./index17.js";
6
+ import { BillStatusBadge as p } from "./index20.js";
7
+ import "./index21.js";
8
+ import { DueDateValue as m } from "./index23.js";
9
+ import "./index24.js";
10
+ import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index15.js";
11
+ import { BILL_DETAILS_SHEET_LABELS_EN as _ } from "./index55.js";
12
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
13
+ import { ChevronDownIcon as x, MoveDiagonal2Icon as S, XIcon as C } from "lucide-react";
1
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
2
- var e = {
3
- messagePrefix: "This bill is a possible duplicate of ",
4
- otherBill: "another bill",
5
- messageSuffix: ".",
6
- notADuplicateButton: "Not a duplicate",
7
- removeBillButton: "Remove this bill"
8
- };
15
+ function w({ items: e }) {
16
+ return /* @__PURE__ */ y("dl", {
17
+ className: "ttw:flex ttw:flex-col",
18
+ children: e.map((e) => /* @__PURE__ */ b("div", {
19
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
20
+ children: [/* @__PURE__ */ y("dt", {
21
+ className: "ttw:text-sm ttw:text-muted-foreground",
22
+ children: e.label
23
+ }), /* @__PURE__ */ b("dd", {
24
+ className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
25
+ children: [/* @__PURE__ */ y("span", {
26
+ className: "ttw:text-sm ttw:font-medium",
27
+ children: e.value
28
+ }), e.secondaryValue ? /* @__PURE__ */ y("span", {
29
+ className: "ttw:text-sm ttw:text-muted-foreground",
30
+ children: e.secondaryValue
31
+ }) : null]
32
+ })]
33
+ }, e.label))
34
+ });
35
+ }
36
+ function T({ heading: e, children: i }) {
37
+ return /* @__PURE__ */ b(t, {
38
+ defaultOpen: !0,
39
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
40
+ children: [/* @__PURE__ */ b(r, {
41
+ className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
42
+ children: [/* @__PURE__ */ y(u, {
43
+ variant: "body1",
44
+ className: "ttw:font-semibold",
45
+ children: e
46
+ }), /* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
47
+ }), /* @__PURE__ */ y(n, { children: i })]
48
+ });
49
+ }
50
+ function E({ open: t, onOpenChange: n, details: r, actions: u = g, approvalPolicy: x, isLoading: E, isError: D, notice: O, onClose: k, onExpand: A, testId: j, labels: M }) {
51
+ let N = {
52
+ ..._,
53
+ ...M,
54
+ statusBadge: {
55
+ ..._.statusBadge,
56
+ ...M?.statusBadge
57
+ },
58
+ approvalPolicy: {
59
+ ..._.approvalPolicy,
60
+ ...M?.approvalPolicy
61
+ },
62
+ dueDate: {
63
+ ..._.dueDate,
64
+ ...M?.dueDate
65
+ }
66
+ };
67
+ return /* @__PURE__ */ y(i, {
68
+ open: t,
69
+ onOpenChange: (e) => e ? n(e) : k(),
70
+ children: /* @__PURE__ */ b(a, {
71
+ showCloseButton: !1,
72
+ className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
73
+ "data-testid": j,
74
+ children: [/* @__PURE__ */ b(s, {
75
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
76
+ children: [/* @__PURE__ */ b("div", {
77
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
78
+ children: [
79
+ /* @__PURE__ */ y(c, {
80
+ className: E ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
81
+ children: D ? N.errorTitle : E ? N.loadingTitle : r?.title
82
+ }),
83
+ E ? /* @__PURE__ */ b("div", {
84
+ "aria-hidden": !0,
85
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
86
+ children: [/* @__PURE__ */ y(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-28" })]
87
+ }) : null,
88
+ r && !E && !D ? /* @__PURE__ */ y("p", {
89
+ className: "ttw:text-sm ttw:text-muted-foreground",
90
+ children: r.subtitle
91
+ }) : null,
92
+ /* @__PURE__ */ y(o, {
93
+ className: "ttw:sr-only",
94
+ children: N.hiddenDescription
95
+ })
96
+ ]
97
+ }), /* @__PURE__ */ b("div", {
98
+ className: "ttw:flex ttw:items-center ttw:gap-1",
99
+ children: [
100
+ A ? /* @__PURE__ */ y(e, {
101
+ type: "button",
102
+ variant: "ghost",
103
+ size: "icon",
104
+ "aria-label": N.expandButton,
105
+ onClick: A,
106
+ children: /* @__PURE__ */ y(S, { className: "ttw:size-4" })
107
+ }) : null,
108
+ r && !E && !D ? /* @__PURE__ */ y(f, {
109
+ actions: u.menu,
110
+ triggerLabel: N.overflowMenuTrigger,
111
+ placement: "header"
112
+ }) : null,
113
+ /* @__PURE__ */ y(e, {
114
+ type: "button",
115
+ variant: "ghost",
116
+ size: "icon",
117
+ "aria-label": N.closeButton,
118
+ onClick: k,
119
+ children: /* @__PURE__ */ y(C, { className: "ttw:size-4" })
120
+ })
121
+ ]
122
+ })]
123
+ }), /* @__PURE__ */ y("div", {
124
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
125
+ children: D ? /* @__PURE__ */ y("p", {
126
+ className: "ttw:text-sm ttw:text-muted-foreground",
127
+ children: N.errorDescription
128
+ }) : E ? /* @__PURE__ */ b("div", {
129
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
130
+ children: [/* @__PURE__ */ y(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ b("div", {
131
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
132
+ children: [
133
+ /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-40" }),
134
+ /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" }),
135
+ /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" })
136
+ ]
137
+ })]
138
+ }) : r ? /* @__PURE__ */ b(v, { children: [
139
+ O,
140
+ /* @__PURE__ */ b("section", {
141
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
142
+ children: [
143
+ /* @__PURE__ */ b("div", {
144
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
145
+ children: [
146
+ /* @__PURE__ */ y("span", {
147
+ className: "ttw:text-sm ttw:text-muted-foreground",
148
+ children: N.amountDueHeading
149
+ }),
150
+ /* @__PURE__ */ y("span", {
151
+ className: "ttw:text-3xl ttw:font-semibold",
152
+ children: r.amountDueLabel
153
+ }),
154
+ /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(p, {
155
+ status: r.status,
156
+ tone: r.statusTone,
157
+ labels: N.statusBadge
158
+ }) })
159
+ ]
160
+ }),
161
+ /* @__PURE__ */ b("div", {
162
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
163
+ children: [/* @__PURE__ */ b("div", {
164
+ className: "ttw:flex ttw:flex-col",
165
+ children: [/* @__PURE__ */ y("span", {
166
+ className: "ttw:text-xs ttw:text-muted-foreground",
167
+ children: N.invoiceDateLabel
168
+ }), /* @__PURE__ */ y("span", {
169
+ className: "ttw:text-sm ttw:font-medium",
170
+ children: r.invoiceDateLabel
171
+ })]
172
+ }), /* @__PURE__ */ b("div", {
173
+ className: "ttw:flex ttw:flex-col",
174
+ children: [/* @__PURE__ */ y("span", {
175
+ className: "ttw:text-xs ttw:text-muted-foreground",
176
+ children: N.dueDateLabel
177
+ }), /* @__PURE__ */ y(m, {
178
+ className: "ttw:text-sm ttw:font-medium",
179
+ value: r.dueDateLabel,
180
+ tone: r.dueDateTone,
181
+ labels: N.dueDate
182
+ })]
183
+ })]
184
+ }),
185
+ u.row.length ? /* @__PURE__ */ y("div", {
186
+ className: "ttw:flex ttw:items-center ttw:gap-2",
187
+ children: /* @__PURE__ */ y(h, { actions: u.row })
188
+ }) : null
189
+ ]
190
+ }),
191
+ /* @__PURE__ */ y(T, {
192
+ heading: N.payToHeading,
193
+ children: /* @__PURE__ */ y(w, { items: r.payToItems })
194
+ }),
195
+ /* @__PURE__ */ y(T, {
196
+ heading: N.invoiceDetailsHeading,
197
+ children: /* @__PURE__ */ b("div", {
198
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
199
+ children: [
200
+ /* @__PURE__ */ y(w, { items: r.invoiceItems }),
201
+ r.lineItems.length ? /* @__PURE__ */ b("table", {
202
+ className: "ttw:w-full ttw:text-sm",
203
+ children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
204
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
205
+ children: [
206
+ /* @__PURE__ */ y("th", {
207
+ className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
208
+ children: N.lineItemsHeading
209
+ }),
210
+ /* @__PURE__ */ y("th", {
211
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
212
+ children: N.lineItemsQuantityHeading
213
+ }),
214
+ /* @__PURE__ */ y("th", {
215
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
216
+ children: N.lineItemsAmountHeading
217
+ })
218
+ ]
219
+ }) }), /* @__PURE__ */ y("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ b("tr", {
220
+ className: "ttw:border-b ttw:border-border",
221
+ children: [
222
+ /* @__PURE__ */ b("td", {
223
+ className: "ttw:px-3 ttw:py-2",
224
+ children: [/* @__PURE__ */ y("span", {
225
+ className: "ttw:block",
226
+ children: e.description
227
+ }), /* @__PURE__ */ y("span", {
228
+ className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
229
+ children: e.glCodeLabel
230
+ })]
231
+ }),
232
+ /* @__PURE__ */ y("td", {
233
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
234
+ children: e.quantityLabel
235
+ }),
236
+ /* @__PURE__ */ y("td", {
237
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
238
+ children: e.amountLabel
239
+ })
240
+ ]
241
+ }, e.id)) })]
242
+ }) : null,
243
+ /* @__PURE__ */ y("dl", {
244
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
245
+ children: r.totals.map((e) => /* @__PURE__ */ b("div", {
246
+ className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
247
+ children: [/* @__PURE__ */ y("dt", {
248
+ className: e.emphasis ? "" : "ttw:text-muted-foreground",
249
+ children: e.label
250
+ }), /* @__PURE__ */ y("dd", { children: e.value })]
251
+ }, e.label))
252
+ })
253
+ ]
254
+ })
255
+ }),
256
+ x ? /* @__PURE__ */ y(d, {
257
+ view: x,
258
+ labels: N.approvalPolicy
259
+ }) : null
260
+ ] }) : null
261
+ })]
262
+ })
263
+ });
264
+ }
9
265
  //#endregion
10
- export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
266
+ export { E as BillDetailsSheet, E as default };
@@ -1,49 +1,13 @@
1
- import { Alert as e, AlertTitle as t, Button as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_DUPLICATE_NOTICE_LABELS_EN as r } from "./index56.js";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- import { CopyX as o } from "lucide-react";
1
+ import { Badge as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BADGE_TONE_CLASS_NAME as t } from "./index19.js";
3
+ import { jsx as n } from "react/jsx-runtime";
5
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js
6
- function s({ onNotADuplicate: s, onRemoveBill: c, onViewOtherBill: l, testId: u, labels: d }) {
7
- let f = {
8
- ...r,
9
- ...d
10
- }, p = l ? /* @__PURE__ */ i("button", {
11
- type: "button",
12
- onClick: l,
13
- className: "ttw:underline ttw:hover:no-underline",
14
- children: f.otherBill
15
- }) : /* @__PURE__ */ i("span", {
16
- className: "ttw:underline",
17
- children: f.otherBill
18
- });
19
- return /* @__PURE__ */ a(e, {
20
- className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
21
- "data-testid": u,
22
- children: [
23
- /* @__PURE__ */ i(o, {}),
24
- /* @__PURE__ */ a(t, {
25
- className: "ttw:flex-1",
26
- children: [
27
- f.messagePrefix,
28
- p,
29
- f.messageSuffix
30
- ]
31
- }),
32
- s ? /* @__PURE__ */ i(n, {
33
- type: "button",
34
- variant: "outline",
35
- className: "ttw:text-foreground",
36
- onClick: s,
37
- children: f.notADuplicateButton
38
- }) : null,
39
- c ? /* @__PURE__ */ i(n, {
40
- type: "button",
41
- variant: "destructive",
42
- onClick: c,
43
- children: f.removeBillButton
44
- }) : null
45
- ]
5
+ function r({ label: r, tone: i = "warning" }) {
6
+ return /* @__PURE__ */ n(e, {
7
+ variant: "outline",
8
+ className: t[i],
9
+ children: r
46
10
  });
47
11
  }
48
12
  //#endregion
49
- export { s as BillDuplicateNotice, s as default };
13
+ export { r as BillDuplicateBadge, r as default };
@@ -1,2 +1 @@
1
- import "./index56.js";
2
1
  import "./index57.js";
@@ -1,39 +1,10 @@
1
- import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js
3
- var i = {
4
- fields: {
5
- vendor: "Vendor",
6
- issueDate: "Issue date",
7
- dueDate: "Due date",
8
- status: "Status",
9
- totalAmount: "Total amount",
10
- addedOn: "Added on",
11
- attachment: "Attachment"
12
- },
13
- fieldMenuLabel: "Filter bills by",
14
- amountMin: "No less than",
15
- amountMax: "No more than",
16
- vendorSearchPlaceholder: "Search vendors",
17
- vendorSearchLabel: "Search vendors",
18
- vendorEmpty: "No vendors match",
19
- vendorLoading: "Loading vendors",
20
- vendorError: "Couldn't load vendors",
21
- attachmentAny: "Any",
22
- attachmentHas: "Has attachment",
23
- attachmentNone: "No attachment",
24
- attachmentLabel: "Filter by attachment",
25
- clearAll: "Clear all",
26
- filterMenuButton: n,
27
- filterTag: r,
28
- amountFilter: {
29
- modeAny: e.modeAny,
30
- modeExact: e.modeExact,
31
- modeRange: e.modeRange,
32
- flowAny: e.flowAny,
33
- flowIn: e.flowIn,
34
- flowOut: e.flowOut
35
- },
36
- dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
2
+ var e = {
3
+ messagePrefix: "This bill is a possible duplicate of ",
4
+ otherBill: "another bill",
5
+ messageSuffix: ".",
6
+ notADuplicateButton: "Not a duplicate",
7
+ removeBillButton: "Remove this bill"
37
8
  };
38
9
  //#endregion
39
- export { i as BILLS_FILTER_BAR_LABELS_EN };
10
+ export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
@@ -1,12 +1,49 @@
1
+ import { Alert as e, AlertTitle as t, Button as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_DUPLICATE_NOTICE_LABELS_EN as r } from "./index59.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { CopyX as o } from "lucide-react";
1
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
2
- var e = {
3
- Vendor: "vendor",
4
- IssueDate: "issueDate",
5
- DueDate: "dueDate",
6
- Status: "status",
7
- TotalAmount: "totalAmount",
8
- AddedOn: "addedOn",
9
- Attachment: "attachment"
10
- };
6
+ function s({ onNotADuplicate: s, onRemoveBill: c, onViewOtherBill: l, testId: u, labels: d }) {
7
+ let f = {
8
+ ...r,
9
+ ...d
10
+ }, p = l ? /* @__PURE__ */ i("button", {
11
+ type: "button",
12
+ onClick: l,
13
+ className: "ttw:underline ttw:hover:no-underline",
14
+ children: f.otherBill
15
+ }) : /* @__PURE__ */ i("span", {
16
+ className: "ttw:underline",
17
+ children: f.otherBill
18
+ });
19
+ return /* @__PURE__ */ a(e, {
20
+ className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
21
+ "data-testid": u,
22
+ children: [
23
+ /* @__PURE__ */ i(o, {}),
24
+ /* @__PURE__ */ a(t, {
25
+ className: "ttw:flex-1",
26
+ children: [
27
+ f.messagePrefix,
28
+ p,
29
+ f.messageSuffix
30
+ ]
31
+ }),
32
+ s ? /* @__PURE__ */ i(n, {
33
+ type: "button",
34
+ variant: "outline",
35
+ className: "ttw:text-foreground",
36
+ onClick: s,
37
+ children: f.notADuplicateButton
38
+ }) : null,
39
+ c ? /* @__PURE__ */ i(n, {
40
+ type: "button",
41
+ variant: "destructive",
42
+ onClick: c,
43
+ children: f.removeBillButton
44
+ }) : null
45
+ ]
46
+ });
47
+ }
11
48
  //#endregion
12
- export { e as BillsFilterField };
49
+ export { s as BillDuplicateNotice, s as default };