@tesouro/embedded-components-react 0.2.320 → 0.2.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +60 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +11 -233
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +58 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +236 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +198 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +104 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +163 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +0 -30
|
@@ -1,8 +1,238 @@
|
|
|
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 "./index43.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
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
}
|
|
52
|
+
};
|
|
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
|
+
})
|
|
235
|
+
});
|
|
236
|
+
}
|
|
7
237
|
//#endregion
|
|
8
|
-
export {
|
|
238
|
+
export { S as BillDetailsSheet, S as default };
|
|
@@ -1,93 +1,204 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
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 { MissingValue as f } from "./index41.js";
|
|
10
|
+
import "./index42.js";
|
|
11
|
+
import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index43.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";
|
|
7
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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, onEnterManually: W, uploadStatus: G, uploadErrorMessage: K, emailAddress: q, onCopyEmail: J, labels: Y }) {
|
|
23
|
+
let X = h(() => ({
|
|
24
|
+
...p,
|
|
25
|
+
...Y,
|
|
26
|
+
statusBadge: {
|
|
27
|
+
...p.statusBadge,
|
|
28
|
+
...Y?.statusBadge
|
|
29
|
+
},
|
|
30
|
+
addBill: {
|
|
31
|
+
...p.addBill,
|
|
32
|
+
...Y?.addBill,
|
|
33
|
+
dropzone: {
|
|
34
|
+
...p.addBill.dropzone,
|
|
35
|
+
...Y?.addBill?.dropzone
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
sortableHeader: {
|
|
39
|
+
...p.sortableHeader,
|
|
40
|
+
...Y?.sortableHeader
|
|
41
|
+
},
|
|
42
|
+
missingValue: {
|
|
43
|
+
...p.missingValue,
|
|
44
|
+
...Y?.missingValue
|
|
45
|
+
}
|
|
46
|
+
}), [Y]), Z = h(() => [
|
|
47
|
+
{
|
|
48
|
+
accessorKey: "vendorLabel",
|
|
49
|
+
enableSorting: !0,
|
|
50
|
+
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
51
|
+
column: e,
|
|
52
|
+
title: X.columnVendor,
|
|
53
|
+
labels: X.sortableHeader
|
|
54
|
+
}),
|
|
55
|
+
cell: ({ row: e }) => e.original.vendorLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
accessorKey: "dueDateLabel",
|
|
59
|
+
enableSorting: !0,
|
|
60
|
+
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
61
|
+
column: e,
|
|
62
|
+
title: X.columnDueDate,
|
|
63
|
+
labels: X.sortableHeader
|
|
64
|
+
}),
|
|
65
|
+
cell: ({ row: e }) => e.original.dueDateLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
accessorKey: "status",
|
|
69
|
+
enableSorting: !1,
|
|
70
|
+
header: X.columnStatus,
|
|
71
|
+
cell: ({ row: e }) => /* @__PURE__ */ g(d, {
|
|
72
|
+
status: e.original.status,
|
|
73
|
+
tone: e.original.statusTone,
|
|
74
|
+
labels: X.statusBadge
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
accessorKey: "amountDueLabel",
|
|
79
|
+
enableSorting: !1,
|
|
80
|
+
header: () => /* @__PURE__ */ g("div", {
|
|
81
|
+
className: "ttw:text-right",
|
|
82
|
+
children: X.columnAmountDue
|
|
83
|
+
}),
|
|
84
|
+
cell: ({ row: e }) => /* @__PURE__ */ g("div", {
|
|
85
|
+
className: "ttw:text-right",
|
|
86
|
+
children: e.original.amountDueLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
87
|
+
})
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
accessorKey: "addedOnLabel",
|
|
91
|
+
enableSorting: !0,
|
|
92
|
+
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
93
|
+
column: e,
|
|
94
|
+
title: X.columnAddedOn,
|
|
95
|
+
labels: X.sortableHeader
|
|
96
|
+
}),
|
|
97
|
+
cell: ({ row: e }) => e.original.addedOnLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: "actions",
|
|
101
|
+
enableSorting: !1,
|
|
102
|
+
header: () => /* @__PURE__ */ g("span", {
|
|
103
|
+
className: "ttw:sr-only",
|
|
104
|
+
children: X.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": X.openRow(t.original.vendorLabel || X.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
|
+
], [X]), Q = !!(V && U) && !C && !w && !B && S.length === 0, $ = /* @__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": X.searchLabel,
|
|
127
|
+
placeholder: X.searchPlaceholder,
|
|
128
|
+
value: R,
|
|
129
|
+
onChange: (e) => z(e.target.value)
|
|
130
|
+
})]
|
|
131
|
+
})
|
|
46
132
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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": X.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 && !Q ? /* @__PURE__ */ _(e, {
|
|
147
|
+
onClick: V,
|
|
148
|
+
children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), X.createButton]
|
|
149
|
+
}) : null]
|
|
150
|
+
}), (() => {
|
|
151
|
+
let e = w ? /* @__PURE__ */ g(l, {
|
|
152
|
+
title: X.errorTitle,
|
|
153
|
+
description: X.errorDescription,
|
|
154
|
+
retryLabel: H ? X.errorRetry : void 0,
|
|
155
|
+
onRetry: H
|
|
156
|
+
}) : Q && V && U ? /* @__PURE__ */ g("div", {
|
|
157
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
158
|
+
children: q && J ? /* @__PURE__ */ g(u, {
|
|
159
|
+
emailAddress: q,
|
|
160
|
+
onCopyEmail: J,
|
|
161
|
+
onFilesSelected: U,
|
|
162
|
+
accept: m,
|
|
163
|
+
uploadStatus: G,
|
|
164
|
+
uploadErrorMessage: K,
|
|
165
|
+
onEnterManually: W ?? V,
|
|
166
|
+
labels: X.addBill
|
|
167
|
+
}) : /* @__PURE__ */ g(u, {
|
|
168
|
+
onFilesSelected: U,
|
|
169
|
+
accept: m,
|
|
170
|
+
uploadStatus: G,
|
|
171
|
+
uploadErrorMessage: K,
|
|
172
|
+
onEnterManually: W ?? V,
|
|
173
|
+
labels: X.addBill
|
|
78
174
|
})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
175
|
+
}) : /* @__PURE__ */ g(t, {
|
|
176
|
+
columns: Z,
|
|
177
|
+
data: S,
|
|
178
|
+
isLoading: C,
|
|
179
|
+
sorting: T,
|
|
180
|
+
onSortingChange: E,
|
|
181
|
+
pageSize: D,
|
|
182
|
+
onPageSizeChange: O,
|
|
183
|
+
pageSizeOptions: k,
|
|
184
|
+
pageInfo: A,
|
|
185
|
+
hasNextPage: j,
|
|
186
|
+
hasPrevPage: M,
|
|
187
|
+
onNextPage: N,
|
|
188
|
+
onPrevPage: P,
|
|
189
|
+
onRowClick: (e) => e.onOpen(),
|
|
190
|
+
filterComponent: $,
|
|
191
|
+
children: B ? /* @__PURE__ */ g(c, {
|
|
192
|
+
title: X.filteredEmptyTitle,
|
|
193
|
+
description: X.filteredEmptyDescription
|
|
194
|
+
}) : void 0
|
|
195
|
+
});
|
|
196
|
+
return F.map((t) => /* @__PURE__ */ g(a, {
|
|
197
|
+
value: t.id,
|
|
198
|
+
children: t.id === I ? e : null
|
|
199
|
+
}, t.id));
|
|
200
|
+
})()]
|
|
90
201
|
});
|
|
91
202
|
}
|
|
92
203
|
//#endregion
|
|
93
|
-
export {
|
|
204
|
+
export { S as BillsScreen, S as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.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
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js
|
|
2
|
+
var e = {
|
|
3
|
+
uploading: "ttw:text-muted-foreground",
|
|
4
|
+
ready: "ttw:text-emerald-600",
|
|
5
|
+
failed: "ttw:text-destructive"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as UPLOAD_ITEM_ICON_TONE };
|
|
@@ -1,7 +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 "./index46.js";
|
|
3
|
+
import { UPLOAD_ITEM_ICON_TONE as n } from "./index47.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";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
}
|
|
6
92
|
//#endregion
|
|
7
|
-
export {
|
|
93
|
+
export { g as BillUploadStatusTray, g as default };
|