@tesouro/embedded-components-react 0.5.28 → 0.5.31
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 +14 -13
- package/dist/index.css +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
- 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/index43.js +52 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
|
@@ -18,16 +18,16 @@ import { ChevronDownIcon as T, MoveDiagonal2Icon as E, XIcon as D } from "lucide
|
|
|
18
18
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js
|
|
19
19
|
function O({ items: e }) {
|
|
20
20
|
return /* @__PURE__ */ C("dl", {
|
|
21
|
-
className: "ttw:flex ttw:flex-col",
|
|
21
|
+
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
22
22
|
children: e.map((e) => /* @__PURE__ */ w("div", {
|
|
23
|
-
className: "ttw:flex ttw:items-start ttw:
|
|
23
|
+
className: "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5",
|
|
24
24
|
children: [/* @__PURE__ */ C("dt", {
|
|
25
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
|
+
className: "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
26
26
|
children: e.label
|
|
27
27
|
}), /* @__PURE__ */ w("dd", {
|
|
28
|
-
className: "ttw:flex ttw:flex-
|
|
28
|
+
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-start",
|
|
29
29
|
children: [/* @__PURE__ */ C("span", {
|
|
30
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
30
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
31
31
|
children: e.value
|
|
32
32
|
}), e.secondaryValue ? /* @__PURE__ */ C("span", {
|
|
33
33
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
@@ -51,85 +51,85 @@ function k({ heading: e, children: t }) {
|
|
|
51
51
|
}), /* @__PURE__ */ C(r, { children: t })]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolicy: A, showApprovalOverrideNotice: j,
|
|
55
|
-
let
|
|
54
|
+
function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolicy: A, showApprovalOverrideNotice: j, awaitingApprovalNotice: M, scheduledSummary: N, paymentHistory: P, paymentHistoryError: F, paymentHistoryLoading: I, isLoading: L, isError: R, notice: z, onClose: B, onExpand: V, testId: H, labels: U }) {
|
|
55
|
+
let W = {
|
|
56
56
|
...x,
|
|
57
|
-
...
|
|
57
|
+
...U,
|
|
58
58
|
statusBadge: {
|
|
59
59
|
...x.statusBadge,
|
|
60
|
-
...
|
|
60
|
+
...U?.statusBadge
|
|
61
61
|
},
|
|
62
62
|
approvalPolicy: {
|
|
63
63
|
...x.approvalPolicy,
|
|
64
|
-
...
|
|
64
|
+
...U?.approvalPolicy
|
|
65
65
|
},
|
|
66
66
|
dueDate: {
|
|
67
67
|
...x.dueDate,
|
|
68
|
-
...
|
|
68
|
+
...U?.dueDate
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
return /* @__PURE__ */ C(a, {
|
|
72
72
|
open: n,
|
|
73
|
-
onOpenChange: (e) => e ? r(e) :
|
|
73
|
+
onOpenChange: (e) => e ? r(e) : B(),
|
|
74
74
|
children: /* @__PURE__ */ w(o, {
|
|
75
75
|
showCloseButton: !1,
|
|
76
76
|
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
77
|
-
"data-testid":
|
|
77
|
+
"data-testid": H,
|
|
78
78
|
children: [/* @__PURE__ */ w(c, {
|
|
79
79
|
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
80
80
|
children: [/* @__PURE__ */ w("div", {
|
|
81
81
|
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
82
82
|
children: [
|
|
83
83
|
/* @__PURE__ */ C(l, {
|
|
84
|
-
className:
|
|
85
|
-
children:
|
|
84
|
+
className: L ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
85
|
+
children: R ? W.errorTitle : L ? W.loadingTitle : i?.title
|
|
86
86
|
}),
|
|
87
|
-
|
|
87
|
+
L ? /* @__PURE__ */ w("div", {
|
|
88
88
|
"aria-hidden": !0,
|
|
89
89
|
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
90
90
|
children: [/* @__PURE__ */ C(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ C(u, { className: "ttw:h-4 ttw:w-28" })]
|
|
91
91
|
}) : null,
|
|
92
|
-
i && !
|
|
92
|
+
i && !L && !R ? /* @__PURE__ */ C("p", {
|
|
93
93
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
94
94
|
children: i.subtitle
|
|
95
95
|
}) : null,
|
|
96
96
|
/* @__PURE__ */ C(s, {
|
|
97
97
|
className: "ttw:sr-only",
|
|
98
|
-
children:
|
|
98
|
+
children: W.hiddenDescription
|
|
99
99
|
})
|
|
100
100
|
]
|
|
101
101
|
}), /* @__PURE__ */ w("div", {
|
|
102
102
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
103
103
|
children: [
|
|
104
|
-
|
|
104
|
+
V ? /* @__PURE__ */ C(t, {
|
|
105
105
|
type: "button",
|
|
106
106
|
variant: "ghost",
|
|
107
107
|
size: "icon",
|
|
108
|
-
"aria-label":
|
|
109
|
-
onClick:
|
|
108
|
+
"aria-label": W.expandButton,
|
|
109
|
+
onClick: V,
|
|
110
110
|
children: /* @__PURE__ */ C(E, { className: "ttw:size-4" })
|
|
111
111
|
}) : null,
|
|
112
|
-
i && !
|
|
112
|
+
i && !L && !R ? /* @__PURE__ */ C(b, {
|
|
113
113
|
actions: T.menu,
|
|
114
|
-
triggerLabel:
|
|
114
|
+
triggerLabel: W.overflowMenuTrigger,
|
|
115
115
|
placement: "header"
|
|
116
116
|
}) : null,
|
|
117
117
|
/* @__PURE__ */ C(t, {
|
|
118
118
|
type: "button",
|
|
119
119
|
variant: "ghost",
|
|
120
120
|
size: "icon",
|
|
121
|
-
"aria-label":
|
|
122
|
-
onClick:
|
|
121
|
+
"aria-label": W.closeButton,
|
|
122
|
+
onClick: B,
|
|
123
123
|
children: /* @__PURE__ */ C(D, { className: "ttw:size-4" })
|
|
124
124
|
})
|
|
125
125
|
]
|
|
126
126
|
})]
|
|
127
127
|
}), /* @__PURE__ */ C("div", {
|
|
128
128
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
129
|
-
children:
|
|
129
|
+
children: R ? /* @__PURE__ */ C("p", {
|
|
130
130
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
131
|
-
children:
|
|
132
|
-
}) :
|
|
131
|
+
children: W.errorDescription
|
|
132
|
+
}) : L ? /* @__PURE__ */ w("div", {
|
|
133
133
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
134
134
|
children: [/* @__PURE__ */ C(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ w("div", {
|
|
135
135
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
@@ -140,9 +140,9 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
140
140
|
]
|
|
141
141
|
})]
|
|
142
142
|
}) : i ? /* @__PURE__ */ w(S, { children: [
|
|
143
|
-
|
|
143
|
+
z,
|
|
144
144
|
/* @__PURE__ */ w("section", {
|
|
145
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted
|
|
145
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
146
146
|
children: [
|
|
147
147
|
/* @__PURE__ */ w("div", {
|
|
148
148
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
@@ -152,7 +152,7 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
152
152
|
className: "ttw:flex ttw:flex-col",
|
|
153
153
|
children: [/* @__PURE__ */ C("span", {
|
|
154
154
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
155
|
-
children:
|
|
155
|
+
children: W.amountDueHeading
|
|
156
156
|
}), /* @__PURE__ */ C("span", {
|
|
157
157
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
158
158
|
children: i.amountDueLabel
|
|
@@ -161,7 +161,7 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
161
161
|
className: "ttw:flex ttw:flex-col",
|
|
162
162
|
children: [/* @__PURE__ */ C("span", {
|
|
163
163
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
164
|
-
children:
|
|
164
|
+
children: W.amountPaidHeading
|
|
165
165
|
}), /* @__PURE__ */ C("span", {
|
|
166
166
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
167
167
|
children: i.amountPaidLabel
|
|
@@ -169,7 +169,7 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
169
169
|
})]
|
|
170
170
|
}) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("span", {
|
|
171
171
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
172
|
-
children:
|
|
172
|
+
children: W.amountDueHeading
|
|
173
173
|
}), /* @__PURE__ */ C("span", {
|
|
174
174
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
175
175
|
children: i.amountDueLabel
|
|
@@ -177,14 +177,14 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
177
177
|
variant: "outline",
|
|
178
178
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
179
179
|
children: i.paidOnLabel
|
|
180
|
-
}) :
|
|
180
|
+
}) : N ? /* @__PURE__ */ C(e, {
|
|
181
181
|
variant: "outline",
|
|
182
182
|
className: m.committed,
|
|
183
|
-
children:
|
|
183
|
+
children: N
|
|
184
184
|
}) : /* @__PURE__ */ C(h, {
|
|
185
185
|
status: i.status,
|
|
186
186
|
tone: i.statusTone,
|
|
187
|
-
labels:
|
|
187
|
+
labels: W.statusBadge
|
|
188
188
|
}) })]
|
|
189
189
|
}),
|
|
190
190
|
/* @__PURE__ */ w("div", {
|
|
@@ -193,7 +193,7 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
193
193
|
className: "ttw:flex ttw:flex-col",
|
|
194
194
|
children: [/* @__PURE__ */ C("span", {
|
|
195
195
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
196
|
-
children:
|
|
196
|
+
children: W.invoiceDateLabel
|
|
197
197
|
}), /* @__PURE__ */ C("span", {
|
|
198
198
|
className: "ttw:text-sm ttw:font-medium",
|
|
199
199
|
children: i.invoiceDateLabel
|
|
@@ -202,12 +202,12 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
202
202
|
className: "ttw:flex ttw:flex-col",
|
|
203
203
|
children: [/* @__PURE__ */ C("span", {
|
|
204
204
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
205
|
-
children:
|
|
205
|
+
children: W.dueDateLabel
|
|
206
206
|
}), /* @__PURE__ */ C(g, {
|
|
207
207
|
className: "ttw:text-sm ttw:font-medium",
|
|
208
208
|
value: i.dueDateLabel,
|
|
209
209
|
tone: i.dueDateTone,
|
|
210
|
-
labels:
|
|
210
|
+
labels: W.dueDate
|
|
211
211
|
})]
|
|
212
212
|
})]
|
|
213
213
|
}),
|
|
@@ -215,7 +215,11 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
215
215
|
j ? /* @__PURE__ */ C(d, {
|
|
216
216
|
variant: "caption",
|
|
217
217
|
color: "muted",
|
|
218
|
-
children:
|
|
218
|
+
children: W.approvalOverrideNotice
|
|
219
|
+
}) : M ? /* @__PURE__ */ C(d, {
|
|
220
|
+
variant: "caption",
|
|
221
|
+
color: "muted",
|
|
222
|
+
children: M
|
|
219
223
|
}) : null,
|
|
220
224
|
T.row.length ? /* @__PURE__ */ C("div", {
|
|
221
225
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
@@ -224,18 +228,18 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
224
228
|
]
|
|
225
229
|
}),
|
|
226
230
|
/* @__PURE__ */ C(k, {
|
|
227
|
-
heading: i.paidOnLabel ?
|
|
231
|
+
heading: i.paidOnLabel ? W.payToHeadingPaid : W.payToHeading,
|
|
228
232
|
children: /* @__PURE__ */ C(O, { items: i.payToItems })
|
|
229
233
|
}),
|
|
230
|
-
|
|
231
|
-
heading:
|
|
232
|
-
children:
|
|
234
|
+
P?.length || F || I ? /* @__PURE__ */ C(k, {
|
|
235
|
+
heading: W.paymentHistoryHeading,
|
|
236
|
+
children: F ? /* @__PURE__ */ C("p", {
|
|
233
237
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
234
|
-
children:
|
|
235
|
-
}) :
|
|
238
|
+
children: W.paymentHistoryErrorDescription
|
|
239
|
+
}) : I ? /* @__PURE__ */ C(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ C(_, { records: P ?? [] })
|
|
236
240
|
}) : null,
|
|
237
241
|
/* @__PURE__ */ C(k, {
|
|
238
|
-
heading:
|
|
242
|
+
heading: W.invoiceDetailsHeading,
|
|
239
243
|
children: /* @__PURE__ */ w("div", {
|
|
240
244
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
241
245
|
children: [
|
|
@@ -247,15 +251,15 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
247
251
|
children: [
|
|
248
252
|
/* @__PURE__ */ C("th", {
|
|
249
253
|
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
250
|
-
children:
|
|
254
|
+
children: W.lineItemsHeading
|
|
251
255
|
}),
|
|
252
256
|
/* @__PURE__ */ C("th", {
|
|
253
257
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
254
|
-
children:
|
|
258
|
+
children: W.lineItemsQuantityHeading
|
|
255
259
|
}),
|
|
256
260
|
/* @__PURE__ */ C("th", {
|
|
257
261
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
258
|
-
children:
|
|
262
|
+
children: W.lineItemsAmountHeading
|
|
259
263
|
})
|
|
260
264
|
]
|
|
261
265
|
}) }), /* @__PURE__ */ C("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ w("tr", {
|
|
@@ -297,7 +301,7 @@ function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolic
|
|
|
297
301
|
}),
|
|
298
302
|
A ? /* @__PURE__ */ C(f, {
|
|
299
303
|
view: A,
|
|
300
|
-
labels:
|
|
304
|
+
labels: W.approvalPolicy
|
|
301
305
|
}) : null
|
|
302
306
|
] }) : null
|
|
303
307
|
})]
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Discard unsaved changes?",
|
|
4
|
+
description: "Your changes will be lost if you stop editing now.",
|
|
5
|
+
keepEditingButton: "Keep editing",
|
|
6
|
+
discardButton: "Discard changes"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as DISCARD_CHANGES_DIALOG_LABELS_EN };
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index66.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js
|
|
5
|
+
function u({ open: u, onDiscard: d, onKeepEditing: f, labels: p, testId: m, discardTestId: h }) {
|
|
6
|
+
let g = {
|
|
7
|
+
...s,
|
|
8
|
+
...p
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ c(e, {
|
|
11
|
+
open: u,
|
|
12
|
+
onOpenChange: (e) => {
|
|
13
|
+
e || f();
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ l(t, {
|
|
16
|
+
"data-testid": m,
|
|
17
|
+
children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: g.title }), /* @__PURE__ */ c(n, { children: g.description })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
18
|
+
type: "button",
|
|
19
|
+
variant: "outline",
|
|
20
|
+
onClick: f,
|
|
21
|
+
children: g.keepEditingButton
|
|
22
|
+
}), /* @__PURE__ */ c(o, {
|
|
23
|
+
type: "button",
|
|
24
|
+
variant: "destructive",
|
|
25
|
+
onClick: d,
|
|
26
|
+
"data-testid": h,
|
|
27
|
+
children: g.discardButton
|
|
28
|
+
})] })]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { u as DiscardChangesDialog, u as default };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
message: "This bill is a possible duplicate of another bill.",
|
|
4
|
-
notADuplicateButton: "Not a duplicate",
|
|
5
|
-
removeBillButton: "Remove this bill"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
|
|
1
|
+
import "./index66.js";
|
|
2
|
+
import "./index67.js";
|
|
@@ -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/index69.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/index71.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 "./index71.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/index72.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/index74.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 "./index74.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/index75.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 };
|