@tesouro/embedded-components-react 0.3.38 → 0.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +59 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +163 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +39 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +25 -24
- 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/index64.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +68 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +77 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +156 -138
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -11,17 +11,17 @@ import { VendorSection as m } from "./index41.js";
|
|
|
11
11
|
import "./index42.js";
|
|
12
12
|
import { mergeBillCreateScreenLabels as h } from "./index43.js";
|
|
13
13
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
14
|
-
import {
|
|
14
|
+
import { Minimize2 as y, MoreVertical as b, X as x } from "lucide-react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
16
|
-
function
|
|
17
|
-
let
|
|
16
|
+
function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor: D, values: O, errors: k, onChange: A, lineItems: j, documentPanel: M, menuItems: N, readOnly: P, detail: F, isLineItemsLoading: I, isSaving: L, isSavingDraft: R, isFinalizing: z, onCancel: B, onCollapse: V, onSaveDraft: H, onFinalize: U, testId: W, labels: G }) {
|
|
17
|
+
let K = h(G), q = !!(P && F);
|
|
18
18
|
return /* @__PURE__ */ _(t, {
|
|
19
|
-
open:
|
|
20
|
-
onOpenChange:
|
|
19
|
+
open: S,
|
|
20
|
+
onOpenChange: C,
|
|
21
21
|
children: /* @__PURE__ */ v(n, {
|
|
22
22
|
showCloseButton: !1,
|
|
23
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":
|
|
24
|
+
"data-testid": W,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ v(i, {
|
|
27
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",
|
|
@@ -30,45 +30,57 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
|
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ _(a, {
|
|
32
32
|
className: "ttw:text-xl ttw:font-semibold",
|
|
33
|
-
children:
|
|
33
|
+
children: w
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
T ? /* @__PURE__ */ _("p", {
|
|
36
36
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
37
|
-
children:
|
|
37
|
+
children: T
|
|
38
38
|
}) : null,
|
|
39
39
|
/* @__PURE__ */ _(r, {
|
|
40
40
|
className: "ttw:sr-only",
|
|
41
|
-
children:
|
|
41
|
+
children: K.hiddenDescription
|
|
42
42
|
})
|
|
43
43
|
]
|
|
44
44
|
}), /* @__PURE__ */ v("div", {
|
|
45
45
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
46
|
-
children: [
|
|
47
|
-
|
|
48
|
-
children: /* @__PURE__ */ _(e, {
|
|
46
|
+
children: [
|
|
47
|
+
V ? /* @__PURE__ */ _(e, {
|
|
49
48
|
type: "button",
|
|
50
49
|
variant: "ghost",
|
|
51
50
|
size: "icon",
|
|
52
|
-
"aria-label":
|
|
53
|
-
disabled:
|
|
51
|
+
"aria-label": K.collapseButton,
|
|
52
|
+
disabled: L,
|
|
53
|
+
onClick: V,
|
|
54
54
|
children: /* @__PURE__ */ _(y, { className: "ttw:size-4" })
|
|
55
|
+
}) : null,
|
|
56
|
+
N && N.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
|
|
57
|
+
asChild: !0,
|
|
58
|
+
children: /* @__PURE__ */ _(e, {
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "icon",
|
|
62
|
+
"aria-label": K.menuTrigger,
|
|
63
|
+
disabled: L,
|
|
64
|
+
children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
|
|
65
|
+
})
|
|
66
|
+
}), /* @__PURE__ */ _(s, {
|
|
67
|
+
align: "end",
|
|
68
|
+
children: N.map((e) => /* @__PURE__ */ _(c, {
|
|
69
|
+
variant: e.destructive ? "destructive" : void 0,
|
|
70
|
+
onSelect: e.onSelect,
|
|
71
|
+
children: e.label
|
|
72
|
+
}, e.id))
|
|
73
|
+
})] }) : null,
|
|
74
|
+
/* @__PURE__ */ _(e, {
|
|
75
|
+
type: "button",
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
size: "icon",
|
|
78
|
+
"aria-label": K.closeButton,
|
|
79
|
+
disabled: L,
|
|
80
|
+
onClick: B,
|
|
81
|
+
children: /* @__PURE__ */ _(x, { className: "ttw:size-4" })
|
|
55
82
|
})
|
|
56
|
-
|
|
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
|
-
})]
|
|
83
|
+
]
|
|
72
84
|
})]
|
|
73
85
|
}),
|
|
74
86
|
/* @__PURE__ */ v("div", {
|
|
@@ -76,62 +88,62 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
|
|
|
76
88
|
children: [/* @__PURE__ */ v("div", {
|
|
77
89
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
78
90
|
children: [
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
k?.form ? /* @__PURE__ */ _(u, { children: k.form }) : null,
|
|
92
|
+
E ? /* @__PURE__ */ _("div", {
|
|
81
93
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
82
|
-
children:
|
|
94
|
+
children: E
|
|
83
95
|
}) : null,
|
|
84
|
-
|
|
85
|
-
...
|
|
86
|
-
labels:
|
|
96
|
+
q ? /* @__PURE__ */ _(d, {
|
|
97
|
+
...F,
|
|
98
|
+
labels: K.detailBody
|
|
87
99
|
}) : /* @__PURE__ */ v(g, { children: [
|
|
88
100
|
/* @__PURE__ */ _(m, {
|
|
89
|
-
...
|
|
90
|
-
onEdit:
|
|
91
|
-
onClear:
|
|
92
|
-
disabled:
|
|
93
|
-
labels:
|
|
101
|
+
...D,
|
|
102
|
+
onEdit: P ? void 0 : D.onEdit,
|
|
103
|
+
onClear: P ? void 0 : D.onClear,
|
|
104
|
+
disabled: P,
|
|
105
|
+
labels: K.vendorSection
|
|
94
106
|
}),
|
|
95
107
|
/* @__PURE__ */ _(f, {
|
|
96
|
-
values:
|
|
97
|
-
errors:
|
|
98
|
-
onChange:
|
|
99
|
-
disabled:
|
|
100
|
-
labels:
|
|
108
|
+
values: O,
|
|
109
|
+
errors: k,
|
|
110
|
+
onChange: A,
|
|
111
|
+
disabled: P,
|
|
112
|
+
labels: K.detailsFields
|
|
101
113
|
}),
|
|
102
114
|
/* @__PURE__ */ _(p, {
|
|
103
|
-
...
|
|
104
|
-
disabled:
|
|
105
|
-
labels:
|
|
115
|
+
...j,
|
|
116
|
+
disabled: j.disabled || I || P,
|
|
117
|
+
labels: K.lineItems
|
|
106
118
|
})
|
|
107
119
|
] })
|
|
108
120
|
]
|
|
109
121
|
}), /* @__PURE__ */ _("div", {
|
|
110
122
|
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
111
|
-
children:
|
|
123
|
+
children: M
|
|
112
124
|
})]
|
|
113
125
|
}),
|
|
114
|
-
|
|
126
|
+
q ? null : /* @__PURE__ */ v("div", {
|
|
115
127
|
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
116
128
|
children: [/* @__PURE__ */ _(e, {
|
|
117
129
|
type: "button",
|
|
118
130
|
variant: "ghost",
|
|
119
|
-
disabled:
|
|
120
|
-
onClick:
|
|
121
|
-
children:
|
|
122
|
-
}),
|
|
131
|
+
disabled: L,
|
|
132
|
+
onClick: B,
|
|
133
|
+
children: P ? K.closeButton : K.cancelButton
|
|
134
|
+
}), P ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
|
|
123
135
|
type: "button",
|
|
124
136
|
variant: "secondary",
|
|
125
|
-
onClick:
|
|
126
|
-
loading:
|
|
127
|
-
disabled:
|
|
128
|
-
children:
|
|
137
|
+
onClick: H,
|
|
138
|
+
loading: R,
|
|
139
|
+
disabled: z || I || D.mode === "creating",
|
|
140
|
+
children: K.saveDraftButton
|
|
129
141
|
}), /* @__PURE__ */ _(e, {
|
|
130
142
|
type: "button",
|
|
131
|
-
onClick:
|
|
132
|
-
loading:
|
|
133
|
-
disabled:
|
|
134
|
-
children:
|
|
143
|
+
onClick: U,
|
|
144
|
+
loading: z,
|
|
145
|
+
disabled: R || I || D.mode === "creating",
|
|
146
|
+
children: K.finalizeButton
|
|
135
147
|
})] })]
|
|
136
148
|
})
|
|
137
149
|
]
|
|
@@ -139,4 +151,4 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
|
|
|
139
151
|
});
|
|
140
152
|
}
|
|
141
153
|
//#endregion
|
|
142
|
-
export {
|
|
154
|
+
export { S as BillCreateScreen, S as default };
|