@tesouro/embedded-components-react 0.2.332 → 0.2.336
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.
- package/dist/index.css +3 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +10 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +132 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +107 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +83 -144
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +161 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +12 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +254 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +11 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1274 -1266
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -2
|
@@ -1,10 +1,256 @@
|
|
|
1
|
+
import { Button as e, DataTable as t, DataTableSortableHeader as n, Input as r, Tabs as i, TabsContent as a, TabsList as o, TabsTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as c } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as ee } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import "../../../shared/ui/dist/index.js";
|
|
5
|
+
import { AddBillPanel as l } from "./index7.js";
|
|
6
|
+
import "./index8.js";
|
|
7
|
+
import { BillStatusBadge as u } from "./index19.js";
|
|
8
|
+
import "./index20.js";
|
|
9
|
+
import { MissingValue as d } from "./index49.js";
|
|
10
|
+
import "./index50.js";
|
|
11
|
+
import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index51.js";
|
|
12
|
+
import { BillColumn as m } from "./index53.js";
|
|
13
|
+
import { useMemo as h } from "react";
|
|
14
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
import { ChevronRightIcon as v, PlusIcon as y, SearchIcon as b } from "lucide-react";
|
|
1
16
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
17
|
+
var x = [
|
|
18
|
+
10,
|
|
19
|
+
25,
|
|
20
|
+
50,
|
|
21
|
+
100
|
|
22
|
+
], S = [
|
|
23
|
+
m.Vendor,
|
|
24
|
+
m.DueDate,
|
|
25
|
+
m.ScheduledDate,
|
|
26
|
+
m.PaidDate,
|
|
27
|
+
m.Status,
|
|
28
|
+
m.AmountDue,
|
|
29
|
+
m.AmountScheduled,
|
|
30
|
+
m.AmountPaid,
|
|
31
|
+
m.AddedOn
|
|
32
|
+
], C = [
|
|
33
|
+
m.Vendor,
|
|
34
|
+
m.DueDate,
|
|
35
|
+
m.Status,
|
|
36
|
+
m.AmountDue,
|
|
37
|
+
m.AddedOn
|
|
38
|
+
];
|
|
39
|
+
function w({ rows: w, isLoading: T, isError: E, sorting: D, onSortingChange: O, pageSize: k, onPageSizeChange: te, pageSizeOptions: ne = x, pageInfo: re, hasNextPage: ie, hasPrevPage: A, onNextPage: j, onPrevPage: M, filterTabs: N, selectedFilterTabId: P, onFilterTabChange: F, searchValue: I, onSearchChange: L, visibleColumns: R = C, isSearchActive: z, showAddPanelWhenEmpty: B, emptyState: V, onCreateClick: H, onRetry: U, onFilesSelected: W, maxFiles: G, onEnterManually: K, uploadStatus: q, uploadErrorMessage: J, emailAddress: Y, onCopyEmail: X, labels: Z }) {
|
|
40
|
+
let Q = h(() => ({
|
|
41
|
+
...f,
|
|
42
|
+
...Z,
|
|
43
|
+
statusBadge: {
|
|
44
|
+
...f.statusBadge,
|
|
45
|
+
...Z?.statusBadge
|
|
46
|
+
},
|
|
47
|
+
addBill: {
|
|
48
|
+
...f.addBill,
|
|
49
|
+
...Z?.addBill,
|
|
50
|
+
dropzone: {
|
|
51
|
+
...f.addBill.dropzone,
|
|
52
|
+
...Z?.addBill?.dropzone
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
sortableHeader: {
|
|
56
|
+
...f.sortableHeader,
|
|
57
|
+
...Z?.sortableHeader
|
|
58
|
+
},
|
|
59
|
+
missingValue: {
|
|
60
|
+
...f.missingValue,
|
|
61
|
+
...Z?.missingValue
|
|
62
|
+
}
|
|
63
|
+
}), [Z]), $ = h(() => {
|
|
64
|
+
let e = (e) => function({ column: t }) {
|
|
65
|
+
return /* @__PURE__ */ g(n, {
|
|
66
|
+
column: t,
|
|
67
|
+
title: e,
|
|
68
|
+
labels: Q.sortableHeader
|
|
69
|
+
});
|
|
70
|
+
}, t = (e) => function({ row: t }) {
|
|
71
|
+
return t.original[e] || /* @__PURE__ */ g(d, { labels: Q.missingValue });
|
|
72
|
+
}, r = (e) => function({ row: t }) {
|
|
73
|
+
return /* @__PURE__ */ g("div", {
|
|
74
|
+
className: "ttw:text-right",
|
|
75
|
+
children: t.original[e] || /* @__PURE__ */ g(d, { labels: Q.missingValue })
|
|
76
|
+
});
|
|
77
|
+
}, i = (e) => function() {
|
|
78
|
+
return /* @__PURE__ */ g("div", {
|
|
79
|
+
className: "ttw:text-right",
|
|
80
|
+
children: e
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
[m.Vendor]: {
|
|
85
|
+
accessorKey: "vendorLabel",
|
|
86
|
+
enableSorting: !0,
|
|
87
|
+
header: e(Q.columnVendor),
|
|
88
|
+
cell: t("vendorLabel")
|
|
89
|
+
},
|
|
90
|
+
[m.DueDate]: {
|
|
91
|
+
accessorKey: "dueDateLabel",
|
|
92
|
+
enableSorting: !0,
|
|
93
|
+
header: e(Q.columnDueDate),
|
|
94
|
+
cell: t("dueDateLabel")
|
|
95
|
+
},
|
|
96
|
+
[m.ScheduledDate]: {
|
|
97
|
+
accessorKey: "scheduledDateLabel",
|
|
98
|
+
enableSorting: !0,
|
|
99
|
+
header: e(Q.columnScheduledDate),
|
|
100
|
+
cell: t("scheduledDateLabel")
|
|
101
|
+
},
|
|
102
|
+
[m.PaidDate]: {
|
|
103
|
+
accessorKey: "paidDateLabel",
|
|
104
|
+
enableSorting: !1,
|
|
105
|
+
header: Q.columnPaidDate,
|
|
106
|
+
cell: t("paidDateLabel")
|
|
107
|
+
},
|
|
108
|
+
[m.Status]: {
|
|
109
|
+
accessorKey: "status",
|
|
110
|
+
enableSorting: !1,
|
|
111
|
+
header: Q.columnStatus,
|
|
112
|
+
cell: ({ row: e }) => /* @__PURE__ */ g(u, {
|
|
113
|
+
status: e.original.status,
|
|
114
|
+
tone: e.original.statusTone,
|
|
115
|
+
labels: Q.statusBadge
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
[m.AmountDue]: {
|
|
119
|
+
accessorKey: "amountDueLabel",
|
|
120
|
+
enableSorting: !1,
|
|
121
|
+
header: i(Q.columnAmountDue),
|
|
122
|
+
cell: r("amountDueLabel")
|
|
123
|
+
},
|
|
124
|
+
[m.AmountScheduled]: {
|
|
125
|
+
accessorKey: "amountScheduledLabel",
|
|
126
|
+
enableSorting: !1,
|
|
127
|
+
header: i(Q.columnAmountScheduled),
|
|
128
|
+
cell: r("amountScheduledLabel")
|
|
129
|
+
},
|
|
130
|
+
[m.AmountPaid]: {
|
|
131
|
+
accessorKey: "amountPaidLabel",
|
|
132
|
+
enableSorting: !1,
|
|
133
|
+
header: i(Q.columnAmountPaid),
|
|
134
|
+
cell: r("amountPaidLabel")
|
|
135
|
+
},
|
|
136
|
+
[m.AddedOn]: {
|
|
137
|
+
accessorKey: "addedOnLabel",
|
|
138
|
+
enableSorting: !0,
|
|
139
|
+
header: e(Q.columnAddedOn),
|
|
140
|
+
cell: t("addedOnLabel")
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}, [Q]), ae = h(() => [...S.filter((e) => R.includes(e)).map((e) => $[e]), {
|
|
144
|
+
id: "actions",
|
|
145
|
+
enableSorting: !1,
|
|
146
|
+
header: () => /* @__PURE__ */ g("span", {
|
|
147
|
+
className: "ttw:sr-only",
|
|
148
|
+
children: Q.columnActions
|
|
149
|
+
}),
|
|
150
|
+
cell: ({ row: t }) => /* @__PURE__ */ g("div", {
|
|
151
|
+
className: "ttw:flex ttw:justify-end",
|
|
152
|
+
children: /* @__PURE__ */ g(e, {
|
|
153
|
+
variant: "ghost",
|
|
154
|
+
size: "icon",
|
|
155
|
+
"aria-label": Q.openRow(t.original.vendorLabel || Q.missingValue.missing),
|
|
156
|
+
onClick: (e) => {
|
|
157
|
+
e.stopPropagation(), t.original.onOpen();
|
|
158
|
+
},
|
|
159
|
+
children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
}], [
|
|
163
|
+
$,
|
|
164
|
+
Q,
|
|
165
|
+
R
|
|
166
|
+
]), oe = !!(H && W) && !T && !E && !z && w.length === 0 && B === !0, se = /* @__PURE__ */ g("div", {
|
|
167
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
168
|
+
children: /* @__PURE__ */ _("div", {
|
|
169
|
+
className: "ttw:relative ttw:w-80",
|
|
170
|
+
children: [/* @__PURE__ */ g(b, { 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(r, {
|
|
171
|
+
className: "ttw:pl-9",
|
|
172
|
+
type: "search",
|
|
173
|
+
"aria-label": Q.searchLabel,
|
|
174
|
+
placeholder: Q.searchPlaceholder,
|
|
175
|
+
value: I,
|
|
176
|
+
onChange: (e) => L(e.target.value)
|
|
177
|
+
})]
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
return /* @__PURE__ */ _(i, {
|
|
181
|
+
value: P,
|
|
182
|
+
onValueChange: F,
|
|
183
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
184
|
+
children: [/* @__PURE__ */ _("div", {
|
|
185
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
186
|
+
children: [/* @__PURE__ */ g(o, {
|
|
187
|
+
"aria-label": Q.filterTabsLabel,
|
|
188
|
+
children: N.map((e) => /* @__PURE__ */ _(s, {
|
|
189
|
+
value: e.id,
|
|
190
|
+
className: "ttw:min-w-28",
|
|
191
|
+
children: [e.icon, e.label]
|
|
192
|
+
}, e.id))
|
|
193
|
+
}), H ? /* @__PURE__ */ _(e, {
|
|
194
|
+
onClick: H,
|
|
195
|
+
children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), Q.createButton]
|
|
196
|
+
}) : null]
|
|
197
|
+
}), (() => {
|
|
198
|
+
let e = E ? /* @__PURE__ */ g(ee, {
|
|
199
|
+
title: Q.errorTitle,
|
|
200
|
+
description: Q.errorDescription,
|
|
201
|
+
retryLabel: U ? Q.errorRetry : void 0,
|
|
202
|
+
onRetry: U
|
|
203
|
+
}) : oe && H && W ? /* @__PURE__ */ g("div", {
|
|
204
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
205
|
+
children: Y && X ? /* @__PURE__ */ g(l, {
|
|
206
|
+
emailAddress: Y,
|
|
207
|
+
onCopyEmail: X,
|
|
208
|
+
onFilesSelected: W,
|
|
209
|
+
accept: p,
|
|
210
|
+
maxFiles: G,
|
|
211
|
+
uploadStatus: q,
|
|
212
|
+
uploadErrorMessage: J,
|
|
213
|
+
onEnterManually: K ?? H,
|
|
214
|
+
labels: Q.addBill
|
|
215
|
+
}) : /* @__PURE__ */ g(l, {
|
|
216
|
+
onFilesSelected: W,
|
|
217
|
+
accept: p,
|
|
218
|
+
maxFiles: G,
|
|
219
|
+
uploadStatus: q,
|
|
220
|
+
uploadErrorMessage: J,
|
|
221
|
+
onEnterManually: K ?? H,
|
|
222
|
+
labels: Q.addBill
|
|
223
|
+
})
|
|
224
|
+
}) : /* @__PURE__ */ g(t, {
|
|
225
|
+
columns: ae,
|
|
226
|
+
data: w,
|
|
227
|
+
isLoading: T,
|
|
228
|
+
sorting: D,
|
|
229
|
+
onSortingChange: O,
|
|
230
|
+
pageSize: k,
|
|
231
|
+
onPageSizeChange: te,
|
|
232
|
+
pageSizeOptions: ne,
|
|
233
|
+
pageInfo: re,
|
|
234
|
+
hasNextPage: ie,
|
|
235
|
+
hasPrevPage: A,
|
|
236
|
+
onNextPage: j,
|
|
237
|
+
onPrevPage: M,
|
|
238
|
+
onRowClick: (e) => e.onOpen(),
|
|
239
|
+
filterComponent: se,
|
|
240
|
+
children: z ? /* @__PURE__ */ g(c, {
|
|
241
|
+
title: Q.filteredEmptyTitle,
|
|
242
|
+
description: Q.filteredEmptyDescription
|
|
243
|
+
}) : V ? /* @__PURE__ */ g(c, {
|
|
244
|
+
title: V.title,
|
|
245
|
+
description: V.description
|
|
246
|
+
}) : void 0
|
|
247
|
+
});
|
|
248
|
+
return N.map((t) => /* @__PURE__ */ g(a, {
|
|
249
|
+
value: t.id,
|
|
250
|
+
children: t.id === P ? e : null
|
|
251
|
+
}, t.id));
|
|
252
|
+
})()]
|
|
253
|
+
});
|
|
254
|
+
}
|
|
9
255
|
//#endregion
|
|
10
|
-
export {
|
|
256
|
+
export { w as BillsScreen, w as default, C as DEFAULT_BILL_COLUMNS };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
collapse: "Collapse upload status",
|
|
4
|
+
expand: "Expand upload status",
|
|
5
|
+
close: "Close upload status",
|
|
6
|
+
statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : "Failed",
|
|
7
|
+
openItem: (e) => `Open ${e}`
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
8
|
-
export { e as
|
|
10
|
+
export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
|
|
@@ -1,93 +1,8 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index54.js";
|
|
3
|
-
import { UPLOAD_ITEM_ICON_TONE as n } from "./index55.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, Loader2 as d, X as f, XCircle as p } from "lucide-react";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}) : a(t === "ready" ? s : p, {
|
|
14
|
-
"aria-hidden": !0,
|
|
15
|
-
className: r
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function h({ item: t, labels: n }) {
|
|
19
|
-
let s = r(), c = /* @__PURE__ */ o(i, { children: [
|
|
20
|
-
/* @__PURE__ */ a(m, { status: t.status }),
|
|
21
|
-
/* @__PURE__ */ a("span", {
|
|
22
|
-
id: s,
|
|
23
|
-
className: "ttw:sr-only",
|
|
24
|
-
children: n.statusLabel(t.status)
|
|
25
|
-
}),
|
|
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
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
|
|
49
|
-
let p = {
|
|
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 ? p.expand : p.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": p.close,
|
|
76
|
-
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
77
|
-
children: /* @__PURE__ */ a(f, { 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(h, {
|
|
86
|
-
item: e,
|
|
87
|
-
labels: p
|
|
88
|
-
}, e.id))] }, e.id))
|
|
89
|
-
})]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
uploading: "ttw:text-muted-foreground",
|
|
4
|
+
ready: "ttw:text-emerald-600",
|
|
5
|
+
failed: "ttw:text-destructive"
|
|
6
|
+
};
|
|
92
7
|
//#endregion
|
|
93
|
-
export {
|
|
8
|
+
export { e as UPLOAD_ITEM_ICON_TONE };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index55.js";
|
|
3
|
+
import { UPLOAD_ITEM_ICON_TONE as n } from "./index56.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, Loader2 as d, X as f, XCircle as p } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js
|
|
8
|
+
function m({ status: t }) {
|
|
9
|
+
let r = e("ttw:size-4", n[t]);
|
|
10
|
+
return t === "uploading" ? /* @__PURE__ */ a(d, {
|
|
11
|
+
"aria-hidden": !0,
|
|
12
|
+
className: e(r, "ttw:animate-spin")
|
|
13
|
+
}) : a(t === "ready" ? s : p, {
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
className: r
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function h({ item: t, labels: n }) {
|
|
19
|
+
let s = r(), c = /* @__PURE__ */ o(i, { children: [
|
|
20
|
+
/* @__PURE__ */ a(m, { status: t.status }),
|
|
21
|
+
/* @__PURE__ */ a("span", {
|
|
22
|
+
id: s,
|
|
23
|
+
className: "ttw:sr-only",
|
|
24
|
+
children: n.statusLabel(t.status)
|
|
25
|
+
}),
|
|
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
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
|
|
49
|
+
let p = {
|
|
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 ? p.expand : p.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": p.close,
|
|
76
|
+
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
77
|
+
children: /* @__PURE__ */ a(f, { 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(h, {
|
|
86
|
+
item: e,
|
|
87
|
+
labels: p
|
|
88
|
+
}, e.id))] }, e.id))
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { g as BillUploadStatusTray, g as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
message: "Data extracted automatically — please review all details to make sure they match",
|
|
4
|
-
dismiss: "Dismiss this notice"
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as EXTRACTION_NOTICE_LABELS_EN };
|
|
1
|
+
import "./index55.js";
|
|
2
|
+
import "./index57.js";
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index59.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Info as r, X as i } from "lucide-react";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ n("div", {
|
|
11
|
-
className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
|
|
12
|
-
"data-testid": o,
|
|
13
|
-
children: [
|
|
14
|
-
/* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
|
|
15
|
-
/* @__PURE__ */ t("p", {
|
|
16
|
-
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
17
|
-
children: c.message
|
|
18
|
-
}),
|
|
19
|
-
/* @__PURE__ */ t("button", {
|
|
20
|
-
type: "button",
|
|
21
|
-
onClick: a,
|
|
22
|
-
"aria-label": c.dismiss,
|
|
23
|
-
className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
24
|
-
children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
|
|
25
|
-
})
|
|
26
|
-
]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
message: "Data extracted automatically — please review all details to make sure they match",
|
|
4
|
+
dismiss: "Dismiss this notice"
|
|
5
|
+
};
|
|
29
6
|
//#endregion
|
|
30
|
-
export {
|
|
7
|
+
export { e as EXTRACTION_NOTICE_LABELS_EN };
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "
|
|
1
|
+
import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index60.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Info as r, X as i } from "lucide-react";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js
|
|
5
|
+
function a({ onDismiss: a, testId: o, labels: s }) {
|
|
6
|
+
let c = {
|
|
7
|
+
...e,
|
|
8
|
+
...s
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("div", {
|
|
11
|
+
className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
|
|
12
|
+
"data-testid": o,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
|
|
15
|
+
/* @__PURE__ */ t("p", {
|
|
16
|
+
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
17
|
+
children: c.message
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: a,
|
|
22
|
+
"aria-label": c.dismiss,
|
|
23
|
+
className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
24
|
+
children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as ExtractionNotice, a as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
revealValue: "Show value",
|
|
4
|
-
hideValue: "Hide value"
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as REVEALABLE_FIELD_LABELS_EN };
|
|
1
|
+
import "./index60.js";
|
|
2
|
+
import "./index61.js";
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { REVEALABLE_FIELD_LABELS_EN as t } from "./index62.js";
|
|
3
|
-
import { useState as n } from "react";
|
|
4
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
|
|
12
|
-
return /* @__PURE__ */ i("div", {
|
|
13
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
|
|
14
|
-
children: [/* @__PURE__ */ i("div", {
|
|
15
|
-
className: "ttw:min-w-0",
|
|
16
|
-
children: [/* @__PURE__ */ r("dt", {
|
|
17
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
18
|
-
children: s.label
|
|
19
|
-
}), /* @__PURE__ */ r("dd", {
|
|
20
|
-
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
21
|
-
children: f
|
|
22
|
-
})]
|
|
23
|
-
}), s.maskedValue ? /* @__PURE__ */ r(e, {
|
|
24
|
-
type: "button",
|
|
25
|
-
variant: "ghost",
|
|
26
|
-
size: "icon",
|
|
27
|
-
"aria-label": u ? l.hideValue : l.revealValue,
|
|
28
|
-
onClick: () => d((e) => !e),
|
|
29
|
-
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
-
}) : null]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
revealValue: "Show value",
|
|
4
|
+
hideValue: "Hide value"
|
|
5
|
+
};
|
|
33
6
|
//#endregion
|
|
34
|
-
export {
|
|
7
|
+
export { e as REVEALABLE_FIELD_LABELS_EN };
|
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index63.js";
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { REVEALABLE_FIELD_LABELS_EN as t } from "./index63.js";
|
|
3
|
+
import { useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js
|
|
7
|
+
function s({ field: s, labels: c }) {
|
|
8
|
+
let l = {
|
|
9
|
+
...t,
|
|
10
|
+
...c
|
|
11
|
+
}, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
|
|
12
|
+
return /* @__PURE__ */ i("div", {
|
|
13
|
+
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
|
|
14
|
+
children: [/* @__PURE__ */ i("div", {
|
|
15
|
+
className: "ttw:min-w-0",
|
|
16
|
+
children: [/* @__PURE__ */ r("dt", {
|
|
17
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
18
|
+
children: s.label
|
|
19
|
+
}), /* @__PURE__ */ r("dd", {
|
|
20
|
+
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
21
|
+
children: f
|
|
22
|
+
})]
|
|
23
|
+
}), s.maskedValue ? /* @__PURE__ */ r(e, {
|
|
24
|
+
type: "button",
|
|
25
|
+
variant: "ghost",
|
|
26
|
+
size: "icon",
|
|
27
|
+
"aria-label": u ? l.hideValue : l.revealValue,
|
|
28
|
+
onClick: () => d((e) => !e),
|
|
29
|
+
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
+
}) : null]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { s as RevealableField, s as default };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var t = {
|
|
4
|
-
title: "Review transaction",
|
|
5
|
-
hiddenDescription: "Review the payment before submitting it.",
|
|
6
|
-
payToHeading: "Pay to",
|
|
7
|
-
backButton: "Back",
|
|
8
|
-
submitButton: "Submit",
|
|
9
|
-
...e
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
|
|
1
|
+
import "./index63.js";
|
|
2
|
+
import "./index64.js";
|