@tesouro/embedded-components-react 0.11.216 → 0.11.217

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 (29) hide show
  1. package/dist/index.css +0 -3
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +49 -49
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +287 -298
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +62 -63
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +12 -54
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +4 -5
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -7
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +2 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +45 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +10 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +390 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +9 -9
  17. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +12 -9
  19. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/bills-list/ui/dist/index19.js → shared/ui/dist/lib/EmptyValue/EmptyValue.js} +6 -6
  21. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyValue/labels.js +3 -0
  22. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/{DateDisclosure/DateDisclosure.js → HintDisclosure/HintDisclosure.js} +9 -8
  23. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js +19 -0
  24. package/package.json +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +0 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +0 -55
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +0 -17
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +0 -468
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +0 -3
@@ -1,2 +1,390 @@
1
- import "./index15.js";
2
- import "./index16.js";
1
+ import { Button as e, ContextMenuItem as t, DataTable as n, DataTableSortableHeader as r, Input as i, Separator as a, Skeleton as ee, Tabs as o, TabsContent as te, TabsList as ne, TabsTrigger as re } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as s } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as ie } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import { HintDisclosure as ae } from "../../../../shared/ui/dist/lib/HintDisclosure/HintDisclosure.js";
5
+ import { EmptyValue as c } from "../../../../shared/ui/dist/lib/EmptyValue/EmptyValue.js";
6
+ import { RowStatusIcon as oe } from "../../../../shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js";
7
+ import { DueDateText as se } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
8
+ import { AttentionStrip as ce } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
9
+ import { AttentionViewBar as le } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
10
+ import "../../../../shared/ui/dist/index.js";
11
+ import { BillDuplicateIcon as ue } from "../../../ui/dist/index6.js";
12
+ import { BillOverflowMenu as de } from "../../../ui/dist/index11.js";
13
+ import { getAcceptedBillUploadFiles as fe } from "../../../ui/dist/index17.js";
14
+ import "../../../ui/dist/index.js";
15
+ import { AddBillPanel as l } from "./index3.js";
16
+ import "./index4.js";
17
+ import { BillSummaryCards as pe } from "./index9.js";
18
+ import "./index10.js";
19
+ import { BillsFilterBar as me } from "./index13.js";
20
+ import "./index14.js";
21
+ import { BillStatusBadge as he } from "../../../../shared/document-status/ui/dist/index4.js";
22
+ import "../../../../shared/document-status/ui/dist/index.js";
23
+ import { BILLS_SCREEN_LABELS_EN as u, BILLS_SCREEN_UPLOAD_ACCEPT as d } from "./index15.js";
24
+ import { BillColumn as f } from "./index16.js";
25
+ import { Fragment as ge, useMemo as p, useState as _e } from "react";
26
+ import { createPortal as ve } from "react-dom";
27
+ import { Fragment as ye, jsx as m, jsxs as h } from "react/jsx-runtime";
28
+ import { FileQuestionIcon as be, SearchIcon as xe, UploadIcon as Se } from "lucide-react";
29
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js
30
+ var Ce = [
31
+ 10,
32
+ 25,
33
+ 50,
34
+ 100
35
+ ], we = 240;
36
+ function Te(e, t) {
37
+ return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.emptyValue.notEntered;
38
+ }
39
+ var Ee = 56, g = [
40
+ f.Vendor,
41
+ f.InvoiceNumber,
42
+ f.TotalAmount,
43
+ f.AmountDue,
44
+ f.Status,
45
+ f.DueDate,
46
+ f.AddedOn
47
+ ];
48
+ function _({ rows: _, isLoading: v, isError: y, sorting: De, onSortingChange: Oe, pageSize: ke, onPageSizeChange: Ae, pageSizeOptions: b = Ce, pageInfo: je, hasNextPage: x, hasPrevPage: S, onNextPage: Me, onPrevPage: Ne, filterTabs: C, selectedFilterTabId: w, onFilterTabChange: Pe, searchValue: Fe, onSearchChange: Ie, filters: T, visibleColumns: E = g, keepsColumnOrder: D = !1, isSortable: O = !0, cellTestIds: k, isSearchActive: A, showAddPanelWhenEmpty: Le, emptyState: j, onCreateClick: M, headerActionContainer: N, onRetry: P, onFilesSelected: F, maxFiles: I, onEnterManually: L, uploadStatus: R, uploadErrorMessage: z, emailAddress: B, onCopyEmail: V, labels: H, summaryCards: U, attentionStrip: W, attentionView: G }) {
49
+ let K = p(() => ({
50
+ ...u,
51
+ ...H,
52
+ statusBadge: {
53
+ ...u.statusBadge,
54
+ ...H?.statusBadge
55
+ },
56
+ addBill: {
57
+ ...u.addBill,
58
+ ...H?.addBill,
59
+ dropzone: {
60
+ ...u.addBill.dropzone,
61
+ ...H?.addBill?.dropzone
62
+ }
63
+ },
64
+ sortableHeader: {
65
+ ...u.sortableHeader,
66
+ ...H?.sortableHeader
67
+ },
68
+ emptyValue: {
69
+ ...u.emptyValue,
70
+ ...H?.emptyValue
71
+ }
72
+ }), [H]), q = _.some((e) => e.menu?.items.length), [Re, J] = _e(!1), Y = !!F, X = (e) => Array.from(e.dataTransfer.types).includes("Files"), ze = (e) => {
73
+ Y && X(e) && (e.preventDefault(), J(!0));
74
+ }, Be = (e) => {
75
+ Y && X(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", J(!0));
76
+ }, Ve = (e) => {
77
+ !e.currentTarget.contains(e.relatedTarget) && Y && J(!1);
78
+ }, He = (e) => {
79
+ if (!Y) return;
80
+ e.preventDefault(), J(!1);
81
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = fe(t, d, I !== 1);
82
+ n.length && F?.(n);
83
+ }, Z = p(() => {
84
+ let e = (e) => O ? function({ column: t }) {
85
+ return /* @__PURE__ */ m(r, {
86
+ column: t,
87
+ title: e,
88
+ labels: K.sortableHeader
89
+ });
90
+ } : e, t = /* @__PURE__ */ m(c, { labels: K.emptyValue }), n = (e, n) => function({ row: r }) {
91
+ return /* @__PURE__ */ m("span", {
92
+ className: "ttw:whitespace-nowrap",
93
+ "data-testid": k?.[n],
94
+ children: r.original[e] || t
95
+ });
96
+ }, i = function({ row: e }) {
97
+ return /* @__PURE__ */ m("span", {
98
+ className: "ttw:whitespace-nowrap",
99
+ "data-testid": k?.[f.DueDate],
100
+ children: /* @__PURE__ */ m(se, {
101
+ label: e.original.dueDateLabel || t,
102
+ overdueLabel: e.original.dueDateOverdueLabel,
103
+ accessibleLabel: e.original.dueDateAccessibleLabel
104
+ })
105
+ });
106
+ }, a = (e, n) => function({ row: r }) {
107
+ return /* @__PURE__ */ m("div", {
108
+ className: "ttw:text-right ttw:whitespace-nowrap",
109
+ "data-testid": k?.[n],
110
+ children: r.original[e] || t
111
+ });
112
+ }, o = (e) => function() {
113
+ return /* @__PURE__ */ m("div", {
114
+ className: "ttw:text-right",
115
+ children: e
116
+ });
117
+ };
118
+ return {
119
+ [f.Vendor]: {
120
+ accessorKey: "vendorLabel",
121
+ enableSorting: O,
122
+ minSize: we,
123
+ header: e(K.columnVendor),
124
+ cell: ({ row: e }) => !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ m("div", {
125
+ "data-testid": k?.[f.Vendor],
126
+ children: /* @__PURE__ */ m(ee, {
127
+ className: "ttw:h-4 ttw:w-32",
128
+ "aria-hidden": !0
129
+ })
130
+ }) : /* @__PURE__ */ m("span", {
131
+ className: "ttw:whitespace-nowrap",
132
+ "data-testid": k?.[f.Vendor],
133
+ children: e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ m(c, { labels: { notEntered: K.vendorUnavailable } }) : t)
134
+ })
135
+ },
136
+ [f.InvoiceNumber]: {
137
+ accessorKey: "invoiceNumberLabel",
138
+ enableSorting: !1,
139
+ header: () => K.columnInvoiceNumber,
140
+ cell: ({ row: e }) => /* @__PURE__ */ h("span", {
141
+ className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:whitespace-nowrap",
142
+ "data-testid": k?.[f.InvoiceNumber],
143
+ children: [e.original.invoiceNumberLabel || t, e.original.duplicateFlag ? /* @__PURE__ */ m(oe, {
144
+ icon: be,
145
+ tone: "warning",
146
+ label: e.original.duplicateFlag.label
147
+ }) : null]
148
+ })
149
+ },
150
+ [f.TotalAmount]: {
151
+ accessorKey: "totalAmountLabel",
152
+ enableSorting: !1,
153
+ header: o(K.columnTotalAmount),
154
+ cell: a("totalAmountLabel", f.TotalAmount)
155
+ },
156
+ [f.AmountDue]: {
157
+ accessorKey: "amountDueLabel",
158
+ enableSorting: !1,
159
+ header: o(K.columnAmountDue),
160
+ cell: a("amountDueLabel", f.AmountDue)
161
+ },
162
+ [f.Status]: {
163
+ accessorKey: "status",
164
+ enableSorting: !1,
165
+ header: K.columnStatus,
166
+ cell: ({ row: e }) => {
167
+ let t = /* @__PURE__ */ m(he, {
168
+ status: e.original.status,
169
+ tone: e.original.statusTone,
170
+ labels: K.statusBadge
171
+ }), n = e.original.statusHint;
172
+ return /* @__PURE__ */ m("div", {
173
+ className: "ttw:flex ttw:items-center ttw:gap-1",
174
+ "data-testid": k?.[f.Status],
175
+ children: n ? /* @__PURE__ */ m(ae, {
176
+ hint: n.label,
177
+ accessibleLabel: n.accessibleLabel,
178
+ children: t
179
+ }) : t
180
+ });
181
+ }
182
+ },
183
+ [f.DueDate]: {
184
+ accessorKey: "dueDateLabel",
185
+ enableSorting: O,
186
+ header: e(K.columnDueDate),
187
+ cell: i
188
+ },
189
+ [f.AddedOn]: {
190
+ accessorKey: "addedOnLabel",
191
+ enableSorting: O,
192
+ header: e(K.columnAddedOn),
193
+ cell: n("addedOnLabel", f.AddedOn)
194
+ }
195
+ };
196
+ }, [
197
+ K,
198
+ k,
199
+ O
200
+ ]), Ue = p(() => [...(D ? E : g.filter((e) => E.includes(e))).map((e) => Z[e]), ...q ? [{
201
+ id: "actions",
202
+ enableSorting: !1,
203
+ size: Ee,
204
+ header: () => /* @__PURE__ */ m("span", {
205
+ className: "ttw:sr-only",
206
+ children: K.columnActions
207
+ }),
208
+ cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ m("div", {
209
+ className: "ttw:flex ttw:justify-end",
210
+ children: /* @__PURE__ */ m(de, {
211
+ actions: e.original.menu.items.map((e) => ({
212
+ ...e,
213
+ variant: "ghost"
214
+ })),
215
+ triggerLabel: e.original.menu.triggerLabel,
216
+ placement: "table"
217
+ })
218
+ }) : null
219
+ }] : []], [
220
+ Z,
221
+ q,
222
+ D,
223
+ K,
224
+ E
225
+ ]), Q = !!(M && F) && !v && !y && !A && _.length === 0 && Le === !0, $ = M ? /* @__PURE__ */ m(e, {
226
+ onClick: M,
227
+ children: K.createButton
228
+ }) : null, We = /* @__PURE__ */ h("div", {
229
+ className: "ttw:relative ttw:w-80",
230
+ children: [/* @__PURE__ */ m(xe, { 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__ */ m(i, {
231
+ className: "ttw:pl-9",
232
+ type: "search",
233
+ "aria-label": K.searchLabel,
234
+ placeholder: K.searchPlaceholder,
235
+ value: Fe,
236
+ onChange: (e) => Ie(e.target.value)
237
+ })]
238
+ }), Ge = /* @__PURE__ */ m(ne, {
239
+ variant: "pills",
240
+ "aria-label": K.filterTabsLabel,
241
+ children: C.map((e) => /* @__PURE__ */ h(ge, { children: [e.startsGroup ? /* @__PURE__ */ m(a, {
242
+ orientation: "vertical",
243
+ className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
244
+ }) : null, /* @__PURE__ */ m(re, {
245
+ value: e.id,
246
+ count: e.badge,
247
+ countTone: e.tone,
248
+ className: "ttw:min-w-28",
249
+ children: /* @__PURE__ */ m("span", {
250
+ className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
251
+ children: e.label
252
+ })
253
+ })] }, e.id))
254
+ }), Ke = G ? /* @__PURE__ */ m(le, { ...G }) : Ge, qe = T ? /* @__PURE__ */ m(me, {
255
+ ...T,
256
+ className: "ttw:px-4",
257
+ leadingSlot: Ke,
258
+ searchSlot: We
259
+ }) : /* @__PURE__ */ h("div", {
260
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
261
+ children: [Ke, /* @__PURE__ */ m("div", {
262
+ className: "ttw:ml-auto",
263
+ children: We
264
+ })]
265
+ }), Je = !y && !Q, Ye = y ? /* @__PURE__ */ m(ie, {
266
+ title: K.errorTitle,
267
+ description: K.errorDescription,
268
+ retryLabel: P ? K.errorRetry : void 0,
269
+ onRetry: P
270
+ }) : Q && M && F ? /* @__PURE__ */ m("div", {
271
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
272
+ children: B && V ? /* @__PURE__ */ m(l, {
273
+ emailAddress: B,
274
+ onCopyEmail: V,
275
+ onFilesSelected: F,
276
+ accept: d,
277
+ maxFiles: I,
278
+ uploadStatus: R,
279
+ uploadErrorMessage: z,
280
+ onEnterManually: L ?? M,
281
+ labels: K.addBill
282
+ }) : /* @__PURE__ */ m(l, {
283
+ onFilesSelected: F,
284
+ accept: d,
285
+ maxFiles: I,
286
+ uploadStatus: R,
287
+ uploadErrorMessage: z,
288
+ onEnterManually: L ?? M,
289
+ labels: K.addBill
290
+ })
291
+ }) : /* @__PURE__ */ h("div", {
292
+ className: "ttw:relative",
293
+ onDragEnter: ze,
294
+ onDragOver: Be,
295
+ onDragLeave: Ve,
296
+ onDrop: He,
297
+ children: [/* @__PURE__ */ m(n, {
298
+ columns: Ue,
299
+ data: _,
300
+ getRowId: (e) => e.rowKey,
301
+ animatesNewRows: !0,
302
+ isLoading: v,
303
+ sorting: De,
304
+ onSortingChange: Oe,
305
+ pageSize: ke,
306
+ onPageSizeChange: Ae,
307
+ pageSizeOptions: b,
308
+ showPagination: b.length > 1 || x || S,
309
+ pageInfo: je,
310
+ hasNextPage: x,
311
+ hasPrevPage: S,
312
+ onNextPage: Me,
313
+ onPrevPage: Ne,
314
+ onRowClick: (e) => e.onOpen(),
315
+ rowAriaLabel: (e) => K.openRow(e.vendorLabel || Te(e.vendorLookup, K)),
316
+ rowGroup: (e) => e.group ? {
317
+ key: e.group.key,
318
+ label: e.group.label,
319
+ tone: "warning",
320
+ icon: /* @__PURE__ */ m(ue, {}),
321
+ title: e.group.title,
322
+ meta: e.group.meta,
323
+ collapse: e.group.collapse
324
+ } : void 0,
325
+ rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ m(ye, { children: e.menu.items.map((e) => {
326
+ let n = e.icon;
327
+ return /* @__PURE__ */ h(t, {
328
+ disabled: e.disabled,
329
+ onClick: e.onSelect,
330
+ children: [n ? /* @__PURE__ */ m(n, { className: "ttw:size-4" }) : null, e.label]
331
+ }, e.id);
332
+ }) }) : void 0,
333
+ filterComponent: qe,
334
+ children: A ? /* @__PURE__ */ m(s, {
335
+ title: K.filteredEmptyTitle,
336
+ description: K.filteredEmptyDescription
337
+ }) : j ? /* @__PURE__ */ m(s, {
338
+ title: j.title,
339
+ description: j.description
340
+ }) : void 0
341
+ }), Re ? /* @__PURE__ */ m("div", {
342
+ className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:z-20 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-xl ttw:border-2 ttw:border-dashed ttw:border-primary ttw:bg-background/85 ttw:backdrop-blur-[1px]",
343
+ children: /* @__PURE__ */ h("div", {
344
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:bg-card ttw:px-4 ttw:py-3 ttw:shadow-sm",
345
+ children: [/* @__PURE__ */ m(Se, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
346
+ className: "ttw:text-sm ttw:font-medium",
347
+ children: K.tableDropzoneTitle
348
+ }), /* @__PURE__ */ m("p", {
349
+ className: "ttw:text-xs ttw:text-muted-foreground",
350
+ children: I === void 0 ? K.addBill.dropzone.fileTypesHint : `${K.addBill.dropzone.fileTypesHint} · ${K.addBill.dropzone.fileCountHint(I)}`
351
+ })] })]
352
+ })
353
+ }) : null]
354
+ });
355
+ return /* @__PURE__ */ h("div", {
356
+ role: "presentation",
357
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
358
+ onKeyDown: (e) => {
359
+ G && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || G.onBack());
360
+ },
361
+ children: [
362
+ U ? /* @__PURE__ */ m(pe, { ...U }) : null,
363
+ W ? /* @__PURE__ */ m(ce, { ...W }) : null,
364
+ G ? /* @__PURE__ */ h("div", {
365
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
366
+ children: [N === void 0 && $ ? /* @__PURE__ */ m("div", {
367
+ className: "ttw:flex ttw:justify-end",
368
+ children: $
369
+ }) : null, Ye]
370
+ }) : /* @__PURE__ */ h(o, {
371
+ value: w,
372
+ onValueChange: Pe,
373
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
374
+ children: [
375
+ N === void 0 && $ ? /* @__PURE__ */ m("div", {
376
+ className: "ttw:flex ttw:justify-end",
377
+ children: $
378
+ }) : null,
379
+ Je ? null : Ge,
380
+ C.map((e) => /* @__PURE__ */ m(te, {
381
+ value: e.id,
382
+ children: e.id === w ? Ye : null
383
+ }, e.id))
384
+ ]
385
+ }),
386
+ N && $ ? ve($, N) : null
387
+ ]
388
+ });
389
+ }
390
+ export { _ as BillsScreen, _ as default, g as DEFAULT_BILL_COLUMNS };
@@ -1,3 +1,3 @@
1
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js
2
- var e = { none: "None" };
3
- export { e as NO_VALUE_LABELS_EN };
1
+ import "./index15.js";
2
+ import "./index16.js";
3
+ import "./index17.js";
@@ -14,10 +14,10 @@ import { WidgetProvider as a } from "../../../../../shared/feature/dist/lib/Widg
14
14
  import { useWidgetConfig as o, useWidgetInitStaleForToken as s } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import "../../../../../shared/feature/dist/index.js";
