@tesouro/embedded-components-react 0.2.333 → 0.2.337
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 +22 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -6
- 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/index26.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +11 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +226 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +133 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +20 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +57 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +105 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +100 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +171 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +25 -0
- 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 +34 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +38 -269
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +272 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +20 -284
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +286 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +13 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +120 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +8 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +141 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +5 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -61
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +72 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +251 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +9 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +43 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +278 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +101 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +28 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1378 -1371
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +0 -34
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index23.js";
|
|
3
|
-
import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index24.js";
|
|
4
|
-
import "./index26.js";
|
|
5
|
-
import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index27.js";
|
|
6
|
-
import "./index29.js";
|
|
7
|
-
import { VENDOR_SECTION_LABELS_EN as i } from "./index36.js";
|
|
1
|
+
import "./index37.js";
|
|
8
2
|
import "./index38.js";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
|
|
10
|
-
var a = {
|
|
11
|
-
closeButton: "Close",
|
|
12
|
-
menuTrigger: "More actions",
|
|
13
|
-
cancelButton: "Cancel",
|
|
14
|
-
saveDraftButton: "Save and close",
|
|
15
|
-
finalizeButton: "Finalize",
|
|
16
|
-
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
17
|
-
vendorSection: i,
|
|
18
|
-
detailsFields: n,
|
|
19
|
-
lineItems: r,
|
|
20
|
-
detailBody: e
|
|
21
|
-
};
|
|
22
|
-
function o(e) {
|
|
23
|
-
return {
|
|
24
|
-
...a,
|
|
25
|
-
...e,
|
|
26
|
-
vendorSection: {
|
|
27
|
-
...a.vendorSection,
|
|
28
|
-
...e?.vendorSection,
|
|
29
|
-
summaryCard: {
|
|
30
|
-
...a.vendorSection.summaryCard,
|
|
31
|
-
...e?.vendorSection?.summaryCard,
|
|
32
|
-
ach: {
|
|
33
|
-
...a.vendorSection.summaryCard.ach,
|
|
34
|
-
...e?.vendorSection?.summaryCard?.ach
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
search: {
|
|
38
|
-
...a.vendorSection.search,
|
|
39
|
-
...e?.vendorSection?.search
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
detailsFields: {
|
|
43
|
-
...a.detailsFields,
|
|
44
|
-
...e?.detailsFields
|
|
45
|
-
},
|
|
46
|
-
lineItems: {
|
|
47
|
-
...a.lineItems,
|
|
48
|
-
...e?.lineItems
|
|
49
|
-
},
|
|
50
|
-
detailBody: t(e?.detailBody)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
//#endregion
|
|
54
|
-
export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
|
|
@@ -1,139 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import "./index29.js";
|
|
10
|
-
import { VendorSection as m } from "./index37.js";
|
|
11
|
-
import "./index38.js";
|
|
12
|
-
import { mergeBillCreateScreenLabels as h } from "./index39.js";
|
|
13
|
-
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
|
-
import { MoreVertical as y, X as b } from "lucide-react";
|
|
1
|
+
import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index22.js";
|
|
2
|
+
import "./index24.js";
|
|
3
|
+
import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index25.js";
|
|
4
|
+
import "./index27.js";
|
|
5
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index28.js";
|
|
6
|
+
import "./index30.js";
|
|
7
|
+
import { VENDOR_SECTION_LABELS_EN as i } from "./index37.js";
|
|
8
|
+
import "./index39.js";
|
|
15
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
children: M.map((e) => /* @__PURE__ */ _(c, {
|
|
59
|
-
variant: e.destructive ? "destructive" : void 0,
|
|
60
|
-
onSelect: e.onSelect,
|
|
61
|
-
children: e.label
|
|
62
|
-
}, e.id))
|
|
63
|
-
})] }) : null, /* @__PURE__ */ _(e, {
|
|
64
|
-
type: "button",
|
|
65
|
-
variant: "ghost",
|
|
66
|
-
size: "icon",
|
|
67
|
-
"aria-label": W.closeButton,
|
|
68
|
-
disabled: I,
|
|
69
|
-
onClick: z,
|
|
70
|
-
children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
|
|
71
|
-
})]
|
|
72
|
-
})]
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ v("div", {
|
|
75
|
-
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
|
|
76
|
-
children: [/* @__PURE__ */ v("div", {
|
|
77
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
78
|
-
children: [
|
|
79
|
-
O?.form ? /* @__PURE__ */ _(u, { children: O.form }) : null,
|
|
80
|
-
T,
|
|
81
|
-
G ? /* @__PURE__ */ _(d, {
|
|
82
|
-
...P,
|
|
83
|
-
labels: W.detailBody
|
|
84
|
-
}) : /* @__PURE__ */ v(g, { children: [
|
|
85
|
-
/* @__PURE__ */ _(m, {
|
|
86
|
-
...E,
|
|
87
|
-
onEdit: N ? void 0 : E.onEdit,
|
|
88
|
-
onClear: N ? void 0 : E.onClear,
|
|
89
|
-
disabled: N,
|
|
90
|
-
labels: W.vendorSection
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ _(f, {
|
|
93
|
-
values: D,
|
|
94
|
-
errors: O,
|
|
95
|
-
onChange: k,
|
|
96
|
-
disabled: N,
|
|
97
|
-
labels: W.detailsFields
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ _(p, {
|
|
100
|
-
...A,
|
|
101
|
-
disabled: A.disabled || F || N,
|
|
102
|
-
labels: W.lineItems
|
|
103
|
-
})
|
|
104
|
-
] })
|
|
105
|
-
]
|
|
106
|
-
}), /* @__PURE__ */ _("div", {
|
|
107
|
-
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
108
|
-
children: j
|
|
109
|
-
})]
|
|
110
|
-
}),
|
|
111
|
-
G ? null : /* @__PURE__ */ v("div", {
|
|
112
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
113
|
-
children: [/* @__PURE__ */ _(e, {
|
|
114
|
-
type: "button",
|
|
115
|
-
variant: "ghost",
|
|
116
|
-
disabled: I,
|
|
117
|
-
onClick: z,
|
|
118
|
-
children: N ? W.closeButton : W.cancelButton
|
|
119
|
-
}), N ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
|
|
120
|
-
type: "button",
|
|
121
|
-
variant: "secondary",
|
|
122
|
-
onClick: B,
|
|
123
|
-
loading: L,
|
|
124
|
-
disabled: R || F || E.mode === "creating",
|
|
125
|
-
children: W.saveDraftButton
|
|
126
|
-
}), /* @__PURE__ */ _(e, {
|
|
127
|
-
type: "button",
|
|
128
|
-
onClick: V,
|
|
129
|
-
loading: R,
|
|
130
|
-
disabled: L || F || E.mode === "creating",
|
|
131
|
-
children: W.finalizeButton
|
|
132
|
-
})] })]
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})
|
|
136
|
-
});
|
|
10
|
+
var a = {
|
|
11
|
+
closeButton: "Close",
|
|
12
|
+
menuTrigger: "More actions",
|
|
13
|
+
cancelButton: "Cancel",
|
|
14
|
+
saveDraftButton: "Save and close",
|
|
15
|
+
finalizeButton: "Finalize",
|
|
16
|
+
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
17
|
+
vendorSection: i,
|
|
18
|
+
detailsFields: n,
|
|
19
|
+
lineItems: r,
|
|
20
|
+
detailBody: e
|
|
21
|
+
};
|
|
22
|
+
function o(e) {
|
|
23
|
+
return {
|
|
24
|
+
...a,
|
|
25
|
+
...e,
|
|
26
|
+
vendorSection: {
|
|
27
|
+
...a.vendorSection,
|
|
28
|
+
...e?.vendorSection,
|
|
29
|
+
summaryCard: {
|
|
30
|
+
...a.vendorSection.summaryCard,
|
|
31
|
+
...e?.vendorSection?.summaryCard,
|
|
32
|
+
ach: {
|
|
33
|
+
...a.vendorSection.summaryCard.ach,
|
|
34
|
+
...e?.vendorSection?.summaryCard?.ach
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
search: {
|
|
38
|
+
...a.vendorSection.search,
|
|
39
|
+
...e?.vendorSection?.search
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
detailsFields: {
|
|
43
|
+
...a.detailsFields,
|
|
44
|
+
...e?.detailsFields
|
|
45
|
+
},
|
|
46
|
+
lineItems: {
|
|
47
|
+
...a.lineItems,
|
|
48
|
+
...e?.lineItems
|
|
49
|
+
},
|
|
50
|
+
detailBody: t(e?.detailBody)
|
|
51
|
+
};
|
|
137
52
|
}
|
|
138
53
|
//#endregion
|
|
139
|
-
export {
|
|
54
|
+
export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
|
|
@@ -1,2 +1,142 @@
|
|
|
1
|
+
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuItem as c, DropdownMenuTrigger as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as u } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { BillDetailBody as d } from "./index23.js";
|
|
5
|
+
import "./index24.js";
|
|
6
|
+
import { BillFormFields as f } from "./index26.js";
|
|
7
|
+
import "./index27.js";
|
|
8
|
+
import { LineItemsSection as p } from "./index29.js";
|
|
9
|
+
import "./index30.js";
|
|
10
|
+
import { VendorSection as m } from "./index38.js";
|
|
1
11
|
import "./index39.js";
|
|
2
|
-
import "./index40.js";
|
|
12
|
+
import { mergeBillCreateScreenLabels as h } from "./index40.js";
|
|
13
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
|
+
import { MoreVertical as y, X as b } from "lucide-react";
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js
|
|
16
|
+
function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor: E, values: D, errors: O, onChange: k, lineItems: A, documentPanel: j, menuItems: M, readOnly: N, detail: P, isLineItemsLoading: F, isSaving: I, isSavingDraft: L, isFinalizing: R, onCancel: z, onSaveDraft: B, onFinalize: V, testId: H, labels: U }) {
|
|
17
|
+
let W = h(U), G = !!(N && P);
|
|
18
|
+
return /* @__PURE__ */ _(t, {
|
|
19
|
+
open: x,
|
|
20
|
+
onOpenChange: S,
|
|
21
|
+
children: /* @__PURE__ */ v(n, {
|
|
22
|
+
showCloseButton: !1,
|
|
23
|
+
className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
|
|
24
|
+
"data-testid": H,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ v(i, {
|
|
27
|
+
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
|
|
28
|
+
children: [/* @__PURE__ */ v("div", {
|
|
29
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ _(a, {
|
|
32
|
+
className: "ttw:text-xl ttw:font-semibold",
|
|
33
|
+
children: C
|
|
34
|
+
}),
|
|
35
|
+
w ? /* @__PURE__ */ _("p", {
|
|
36
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
37
|
+
children: w
|
|
38
|
+
}) : null,
|
|
39
|
+
/* @__PURE__ */ _(r, {
|
|
40
|
+
className: "ttw:sr-only",
|
|
41
|
+
children: W.hiddenDescription
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
}), /* @__PURE__ */ v("div", {
|
|
45
|
+
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
46
|
+
children: [M && M.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
|
|
47
|
+
asChild: !0,
|
|
48
|
+
children: /* @__PURE__ */ _(e, {
|
|
49
|
+
type: "button",
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
size: "icon",
|
|
52
|
+
"aria-label": W.menuTrigger,
|
|
53
|
+
disabled: I,
|
|
54
|
+
children: /* @__PURE__ */ _(y, { className: "ttw:size-4" })
|
|
55
|
+
})
|
|
56
|
+
}), /* @__PURE__ */ _(s, {
|
|
57
|
+
align: "end",
|
|
58
|
+
children: M.map((e) => /* @__PURE__ */ _(c, {
|
|
59
|
+
variant: e.destructive ? "destructive" : void 0,
|
|
60
|
+
onSelect: e.onSelect,
|
|
61
|
+
children: e.label
|
|
62
|
+
}, e.id))
|
|
63
|
+
})] }) : null, /* @__PURE__ */ _(e, {
|
|
64
|
+
type: "button",
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
size: "icon",
|
|
67
|
+
"aria-label": W.closeButton,
|
|
68
|
+
disabled: I,
|
|
69
|
+
onClick: z,
|
|
70
|
+
children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ v("div", {
|
|
75
|
+
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
|
|
76
|
+
children: [/* @__PURE__ */ v("div", {
|
|
77
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
78
|
+
children: [
|
|
79
|
+
O?.form ? /* @__PURE__ */ _(u, { children: O.form }) : null,
|
|
80
|
+
T ? /* @__PURE__ */ _("div", {
|
|
81
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
82
|
+
children: T
|
|
83
|
+
}) : null,
|
|
84
|
+
G ? /* @__PURE__ */ _(d, {
|
|
85
|
+
...P,
|
|
86
|
+
labels: W.detailBody
|
|
87
|
+
}) : /* @__PURE__ */ v(g, { children: [
|
|
88
|
+
/* @__PURE__ */ _(m, {
|
|
89
|
+
...E,
|
|
90
|
+
onEdit: N ? void 0 : E.onEdit,
|
|
91
|
+
onClear: N ? void 0 : E.onClear,
|
|
92
|
+
disabled: N,
|
|
93
|
+
labels: W.vendorSection
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ _(f, {
|
|
96
|
+
values: D,
|
|
97
|
+
errors: O,
|
|
98
|
+
onChange: k,
|
|
99
|
+
disabled: N,
|
|
100
|
+
labels: W.detailsFields
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ _(p, {
|
|
103
|
+
...A,
|
|
104
|
+
disabled: A.disabled || F || N,
|
|
105
|
+
labels: W.lineItems
|
|
106
|
+
})
|
|
107
|
+
] })
|
|
108
|
+
]
|
|
109
|
+
}), /* @__PURE__ */ _("div", {
|
|
110
|
+
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
111
|
+
children: j
|
|
112
|
+
})]
|
|
113
|
+
}),
|
|
114
|
+
G ? null : /* @__PURE__ */ v("div", {
|
|
115
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
116
|
+
children: [/* @__PURE__ */ _(e, {
|
|
117
|
+
type: "button",
|
|
118
|
+
variant: "ghost",
|
|
119
|
+
disabled: I,
|
|
120
|
+
onClick: z,
|
|
121
|
+
children: N ? W.closeButton : W.cancelButton
|
|
122
|
+
}), N ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
|
|
123
|
+
type: "button",
|
|
124
|
+
variant: "secondary",
|
|
125
|
+
onClick: B,
|
|
126
|
+
loading: L,
|
|
127
|
+
disabled: R || F || E.mode === "creating",
|
|
128
|
+
children: W.saveDraftButton
|
|
129
|
+
}), /* @__PURE__ */ _(e, {
|
|
130
|
+
type: "button",
|
|
131
|
+
onClick: V,
|
|
132
|
+
loading: R,
|
|
133
|
+
disabled: L || F || E.mode === "creating",
|
|
134
|
+
children: W.finalizeButton
|
|
135
|
+
})] })]
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
export { x as BillCreateScreen, x as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
title: "Bill pay",
|
|
4
|
-
description: "Review, approve, and pay your bills."
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as DEFAULT_LABELS };
|
|
1
|
+
import "./index40.js";
|
|
2
|
+
import "./index41.js";
|
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { DEFAULT_LABELS as i } from "./index42.js";
|
|
7
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ o("section", {
|
|
15
|
-
className: "ttw:w-full ttw:space-y-5",
|
|
16
|
-
children: [/* @__PURE__ */ o("div", {
|
|
17
|
-
className: "ttw:min-w-0",
|
|
18
|
-
children: [/* @__PURE__ */ a("h2", {
|
|
19
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
20
|
-
children: d.title
|
|
21
|
-
}), /* @__PURE__ */ a("p", {
|
|
22
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
-
children: d.description
|
|
24
|
-
})]
|
|
25
|
-
}), /* @__PURE__ */ o(e, {
|
|
26
|
-
value: l,
|
|
27
|
-
onValueChange: u,
|
|
28
|
-
className: "ttw:w-full",
|
|
29
|
-
children: [/* @__PURE__ */ a(n, {
|
|
30
|
-
variant: "line",
|
|
31
|
-
children: c.map((e) => /* @__PURE__ */ a(r, {
|
|
32
|
-
value: e.id,
|
|
33
|
-
children: e.label
|
|
34
|
-
}, e.id))
|
|
35
|
-
}), c.map((e) => /* @__PURE__ */ a(t, {
|
|
36
|
-
value: e.id,
|
|
37
|
-
className: "ttw:mt-6",
|
|
38
|
-
children: e.content
|
|
39
|
-
}, e.id))]
|
|
40
|
-
})]
|
|
41
|
-
});
|
|
42
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Bill pay",
|
|
4
|
+
description: "Review, approve, and pay your bills."
|
|
5
|
+
};
|
|
43
6
|
//#endregion
|
|
44
|
-
export {
|
|
7
|
+
export { e as DEFAULT_LABELS };
|
|
@@ -1,2 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { DEFAULT_LABELS as i } from "./index43.js";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
9
|
+
function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
|
|
10
|
+
let d = {
|
|
11
|
+
...i,
|
|
12
|
+
...s
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ o("section", {
|
|
15
|
+
className: "ttw:w-full ttw:space-y-5",
|
|
16
|
+
children: [/* @__PURE__ */ o("div", {
|
|
17
|
+
className: "ttw:min-w-0",
|
|
18
|
+
children: [/* @__PURE__ */ a("h2", {
|
|
19
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
20
|
+
children: d.title
|
|
21
|
+
}), /* @__PURE__ */ a("p", {
|
|
22
|
+
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
+
children: d.description
|
|
24
|
+
})]
|
|
25
|
+
}), /* @__PURE__ */ o(e, {
|
|
26
|
+
value: l,
|
|
27
|
+
onValueChange: u,
|
|
28
|
+
className: "ttw:w-full",
|
|
29
|
+
children: [/* @__PURE__ */ a(n, {
|
|
30
|
+
variant: "line",
|
|
31
|
+
children: c.map((e) => /* @__PURE__ */ a(r, {
|
|
32
|
+
value: e.id,
|
|
33
|
+
children: e.label
|
|
34
|
+
}, e.id))
|
|
35
|
+
}), c.map((e) => /* @__PURE__ */ a(t, {
|
|
36
|
+
value: e.id,
|
|
37
|
+
className: "ttw:mt-6",
|
|
38
|
+
children: e.content
|
|
39
|
+
}, e.id))]
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as BillPayWidgetUi };
|
|
@@ -1,63 +1,4 @@
|
|
|
1
|
-
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index45.js";
|
|
3
|
-
import { useEffect as u, useState as d } from "react";
|
|
4
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
|
|
6
|
-
|
|
7
|
-
let w = {
|
|
8
|
-
...l,
|
|
9
|
-
...y
|
|
10
|
-
}, [T, E] = d("");
|
|
11
|
-
return u(() => {
|
|
12
|
-
m || E("");
|
|
13
|
-
}, [m]), h ? /* @__PURE__ */ f(e, {
|
|
14
|
-
open: m,
|
|
15
|
-
onOpenChange: (e) => {
|
|
16
|
-
e || _();
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ p(t, {
|
|
19
|
-
"data-testid": b,
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, { children: h.title }), /* @__PURE__ */ f(n, { children: h.description })] }),
|
|
22
|
-
h.warning ? /* @__PURE__ */ f("p", {
|
|
23
|
-
className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:p-3 ttw:text-sm ttw:text-foreground",
|
|
24
|
-
children: h.warning
|
|
25
|
-
}) : null,
|
|
26
|
-
h.reason ? /* @__PURE__ */ p("div", {
|
|
27
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
28
|
-
children: [/* @__PURE__ */ p(s, {
|
|
29
|
-
htmlFor: C,
|
|
30
|
-
children: [h.reason.label, /* @__PURE__ */ f("span", {
|
|
31
|
-
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
32
|
-
children: h.reason.optionalHint
|
|
33
|
-
})]
|
|
34
|
-
}), /* @__PURE__ */ f(c, {
|
|
35
|
-
id: C,
|
|
36
|
-
value: T,
|
|
37
|
-
placeholder: h.reason.placeholder,
|
|
38
|
-
onChange: (e) => E(e.target.value),
|
|
39
|
-
disabled: v,
|
|
40
|
-
"data-testid": S
|
|
41
|
-
})]
|
|
42
|
-
}) : null,
|
|
43
|
-
/* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
|
|
44
|
-
type: "button",
|
|
45
|
-
variant: "outline",
|
|
46
|
-
onClick: _,
|
|
47
|
-
disabled: v,
|
|
48
|
-
children: w.cancelButton
|
|
49
|
-
}), /* @__PURE__ */ f(o, {
|
|
50
|
-
type: "button",
|
|
51
|
-
variant: "default",
|
|
52
|
-
loading: v,
|
|
53
|
-
disabled: v,
|
|
54
|
-
onClick: () => g(h.reason ? T.trim() : void 0),
|
|
55
|
-
"data-testid": x,
|
|
56
|
-
children: h.confirmButton
|
|
57
|
-
})] })
|
|
58
|
-
]
|
|
59
|
-
})
|
|
60
|
-
}) : null;
|
|
61
|
-
}
|
|
2
|
+
var e = { cancelButton: "Back" };
|
|
62
3
|
//#endregion
|
|
63
|
-
export {
|
|
4
|
+
export { e as BILL_DECISION_DIALOG_LABELS_EN };
|
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index46.js";
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index46.js";
|
|
3
|
+
import { useEffect as u, useState as d } from "react";
|
|
4
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js
|
|
6
|
+
function m({ open: m, copy: h, onConfirm: g, onCancel: _, isPending: v, labels: y, testId: b, confirmTestId: x, reasonTestId: S, reasonFieldId: C = "bill-decision-reason" }) {
|
|
7
|
+
let w = {
|
|
8
|
+
...l,
|
|
9
|
+
...y
|
|
10
|
+
}, [T, E] = d("");
|
|
11
|
+
return u(() => {
|
|
12
|
+
m || E("");
|
|
13
|
+
}, [m]), h ? /* @__PURE__ */ f(e, {
|
|
14
|
+
open: m,
|
|
15
|
+
onOpenChange: (e) => {
|
|
16
|
+
e || _();
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ p(t, {
|
|
19
|
+
"data-testid": b,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, { children: h.title }), /* @__PURE__ */ f(n, { children: h.description })] }),
|
|
22
|
+
h.warning ? /* @__PURE__ */ f("p", {
|
|
23
|
+
className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:p-3 ttw:text-sm ttw:text-foreground",
|
|
24
|
+
children: h.warning
|
|
25
|
+
}) : null,
|
|
26
|
+
h.reason ? /* @__PURE__ */ p("div", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
28
|
+
children: [/* @__PURE__ */ p(s, {
|
|
29
|
+
htmlFor: C,
|
|
30
|
+
children: [h.reason.label, /* @__PURE__ */ f("span", {
|
|
31
|
+
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
32
|
+
children: h.reason.optionalHint
|
|
33
|
+
})]
|
|
34
|
+
}), /* @__PURE__ */ f(c, {
|
|
35
|
+
id: C,
|
|
36
|
+
value: T,
|
|
37
|
+
placeholder: h.reason.placeholder,
|
|
38
|
+
onChange: (e) => E(e.target.value),
|
|
39
|
+
disabled: v,
|
|
40
|
+
"data-testid": S
|
|
41
|
+
})]
|
|
42
|
+
}) : null,
|
|
43
|
+
/* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
|
|
44
|
+
type: "button",
|
|
45
|
+
variant: "outline",
|
|
46
|
+
onClick: _,
|
|
47
|
+
disabled: v,
|
|
48
|
+
children: w.cancelButton
|
|
49
|
+
}), /* @__PURE__ */ f(o, {
|
|
50
|
+
type: "button",
|
|
51
|
+
variant: "default",
|
|
52
|
+
loading: v,
|
|
53
|
+
disabled: v,
|
|
54
|
+
onClick: () => g(h.reason ? T.trim() : void 0),
|
|
55
|
+
"data-testid": x,
|
|
56
|
+
children: h.confirmButton
|
|
57
|
+
})] })
|
|
58
|
+
]
|
|
59
|
+
})
|
|
60
|
+
}) : null;
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { m as BillDecisionDialog, m as default };
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { MISSING_VALUE_LABELS_EN as t } from "./index48.js";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js
|
|
5
|
-
|
|
6
|
-
let a = {
|
|
7
|
-
...t,
|
|
8
|
-
...r
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ n("span", {
|
|
11
|
-
className: e("ttw:text-amber-700", i),
|
|
12
|
-
children: a.missing
|
|
13
|
-
});
|
|
14
|
-
}
|
|
2
|
+
var e = { missing: "Missing" };
|
|
15
3
|
//#endregion
|
|
16
|
-
export {
|
|
4
|
+
export { e as MISSING_VALUE_LABELS_EN };
|