@tesouro/embedded-components-react 0.2.320 → 0.2.322

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 (40) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +4 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +54 -54
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +60 -59
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -16
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -56
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +11 -233
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -195
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +58 -7
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +236 -6
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +198 -87
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +10 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +8 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +91 -5
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +3 -3
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +26 -30
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +4 -9
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +30 -102
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -15
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +104 -8
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -170
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +18 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +7 -11
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +163 -82
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +14 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +89 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -0
  37. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1 -0
  38. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +0 -30
@@ -1,238 +1,16 @@
1
- import { Button as e, Collapsible as t, CollapsibleContent as n, CollapsibleTrigger as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillStatusBadge as d } from "./index14.js";
3
- import "./index15.js";
4
- import { BillActionButtons as f } from "./index12.js";
5
- import { BILL_DETAILS_SHEET_LABELS_EN as p } from "./index40.js";
6
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
7
- import { ChevronDownIcon as _, MoveDiagonal2Icon as v, XIcon as y } from "lucide-react";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MISSING_VALUE_LABELS_EN as t } from "./index40.js";
3
+ import { jsx as n } from "react/jsx-runtime";
8
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js
9
- function b({ items: e }) {
10
- return /* @__PURE__ */ h("dl", {
11
- className: "ttw:flex ttw:flex-col",
12
- children: e.map((e) => /* @__PURE__ */ g("div", {
13
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
14
- children: [/* @__PURE__ */ h("dt", {
15
- className: "ttw:text-sm ttw:text-muted-foreground",
16
- children: e.label
17
- }), /* @__PURE__ */ g("dd", {
18
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
19
- children: [/* @__PURE__ */ h("span", {
20
- className: "ttw:text-sm ttw:font-medium",
21
- children: e.value
22
- }), e.secondaryValue ? /* @__PURE__ */ h("span", {
23
- className: "ttw:text-sm ttw:text-muted-foreground",
24
- children: e.secondaryValue
25
- }) : null]
26
- })]
27
- }, e.label))
28
- });
29
- }
30
- function x({ heading: e, children: i }) {
31
- return /* @__PURE__ */ g(t, {
32
- defaultOpen: !0,
33
- className: "ttw:flex ttw:flex-col ttw:gap-3",
34
- children: [/* @__PURE__ */ g(r, {
35
- className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
36
- children: [/* @__PURE__ */ h(u, {
37
- variant: "body1",
38
- className: "ttw:font-semibold",
39
- children: e
40
- }), /* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
41
- }), /* @__PURE__ */ h(n, { children: i })]
42
- });
43
- }
44
- function S({ open: t, onOpenChange: n, details: r, actions: u = [], isLoading: _, isError: S, notice: C, onClose: w, onExpand: T, testId: E, labels: D }) {
45
- let O = {
46
- ...p,
47
- ...D,
48
- statusBadge: {
49
- ...p.statusBadge,
50
- ...D?.statusBadge
51
- }
5
+ function r({ labels: r, className: i }) {
6
+ let a = {
7
+ ...t,
8
+ ...r
52
9
  };
53
- return /* @__PURE__ */ h(i, {
54
- open: t,
55
- onOpenChange: (e) => e ? n(e) : w(),
56
- children: /* @__PURE__ */ g(a, {
57
- showCloseButton: !1,
58
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
59
- "data-testid": E,
60
- children: [/* @__PURE__ */ g(s, {
61
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
62
- children: [/* @__PURE__ */ g("div", {
63
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
64
- children: [
65
- /* @__PURE__ */ h(c, {
66
- className: _ ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
67
- children: S ? O.errorTitle : _ ? O.loadingTitle : r?.title
68
- }),
69
- _ ? /* @__PURE__ */ g("div", {
70
- "aria-hidden": !0,
71
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
72
- children: [/* @__PURE__ */ h(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ h(l, { className: "ttw:h-4 ttw:w-28" })]
73
- }) : null,
74
- r && !_ && !S ? /* @__PURE__ */ h("p", {
75
- className: "ttw:text-sm ttw:text-muted-foreground",
76
- children: r.subtitle
77
- }) : null,
78
- /* @__PURE__ */ h(o, {
79
- className: "ttw:sr-only",
80
- children: O.hiddenDescription
81
- })
82
- ]
83
- }), /* @__PURE__ */ g("div", {
84
- className: "ttw:flex ttw:items-center ttw:gap-1",
85
- children: [T ? /* @__PURE__ */ h(e, {
86
- type: "button",
87
- variant: "ghost",
88
- size: "icon",
89
- "aria-label": O.expandButton,
90
- onClick: T,
91
- children: /* @__PURE__ */ h(v, { className: "ttw:size-4" })
92
- }) : null, /* @__PURE__ */ h(e, {
93
- type: "button",
94
- variant: "ghost",
95
- size: "icon",
96
- "aria-label": O.closeButton,
97
- onClick: w,
98
- children: /* @__PURE__ */ h(y, { className: "ttw:size-4" })
99
- })]
100
- })]
101
- }), /* @__PURE__ */ h("div", {
102
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
103
- children: S ? /* @__PURE__ */ h("p", {
104
- className: "ttw:text-sm ttw:text-muted-foreground",
105
- children: O.errorDescription
106
- }) : _ ? /* @__PURE__ */ g("div", {
107
- className: "ttw:flex ttw:flex-col ttw:gap-6",
108
- children: [/* @__PURE__ */ h(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ g("div", {
109
- className: "ttw:flex ttw:flex-col ttw:gap-2",
110
- children: [
111
- /* @__PURE__ */ h(l, { className: "ttw:h-4 ttw:w-40" }),
112
- /* @__PURE__ */ h(l, { className: "ttw:h-9 ttw:w-full" }),
113
- /* @__PURE__ */ h(l, { className: "ttw:h-9 ttw:w-full" })
114
- ]
115
- })]
116
- }) : r ? /* @__PURE__ */ g(m, { children: [
117
- C,
118
- /* @__PURE__ */ g("section", {
119
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
120
- children: [
121
- /* @__PURE__ */ g("div", {
122
- className: "ttw:flex ttw:flex-col ttw:gap-2",
123
- children: [
124
- /* @__PURE__ */ h("span", {
125
- className: "ttw:text-sm ttw:text-muted-foreground",
126
- children: O.amountDueHeading
127
- }),
128
- /* @__PURE__ */ h("span", {
129
- className: "ttw:text-3xl ttw:font-semibold",
130
- children: r.amountDueLabel
131
- }),
132
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(d, {
133
- status: r.status,
134
- tone: r.statusTone,
135
- labels: O.statusBadge
136
- }) })
137
- ]
138
- }),
139
- /* @__PURE__ */ g("div", {
140
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
141
- children: [/* @__PURE__ */ g("div", {
142
- className: "ttw:flex ttw:flex-col",
143
- children: [/* @__PURE__ */ h("span", {
144
- className: "ttw:text-xs ttw:text-muted-foreground",
145
- children: O.invoiceDateLabel
146
- }), /* @__PURE__ */ h("span", {
147
- className: "ttw:text-sm ttw:font-medium",
148
- children: r.invoiceDateLabel
149
- })]
150
- }), /* @__PURE__ */ g("div", {
151
- className: "ttw:flex ttw:flex-col",
152
- children: [/* @__PURE__ */ h("span", {
153
- className: "ttw:text-xs ttw:text-muted-foreground",
154
- children: O.dueDateLabel
155
- }), /* @__PURE__ */ h("span", {
156
- className: "ttw:text-sm ttw:font-medium",
157
- children: r.dueDateLabel
158
- })]
159
- })]
160
- }),
161
- u.length ? /* @__PURE__ */ h("div", {
162
- className: "ttw:flex ttw:gap-2",
163
- children: /* @__PURE__ */ h(f, { actions: u })
164
- }) : null
165
- ]
166
- }),
167
- /* @__PURE__ */ h(x, {
168
- heading: O.payToHeading,
169
- children: /* @__PURE__ */ h(b, { items: r.payToItems })
170
- }),
171
- /* @__PURE__ */ h(x, {
172
- heading: O.invoiceDetailsHeading,
173
- children: /* @__PURE__ */ g("div", {
174
- className: "ttw:flex ttw:flex-col ttw:gap-4",
175
- children: [
176
- /* @__PURE__ */ h(b, { items: r.invoiceItems }),
177
- r.lineItems.length ? /* @__PURE__ */ g("table", {
178
- className: "ttw:w-full ttw:text-sm",
179
- children: [/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ g("tr", {
180
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
181
- children: [
182
- /* @__PURE__ */ h("th", {
183
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
184
- children: O.lineItemsHeading
185
- }),
186
- /* @__PURE__ */ h("th", {
187
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
188
- children: O.lineItemsQuantityHeading
189
- }),
190
- /* @__PURE__ */ h("th", {
191
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
192
- children: O.lineItemsAmountHeading
193
- })
194
- ]
195
- }) }), /* @__PURE__ */ h("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ g("tr", {
196
- className: "ttw:border-b ttw:border-border",
197
- children: [
198
- /* @__PURE__ */ g("td", {
199
- className: "ttw:px-3 ttw:py-2",
200
- children: [/* @__PURE__ */ h("span", {
201
- className: "ttw:block",
202
- children: e.description
203
- }), /* @__PURE__ */ h("span", {
204
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
205
- children: e.glCodeLabel
206
- })]
207
- }),
208
- /* @__PURE__ */ h("td", {
209
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
210
- children: e.quantityLabel
211
- }),
212
- /* @__PURE__ */ h("td", {
213
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
214
- children: e.amountLabel
215
- })
216
- ]
217
- }, e.id)) })]
218
- }) : null,
219
- /* @__PURE__ */ h("dl", {
220
- className: "ttw:flex ttw:flex-col ttw:gap-1",
221
- children: r.totals.map((e) => /* @__PURE__ */ g("div", {
222
- className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
223
- children: [/* @__PURE__ */ h("dt", {
224
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
225
- children: e.label
226
- }), /* @__PURE__ */ h("dd", { children: e.value })]
227
- }, e.label))
228
- })
229
- ]
230
- })
231
- })
232
- ] }) : null
233
- })]
234
- })
10
+ return /* @__PURE__ */ n("span", {
11
+ className: e("ttw:text-amber-700", i),
12
+ children: a.missing
235
13
  });
236
14
  }
237
15
  //#endregion
238
- export { S as BillDetailsSheet, S as default };
16
+ export { r as MissingValue, r as default };
@@ -1,195 +1,2 @@
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 l } 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 d } from "./index14.js";
8
- import "./index15.js";
9
- import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index40.js";
10
- import { useMemo as m } from "react";
11
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
12
- import { ChevronRightIcon as _, PlusIcon as v, SearchIcon as y } from "lucide-react";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js
14
- var b = [
15
- 10,
16
- 25,
17
- 50,
18
- 100
19
- ];
20
- function x({ rows: x, isLoading: S, isError: C, sorting: w, onSortingChange: T, pageSize: E, onPageSizeChange: D, pageSizeOptions: O = b, pageInfo: k, hasNextPage: A, hasPrevPage: j, onNextPage: M, onPrevPage: N, filterTabs: P, selectedFilterTabId: F, onFilterTabChange: I, searchValue: L, onSearchChange: R, isFiltering: z, onCreateClick: B, onRetry: V, onFilesSelected: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J }) {
21
- let Y = m(() => ({
22
- ...f,
23
- ...J,
24
- statusBadge: {
25
- ...f.statusBadge,
26
- ...J?.statusBadge
27
- },
28
- addBill: {
29
- ...f.addBill,
30
- ...J?.addBill,
31
- dropzone: {
32
- ...f.addBill.dropzone,
33
- ...J?.addBill?.dropzone
34
- }
35
- },
36
- sortableHeader: {
37
- ...f.sortableHeader,
38
- ...J?.sortableHeader
39
- }
40
- }), [J]), X = m(() => [
41
- {
42
- accessorKey: "vendorLabel",
43
- enableSorting: !0,
44
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
45
- column: e,
46
- title: Y.columnVendor,
47
- labels: Y.sortableHeader
48
- })
49
- },
50
- {
51
- accessorKey: "dueDateLabel",
52
- enableSorting: !0,
53
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
54
- column: e,
55
- title: Y.columnDueDate,
56
- labels: Y.sortableHeader
57
- })
58
- },
59
- {
60
- accessorKey: "status",
61
- enableSorting: !1,
62
- header: Y.columnStatus,
63
- cell: ({ row: e }) => /* @__PURE__ */ h(d, {
64
- status: e.original.status,
65
- tone: e.original.statusTone,
66
- labels: Y.statusBadge
67
- })
68
- },
69
- {
70
- accessorKey: "amountDueLabel",
71
- enableSorting: !1,
72
- header: () => /* @__PURE__ */ h("div", {
73
- className: "ttw:text-right",
74
- children: Y.columnAmountDue
75
- }),
76
- cell: ({ row: e }) => /* @__PURE__ */ h("div", {
77
- className: "ttw:text-right",
78
- children: e.original.amountDueLabel
79
- })
80
- },
81
- {
82
- accessorKey: "addedOnLabel",
83
- enableSorting: !0,
84
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
85
- column: e,
86
- title: Y.columnAddedOn,
87
- labels: Y.sortableHeader
88
- })
89
- },
90
- {
91
- id: "actions",
92
- enableSorting: !1,
93
- header: () => /* @__PURE__ */ h("span", {
94
- className: "ttw:sr-only",
95
- children: Y.columnActions
96
- }),
97
- cell: ({ row: t }) => /* @__PURE__ */ h("div", {
98
- className: "ttw:flex ttw:justify-end",
99
- children: /* @__PURE__ */ h(e, {
100
- variant: "ghost",
101
- size: "icon",
102
- "aria-label": Y.openRow(t.original.vendorLabel),
103
- onClick: (e) => {
104
- e.stopPropagation(), t.original.onOpen();
105
- },
106
- children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
107
- })
108
- })
109
- }
110
- ], [Y]), Z = !!(B && H) && !S && !C && !z && x.length === 0, Q = /* @__PURE__ */ h("div", {
111
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
112
- children: /* @__PURE__ */ g("div", {
113
- className: "ttw:relative ttw:w-80",
114
- children: [/* @__PURE__ */ h(y, { 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__ */ h(r, {
115
- className: "ttw:pl-9",
116
- type: "search",
117
- "aria-label": Y.searchLabel,
118
- placeholder: Y.searchPlaceholder,
119
- value: L,
120
- onChange: (e) => R(e.target.value)
121
- })]
122
- })
123
- });
124
- return /* @__PURE__ */ g(i, {
125
- value: F,
126
- onValueChange: I,
127
- className: "ttw:flex ttw:flex-col ttw:gap-4",
128
- children: [/* @__PURE__ */ g("div", {
129
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
130
- children: [/* @__PURE__ */ h(o, {
131
- "aria-label": Y.filterTabsLabel,
132
- children: P.map((e) => /* @__PURE__ */ g(s, {
133
- value: e.id,
134
- className: "ttw:min-w-28",
135
- children: [e.icon, e.label]
136
- }, e.id))
137
- }), B && !Z ? /* @__PURE__ */ g(e, {
138
- onClick: B,
139
- children: [/* @__PURE__ */ h(v, { className: "ttw:size-4" }), Y.createButton]
140
- }) : null]
141
- }), (() => {
142
- let e = C ? /* @__PURE__ */ h(l, {
143
- title: Y.errorTitle,
144
- description: Y.errorDescription,
145
- retryLabel: V ? Y.errorRetry : void 0,
146
- onRetry: V
147
- }) : Z && B && H ? /* @__PURE__ */ h("div", {
148
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
149
- children: K && q ? /* @__PURE__ */ h(u, {
150
- emailAddress: K,
151
- onCopyEmail: q,
152
- onFilesSelected: H,
153
- accept: p,
154
- uploadStatus: W,
155
- uploadErrorMessage: G,
156
- onEnterManually: U ?? B,
157
- labels: Y.addBill
158
- }) : /* @__PURE__ */ h(u, {
159
- onFilesSelected: H,
160
- accept: p,
161
- uploadStatus: W,
162
- uploadErrorMessage: G,
163
- onEnterManually: U ?? B,
164
- labels: Y.addBill
165
- })
166
- }) : /* @__PURE__ */ h(t, {
167
- columns: X,
168
- data: x,
169
- isLoading: S,
170
- sorting: w,
171
- onSortingChange: T,
172
- pageSize: E,
173
- onPageSizeChange: D,
174
- pageSizeOptions: O,
175
- pageInfo: k,
176
- hasNextPage: A,
177
- hasPrevPage: j,
178
- onNextPage: M,
179
- onPrevPage: N,
180
- onRowClick: (e) => e.onOpen(),
181
- filterComponent: Q,
182
- children: z ? /* @__PURE__ */ h(c, {
183
- title: Y.filteredEmptyTitle,
184
- description: Y.filteredEmptyDescription
185
- }) : void 0
186
- });
187
- return P.map((t) => /* @__PURE__ */ h(a, {
188
- value: t.id,
189
- children: t.id === F ? e : null
190
- }, t.id));
191
- })()]
192
- });
193
- }
194
- //#endregion
195
- export { x as BillsScreen, x as default };
1
+ import "./index40.js";
2
+ import "./index41.js";
@@ -1,10 +1,61 @@
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index13.js";
5
+ import "./index15.js";
6
+ import { MISSING_VALUE_LABELS_EN as r } from "./index40.js";
7
+ import "./index42.js";
1
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.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" : "Failed",
7
- openItem: (e) => `Open ${e}`
9
+ var i = {
10
+ loadingTitle: "Loading bill…",
11
+ hiddenDescription: "Bill details",
12
+ errorTitle: "Couldn't load this bill",
13
+ errorDescription: "Something went wrong. Try again.",
14
+ amountDueHeading: "Amount due",
15
+ invoiceDateLabel: "Invoice date",
16
+ dueDateLabel: "Due date",
17
+ payToHeading: "Pay to",
18
+ invoiceDetailsHeading: "Invoice details",
19
+ lineItemsHeading: "Line items",
20
+ lineItemsQuantityHeading: "Qty/Price",
21
+ lineItemsAmountHeading: "Amount",
22
+ payButton: "Pay",
23
+ markAsPaidButton: "Mark as paid",
24
+ rejectButton: "Reject",
25
+ expandButton: "Open full screen",
26
+ closeButton: "Close",
27
+ statusBadge: n
28
+ }, a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
29
+ ...t,
30
+ dropzone: {
31
+ ...t.dropzone,
32
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
33
+ }
34
+ }, s = {
35
+ createButton: "Add bill",
36
+ columnVendor: "Vendor",
37
+ columnDueDate: "Due date",
38
+ columnAmountDue: "Amount due",
39
+ columnStatus: "Status",
40
+ columnAddedOn: "Added on",
41
+ columnActions: "Actions",
42
+ openRow: (e) => `View bill — ${e}`,
43
+ searchPlaceholder: "Search by vendor name",
44
+ searchLabel: "Search bills by vendor name",
45
+ filterTabsLabel: "Filter bills by status",
46
+ filteredEmptyTitle: "No bills match",
47
+ filteredEmptyDescription: "Try a different search or status filter.",
48
+ errorTitle: "Couldn't load bills",
49
+ errorDescription: "Something went wrong. Try again.",
50
+ errorRetry: "Retry",
51
+ statusBadge: n,
52
+ addBill: o,
53
+ sortableHeader: {
54
+ sortedAscending: e.sortedAscending,
55
+ sortedDescending: e.sortedDescending,
56
+ notSorted: e.notSorted
57
+ },
58
+ missingValue: r
8
59
  };
9
60
  //#endregion
10
- export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
61
+ export { s as BILLS_SCREEN_LABELS_EN, a as BILLS_SCREEN_UPLOAD_ACCEPT, i as BILL_DETAILS_SHEET_LABELS_EN };