@tesouro/embedded-components-react 0.11.215 → 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 (30) hide show
  1. package/dist/fixtures/index.d.ts +154 -1
  2. package/dist/index.css +0 -3
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +49 -49
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +287 -298
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +62 -63
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +12 -54
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +4 -5
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +2 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +45 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +10 -14
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +390 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +9 -9
  18. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +12 -9
  20. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +2 -2
  21. 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
  22. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyValue/labels.js +3 -0
  23. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/{DateDisclosure/DateDisclosure.js → HintDisclosure/HintDisclosure.js} +9 -8
  24. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js +19 -0
  25. package/package.json +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +0 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +0 -55
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +0 -17
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +0 -468
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +0 -3
@@ -1,17 +0,0 @@
1
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js
2
- var e = {
3
- Vendor: "vendor",
4
- InvoiceNumber: "invoiceNumber",
5
- Attachment: "attachment",
6
- IssueDate: "issueDate",
7
- DueDate: "dueDate",
8
- ScheduledDate: "scheduledDate",
9
- PaidDate: "paidDate",
10
- Status: "status",
11
- AmountDue: "amountDue",
12
- AmountScheduled: "amountScheduled",
13
- AmountPaid: "amountPaid",
14
- TotalAmount: "totalAmount",
15
- AddedOn: "addedOn"
16
- };
17
- export { e as BillColumn };
@@ -1,468 +0,0 @@
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 s, TabsTrigger as ne, Tooltip as re, TooltipContent as ie, TooltipProvider as ae, TooltipTrigger as oe } 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 se } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
- import { DateDisclosure as ce } from "../../../../shared/ui/dist/lib/DateDisclosure/DateDisclosure.js";
5
- import { DueDateText as le } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
6
- import { AttentionStrip as ue } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
7
- import { AttentionViewBar as de } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
8
- import "../../../../shared/ui/dist/index.js";
9
- import { BillDuplicateIcon as l } from "../../../ui/dist/index6.js";
10
- import { BillOverflowMenu as fe } from "../../../ui/dist/index11.js";
11
- import { getAcceptedBillUploadFiles as pe } from "../../../ui/dist/index17.js";
12
- import "../../../ui/dist/index.js";
13
- import { AddBillPanel as u } from "./index3.js";
14
- import "./index4.js";
15
- import { BillSummaryCards as me } from "./index9.js";
16
- import "./index10.js";
17
- import { BillsFilterBar as he } from "./index13.js";
18
- import "./index14.js";
19
- import { MissingValue as d } from "./index16.js";
20
- import "./index17.js";
21
- import { NoValue as ge } from "./index19.js";
22
- import "./index20.js";
23
- import { BillStatusBadge as _e } from "../../../../shared/document-status/ui/dist/index4.js";
24
- import "../../../../shared/document-status/ui/dist/index.js";
25
- import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index21.js";
26
- import { BillColumn as m } from "./index22.js";
27
- import { Fragment as ve, useMemo as h, useState as ye } from "react";
28
- import { createPortal as be } from "react-dom";
29
- import { Fragment as xe, jsx as g, jsxs as _ } from "react/jsx-runtime";
30
- import { PaperclipIcon as Se, SearchIcon as Ce, UploadIcon as we } from "lucide-react";
31
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js
32
- var Te = [
33
- 10,
34
- 25,
35
- 50,
36
- 100
37
- ], Ee = 240;
38
- function De(e, t) {
39
- return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
40
- }
41
- var v = 40, Oe = 56, ke = [
42
- m.Vendor,
43
- m.InvoiceNumber,
44
- m.Attachment,
45
- m.IssueDate,
46
- m.DueDate,
47
- m.ScheduledDate,
48
- m.PaidDate,
49
- m.Status,
50
- m.AmountDue,
51
- m.AmountScheduled,
52
- m.AmountPaid,
53
- m.TotalAmount,
54
- m.AddedOn
55
- ], y = [
56
- m.Vendor,
57
- m.Attachment,
58
- m.DueDate,
59
- m.Status,
60
- m.AmountDue,
61
- m.AddedOn
62
- ];
63
- function b({ rows: b, isLoading: x, isError: S, sorting: Ae, onSortingChange: je, pageSize: Me, onPageSizeChange: Ne, pageSizeOptions: C = Te, pageInfo: Pe, hasNextPage: w, hasPrevPage: T, onNextPage: Fe, onPrevPage: Ie, filterTabs: E, selectedFilterTabId: D, onFilterTabChange: Le, searchValue: Re, onSearchChange: ze, filters: O, visibleColumns: k = y, keepsColumnOrder: A = !1, isSortable: j = !0, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: Be, emptyState: P, onCreateClick: F, headerActionContainer: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, summaryCards: K, attentionStrip: Ve, attentionView: q }) {
64
- let J = h(() => ({
65
- ...f,
66
- ...G,
67
- statusBadge: {
68
- ...f.statusBadge,
69
- ...G?.statusBadge
70
- },
71
- addBill: {
72
- ...f.addBill,
73
- ...G?.addBill,
74
- dropzone: {
75
- ...f.addBill.dropzone,
76
- ...G?.addBill?.dropzone
77
- }
78
- },
79
- sortableHeader: {
80
- ...f.sortableHeader,
81
- ...G?.sortableHeader
82
- },
83
- missingValue: {
84
- ...f.missingValue,
85
- ...G?.missingValue
86
- },
87
- noValue: {
88
- ...f.noValue,
89
- ...G?.noValue
90
- }
91
- }), [G]), Y = b.some((e) => e.menu?.items.length), [He, X] = ye(!1), Z = !!R, Ue = (e) => Array.from(e.dataTransfer.types).includes("Files"), We = (e) => {
92
- Z && Ue(e) && (e.preventDefault(), X(!0));
93
- }, Ge = (e) => {
94
- Z && Ue(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", X(!0));
95
- }, Ke = (e) => {
96
- !e.currentTarget.contains(e.relatedTarget) && Z && X(!1);
97
- }, qe = (e) => {
98
- if (!Z) return;
99
- e.preventDefault(), X(!1);
100
- let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = pe(t, p, z !== 1);
101
- n.length && R?.(n);
102
- }, Je = h(() => {
103
- let e = (e) => j ? function({ column: t }) {
104
- return /* @__PURE__ */ g(r, {
105
- column: t,
106
- title: e,
107
- labels: J.sortableHeader
108
- });
109
- } : e, t = (e, t, n = /* @__PURE__ */ g(d, { labels: J.missingValue }), r) => function({ row: i }) {
110
- let a = r && i.original[r] ? /* @__PURE__ */ g(d, { labels: J.missingValue }) : n;
111
- return /* @__PURE__ */ g("span", {
112
- className: "ttw:whitespace-nowrap",
113
- "data-testid": M?.[t],
114
- children: i.original[e] || a
115
- });
116
- }, n = t("invoiceNumberLabel", m.InvoiceNumber), i = function({ row: e }) {
117
- return /* @__PURE__ */ g("span", {
118
- className: "ttw:whitespace-nowrap",
119
- "data-testid": M?.[m.DueDate],
120
- children: /* @__PURE__ */ g(le, {
121
- label: e.original.dueDateLabel || /* @__PURE__ */ g(d, { labels: J.missingValue }),
122
- overdueLabel: e.original.dueDateOverdueLabel,
123
- accessibleLabel: e.original.dueDateAccessibleLabel
124
- })
125
- });
126
- }, a = (e, t, n = /* @__PURE__ */ g(d, { labels: J.missingValue }), r) => function({ row: i }) {
127
- let a = r && i.original[r] ? /* @__PURE__ */ g(d, { labels: J.missingValue }) : n;
128
- return /* @__PURE__ */ g("div", {
129
- className: "ttw:text-right ttw:whitespace-nowrap",
130
- "data-testid": M?.[t],
131
- children: i.original[e] || a
132
- });
133
- }, o = /* @__PURE__ */ g(ge, { labels: J.noValue });
134
- function te({ row: e }) {
135
- let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ g(d, { labels: J.missingValue }) : o, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
136
- return /* @__PURE__ */ g("span", {
137
- className: "ttw:whitespace-nowrap",
138
- "data-testid": M?.[m.ScheduledDate],
139
- children: n && r ? /* @__PURE__ */ g(ce, {
140
- date: r,
141
- children: n
142
- }) : n || t
143
- });
144
- }
145
- let s = (e) => function() {
146
- return /* @__PURE__ */ g("div", {
147
- className: "ttw:text-right",
148
- children: e
149
- });
150
- };
151
- return {
152
- [m.Vendor]: {
153
- accessorKey: "vendorLabel",
154
- enableSorting: j,
155
- minSize: Ee,
156
- header: e(J.columnVendor),
157
- cell: ({ row: e }) => {
158
- let t = e.original.rowNote ? /* @__PURE__ */ g("span", {
159
- className: "ttw:sr-only",
160
- children: ` ${e.original.rowNote}`
161
- }) : null;
162
- return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ _("div", {
163
- "data-testid": M?.[m.Vendor],
164
- children: [/* @__PURE__ */ g(ee, {
165
- className: "ttw:h-4 ttw:w-32",
166
- "aria-hidden": !0
167
- }), t]
168
- }) : /* @__PURE__ */ _("span", {
169
- className: "ttw:inline-flex ttw:items-center ttw:gap-2",
170
- "data-testid": M?.[m.Vendor],
171
- children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ g(ge, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ g(d, { labels: J.missingValue })), t]
172
- });
173
- }
174
- },
175
- [m.InvoiceNumber]: {
176
- accessorKey: "invoiceNumberLabel",
177
- enableSorting: !1,
178
- header: () => J.columnInvoiceNumber,
179
- cell: (e) => e.row.original.marker === "duplicate" ? /* @__PURE__ */ _("span", {
180
- className: "ttw:relative",
181
- children: [/* @__PURE__ */ g(l, { className: "ttw:absolute ttw:top-1/2 ttw:right-full ttw:mr-1 ttw:-translate-y-1/2 ttw:text-warning" }), n(e)]
182
- }) : n(e)
183
- },
184
- [m.Attachment]: {
185
- accessorKey: "attachment",
186
- enableSorting: !1,
187
- size: v,
188
- minSize: v,
189
- header: () => /* @__PURE__ */ g("span", {
190
- className: "ttw:sr-only",
191
- children: J.columnAttachment
192
- }),
193
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ g("div", {
194
- className: "ttw:flex ttw:justify-center",
195
- "data-testid": M?.[m.Attachment],
196
- children: /* @__PURE__ */ g(ae, { children: /* @__PURE__ */ _(re, { children: [/* @__PURE__ */ g(oe, {
197
- type: "button",
198
- className: "ttw:inline-flex ttw:cursor-default",
199
- "aria-label": e.original.attachment.label,
200
- onClick: (e) => e.stopPropagation(),
201
- children: /* @__PURE__ */ g(Se, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
202
- }), /* @__PURE__ */ g(ie, { children: e.original.attachment.label })] }) })
203
- }) : null
204
- },
205
- [m.IssueDate]: {
206
- accessorKey: "issueDateLabel",
207
- enableSorting: j,
208
- header: e(J.columnIssueDate),
209
- cell: t("issueDateLabel", m.IssueDate)
210
- },
211
- [m.DueDate]: {
212
- accessorKey: "dueDateLabel",
213
- enableSorting: j,
214
- header: e(J.columnDueDate),
215
- cell: i
216
- },
217
- [m.ScheduledDate]: {
218
- accessorKey: "scheduledDateLabel",
219
- enableSorting: j,
220
- header: e(J.columnScheduledDate),
221
- cell: te
222
- },
223
- [m.PaidDate]: {
224
- accessorKey: "paidDateLabel",
225
- enableSorting: !1,
226
- header: J.columnPaidDate,
227
- cell: t("paidDateLabel", m.PaidDate)
228
- },
229
- [m.Status]: {
230
- accessorKey: "status",
231
- enableSorting: !1,
232
- header: J.columnStatus,
233
- cell: ({ row: e }) => /* @__PURE__ */ g("div", {
234
- className: "ttw:flex ttw:items-center ttw:gap-1",
235
- "data-testid": M?.[m.Status],
236
- children: /* @__PURE__ */ g(_e, {
237
- status: e.original.status,
238
- tone: e.original.statusTone,
239
- labels: J.statusBadge
240
- })
241
- })
242
- },
243
- [m.AmountDue]: {
244
- accessorKey: "amountDueLabel",
245
- enableSorting: !1,
246
- header: s(J.columnAmountDue),
247
- cell: a("amountDueLabel", m.AmountDue)
248
- },
249
- [m.AmountScheduled]: {
250
- accessorKey: "amountScheduledLabel",
251
- enableSorting: !1,
252
- header: s(J.columnAmountScheduled),
253
- cell: a("amountScheduledLabel", m.AmountScheduled)
254
- },
255
- [m.AmountPaid]: {
256
- accessorKey: "amountPaidLabel",
257
- enableSorting: !1,
258
- header: s(J.columnAmountPaid),
259
- cell: a("amountPaidLabel", m.AmountPaid, o, "amountPaidIsGap")
260
- },
261
- [m.TotalAmount]: {
262
- accessorKey: "totalAmountLabel",
263
- enableSorting: !1,
264
- header: s(J.columnTotalAmount),
265
- cell: a("totalAmountLabel", m.TotalAmount)
266
- },
267
- [m.AddedOn]: {
268
- accessorKey: "addedOnLabel",
269
- enableSorting: j,
270
- header: e(J.columnAddedOn),
271
- cell: t("addedOnLabel", m.AddedOn)
272
- }
273
- };
274
- }, [
275
- J,
276
- M,
277
- j
278
- ]), Ye = h(() => [...(A ? k : ke.filter((e) => k.includes(e))).map((e) => Je[e]), ...Y ? [{
279
- id: "actions",
280
- enableSorting: !1,
281
- size: Oe,
282
- header: () => /* @__PURE__ */ g("span", {
283
- className: "ttw:sr-only",
284
- children: J.columnActions
285
- }),
286
- cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ g("div", {
287
- className: "ttw:flex ttw:justify-end",
288
- children: /* @__PURE__ */ g(fe, {
289
- actions: e.original.menu.items.map((e) => ({
290
- ...e,
291
- variant: "ghost"
292
- })),
293
- triggerLabel: e.original.menu.triggerLabel,
294
- placement: "table"
295
- })
296
- }) : null
297
- }] : []], [
298
- Je,
299
- Y,
300
- A,
301
- J,
302
- k
303
- ]), Xe = !!(F && R) && !x && !S && !N && b.length === 0 && Be === !0, Q = F ? /* @__PURE__ */ g(e, {
304
- onClick: F,
305
- children: J.createButton
306
- }) : null, Ze = /* @__PURE__ */ _("div", {
307
- className: "ttw:relative ttw:w-80",
308
- children: [/* @__PURE__ */ g(Ce, { 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(i, {
309
- className: "ttw:pl-9",
310
- type: "search",
311
- "aria-label": J.searchLabel,
312
- placeholder: J.searchPlaceholder,
313
- value: Re,
314
- onChange: (e) => ze(e.target.value)
315
- })]
316
- }), Qe = /* @__PURE__ */ g(s, {
317
- variant: "pills",
318
- "aria-label": J.filterTabsLabel,
319
- children: E.map((e) => /* @__PURE__ */ _(ve, { children: [e.startsGroup ? /* @__PURE__ */ g(a, {
320
- orientation: "vertical",
321
- className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
322
- }) : null, /* @__PURE__ */ g(ne, {
323
- value: e.id,
324
- count: e.badge,
325
- countTone: e.tone,
326
- className: "ttw:min-w-28",
327
- children: /* @__PURE__ */ g("span", {
328
- className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
329
- children: e.label
330
- })
331
- })] }, e.id))
332
- }), $e = q ? /* @__PURE__ */ g(de, { ...q }) : Qe, et = O ? /* @__PURE__ */ g(he, {
333
- ...O,
334
- className: "ttw:px-4",
335
- leadingSlot: $e,
336
- searchSlot: Ze
337
- }) : /* @__PURE__ */ _("div", {
338
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
339
- children: [$e, /* @__PURE__ */ g("div", {
340
- className: "ttw:ml-auto",
341
- children: Ze
342
- })]
343
- }), tt = !S && !Xe, $ = S ? /* @__PURE__ */ g(se, {
344
- title: J.errorTitle,
345
- description: J.errorDescription,
346
- retryLabel: L ? J.errorRetry : void 0,
347
- onRetry: L
348
- }) : Xe && F && R ? /* @__PURE__ */ g("div", {
349
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
350
- children: U && W ? /* @__PURE__ */ g(u, {
351
- emailAddress: U,
352
- onCopyEmail: W,
353
- onFilesSelected: R,
354
- accept: p,
355
- maxFiles: z,
356
- uploadStatus: V,
357
- uploadErrorMessage: H,
358
- onEnterManually: B ?? F,
359
- labels: J.addBill
360
- }) : /* @__PURE__ */ g(u, {
361
- onFilesSelected: R,
362
- accept: p,
363
- maxFiles: z,
364
- uploadStatus: V,
365
- uploadErrorMessage: H,
366
- onEnterManually: B ?? F,
367
- labels: J.addBill
368
- })
369
- }) : /* @__PURE__ */ _("div", {
370
- className: "ttw:relative",
371
- onDragEnter: We,
372
- onDragOver: Ge,
373
- onDragLeave: Ke,
374
- onDrop: qe,
375
- children: [/* @__PURE__ */ g(n, {
376
- columns: Ye,
377
- data: b,
378
- getRowId: (e) => e.rowKey,
379
- animatesNewRows: !0,
380
- isLoading: x,
381
- sorting: Ae,
382
- onSortingChange: je,
383
- pageSize: Me,
384
- onPageSizeChange: Ne,
385
- pageSizeOptions: C,
386
- showPagination: C.length > 1 || w || T,
387
- pageInfo: Pe,
388
- hasNextPage: w,
389
- hasPrevPage: T,
390
- onNextPage: Fe,
391
- onPrevPage: Ie,
392
- onRowClick: (e) => e.onOpen(),
393
- rowAriaLabel: (e) => J.openRow(e.vendorLabel || De(e.vendorLookup, J)),
394
- rowGroup: (e) => e.group ? {
395
- key: e.group.key,
396
- label: e.group.label,
397
- tone: "warning",
398
- icon: /* @__PURE__ */ g(l, {}),
399
- title: e.group.title,
400
- meta: e.group.meta,
401
- collapse: e.group.collapse
402
- } : void 0,
403
- rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ g(xe, { children: e.menu.items.map((e) => {
404
- let n = e.icon;
405
- return /* @__PURE__ */ _(t, {
406
- disabled: e.disabled,
407
- onClick: e.onSelect,
408
- children: [n ? /* @__PURE__ */ g(n, { className: "ttw:size-4" }) : null, e.label]
409
- }, e.id);
410
- }) }) : void 0,
411
- filterComponent: et,
412
- children: N ? /* @__PURE__ */ g(c, {
413
- title: J.filteredEmptyTitle,
414
- description: J.filteredEmptyDescription
415
- }) : P ? /* @__PURE__ */ g(c, {
416
- title: P.title,
417
- description: P.description
418
- }) : void 0
419
- }), He ? /* @__PURE__ */ g("div", {
420
- 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]",
421
- children: /* @__PURE__ */ _("div", {
422
- 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",
423
- children: [/* @__PURE__ */ g(we, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
424
- className: "ttw:text-sm ttw:font-medium",
425
- children: J.tableDropzoneTitle
426
- }), /* @__PURE__ */ g("p", {
427
- className: "ttw:text-xs ttw:text-muted-foreground",
428
- children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
429
- })] })]
430
- })
431
- }) : null]
432
- });
433
- return /* @__PURE__ */ _("div", {
434
- role: "presentation",
435
- className: "ttw:flex ttw:flex-col ttw:gap-3",
436
- onKeyDown: (e) => {
437
- q && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || q.onBack());
438
- },
439
- children: [
440
- K ? /* @__PURE__ */ g(me, { ...K }) : null,
441
- Ve ? /* @__PURE__ */ g(ue, { ...Ve }) : null,
442
- q ? /* @__PURE__ */ _("div", {
443
- className: "ttw:flex ttw:flex-col ttw:gap-4",
444
- children: [I === void 0 && Q ? /* @__PURE__ */ g("div", {
445
- className: "ttw:flex ttw:justify-end",
446
- children: Q
447
- }) : null, $]
448
- }) : /* @__PURE__ */ _(o, {
449
- value: D,
450
- onValueChange: Le,
451
- className: "ttw:flex ttw:flex-col ttw:gap-4",
452
- children: [
453
- I === void 0 && Q ? /* @__PURE__ */ g("div", {
454
- className: "ttw:flex ttw:justify-end",
455
- children: Q
456
- }) : null,
457
- tt ? null : Qe,
458
- E.map((e) => /* @__PURE__ */ g(te, {
459
- value: e.id,
460
- children: e.id === D ? $ : null
461
- }, e.id))
462
- ]
463
- }),
464
- I && Q ? be(Q, I) : null
465
- ]
466
- });
467
- }
468
- export { b as BillsScreen, b as default, y as DEFAULT_BILL_COLUMNS };
@@ -1,3 +0,0 @@
1
- import "./index21.js";
2
- import "./index22.js";
3
- import "./index23.js";