@tesouro/embedded-components-react 0.5.13 → 0.5.16
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/README.md +1 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/lib/SettingsWidget.d.ts +3 -0
- package/dist/lib/WidgetSuite.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +17 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +301 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +186 -339
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +354 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +57 -49
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/collectDisclosureDocuments.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/testIds.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index3.js +80 -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/index83.js +0 -28
|
@@ -1,8 +1,303 @@
|
|
|
1
|
+
import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ApprovalPolicyCard as f } from "./index13.js";
|
|
3
|
+
import "./index14.js";
|
|
4
|
+
import { BillRejectionNotice as p } from "./index16.js";
|
|
5
|
+
import { BillStatusBadge as m } from "./index19.js";
|
|
6
|
+
import "./index20.js";
|
|
7
|
+
import { DueDateValue as h } from "./index22.js";
|
|
8
|
+
import "./index23.js";
|
|
9
|
+
import { PaymentHistoryList as g } from "./index24.js";
|
|
10
|
+
import "./index25.js";
|
|
11
|
+
import { BillActionButtons as _, NO_BILL_ACTIONS as v } from "./index15.js";
|
|
12
|
+
import { BillOverflowMenu as y } from "./index37.js";
|
|
13
|
+
import "./index38.js";
|
|
14
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as b } from "./index64.js";
|
|
15
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
16
|
+
import { ChevronDownIcon as w, MoveDiagonal2Icon as T, XIcon as E } from "lucide-react";
|
|
1
17
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
18
|
+
function D({ items: e }) {
|
|
19
|
+
return /* @__PURE__ */ S("dl", {
|
|
20
|
+
className: "ttw:flex ttw:flex-col",
|
|
21
|
+
children: e.map((e) => /* @__PURE__ */ C("div", {
|
|
22
|
+
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",
|
|
23
|
+
children: [/* @__PURE__ */ S("dt", {
|
|
24
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
|
+
children: e.label
|
|
26
|
+
}), /* @__PURE__ */ C("dd", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
|
|
28
|
+
children: [/* @__PURE__ */ S("span", {
|
|
29
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
30
|
+
children: e.value
|
|
31
|
+
}), e.secondaryValue ? /* @__PURE__ */ S("span", {
|
|
32
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
33
|
+
children: e.secondaryValue
|
|
34
|
+
}) : null]
|
|
35
|
+
})]
|
|
36
|
+
}, e.label))
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function O({ heading: e, children: t }) {
|
|
40
|
+
return /* @__PURE__ */ C(n, {
|
|
41
|
+
defaultOpen: !0,
|
|
42
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
43
|
+
children: [/* @__PURE__ */ C(i, {
|
|
44
|
+
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",
|
|
45
|
+
children: [/* @__PURE__ */ S(d, {
|
|
46
|
+
variant: "body1",
|
|
47
|
+
className: "ttw:font-semibold",
|
|
48
|
+
children: e
|
|
49
|
+
}), /* @__PURE__ */ S(w, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
|
|
50
|
+
}), /* @__PURE__ */ S(r, { children: t })]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function k({ open: n, onOpenChange: r, details: i, actions: w = v, approvalPolicy: k, showApprovalOverrideNotice: A, paymentHistory: j, paymentHistoryError: M, paymentHistoryLoading: N, isLoading: P, isError: F, notice: I, onClose: L, onExpand: R, testId: z, labels: B }) {
|
|
54
|
+
let V = {
|
|
55
|
+
...b,
|
|
56
|
+
...B,
|
|
57
|
+
statusBadge: {
|
|
58
|
+
...b.statusBadge,
|
|
59
|
+
...B?.statusBadge
|
|
60
|
+
},
|
|
61
|
+
approvalPolicy: {
|
|
62
|
+
...b.approvalPolicy,
|
|
63
|
+
...B?.approvalPolicy
|
|
64
|
+
},
|
|
65
|
+
dueDate: {
|
|
66
|
+
...b.dueDate,
|
|
67
|
+
...B?.dueDate
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
return /* @__PURE__ */ S(a, {
|
|
71
|
+
open: n,
|
|
72
|
+
onOpenChange: (e) => e ? r(e) : L(),
|
|
73
|
+
children: /* @__PURE__ */ C(o, {
|
|
74
|
+
showCloseButton: !1,
|
|
75
|
+
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
76
|
+
"data-testid": z,
|
|
77
|
+
children: [/* @__PURE__ */ C(c, {
|
|
78
|
+
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
79
|
+
children: [/* @__PURE__ */ C("div", {
|
|
80
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ S(l, {
|
|
83
|
+
className: P ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
84
|
+
children: F ? V.errorTitle : P ? V.loadingTitle : i?.title
|
|
85
|
+
}),
|
|
86
|
+
P ? /* @__PURE__ */ C("div", {
|
|
87
|
+
"aria-hidden": !0,
|
|
88
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
89
|
+
children: [/* @__PURE__ */ S(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ S(u, { className: "ttw:h-4 ttw:w-28" })]
|
|
90
|
+
}) : null,
|
|
91
|
+
i && !P && !F ? /* @__PURE__ */ S("p", {
|
|
92
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
93
|
+
children: i.subtitle
|
|
94
|
+
}) : null,
|
|
95
|
+
/* @__PURE__ */ S(s, {
|
|
96
|
+
className: "ttw:sr-only",
|
|
97
|
+
children: V.hiddenDescription
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}), /* @__PURE__ */ C("div", {
|
|
101
|
+
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
102
|
+
children: [
|
|
103
|
+
R ? /* @__PURE__ */ S(t, {
|
|
104
|
+
type: "button",
|
|
105
|
+
variant: "ghost",
|
|
106
|
+
size: "icon",
|
|
107
|
+
"aria-label": V.expandButton,
|
|
108
|
+
onClick: R,
|
|
109
|
+
children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
|
|
110
|
+
}) : null,
|
|
111
|
+
i && !P && !F ? /* @__PURE__ */ S(y, {
|
|
112
|
+
actions: w.menu,
|
|
113
|
+
triggerLabel: V.overflowMenuTrigger,
|
|
114
|
+
placement: "header"
|
|
115
|
+
}) : null,
|
|
116
|
+
/* @__PURE__ */ S(t, {
|
|
117
|
+
type: "button",
|
|
118
|
+
variant: "ghost",
|
|
119
|
+
size: "icon",
|
|
120
|
+
"aria-label": V.closeButton,
|
|
121
|
+
onClick: L,
|
|
122
|
+
children: /* @__PURE__ */ S(E, { className: "ttw:size-4" })
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
})]
|
|
126
|
+
}), /* @__PURE__ */ S("div", {
|
|
127
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
128
|
+
children: F ? /* @__PURE__ */ S("p", {
|
|
129
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
130
|
+
children: V.errorDescription
|
|
131
|
+
}) : P ? /* @__PURE__ */ C("div", {
|
|
132
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
133
|
+
children: [/* @__PURE__ */ S(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ C("div", {
|
|
134
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ S(u, { className: "ttw:h-4 ttw:w-40" }),
|
|
137
|
+
/* @__PURE__ */ S(u, { className: "ttw:h-9 ttw:w-full" }),
|
|
138
|
+
/* @__PURE__ */ S(u, { className: "ttw:h-9 ttw:w-full" })
|
|
139
|
+
]
|
|
140
|
+
})]
|
|
141
|
+
}) : i ? /* @__PURE__ */ C(x, { children: [
|
|
142
|
+
I,
|
|
143
|
+
/* @__PURE__ */ C("section", {
|
|
144
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ C("div", {
|
|
147
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
148
|
+
children: [i.paidOnLabel ? /* @__PURE__ */ C("div", {
|
|
149
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
150
|
+
children: [/* @__PURE__ */ C("div", {
|
|
151
|
+
className: "ttw:flex ttw:flex-col",
|
|
152
|
+
children: [/* @__PURE__ */ S("span", {
|
|
153
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
154
|
+
children: V.amountDueHeading
|
|
155
|
+
}), /* @__PURE__ */ S("span", {
|
|
156
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
157
|
+
children: i.amountDueLabel
|
|
158
|
+
})]
|
|
159
|
+
}), /* @__PURE__ */ C("div", {
|
|
160
|
+
className: "ttw:flex ttw:flex-col",
|
|
161
|
+
children: [/* @__PURE__ */ S("span", {
|
|
162
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
163
|
+
children: V.amountPaidHeading
|
|
164
|
+
}), /* @__PURE__ */ S("span", {
|
|
165
|
+
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
166
|
+
children: i.amountPaidLabel
|
|
167
|
+
})]
|
|
168
|
+
})]
|
|
169
|
+
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("span", {
|
|
170
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
171
|
+
children: V.amountDueHeading
|
|
172
|
+
}), /* @__PURE__ */ S("span", {
|
|
173
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
174
|
+
children: i.amountDueLabel
|
|
175
|
+
})] }), /* @__PURE__ */ S("div", { children: i.paidOnLabel ? /* @__PURE__ */ S(e, {
|
|
176
|
+
variant: "outline",
|
|
177
|
+
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
178
|
+
children: i.paidOnLabel
|
|
179
|
+
}) : /* @__PURE__ */ S(m, {
|
|
180
|
+
status: i.status,
|
|
181
|
+
tone: i.statusTone,
|
|
182
|
+
labels: V.statusBadge
|
|
183
|
+
}) })]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ C("div", {
|
|
186
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
187
|
+
children: [/* @__PURE__ */ C("div", {
|
|
188
|
+
className: "ttw:flex ttw:flex-col",
|
|
189
|
+
children: [/* @__PURE__ */ S("span", {
|
|
190
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
191
|
+
children: V.invoiceDateLabel
|
|
192
|
+
}), /* @__PURE__ */ S("span", {
|
|
193
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
194
|
+
children: i.invoiceDateLabel
|
|
195
|
+
})]
|
|
196
|
+
}), /* @__PURE__ */ C("div", {
|
|
197
|
+
className: "ttw:flex ttw:flex-col",
|
|
198
|
+
children: [/* @__PURE__ */ S("span", {
|
|
199
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
200
|
+
children: V.dueDateLabel
|
|
201
|
+
}), /* @__PURE__ */ S(h, {
|
|
202
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
203
|
+
value: i.dueDateLabel,
|
|
204
|
+
tone: i.dueDateTone,
|
|
205
|
+
labels: V.dueDate
|
|
206
|
+
})]
|
|
207
|
+
})]
|
|
208
|
+
}),
|
|
209
|
+
i.rejection ? /* @__PURE__ */ S(p, { ...i.rejection }) : null,
|
|
210
|
+
A ? /* @__PURE__ */ S(d, {
|
|
211
|
+
variant: "caption",
|
|
212
|
+
color: "muted",
|
|
213
|
+
children: V.approvalOverrideNotice
|
|
214
|
+
}) : null,
|
|
215
|
+
w.row.length ? /* @__PURE__ */ S("div", {
|
|
216
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
217
|
+
children: /* @__PURE__ */ S(_, { actions: w.row })
|
|
218
|
+
}) : null
|
|
219
|
+
]
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ S(O, {
|
|
222
|
+
heading: i.paidOnLabel ? V.payToHeadingPaid : V.payToHeading,
|
|
223
|
+
children: /* @__PURE__ */ S(D, { items: i.payToItems })
|
|
224
|
+
}),
|
|
225
|
+
j?.length || M || N ? /* @__PURE__ */ S(O, {
|
|
226
|
+
heading: V.paymentHistoryHeading,
|
|
227
|
+
children: M ? /* @__PURE__ */ S("p", {
|
|
228
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
229
|
+
children: V.paymentHistoryErrorDescription
|
|
230
|
+
}) : N ? /* @__PURE__ */ S(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ S(g, { records: j ?? [] })
|
|
231
|
+
}) : null,
|
|
232
|
+
/* @__PURE__ */ S(O, {
|
|
233
|
+
heading: V.invoiceDetailsHeading,
|
|
234
|
+
children: /* @__PURE__ */ C("div", {
|
|
235
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ S(D, { items: i.invoiceItems }),
|
|
238
|
+
i.lineItems.length ? /* @__PURE__ */ C("table", {
|
|
239
|
+
className: "ttw:w-full ttw:text-sm",
|
|
240
|
+
children: [/* @__PURE__ */ S("thead", { children: /* @__PURE__ */ C("tr", {
|
|
241
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ S("th", {
|
|
244
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
245
|
+
children: V.lineItemsHeading
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ S("th", {
|
|
248
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
249
|
+
children: V.lineItemsQuantityHeading
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ S("th", {
|
|
252
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
253
|
+
children: V.lineItemsAmountHeading
|
|
254
|
+
})
|
|
255
|
+
]
|
|
256
|
+
}) }), /* @__PURE__ */ S("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ C("tr", {
|
|
257
|
+
className: "ttw:border-b ttw:border-border",
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ C("td", {
|
|
260
|
+
className: "ttw:px-3 ttw:py-2",
|
|
261
|
+
children: [/* @__PURE__ */ S("span", {
|
|
262
|
+
className: "ttw:block",
|
|
263
|
+
children: e.description
|
|
264
|
+
}), /* @__PURE__ */ S("span", {
|
|
265
|
+
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
266
|
+
children: e.glCodeLabel
|
|
267
|
+
})]
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ S("td", {
|
|
270
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
271
|
+
children: e.quantityLabel
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ S("td", {
|
|
274
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
275
|
+
children: e.amountLabel
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
}, e.id)) })]
|
|
279
|
+
}) : null,
|
|
280
|
+
/* @__PURE__ */ S("dl", {
|
|
281
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
282
|
+
children: i.totals.map((e) => /* @__PURE__ */ C("div", {
|
|
283
|
+
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",
|
|
284
|
+
children: [/* @__PURE__ */ S("dt", {
|
|
285
|
+
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
286
|
+
children: e.label
|
|
287
|
+
}), /* @__PURE__ */ S("dd", { children: e.value })]
|
|
288
|
+
}, e.label))
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
})
|
|
292
|
+
}),
|
|
293
|
+
k ? /* @__PURE__ */ S(f, {
|
|
294
|
+
view: k,
|
|
295
|
+
labels: V.approvalPolicy
|
|
296
|
+
}) : null
|
|
297
|
+
] }) : null
|
|
298
|
+
})]
|
|
299
|
+
})
|
|
300
|
+
});
|
|
301
|
+
}
|
|
7
302
|
//#endregion
|
|
8
|
-
export {
|
|
303
|
+
export { k as BillDetailsSheet, k as default };
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
import { CopyX as o } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js
|
|
6
|
-
function s({ onNotADuplicate: s, onRemoveBill: c, isActionDisabled: l, testId: u, labels: d }) {
|
|
7
|
-
let f = {
|
|
8
|
-
...r,
|
|
9
|
-
...d
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ a(e, {
|
|
12
|
-
className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
|
|
13
|
-
"data-testid": u,
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ i(o, {}),
|
|
16
|
-
/* @__PURE__ */ i(t, {
|
|
17
|
-
className: "ttw:flex-1",
|
|
18
|
-
children: f.message
|
|
19
|
-
}),
|
|
20
|
-
s ? /* @__PURE__ */ i(n, {
|
|
21
|
-
type: "button",
|
|
22
|
-
variant: "outline",
|
|
23
|
-
className: "ttw:text-foreground",
|
|
24
|
-
disabled: l,
|
|
25
|
-
onClick: s,
|
|
26
|
-
children: f.notADuplicateButton
|
|
27
|
-
}) : null,
|
|
28
|
-
c ? /* @__PURE__ */ i(n, {
|
|
29
|
-
type: "button",
|
|
30
|
-
variant: "destructive",
|
|
31
|
-
disabled: l,
|
|
32
|
-
onClick: c,
|
|
33
|
-
children: f.removeBillButton
|
|
34
|
-
}) : null
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
export { s as BillDuplicateNotice, s as default };
|
|
1
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js
|
|
2
|
-
var e = {
|
|
2
|
+
var e = {
|
|
3
|
+
message: "This bill is a possible duplicate of another bill.",
|
|
4
|
+
notADuplicateButton: "Not a duplicate",
|
|
5
|
+
removeBillButton: "Remove this bill"
|
|
6
|
+
};
|
|
3
7
|
//#endregion
|
|
4
|
-
export { e as
|
|
8
|
+
export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
|
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Alert as e, AlertTitle as t, Button as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_DUPLICATE_NOTICE_LABELS_EN as r } from "./index68.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { CopyX as o } from "lucide-react";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
...
|
|
8
|
-
...
|
|
6
|
+
function s({ onNotADuplicate: s, onRemoveBill: c, isActionDisabled: l, testId: u, labels: d }) {
|
|
7
|
+
let f = {
|
|
8
|
+
...r,
|
|
9
|
+
...d
|
|
9
10
|
};
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
return /* @__PURE__ */ a(e, {
|
|
12
|
+
className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
|
|
13
|
+
"data-testid": u,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ i(o, {}),
|
|
16
|
+
/* @__PURE__ */ i(t, {
|
|
17
|
+
className: "ttw:flex-1",
|
|
18
|
+
children: f.message
|
|
19
|
+
}),
|
|
20
|
+
s ? /* @__PURE__ */ i(n, {
|
|
21
|
+
type: "button",
|
|
22
|
+
variant: "outline",
|
|
23
|
+
className: "ttw:text-foreground",
|
|
24
|
+
disabled: l,
|
|
25
|
+
onClick: s,
|
|
26
|
+
children: f.notADuplicateButton
|
|
27
|
+
}) : null,
|
|
28
|
+
c ? /* @__PURE__ */ i(n, {
|
|
29
|
+
type: "button",
|
|
30
|
+
variant: "destructive",
|
|
31
|
+
disabled: l,
|
|
32
|
+
onClick: c,
|
|
33
|
+
children: f.removeBillButton
|
|
34
|
+
}) : null
|
|
35
|
+
]
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
38
|
//#endregion
|
|
36
|
-
export {
|
|
39
|
+
export { s as BillDuplicateNotice, s as default };
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js
|
|
3
|
-
var
|
|
4
|
-
fields: {
|
|
5
|
-
vendor: "Vendor",
|
|
6
|
-
issueDate: "Issue date",
|
|
7
|
-
dueDate: "Due date",
|
|
8
|
-
status: "Status",
|
|
9
|
-
totalAmount: "Total amount",
|
|
10
|
-
addedOn: "Added on",
|
|
11
|
-
attachment: "Attachment"
|
|
12
|
-
},
|
|
13
|
-
fieldMenuLabel: "Filter bills by",
|
|
14
|
-
amountMin: "No less than",
|
|
15
|
-
amountMax: "No more than",
|
|
16
|
-
vendorSearchPlaceholder: "Search vendors",
|
|
17
|
-
vendorSearchLabel: "Search vendors",
|
|
18
|
-
vendorEmpty: "No vendors match",
|
|
19
|
-
vendorLoading: "Loading vendors",
|
|
20
|
-
vendorError: "Couldn't load vendors",
|
|
21
|
-
attachmentAny: "Any",
|
|
22
|
-
attachmentHas: "Has attachment",
|
|
23
|
-
attachmentNone: "No attachment",
|
|
24
|
-
attachmentLabel: "Filter by attachment",
|
|
25
|
-
clearAll: "Clear all",
|
|
26
|
-
filterMenuButton: n,
|
|
27
|
-
filterTag: r,
|
|
28
|
-
amountFilter: {
|
|
29
|
-
modeAny: e.modeAny,
|
|
30
|
-
modeExact: e.modeExact,
|
|
31
|
-
modeRange: e.modeRange,
|
|
32
|
-
flowAny: e.flowAny,
|
|
33
|
-
flowIn: e.flowIn,
|
|
34
|
-
flowOut: e.flowOut
|
|
35
|
-
},
|
|
36
|
-
dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
|
|
37
|
-
};
|
|
2
|
+
var e = { title: "Bill rejected and returned to you for rework." };
|
|
38
3
|
//#endregion
|
|
39
|
-
export {
|
|
4
|
+
export { e as BILL_REJECTED_BANNER_LABELS_EN };
|
|
@@ -1,12 +1,36 @@
|
|
|
1
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as e } from "./index71.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { AlertTriangleIcon as r } from "lucide-react";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
function i({ actorLabel: i, message: a, labels: o }) {
|
|
6
|
+
let s = {
|
|
7
|
+
...e,
|
|
8
|
+
...o
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("div", {
|
|
11
|
+
role: "alert",
|
|
12
|
+
className: "ttw:flex ttw:gap-2 ttw:rounded-md ttw:border ttw:border-destructive/20 ttw:bg-destructive/5 ttw:p-3",
|
|
13
|
+
children: [/* @__PURE__ */ t(r, {
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
|
|
16
|
+
}), /* @__PURE__ */ n("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ t("p", {
|
|
20
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
21
|
+
children: s.title
|
|
22
|
+
}),
|
|
23
|
+
a ? /* @__PURE__ */ t("p", {
|
|
24
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
25
|
+
children: a
|
|
26
|
+
}) : null,
|
|
27
|
+
/* @__PURE__ */ t("p", {
|
|
28
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
29
|
+
children: i
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
11
35
|
//#endregion
|
|
12
|
-
export {
|
|
36
|
+
export { i as BillRejectedBanner, i as default };
|