16
16
  import { BillPayWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "../analytics/events.js";
17
- import { BillPayWidgetUi as u } from "../../../../ui/dist/index14.js";
17
+ import { BillQueue as u } from "../../../../bills-list/feature/dist/index5.js";
18
+ import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/index10.js";
19
+ import { BillPayWidgetUi as f } from "../../../../ui/dist/index14.js";
18
20
  import "../../../../ui/dist/index.js";
19
- import { BillQueue as d } from "../../../../bills-list/feature/dist/index5.js";
20
- import { BillSummaryCard as f } from "../../../../bills-list/feature/dist/index10.js";
21
21
  import "../../../../bills-list/feature/dist/index.js";
22
22
  import { BillUploadWidget as p } from "../../../../bill-upload/feature/dist/index8.js";
23
23
  import "../../../../bill-upload/feature/dist/index.js";
@@ -35,14 +35,14 @@ var C = {
35
35
  function ne(e) {
36
36
  return w.includes(e);
37
37
  }
38
- function T({ labels: a, initialTab: l = C.Bills, selectedTab: d, onTabChange: f, initialView: T, poweredByBankName: E, onSettingsClick: D, selectedSummaryCard: O, onSummaryCardChange: k, selectedBillsView: A, onBillsViewChange: j }) {
38
+ function T({ labels: a, initialTab: l = C.Bills, selectedTab: u, onTabChange: d, initialView: T, poweredByBankName: E, onSettingsClick: D, selectedSummaryCard: O, onSummaryCardChange: k, selectedBillsView: A, onBillsViewChange: j }) {
39
39
  let M = i();
40
40
  v(() => {
41
41
  M(c.Mounted);
42
42
  }, [M]);
43
- let N = y(() => e(h, a), [a]), { initResponse: P } = o(), F = t(P?.scopes, [n.PayableReadOrg]), I = t(P?.scopes, [n.PayableWriteOrg]), L = t(P?.scopes, [n.ApprovalPolicyWriteOrg]) && t(P?.scopes, [n.PayableWriteOrg]) && t(P?.scopes, [n.RoleReadOrg]) && t(P?.scopes, [n.UserReadOrg]), [R, z] = x(l), B = d ?? R, V = _((e) => {
44
- ne(e) && (z(e), f?.(e));
45
- }, [f]), [H, U] = x(null), [W, G] = x(), K = _((e) => {
43
+ let N = y(() => e(h, a), [a]), { initResponse: P } = o(), F = t(P?.scopes, [n.PayableReadOrg]), I = t(P?.scopes, [n.PayableWriteOrg]), L = t(P?.scopes, [n.ApprovalPolicyWriteOrg]) && t(P?.scopes, [n.PayableWriteOrg]) && t(P?.scopes, [n.RoleReadOrg]) && t(P?.scopes, [n.UserReadOrg]), [R, z] = x(l), B = u ?? R, V = _((e) => {
44
+ ne(e) && (z(e), d?.(e));
45
+ }, [d]), [H, U] = x(null), [W, G] = x(), K = _((e) => {
46
46
  V(C.Bills), G(e);
47
47
  }, [V]), q = b(null), J = _((e) => q.current?.enqueue(e), []), [Y, X] = x(), Z = _((e) => {
48
48
  V(C.Bills), X(e);
@@ -89,7 +89,7 @@ function T({ labels: a, initialTab: l = C.Bills, selectedTab: d, onTabChange: f,
89
89
  }], se = $.some((e) => e.id === B) ? B : w.find((e) => $.some((t) => t.id === e)) ?? $[0]?.id ?? "";
90
90
  return /* @__PURE__ */ te(ee, { children: [
91
91
  /* @__PURE__ */ S(r, {}),
92
- /* @__PURE__ */ S(u, {
92
+ /* @__PURE__ */ S(f, {
93
93
  labels: N.widget,
94
94
  tabs: $,
95
95
  selectedTabId: se,
@@ -123,4 +123,4 @@ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
123
123
  });
124
124
  }
125
125
  var D = E;
126
- export { D as BillPayWidget, D as default, E as BillPayWidgetWithLabels, f as BillSummaryCard, d as BillsView };
126
+ export { D as BillPayWidget, D as default, E as BillPayWidgetWithLabels, d as BillSummaryCard, u as BillsView };
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.216", n = "38c69a1c118175c60923e41a2f5808450f5bb5a8", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.217", n = "b2967267f8485d83e25bddb67aa906d54f2a6a25", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -30,16 +30,19 @@ import "./lib/OnboardingShell/OnboardingShellStepper.js";
30
30
  import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
31
31
  import { OnboardingShell as D } from "./lib/OnboardingShell/OnboardingShell.js";
32
32
  import { SectionHeading as O } from "./lib/SectionHeading/SectionHeading.js";
33
- import { DateDisclosure as k } from "./lib/DateDisclosure/DateDisclosure.js";
34
- import { DueDateText as A } from "./lib/DueDateText/DueDateText.js";
35
- import { AttentionStrip as j } from "./lib/AttentionStrip/AttentionStrip.js";
36
- import { AttentionViewBar as M } from "./lib/AttentionStrip/AttentionViewBar.js";
37
- import { ConsentBlock as N, ConsentLink as P } from "./lib/ConsentBlock/ConsentBlock.js";
38
- import { FileDropZone as F } from "./lib/FileDropZone/FileDropZone.js";
33
+ import { HintDisclosure as k } from "./lib/HintDisclosure/HintDisclosure.js";
34
+ import { EMPTY_VALUE_LABELS_EN as A } from "./lib/EmptyValue/labels.js";
35
+ import { EmptyValue as j } from "./lib/EmptyValue/EmptyValue.js";
36
+ import { RowStatusIcon as M } from "./lib/RowStatusIcon/RowStatusIcon.js";
37
+ import { DueDateText as N } from "./lib/DueDateText/DueDateText.js";
38
+ import { AttentionStrip as P } from "./lib/AttentionStrip/AttentionStrip.js";
39
+ import { AttentionViewBar as F } from "./lib/AttentionStrip/AttentionViewBar.js";
40
+ import { ConsentBlock as I, ConsentLink as L } from "./lib/ConsentBlock/ConsentBlock.js";
41
+ import { FileDropZone as R } from "./lib/FileDropZone/FileDropZone.js";
39
42
  import "./lib/CopyButton/labels.js";
40
43
  import "./lib/CopyButton/CopyButton.js";
41
- import { CopyAddress as I } from "./lib/CopyAddress/CopyAddress.js";
42
- import { UploadTray as L } from "./lib/UploadTray/UploadTray.js";
44
+ import { CopyAddress as z } from "./lib/CopyAddress/CopyAddress.js";
45
+ import { UploadTray as B } from "./lib/UploadTray/UploadTray.js";
43
46
  import "./lib/UploadEmailOption/UploadEmailOption.js";
44
47
  import "./lib/UploadPopover/UploadPopover.js";
45
- export { m as AddTile, b as AmountInput, j as AttentionStrip, M as AttentionViewBar, N as ConsentBlock, P as ConsentLink, I as CopyAddress, k as DateDisclosure, A as DueDateText, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, v as ErrorState, F as FileDropZone, u as HostIsolationScope, w as InlineErrorAlert, d as Link, x as LoadingRegion, S as MASKED_ACCOUNT_NUMBER_LABELS_EN, C as MaskedAccountNumber, y as NoAccessState, D as OnboardingShell, T as PAGINATION_FOOTER_LABELS_EN, E as PaginationFooter, O as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, L as UploadTray, p as WidgetContainer, f as WidgetFrame, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, e as toast, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
48
+ export { m as AddTile, b as AmountInput, P as AttentionStrip, F as AttentionViewBar, I as ConsentBlock, L as ConsentLink, z as CopyAddress, N as DueDateText, A as EMPTY_VALUE_LABELS_EN, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, j as EmptyValue, v as ErrorState, R as FileDropZone, k as HintDisclosure, u as HostIsolationScope, w as InlineErrorAlert, d as Link, x as LoadingRegion, S as MASKED_ACCOUNT_NUMBER_LABELS_EN, C as MaskedAccountNumber, y as NoAccessState, D as OnboardingShell, T as PAGINATION_FOOTER_LABELS_EN, E as PaginationFooter, M as RowStatusIcon, O as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, B as UploadTray, p as WidgetContainer, f as WidgetFrame, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, e as toast, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
@@ -1,9 +1,9 @@
1
- import { DateDisclosure as e } from "../DateDisclosure/DateDisclosure.js";
1
+ import { HintDisclosure as e } from "../HintDisclosure/HintDisclosure.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js
4
4
  function r({ label: r, overdueLabel: i, accessibleLabel: a }) {
5
5
  return i ? /* @__PURE__ */ t(e, {
6
- date: r,
6
+ hint: r,
7
7
  children: /* @__PURE__ */ n("span", {
8
8
  className: "ttw:text-destructive",
9
9
  children: [/* @__PURE__ */ t("span", {
@@ -1,7 +1,7 @@
1
- import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { NO_VALUE_LABELS_EN as t } from "./index18.js";
1
+ import { cn as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EMPTY_VALUE_LABELS_EN as t } from "./labels.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js
4
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyValue/EmptyValue.js
5
5
  function i({ labels: i, className: a }) {
6
6
  let o = {
7
7
  ...t,
@@ -11,11 +11,11 @@ function i({ labels: i, className: a }) {
11
11
  className: e("ttw:text-muted-foreground", a),
12
12
  children: [/* @__PURE__ */ n("span", {
13
13
  "aria-hidden": !0,
14
- children: "—"
14
+ children: "–"
15
15
  }), /* @__PURE__ */ n("span", {
16
16
  className: "ttw:sr-only",
17
- children: o.none
17
+ children: o.notEntered
18
18
  })]
19
19
  });
20
20
  }
21
- export { i as NoValue, i as default };
21
+ export { i as EmptyValue };
@@ -0,0 +1,3 @@
1
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyValue/labels.js
2
+ var e = { notEntered: "Not entered" };
3
+ export { e as EMPTY_VALUE_LABELS_EN };
@@ -1,20 +1,21 @@
1
1
  import { Popover as e, PopoverContent as t, PopoverTrigger as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { useState as r } from "react";
3
3
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js
5
- function o({ children: o, date: s }) {
6
- let [c, l] = r(!1);
4
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/HintDisclosure/HintDisclosure.js
5
+ function o({ children: o, hint: s, accessibleLabel: c }) {
6
+ let [l, u] = r(!1);
7
7
  return /* @__PURE__ */ a(e, {
8
- open: c,
9
- onOpenChange: l,
8
+ open: l,
9
+ onOpenChange: u,
10
10
  children: [/* @__PURE__ */ i(n, {
11
11
  type: "button",
12
+ "aria-label": c,
12
13
  className: "ttw:cursor-pointer ttw:outline-none ttw:focus-visible:outline-2 ttw:focus-visible:outline-offset-2 ttw:focus-visible:outline-ring",
13
14
  onPointerEnter: (e) => {
14
- e.pointerType === "mouse" && l(!0);
15
+ e.pointerType === "mouse" && u(!0);
15
16
  },
16
17
  onPointerLeave: (e) => {
17
- e.pointerType === "mouse" && l(!1);
18
+ e.pointerType === "mouse" && u(!1);
18
19
  },
19
20
  onClick: (e) => e.stopPropagation(),
20
21
  children: o
@@ -25,4 +26,4 @@ function o({ children: o, date: s }) {
25
26
  })]
26
27
  });
27
28
  }
28
- export { o as DateDisclosure };
29
+ export { o as HintDisclosure };
@@ -0,0 +1,19 @@
1
+ import { cn as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { HintDisclosure as t } from "../HintDisclosure/HintDisclosure.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js
5
+ var r = {
6
+ warning: "ttw:text-warning",
7
+ destructive: "ttw:text-destructive"
8
+ };
9
+ function i({ icon: i, tone: a, label: o }) {
10
+ return /* @__PURE__ */ n(t, {
11
+ hint: o,
12
+ accessibleLabel: o,
13
+ children: /* @__PURE__ */ n(i, {
14
+ "aria-hidden": !0,
15
+ className: e("ttw:size-4 ttw:shrink-0", r[a])
16
+ })
17
+ });
18
+ }
19
+ export { i as RowStatusIcon };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.216",
3
+ "version": "0.11.217",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,2 +0,0 @@
1
- import "./index18.js";
2
- import "./index19.js";
@@ -1,55 +0,0 @@
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 "./index2.js";
3
- import "./index4.js";
4
- import { MISSING_VALUE_LABELS_EN as n } from "./index15.js";
5
- import "./index17.js";
6
- import { NO_VALUE_LABELS_EN as r } from "./index18.js";
7
- import "./index20.js";
8
- import { BILL_STATUS_BADGE_LABELS_EN as i } from "../../../../shared/document-status/ui/dist/index2.js";
9
- import "../../../../shared/document-status/ui/dist/index.js";
10
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js
11
- var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
12
- ...t,
13
- dropzone: {
14
- ...t.dropzone,
15
- fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
16
- }
17
- }, s = {
18
- createButton: "Add bill",
19
- columnVendor: "Vendor",
20
- columnInvoiceNumber: "Invoice number",
21
- columnAttachment: "Attachment",
22
- columnIssueDate: "Issue date",
23
- columnDueDate: "Due date",
24
- columnScheduledDate: "Scheduled date",
25
- columnPaidDate: "Paid date",
26
- columnAmountDue: "Amount due",
27
- columnAmountScheduled: "Amount scheduled",
28
- columnAmountPaid: "Amount paid",
29
- columnTotalAmount: "Total amount",
30
- columnStatus: "Status",
31
- columnAddedOn: "Added on",
32
- columnActions: "Actions",
33
- openRow: (e) => `View bill — ${e}`,
34
- vendorResolving: "Loading vendor",
35
- vendorUnavailable: "Vendor unavailable",
36
- searchPlaceholder: "Search by vendor name",
37
- searchLabel: "Search bills by vendor name",
38
- filterTabsLabel: "Bill views",
39
- filteredEmptyTitle: "No bills match",
40
- filteredEmptyDescription: "Try a different search or status filter.",
41
- errorTitle: "Couldn't load bills",
42
- errorDescription: "Something went wrong. Try again.",
43
- errorRetry: "Retry",
44
- tableDropzoneTitle: "Drop your files here",
45
- statusBadge: i,
46
- addBill: o,
47
- sortableHeader: {
48
- sortedAscending: e.sortedAscending,
49
- sortedDescending: e.sortedDescending,
50
- notSorted: e.notSorted
51
- },
52
- missingValue: n,
53
- noValue: r
54
- };
55
- export { s as BILLS_SCREEN_LABELS_EN, a as BILLS_SCREEN_UPLOAD_ACCEPT };