@tesouro/embedded-components-react 0.5.14 → 0.5.16

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 (62) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -5
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +3 -3
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +9 -6
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +32 -29
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -170
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +7 -11
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +158 -96
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +11 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +100 -44
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +10 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +52 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +2 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -88
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +17 -298
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +92 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +301 -6
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +6 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +34 -31
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -37
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -10
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +2 -201
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +39 -3
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +3 -8
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +186 -339
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +3 -10
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +13 -5
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +354 -85
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +10 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +9 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +87 -119
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -94
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +125 -2
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +25 -4
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +90 -26
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -3
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +26 -30
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +4 -9
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +30 -102
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +9 -14
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +85 -104
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +10 -11
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +123 -8
  60. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  61. package/package.json +1 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +0 -28
@@ -1,93 +1,362 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index77.js";
3
- import { UPLOAD_ITEM_ICON_TONE as n } from "./index78.js";
4
- import { useId as r } from "react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
1
+ import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as i, Input as a, Tabs as o, TabsContent as ee, TabsList as s, TabsTrigger as te, Tooltip as ne, TooltipContent as re, TooltipProvider as c, TooltipTrigger as ie } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as l } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as ae } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import "../../../shared/ui/dist/index.js";
5
+ import { AddBillPanel as u } from "./index7.js";
6
+ import "./index8.js";
7
+ import { BillStatusBadge as oe } from "./index19.js";
8
+ import "./index20.js";
9
+ import { DueDateValue as se } from "./index22.js";
10
+ import "./index23.js";
11
+ import { MissingValue as d } from "./index59.js";
12
+ import "./index60.js";
13
+ import { NoValue as ce } from "./index62.js";
14
+ import "./index63.js";
15
+ import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index64.js";
16
+ import { BillsFilterBar as le } from "./index76.js";
17
+ import "./index77.js";
18
+ import { BillColumn as m } from "./index78.js";
19
+ import { useMemo as h } from "react";
20
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
21
+ import { ChevronRightIcon as v, PaperclipIcon as ue, PlusIcon as de, SearchIcon as fe } from "lucide-react";
7
22
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js
8
- function h({ status: t }) {
9
- let r = e("ttw:size-4", n[t]);
10
- return t === "uploading" ? /* @__PURE__ */ a(f, {
11
- "aria-hidden": !0,
12
- className: e(r, "ttw:animate-spin")
13
- }) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
14
- "aria-hidden": !0,
15
- className: r
16
- });
17
- }
18
- function g({ item: t, labels: n }) {
19
- let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
- /* @__PURE__ */ a(h, { status: t.status }),
21
- /* @__PURE__ */ a("span", {
22
- id: s,
23
+ var pe = [
24
+ 10,
25
+ 25,
26
+ 50,
27
+ 100
28
+ ], me = 240, he = {
29
+ default: "",
30
+ warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
31
+ }, ge = {
32
+ default: "",
33
+ warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
34
+ }, y = 40, _e = [
35
+ m.Vendor,
36
+ m.Attachment,
37
+ m.IssueDate,
38
+ m.DueDate,
39
+ m.ScheduledDate,
40
+ m.PaidDate,
41
+ m.Status,
42
+ m.AmountDue,
43
+ m.AmountScheduled,
44
+ m.AmountPaid,
45
+ m.TotalAmount,
46
+ m.AddedOn
47
+ ], b = [
48
+ m.Vendor,
49
+ m.Attachment,
50
+ m.DueDate,
51
+ m.Status,
52
+ m.AmountDue,
53
+ m.AddedOn
54
+ ];
55
+ function x({ rows: x, isLoading: S, isError: C, sorting: ve, onSortingChange: ye, pageSize: be, onPageSizeChange: w, pageSizeOptions: T = pe, pageInfo: E, hasNextPage: D, hasPrevPage: O, onNextPage: k, onPrevPage: A, filterTabs: j, selectedFilterTabId: M, onFilterTabChange: N, searchValue: xe, onSearchChange: Se, filters: P, visibleColumns: F = b, cellTestIds: I, isSearchActive: L, showAddPanelWhenEmpty: Ce, emptyState: R, onCreateClick: z, onRetry: B, onFilesSelected: V, maxFiles: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J, duplicateWarning: Y, onReviewDuplicates: X }) {
56
+ let Z = h(() => ({
57
+ ...f,
58
+ ...J,
59
+ statusBadge: {
60
+ ...f.statusBadge,
61
+ ...J?.statusBadge
62
+ },
63
+ addBill: {
64
+ ...f.addBill,
65
+ ...J?.addBill,
66
+ dropzone: {
67
+ ...f.addBill.dropzone,
68
+ ...J?.addBill?.dropzone
69
+ }
70
+ },
71
+ sortableHeader: {
72
+ ...f.sortableHeader,
73
+ ...J?.sortableHeader
74
+ },
75
+ missingValue: {
76
+ ...f.missingValue,
77
+ ...J?.missingValue
78
+ },
79
+ noValue: {
80
+ ...f.noValue,
81
+ ...J?.noValue
82
+ },
83
+ dueDate: {
84
+ ...f.dueDate,
85
+ ...J?.dueDate
86
+ }
87
+ }), [J]), Q = h(() => {
88
+ let e = (e) => function({ column: t }) {
89
+ return /* @__PURE__ */ g(i, {
90
+ column: t,
91
+ title: e,
92
+ labels: Z.sortableHeader
93
+ });
94
+ }, t = (e, t, n = /* @__PURE__ */ g(d, { labels: Z.missingValue }), r) => function({ row: i }) {
95
+ let a = r && i.original[r] ? /* @__PURE__ */ g(d, { labels: Z.missingValue }) : n;
96
+ return /* @__PURE__ */ g("span", {
97
+ className: "ttw:whitespace-nowrap",
98
+ "data-testid": I?.[t],
99
+ children: i.original[e] || a
100
+ });
101
+ }, n = function({ row: e }) {
102
+ return /* @__PURE__ */ g("span", {
103
+ className: "ttw:whitespace-nowrap",
104
+ "data-testid": I?.[m.DueDate],
105
+ children: /* @__PURE__ */ g(se, {
106
+ value: e.original.dueDateLabel || /* @__PURE__ */ g(d, { labels: Z.missingValue }),
107
+ tone: e.original.dueDateTone,
108
+ labels: Z.dueDate
109
+ })
110
+ });
111
+ }, r = (e, t, n = /* @__PURE__ */ g(d, { labels: Z.missingValue }), r) => function({ row: i }) {
112
+ let a = r && i.original[r] ? /* @__PURE__ */ g(d, { labels: Z.missingValue }) : n;
113
+ return /* @__PURE__ */ g("div", {
114
+ className: "ttw:text-right ttw:whitespace-nowrap",
115
+ "data-testid": I?.[t],
116
+ children: i.original[e] || a
117
+ });
118
+ }, a = /* @__PURE__ */ g(ce, { labels: Z.noValue }), o = (e) => function() {
119
+ return /* @__PURE__ */ g("div", {
120
+ className: "ttw:text-right",
121
+ children: e
122
+ });
123
+ };
124
+ return {
125
+ [m.Vendor]: {
126
+ accessorKey: "vendorLabel",
127
+ enableSorting: !0,
128
+ minSize: me,
129
+ header: e(Z.columnVendor),
130
+ cell: ({ row: e }) => /* @__PURE__ */ _("span", {
131
+ className: ge[e.original.rowTone ?? "default"],
132
+ "data-testid": I?.[m.Vendor],
133
+ children: [e.original.vendorLabel || /* @__PURE__ */ g(d, { labels: Z.missingValue }), e.original.rowNote ? /* @__PURE__ */ g("span", {
134
+ className: "ttw:sr-only",
135
+ children: ` ${e.original.rowNote}`
136
+ }) : null]
137
+ })
138
+ },
139
+ [m.Attachment]: {
140
+ accessorKey: "attachment",
141
+ enableSorting: !1,
142
+ size: y,
143
+ minSize: y,
144
+ header: () => /* @__PURE__ */ g("span", {
145
+ className: "ttw:sr-only",
146
+ children: Z.columnAttachment
147
+ }),
148
+ cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ g("div", {
149
+ className: "ttw:flex ttw:justify-center",
150
+ "data-testid": I?.[m.Attachment],
151
+ children: /* @__PURE__ */ g(c, { children: /* @__PURE__ */ _(ne, { children: [/* @__PURE__ */ g(ie, {
152
+ type: "button",
153
+ className: "ttw:inline-flex ttw:cursor-default",
154
+ "aria-label": e.original.attachment.label,
155
+ onClick: (e) => e.stopPropagation(),
156
+ children: /* @__PURE__ */ g(ue, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
157
+ }), /* @__PURE__ */ g(re, { children: e.original.attachment.label })] }) })
158
+ }) : null
159
+ },
160
+ [m.IssueDate]: {
161
+ accessorKey: "issueDateLabel",
162
+ enableSorting: !0,
163
+ header: e(Z.columnIssueDate),
164
+ cell: t("issueDateLabel", m.IssueDate)
165
+ },
166
+ [m.DueDate]: {
167
+ accessorKey: "dueDateLabel",
168
+ enableSorting: !0,
169
+ header: e(Z.columnDueDate),
170
+ cell: n
171
+ },
172
+ [m.ScheduledDate]: {
173
+ accessorKey: "scheduledDateLabel",
174
+ enableSorting: !0,
175
+ header: e(Z.columnScheduledDate),
176
+ cell: t("scheduledDateLabel", m.ScheduledDate, a, "scheduledDateIsGap")
177
+ },
178
+ [m.PaidDate]: {
179
+ accessorKey: "paidDateLabel",
180
+ enableSorting: !1,
181
+ header: Z.columnPaidDate,
182
+ cell: t("paidDateLabel", m.PaidDate)
183
+ },
184
+ [m.Status]: {
185
+ accessorKey: "status",
186
+ enableSorting: !1,
187
+ header: Z.columnStatus,
188
+ cell: ({ row: e }) => /* @__PURE__ */ g("div", {
189
+ className: "ttw:flex ttw:items-center ttw:gap-1",
190
+ "data-testid": I?.[m.Status],
191
+ children: /* @__PURE__ */ g(oe, {
192
+ status: e.original.status,
193
+ tone: e.original.statusTone,
194
+ labels: Z.statusBadge
195
+ })
196
+ })
197
+ },
198
+ [m.AmountDue]: {
199
+ accessorKey: "amountDueLabel",
200
+ enableSorting: !1,
201
+ header: o(Z.columnAmountDue),
202
+ cell: r("amountDueLabel", m.AmountDue)
203
+ },
204
+ [m.AmountScheduled]: {
205
+ accessorKey: "amountScheduledLabel",
206
+ enableSorting: !1,
207
+ header: o(Z.columnAmountScheduled),
208
+ cell: r("amountScheduledLabel", m.AmountScheduled)
209
+ },
210
+ [m.AmountPaid]: {
211
+ accessorKey: "amountPaidLabel",
212
+ enableSorting: !1,
213
+ header: o(Z.columnAmountPaid),
214
+ cell: r("amountPaidLabel", m.AmountPaid, a, "amountPaidIsGap")
215
+ },
216
+ [m.TotalAmount]: {
217
+ accessorKey: "totalAmountLabel",
218
+ enableSorting: !1,
219
+ header: o(Z.columnTotalAmount),
220
+ cell: r("totalAmountLabel", m.TotalAmount)
221
+ },
222
+ [m.AddedOn]: {
223
+ accessorKey: "addedOnLabel",
224
+ enableSorting: !0,
225
+ header: e(Z.columnAddedOn),
226
+ cell: t("addedOnLabel", m.AddedOn)
227
+ }
228
+ };
229
+ }, [Z, I]), we = h(() => [..._e.filter((e) => F.includes(e)).map((e) => Q[e]), {
230
+ id: "actions",
231
+ enableSorting: !1,
232
+ header: () => /* @__PURE__ */ g("span", {
23
233
  className: "ttw:sr-only",
24
- children: n.statusLabel(t.status)
234
+ children: Z.columnActions
25
235
  }),
26
- /* @__PURE__ */ a("span", {
27
- className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
- children: t.fileName
29
- }),
30
- t.onOpen ? /* @__PURE__ */ a(l, {
31
- "aria-hidden": !0,
32
- className: "ttw:size-4"
33
- }) : null
34
- ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
- return t.onOpen ? /* @__PURE__ */ a("button", {
36
- type: "button",
37
- onClick: t.onOpen,
38
- "aria-describedby": s,
39
- "aria-label": n.openItem(t.fileName),
40
- className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
- children: c
42
- }) : /* @__PURE__ */ a("div", {
43
- "aria-describedby": s,
44
- className: u,
45
- children: c
236
+ cell: ({ row: e }) => /* @__PURE__ */ g("div", {
237
+ className: "ttw:flex ttw:justify-end",
238
+ children: /* @__PURE__ */ g(n, {
239
+ variant: "ghost",
240
+ size: "icon",
241
+ "aria-label": Z.openRow(e.original.vendorLabel || Z.missingValue.missing),
242
+ onClick: (t) => {
243
+ t.stopPropagation(), e.original.onOpen();
244
+ },
245
+ children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
246
+ })
247
+ })
248
+ }], [
249
+ Q,
250
+ Z,
251
+ F
252
+ ]), Te = !!(z && V) && !S && !C && !L && x.length === 0 && Ce === !0, $ = /* @__PURE__ */ _("div", {
253
+ className: "ttw:relative ttw:w-80",
254
+ children: [/* @__PURE__ */ g(fe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ g(a, {
255
+ className: "ttw:pl-9",
256
+ type: "search",
257
+ "aria-label": Z.searchLabel,
258
+ placeholder: Z.searchPlaceholder,
259
+ value: xe,
260
+ onChange: (e) => Se(e.target.value)
261
+ })]
262
+ }), Ee = P ? /* @__PURE__ */ g(le, {
263
+ ...P,
264
+ className: "ttw:px-4",
265
+ searchSlot: $
266
+ }) : /* @__PURE__ */ g("div", {
267
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
268
+ children: $
46
269
  });
47
- }
48
- function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
- let f = {
50
- ...t,
51
- ...d
52
- };
53
- return /* @__PURE__ */ o("div", {
54
- className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
- "data-testid": l,
56
- children: [/* @__PURE__ */ o("div", {
57
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
- children: [
59
- /* @__PURE__ */ a("span", {
60
- "aria-live": "polite",
61
- className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
- children: n
63
- }),
64
- /* @__PURE__ */ a("button", {
65
- type: "button",
66
- onClick: i,
67
- "aria-label": r ? f.expand : f.collapse,
68
- "aria-expanded": !r,
69
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
- children: a(r ? u : c, { className: "ttw:size-4" })
71
- }),
72
- /* @__PURE__ */ a("button", {
73
- type: "button",
74
- onClick: s,
75
- "aria-label": f.close,
76
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
- children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
78
- })
79
- ]
80
- }), r ? null : /* @__PURE__ */ a("div", {
81
- className: "ttw:max-h-96 ttw:overflow-y-auto",
82
- children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
- className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
- children: e.caption
85
- }) : null, e.items.map((e) => /* @__PURE__ */ a(g, {
86
- item: e,
87
- labels: f
88
- }, e.id))] }, e.id))
270
+ return /* @__PURE__ */ _("div", {
271
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
272
+ children: [Y ? /* @__PURE__ */ _(e, {
273
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-none ttw:border-0 ttw:border-l-4 ttw:border-l-amber-600 ttw:bg-amber-50 ttw:py-2 ttw:text-amber-700",
274
+ children: [/* @__PURE__ */ g(t, {
275
+ className: "ttw:flex-1 ttw:font-semibold",
276
+ children: Y
277
+ }), X ? /* @__PURE__ */ g(n, {
278
+ type: "button",
279
+ variant: "outline",
280
+ className: "ttw:text-foreground",
281
+ onClick: X,
282
+ children: Z.duplicateBillsReviewButton
283
+ }) : null]
284
+ }) : null, /* @__PURE__ */ _(o, {
285
+ value: M,
286
+ onValueChange: N,
287
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
288
+ children: [/* @__PURE__ */ _("div", {
289
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
290
+ children: [/* @__PURE__ */ g(s, {
291
+ "aria-label": Z.filterTabsLabel,
292
+ children: j.map((e) => /* @__PURE__ */ _(te, {
293
+ value: e.id,
294
+ className: "ttw:min-w-28",
295
+ children: [e.icon, e.label]
296
+ }, e.id))
297
+ }), z ? /* @__PURE__ */ _(n, {
298
+ onClick: z,
299
+ children: [/* @__PURE__ */ g(de, { className: "ttw:size-4" }), Z.createButton]
300
+ }) : null]
301
+ }), (() => {
302
+ let e = C ? /* @__PURE__ */ g(ae, {
303
+ title: Z.errorTitle,
304
+ description: Z.errorDescription,
305
+ retryLabel: B ? Z.errorRetry : void 0,
306
+ onRetry: B
307
+ }) : Te && z && V ? /* @__PURE__ */ g("div", {
308
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
309
+ children: K && q ? /* @__PURE__ */ g(u, {
310
+ emailAddress: K,
311
+ onCopyEmail: q,
312
+ onFilesSelected: V,
313
+ accept: p,
314
+ maxFiles: H,
315
+ uploadStatus: W,
316
+ uploadErrorMessage: G,
317
+ onEnterManually: U ?? z,
318
+ labels: Z.addBill
319
+ }) : /* @__PURE__ */ g(u, {
320
+ onFilesSelected: V,
321
+ accept: p,
322
+ maxFiles: H,
323
+ uploadStatus: W,
324
+ uploadErrorMessage: G,
325
+ onEnterManually: U ?? z,
326
+ labels: Z.addBill
327
+ })
328
+ }) : /* @__PURE__ */ g(r, {
329
+ columns: we,
330
+ data: x,
331
+ isLoading: S,
332
+ sorting: ve,
333
+ onSortingChange: ye,
334
+ pageSize: be,
335
+ onPageSizeChange: w,
336
+ pageSizeOptions: T,
337
+ pageInfo: E,
338
+ hasNextPage: D,
339
+ hasPrevPage: O,
340
+ onNextPage: k,
341
+ onPrevPage: A,
342
+ onRowClick: (e) => e.onOpen(),
343
+ rowClassName: (e) => he[e.rowTone ?? "default"],
344
+ filterComponent: Ee,
345
+ children: L ? /* @__PURE__ */ g(l, {
346
+ title: Z.filteredEmptyTitle,
347
+ description: Z.filteredEmptyDescription
348
+ }) : R ? /* @__PURE__ */ g(l, {
349
+ title: R.title,
350
+ description: R.description
351
+ }) : void 0
352
+ });
353
+ return j.map((t) => /* @__PURE__ */ g(ee, {
354
+ value: t.id,
355
+ children: t.id === M ? e : null
356
+ }, t.id));
357
+ })()]
89
358
  })]
90
359
  });
91
360
  }
92
361
  //#endregion
93
- export { _ as BillUploadStatusTray, _ as default };
362
+ export { x as BillsScreen, x as default, b as DEFAULT_BILL_COLUMNS };
@@ -0,0 +1,10 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js
2
+ var e = {
3
+ collapse: "Collapse upload status",
4
+ expand: "Expand upload status",
5
+ close: "Close upload status",
6
+ statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : e === "duplicate" ? "Possible duplicate" : "Failed",
7
+ openItem: (e) => `Open ${e}`
8
+ };
9
+ //#endregion
10
+ export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
@@ -1,2 +1,9 @@
1
- import "./index77.js";
2
- import "./index79.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js
2
+ var e = {
3
+ uploading: "ttw:text-muted-foreground",
4
+ ready: "ttw:text-emerald-600",
5
+ duplicate: "ttw:text-orange-600",
6
+ failed: "ttw:text-destructive"
7
+ };
8
+ //#endregion
9
+ export { e as UPLOAD_ITEM_ICON_TONE };