@tesouro/embedded-components-react 0.11.250 → 0.11.254
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/index.css +9 -344
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AchFieldGroup as t } from "../../../../shared/counterpart-management/ui/dist/index5.js";
|
|
1
|
+
import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../../shared/counterpart-management/ui/dist/index2.js";
|
|
3
2
|
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
4
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}), i.onSave ? /* @__PURE__ */ n(e, {
|
|
24
|
-
type: "button",
|
|
25
|
-
onClick: i.onSave,
|
|
26
|
-
"aria-label": a.saveAriaLabel,
|
|
27
|
-
loading: i.isSaving,
|
|
28
|
-
disabled: i.isSaving,
|
|
29
|
-
children: a.saveAction
|
|
30
|
-
}) : null]
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
export { i as AchEditGroup };
|
|
4
|
+
var t = {
|
|
5
|
+
payToHeading: "Pay to",
|
|
6
|
+
vendorLabel: "Vendor",
|
|
7
|
+
achBankAccountLabel: "ACH bank account",
|
|
8
|
+
editAction: "Edit",
|
|
9
|
+
editPaymentInstructionsAction: "Edit payment instructions",
|
|
10
|
+
paymentInstructionsHeading: "Payment instructions",
|
|
11
|
+
paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
|
|
12
|
+
addPaymentInstructions: "Add payment instructions",
|
|
13
|
+
cancelAction: "Cancel",
|
|
14
|
+
saveAction: "Save",
|
|
15
|
+
saveAriaLabel: "Save payment instructions",
|
|
16
|
+
ach: e,
|
|
17
|
+
detailsWarning: "Some vendor details couldn't load, so editing the vendor profile is unavailable right now.",
|
|
18
|
+
retryAction: "Try again"
|
|
19
|
+
};
|
|
20
|
+
export { t as VENDOR_SUMMARY_CARD_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js
CHANGED
|
@@ -1,20 +1,151 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
1
|
+
import { Button as e, Heading as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as n } from "./index10.js";
|
|
3
|
+
import { AchEditGroup as r } from "./index9.js";
|
|
4
|
+
import { useMemo as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronRightIcon as s, Plus as c } from "lucide-react";
|
|
3
7
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
var l = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", u = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground", d = "ttw:-mx-2 ttw:-my-1 ttw:flex ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-3 ttw:rounded-md ttw:px-2 ttw:py-1 ttw:text-left ttw:hover:bg-muted";
|
|
9
|
+
function f({ summary: f, onEdit: p, paymentInstructions: m, showPaymentInstructions: h = !0, detailsWarning: g, testId: _, hideHeading: v = !1, labels: y }) {
|
|
10
|
+
let b = i(() => ({
|
|
11
|
+
...n,
|
|
12
|
+
...y,
|
|
13
|
+
ach: {
|
|
14
|
+
...n.ach,
|
|
15
|
+
...y?.ach,
|
|
16
|
+
fieldMarkers: {
|
|
17
|
+
...n.ach.fieldMarkers,
|
|
18
|
+
...y?.ach?.fieldMarkers
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}), [y]), x = !!m?.isOpen, S = /* @__PURE__ */ o("div", {
|
|
22
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ a("span", {
|
|
25
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
26
|
+
children: f.name
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ a("span", {
|
|
29
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
30
|
+
children: f.email
|
|
31
|
+
}),
|
|
32
|
+
f.description ? /* @__PURE__ */ a("span", {
|
|
33
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
34
|
+
children: f.description
|
|
35
|
+
}) : null
|
|
36
|
+
]
|
|
37
|
+
}), C;
|
|
38
|
+
return C = m && x ? /* @__PURE__ */ a(r, {
|
|
39
|
+
paymentInstructions: m,
|
|
40
|
+
labels: b
|
|
41
|
+
}) : f.hasPaymentInstructions ? m?.onEditExisting ? /* @__PURE__ */ o("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: m.onEditExisting,
|
|
44
|
+
className: d,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ a("span", {
|
|
47
|
+
className: "ttw:sr-only",
|
|
48
|
+
children: b.editPaymentInstructionsAction
|
|
49
|
+
}),
|
|
50
|
+
" ",
|
|
51
|
+
/* @__PURE__ */ a("span", {
|
|
52
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
53
|
+
children: f.methodLabel
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ a(s, {
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
}) : /* @__PURE__ */ a("p", {
|
|
61
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
62
|
+
children: f.methodLabel
|
|
63
|
+
}) : /* @__PURE__ */ o("div", {
|
|
64
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
65
|
+
children: [/* @__PURE__ */ o("div", {
|
|
66
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
67
|
+
children: [/* @__PURE__ */ a("p", {
|
|
68
|
+
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
69
|
+
children: b.paymentInstructionsHeading
|
|
70
|
+
}), /* @__PURE__ */ a("p", {
|
|
71
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
72
|
+
children: b.paymentInstructionsDescription
|
|
73
|
+
})]
|
|
74
|
+
}), m?.onAdd ? /* @__PURE__ */ o(e, {
|
|
75
|
+
type: "button",
|
|
76
|
+
variant: "link",
|
|
77
|
+
className: "ttw:w-fit ttw:px-0",
|
|
78
|
+
onClick: m.onAdd,
|
|
79
|
+
children: [/* @__PURE__ */ a(c, { className: "ttw:size-4" }), b.addPaymentInstructions]
|
|
80
|
+
}) : /* @__PURE__ */ a("p", {
|
|
81
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
82
|
+
children: f.methodLabel
|
|
83
|
+
})]
|
|
84
|
+
}), /* @__PURE__ */ o("div", {
|
|
85
|
+
"data-testid": _,
|
|
86
|
+
children: [
|
|
87
|
+
v ? null : /* @__PURE__ */ a(t, {
|
|
88
|
+
variant: "section",
|
|
89
|
+
level: 3,
|
|
90
|
+
children: b.payToHeading
|
|
91
|
+
}),
|
|
92
|
+
g ? /* @__PURE__ */ o("p", {
|
|
93
|
+
className: "ttw:mt-1 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-1.5 ttw:text-sm ttw:text-muted-foreground",
|
|
94
|
+
children: [b.detailsWarning, g.onRetry ? /* @__PURE__ */ a("button", {
|
|
95
|
+
type: "button",
|
|
96
|
+
onClick: g.onRetry,
|
|
97
|
+
className: "ttw:font-medium ttw:text-foreground ttw:underline ttw:underline-offset-2 ttw:hover:no-underline",
|
|
98
|
+
children: b.retryAction
|
|
99
|
+
}) : null]
|
|
100
|
+
}) : null,
|
|
101
|
+
/* @__PURE__ */ o("div", {
|
|
102
|
+
className: "ttw:mt-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
103
|
+
children: [/* @__PURE__ */ o("div", {
|
|
104
|
+
className: l,
|
|
105
|
+
children: [/* @__PURE__ */ a("span", {
|
|
106
|
+
className: u,
|
|
107
|
+
children: b.vendorLabel
|
|
108
|
+
}), p && !x ? /* @__PURE__ */ o("button", {
|
|
109
|
+
type: "button",
|
|
110
|
+
onClick: p,
|
|
111
|
+
className: d,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ a("span", {
|
|
114
|
+
className: "ttw:sr-only",
|
|
115
|
+
children: b.editAction
|
|
116
|
+
}),
|
|
117
|
+
" ",
|
|
118
|
+
S,
|
|
119
|
+
/* @__PURE__ */ a(s, {
|
|
120
|
+
"aria-hidden": "true",
|
|
121
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
}) : /* @__PURE__ */ a("div", {
|
|
125
|
+
className: "ttw:flex ttw:flex-1",
|
|
126
|
+
children: S
|
|
127
|
+
})]
|
|
128
|
+
}), h && x ? /* @__PURE__ */ o("div", {
|
|
129
|
+
className: l,
|
|
130
|
+
children: [/* @__PURE__ */ a("span", {
|
|
131
|
+
className: u,
|
|
132
|
+
children: b.achBankAccountLabel
|
|
133
|
+
}), /* @__PURE__ */ a("div", {
|
|
134
|
+
className: "ttw:flex-1",
|
|
135
|
+
children: C
|
|
136
|
+
})]
|
|
137
|
+
}) : h ? /* @__PURE__ */ o("div", {
|
|
138
|
+
className: l,
|
|
139
|
+
children: [/* @__PURE__ */ a("span", {
|
|
140
|
+
className: u,
|
|
141
|
+
children: b.achBankAccountLabel
|
|
142
|
+
}), /* @__PURE__ */ a("div", {
|
|
143
|
+
className: "ttw:flex ttw:flex-1",
|
|
144
|
+
children: C
|
|
145
|
+
})]
|
|
146
|
+
}) : null]
|
|
147
|
+
})
|
|
148
|
+
]
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export { f as VendorSummaryCard, f as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
CHANGED
|
@@ -1,150 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { AchEditGroup as n } from "./index10.js";
|
|
4
|
-
import { useMemo as r } from "react";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
import { ChevronRightIcon as o, Plus as s } from "lucide-react";
|
|
7
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
|
|
8
|
-
var c = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", l = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground", u = "ttw:-mx-2 ttw:-my-1 ttw:flex ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-3 ttw:rounded-md ttw:px-2 ttw:py-1 ttw:text-left ttw:hover:bg-muted";
|
|
9
|
-
function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructions: m = !0, detailsWarning: h, testId: g, labels: _ }) {
|
|
10
|
-
let v = r(() => ({
|
|
11
|
-
...t,
|
|
12
|
-
..._,
|
|
13
|
-
ach: {
|
|
14
|
-
...t.ach,
|
|
15
|
-
..._?.ach,
|
|
16
|
-
fieldMarkers: {
|
|
17
|
-
...t.ach.fieldMarkers,
|
|
18
|
-
..._?.ach?.fieldMarkers
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}), [_]), y = !!p?.isOpen, b = /* @__PURE__ */ a("div", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ i("span", {
|
|
25
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
26
|
-
children: d.name
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ i("span", {
|
|
29
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
30
|
-
children: d.email
|
|
31
|
-
}),
|
|
32
|
-
d.description ? /* @__PURE__ */ i("span", {
|
|
33
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
34
|
-
children: d.description
|
|
35
|
-
}) : null
|
|
36
|
-
]
|
|
37
|
-
}), x;
|
|
38
|
-
return x = p && y ? /* @__PURE__ */ i(n, {
|
|
39
|
-
paymentInstructions: p,
|
|
40
|
-
labels: v
|
|
41
|
-
}) : d.hasPaymentInstructions ? p?.onEditExisting ? /* @__PURE__ */ a("button", {
|
|
42
|
-
type: "button",
|
|
43
|
-
onClick: p.onEditExisting,
|
|
44
|
-
className: u,
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ i("span", {
|
|
47
|
-
className: "ttw:sr-only",
|
|
48
|
-
children: v.editPaymentInstructionsAction
|
|
49
|
-
}),
|
|
50
|
-
" ",
|
|
51
|
-
/* @__PURE__ */ i("span", {
|
|
52
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
53
|
-
children: d.methodLabel
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ i(o, {
|
|
56
|
-
"aria-hidden": "true",
|
|
57
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
58
|
-
})
|
|
59
|
-
]
|
|
60
|
-
}) : /* @__PURE__ */ i("p", {
|
|
61
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
62
|
-
children: d.methodLabel
|
|
63
|
-
}) : /* @__PURE__ */ a("div", {
|
|
64
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
65
|
-
children: [/* @__PURE__ */ a("div", {
|
|
66
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
67
|
-
children: [/* @__PURE__ */ i("p", {
|
|
68
|
-
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
69
|
-
children: v.paymentInstructionsHeading
|
|
70
|
-
}), /* @__PURE__ */ i("p", {
|
|
71
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
72
|
-
children: v.paymentInstructionsDescription
|
|
73
|
-
})]
|
|
74
|
-
}), p?.onAdd ? /* @__PURE__ */ a(e, {
|
|
75
|
-
type: "button",
|
|
76
|
-
variant: "link",
|
|
77
|
-
className: "ttw:w-fit ttw:px-0",
|
|
78
|
-
onClick: p.onAdd,
|
|
79
|
-
children: [/* @__PURE__ */ i(s, { className: "ttw:size-4" }), v.addPaymentInstructions]
|
|
80
|
-
}) : /* @__PURE__ */ i("p", {
|
|
81
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
82
|
-
children: d.methodLabel
|
|
83
|
-
})]
|
|
84
|
-
}), /* @__PURE__ */ a("div", {
|
|
85
|
-
"data-testid": g,
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ i("h3", {
|
|
88
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
89
|
-
children: v.payToHeading
|
|
90
|
-
}),
|
|
91
|
-
h ? /* @__PURE__ */ a("p", {
|
|
92
|
-
className: "ttw:mt-1 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-1.5 ttw:text-sm ttw:text-muted-foreground",
|
|
93
|
-
children: [v.detailsWarning, h.onRetry ? /* @__PURE__ */ i("button", {
|
|
94
|
-
type: "button",
|
|
95
|
-
onClick: h.onRetry,
|
|
96
|
-
className: "ttw:font-medium ttw:text-foreground ttw:underline ttw:underline-offset-2 ttw:hover:no-underline",
|
|
97
|
-
children: v.retryAction
|
|
98
|
-
}) : null]
|
|
99
|
-
}) : null,
|
|
100
|
-
/* @__PURE__ */ a("div", {
|
|
101
|
-
className: "ttw:mt-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
102
|
-
children: [/* @__PURE__ */ a("div", {
|
|
103
|
-
className: c,
|
|
104
|
-
children: [/* @__PURE__ */ i("span", {
|
|
105
|
-
className: l,
|
|
106
|
-
children: v.vendorLabel
|
|
107
|
-
}), f && !y ? /* @__PURE__ */ a("button", {
|
|
108
|
-
type: "button",
|
|
109
|
-
onClick: f,
|
|
110
|
-
className: u,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ i("span", {
|
|
113
|
-
className: "ttw:sr-only",
|
|
114
|
-
children: v.editAction
|
|
115
|
-
}),
|
|
116
|
-
" ",
|
|
117
|
-
b,
|
|
118
|
-
/* @__PURE__ */ i(o, {
|
|
119
|
-
"aria-hidden": "true",
|
|
120
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
121
|
-
})
|
|
122
|
-
]
|
|
123
|
-
}) : /* @__PURE__ */ i("div", {
|
|
124
|
-
className: "ttw:flex ttw:flex-1",
|
|
125
|
-
children: b
|
|
126
|
-
})]
|
|
127
|
-
}), m && y ? /* @__PURE__ */ a("div", {
|
|
128
|
-
className: c,
|
|
129
|
-
children: [/* @__PURE__ */ i("span", {
|
|
130
|
-
className: l,
|
|
131
|
-
children: v.achBankAccountLabel
|
|
132
|
-
}), /* @__PURE__ */ i("div", {
|
|
133
|
-
className: "ttw:flex-1",
|
|
134
|
-
children: x
|
|
135
|
-
})]
|
|
136
|
-
}) : m ? /* @__PURE__ */ a("div", {
|
|
137
|
-
className: c,
|
|
138
|
-
children: [/* @__PURE__ */ i("span", {
|
|
139
|
-
className: l,
|
|
140
|
-
children: v.achBankAccountLabel
|
|
141
|
-
}), /* @__PURE__ */ i("div", {
|
|
142
|
-
className: "ttw:flex ttw:flex-1",
|
|
143
|
-
children: x
|
|
144
|
-
})]
|
|
145
|
-
}) : null]
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
export { d as VendorSummaryCard, d as default };
|
|
1
|
+
import "./index10.js";
|
|
2
|
+
import "./index11.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js
CHANGED
|
@@ -1,2 +1,76 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { AUDIT_HISTORY_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_STATUS_BADGE_LABELS_EN as r } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
3
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as i } from "./index2.js";
|
|
5
|
+
import "./index4.js";
|
|
6
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as a } from "./index10.js";
|
|
2
7
|
import "./index12.js";
|
|
8
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js
|
|
9
|
+
var o = {
|
|
10
|
+
...e,
|
|
11
|
+
error: "Couldn't load audit history.",
|
|
12
|
+
namesError: "Some names could not be loaded."
|
|
13
|
+
}, s = {
|
|
14
|
+
loadingLabel: "Loading bill",
|
|
15
|
+
errorTitle: "Couldn't load this bill",
|
|
16
|
+
errorDescription: "Something went wrong. Try again.",
|
|
17
|
+
amountDueHeading: "Amount due",
|
|
18
|
+
amountPaidHeading: "Amount paid",
|
|
19
|
+
invoiceDateLabel: "Invoice date",
|
|
20
|
+
dueDateLabel: "Due date",
|
|
21
|
+
approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
|
|
22
|
+
payToHeading: "Pay to",
|
|
23
|
+
payToHeadingPaid: "Paid to",
|
|
24
|
+
vendorRow: "Vendor",
|
|
25
|
+
paymentInstructionsRow: "ACH bank account",
|
|
26
|
+
invoiceDetailsHeading: "Invoice details",
|
|
27
|
+
addPaymentInstructions: "Add payment instructions",
|
|
28
|
+
missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
|
|
29
|
+
descriptionAndGlCodeColumn: "Description and GL code",
|
|
30
|
+
qtyPriceColumn: "Qty/Price",
|
|
31
|
+
amountColumn: "Amount",
|
|
32
|
+
paymentHistoryHeading: "Payment history",
|
|
33
|
+
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
34
|
+
paymentHistoryLoadingLabel: "Loading payment history",
|
|
35
|
+
history: o,
|
|
36
|
+
statusBadge: r,
|
|
37
|
+
approvalPolicy: i,
|
|
38
|
+
payToCard: {
|
|
39
|
+
...a,
|
|
40
|
+
editAction: "Edit vendor"
|
|
41
|
+
},
|
|
42
|
+
requiredFieldsLegend: t
|
|
43
|
+
};
|
|
44
|
+
function c(e) {
|
|
45
|
+
let t = {
|
|
46
|
+
...s.payToCard.ach.fieldMarkers,
|
|
47
|
+
...e?.payToCard?.ach?.fieldMarkers
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
...s,
|
|
51
|
+
...e,
|
|
52
|
+
statusBadge: {
|
|
53
|
+
...s.statusBadge,
|
|
54
|
+
...e?.statusBadge
|
|
55
|
+
},
|
|
56
|
+
approvalPolicy: {
|
|
57
|
+
...s.approvalPolicy,
|
|
58
|
+
...e?.approvalPolicy
|
|
59
|
+
},
|
|
60
|
+
payToCard: {
|
|
61
|
+
...s.payToCard,
|
|
62
|
+
...e?.payToCard,
|
|
63
|
+
ach: {
|
|
64
|
+
...s.payToCard.ach,
|
|
65
|
+
...e?.payToCard?.ach,
|
|
66
|
+
fieldMarkers: t
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
history: {
|
|
70
|
+
...s.history,
|
|
71
|
+
...e?.history
|
|
72
|
+
},
|
|
73
|
+
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export { o as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };
|