@tesouro/embedded-components-react 0.2.331 → 0.2.333

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 (38) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +86 -29
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +24 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +59 -48
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +15 -5
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +16 -15
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +4 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +12 -204
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +254 -8
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -91
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +93 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -7
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +5 -28
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +30 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -7
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +34 -2
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +10 -104
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +105 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -18
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +14 -6
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +7 -167
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +170 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -14
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +11 -86
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +89 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -0
  35. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  36. package/dist/packages/shared-ui-shadcn/dist/index.js +1274 -1266
  37. package/package.json +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -2
@@ -1,206 +1,14 @@
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 "./index19.js";
8
- import "./index20.js";
9
- import { MissingValue as f } from "./index49.js";
10
- import "./index50.js";
11
- import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index51.js";
12
- import { useMemo as h } from "react";
13
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
14
- import { ChevronRightIcon as v, PlusIcon as y, SearchIcon as b } from "lucide-react";
15
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
16
- var x = [
17
- 10,
18
- 25,
19
- 50,
20
- 100
21
- ];
22
- function S({ rows: S, isLoading: C, isError: w, sorting: T, onSortingChange: E, pageSize: D, onPageSizeChange: O, pageSizeOptions: k = x, pageInfo: A, hasNextPage: j, hasPrevPage: M, onNextPage: N, onPrevPage: P, filterTabs: F, selectedFilterTabId: I, onFilterTabChange: L, searchValue: R, onSearchChange: z, isFiltering: B, onCreateClick: V, onRetry: H, onFilesSelected: U, maxFiles: W, onEnterManually: G, uploadStatus: K, uploadErrorMessage: q, emailAddress: J, onCopyEmail: Y, labels: X }) {
23
- let Z = h(() => ({
24
- ...p,
25
- ...X,
26
- statusBadge: {
27
- ...p.statusBadge,
28
- ...X?.statusBadge
29
- },
30
- addBill: {
31
- ...p.addBill,
32
- ...X?.addBill,
33
- dropzone: {
34
- ...p.addBill.dropzone,
35
- ...X?.addBill?.dropzone
36
- }
37
- },
38
- sortableHeader: {
39
- ...p.sortableHeader,
40
- ...X?.sortableHeader
41
- },
42
- missingValue: {
43
- ...p.missingValue,
44
- ...X?.missingValue
45
- }
46
- }), [X]), Q = h(() => [
47
- {
48
- accessorKey: "vendorLabel",
49
- enableSorting: !0,
50
- header: ({ column: e }) => /* @__PURE__ */ g(n, {
51
- column: e,
52
- title: Z.columnVendor,
53
- labels: Z.sortableHeader
54
- }),
55
- cell: ({ row: e }) => e.original.vendorLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
56
- },
57
- {
58
- accessorKey: "dueDateLabel",
59
- enableSorting: !0,
60
- header: ({ column: e }) => /* @__PURE__ */ g(n, {
61
- column: e,
62
- title: Z.columnDueDate,
63
- labels: Z.sortableHeader
64
- }),
65
- cell: ({ row: e }) => e.original.dueDateLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
66
- },
67
- {
68
- accessorKey: "status",
69
- enableSorting: !1,
70
- header: Z.columnStatus,
71
- cell: ({ row: e }) => /* @__PURE__ */ g(d, {
72
- status: e.original.status,
73
- tone: e.original.statusTone,
74
- labels: Z.statusBadge
75
- })
76
- },
77
- {
78
- accessorKey: "amountDueLabel",
79
- enableSorting: !1,
80
- header: () => /* @__PURE__ */ g("div", {
81
- className: "ttw:text-right",
82
- children: Z.columnAmountDue
83
- }),
84
- cell: ({ row: e }) => /* @__PURE__ */ g("div", {
85
- className: "ttw:text-right",
86
- children: e.original.amountDueLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
87
- })
88
- },
89
- {
90
- accessorKey: "addedOnLabel",
91
- enableSorting: !0,
92
- header: ({ column: e }) => /* @__PURE__ */ g(n, {
93
- column: e,
94
- title: Z.columnAddedOn,
95
- labels: Z.sortableHeader
96
- }),
97
- cell: ({ row: e }) => e.original.addedOnLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
98
- },
99
- {
100
- id: "actions",
101
- enableSorting: !1,
102
- header: () => /* @__PURE__ */ g("span", {
103
- className: "ttw:sr-only",
104
- children: Z.columnActions
105
- }),
106
- cell: ({ row: t }) => /* @__PURE__ */ g("div", {
107
- className: "ttw:flex ttw:justify-end",
108
- children: /* @__PURE__ */ g(e, {
109
- variant: "ghost",
110
- size: "icon",
111
- "aria-label": Z.openRow(t.original.vendorLabel || Z.missingValue.missing),
112
- onClick: (e) => {
113
- e.stopPropagation(), t.original.onOpen();
114
- },
115
- children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
116
- })
117
- })
118
- }
119
- ], [Z]), $ = !!(V && U) && !C && !w && !B && S.length === 0, ee = /* @__PURE__ */ g("div", {
120
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
121
- children: /* @__PURE__ */ _("div", {
122
- className: "ttw:relative ttw:w-80",
123
- 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, {
124
- className: "ttw:pl-9",
125
- type: "search",
126
- "aria-label": Z.searchLabel,
127
- placeholder: Z.searchPlaceholder,
128
- value: R,
129
- onChange: (e) => z(e.target.value)
130
- })]
131
- })
132
- });
133
- return /* @__PURE__ */ _(i, {
134
- value: I,
135
- onValueChange: L,
136
- className: "ttw:flex ttw:flex-col ttw:gap-4",
137
- children: [/* @__PURE__ */ _("div", {
138
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
139
- children: [/* @__PURE__ */ g(o, {
140
- "aria-label": Z.filterTabsLabel,
141
- children: F.map((e) => /* @__PURE__ */ _(s, {
142
- value: e.id,
143
- className: "ttw:min-w-28",
144
- children: [e.icon, e.label]
145
- }, e.id))
146
- }), V && !$ ? /* @__PURE__ */ _(e, {
147
- onClick: V,
148
- children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), Z.createButton]
149
- }) : null]
150
- }), (() => {
151
- let e = w ? /* @__PURE__ */ g(l, {
152
- title: Z.errorTitle,
153
- description: Z.errorDescription,
154
- retryLabel: H ? Z.errorRetry : void 0,
155
- onRetry: H
156
- }) : $ && V && U ? /* @__PURE__ */ g("div", {
157
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
158
- children: J && Y ? /* @__PURE__ */ g(u, {
159
- emailAddress: J,
160
- onCopyEmail: Y,
161
- onFilesSelected: U,
162
- accept: m,
163
- maxFiles: W,
164
- uploadStatus: K,
165
- uploadErrorMessage: q,
166
- onEnterManually: G ?? V,
167
- labels: Z.addBill
168
- }) : /* @__PURE__ */ g(u, {
169
- onFilesSelected: U,
170
- accept: m,
171
- maxFiles: W,
172
- uploadStatus: K,
173
- uploadErrorMessage: q,
174
- onEnterManually: G ?? V,
175
- labels: Z.addBill
176
- })
177
- }) : /* @__PURE__ */ g(t, {
178
- columns: Q,
179
- data: S,
180
- isLoading: C,
181
- sorting: T,
182
- onSortingChange: E,
183
- pageSize: D,
184
- onPageSizeChange: O,
185
- pageSizeOptions: k,
186
- pageInfo: A,
187
- hasNextPage: j,
188
- hasPrevPage: M,
189
- onNextPage: N,
190
- onPrevPage: P,
191
- onRowClick: (e) => e.onOpen(),
192
- filterComponent: ee,
193
- children: B ? /* @__PURE__ */ g(c, {
194
- title: Z.filteredEmptyTitle,
195
- description: Z.filteredEmptyDescription
196
- }) : void 0
197
- });
198
- return F.map((t) => /* @__PURE__ */ g(a, {
199
- value: t.id,
200
- children: t.id === I ? e : null
201
- }, t.id));
202
- })()]
203
- });
204
- }
2
+ var e = {
3
+ Vendor: "vendor",
4
+ DueDate: "dueDate",
5
+ ScheduledDate: "scheduledDate",
6
+ PaidDate: "paidDate",
7
+ Status: "status",
8
+ AmountDue: "amountDue",
9
+ AmountScheduled: "amountScheduled",
10
+ AmountPaid: "amountPaid",
11
+ AddedOn: "addedOn"
12
+ };
205
13
  //#endregion
206
- export { S as BillsScreen, S as default };
14
+ export { e as BillColumn };
@@ -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 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}`
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 { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
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
- uploading: "ttw:text-muted-foreground",
4
- ready: "ttw:text-emerald-600",
5
- failed: "ttw:text-destructive"
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 UPLOAD_ITEM_ICON_TONE };
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
- 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
- }
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 { g as BillUploadStatusTray, g as default };
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 };