@tesouro/embedded-components-react 0.11.253 → 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/pay-bill/ui/dist/index10.js
CHANGED
|
@@ -1,182 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import {
|
|
1
|
+
import { DescriptionList as e, DisplayAmount as t, FlowDialog as n, Heading as r, ResultScreen as i, Separator as a, Typography as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MaskedAccountNumber as s } from "../../../../shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js";
|
|
3
|
+
import "../../../../shared/ui/dist/index.js";
|
|
4
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as c } from "./index9.js";
|
|
5
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { CircleCheckIcon as f } from "lucide-react";
|
|
7
7
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
function p({ open: p, onOpenChange: m, amountLabel: h, amount: g, rows: _, payTo: v, isSubmitting: y, submitError: b, onBack: x, onCancel: S, onSubmit: C, result: w, onDone: T, testId: E, labels: D }) {
|
|
9
|
+
let O = {
|
|
10
|
+
...c,
|
|
11
|
+
...D
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ u(n, {
|
|
14
|
+
open: p,
|
|
15
|
+
onOpenChange: (e) => e ? m(e) : S(),
|
|
16
|
+
title: O.title,
|
|
17
|
+
stepLabel: O.stepLabel,
|
|
18
|
+
submitError: b,
|
|
19
|
+
onBack: x,
|
|
20
|
+
onNext: C,
|
|
21
|
+
nextLoading: y,
|
|
22
|
+
labels: {
|
|
23
|
+
back: O.backButton,
|
|
24
|
+
next: O.submitButton,
|
|
25
|
+
close: O.close
|
|
26
|
+
},
|
|
27
|
+
testIds: { content: E },
|
|
28
|
+
result: w ? /* @__PURE__ */ u(i, {
|
|
29
|
+
icon: /* @__PURE__ */ u(f, {}),
|
|
30
|
+
title: w.title,
|
|
31
|
+
details: w.details,
|
|
32
|
+
onDone: T,
|
|
33
|
+
labels: { done: O.doneButton }
|
|
34
|
+
}) : void 0,
|
|
35
|
+
children: /* @__PURE__ */ d("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
37
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
className: "ttw:
|
|
26
|
-
children:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
/* @__PURE__ */ d("div", {
|
|
39
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
40
|
+
children: [/* @__PURE__ */ u(o, {
|
|
41
|
+
variant: "caption",
|
|
42
|
+
color: "muted",
|
|
43
|
+
children: h
|
|
44
|
+
}), /* @__PURE__ */ u(t, { children: g })]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ u(e, { items: _ }),
|
|
47
|
+
/* @__PURE__ */ d("section", {
|
|
48
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
30
49
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children: T
|
|
36
|
-
}), /* @__PURE__ */ S("div", {
|
|
37
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
|
|
38
|
-
children: [/* @__PURE__ */ x("p", {
|
|
39
|
-
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
40
|
-
children: E
|
|
41
|
-
}), D ? /* @__PURE__ */ x("p", {
|
|
42
|
-
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
43
|
-
children: D
|
|
44
|
-
}) : null]
|
|
45
|
-
})]
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ x(d, { labels: q.requiredFieldsLegend }),
|
|
48
|
-
/* @__PURE__ */ S("div", {
|
|
49
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
50
|
-
children: [/* @__PURE__ */ S("div", {
|
|
51
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
52
|
-
children: [/* @__PURE__ */ x(c, { children: O }), /* @__PURE__ */ x("div", {
|
|
53
|
-
"aria-disabled": !0,
|
|
54
|
-
className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
55
|
-
children: k
|
|
56
|
-
})]
|
|
57
|
-
}), /* @__PURE__ */ S("div", {
|
|
58
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
59
|
-
children: [
|
|
60
|
-
/* @__PURE__ */ x(c, {
|
|
61
|
-
id: J,
|
|
62
|
-
requirement: s.Required,
|
|
63
|
-
labels: q.fieldMarkers,
|
|
64
|
-
children: q.paymentDate
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ x("span", {
|
|
67
|
-
id: X,
|
|
68
|
-
className: "ttw:sr-only",
|
|
69
|
-
children: q.fieldMarkers.requiredAccessibleText
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(ne, {
|
|
72
|
-
asChild: !0,
|
|
73
|
-
children: /* @__PURE__ */ S(t, {
|
|
74
|
-
type: "button",
|
|
75
|
-
variant: "outline",
|
|
76
|
-
className: "ttw:justify-start ttw:gap-2",
|
|
77
|
-
"aria-labelledby": `${J} ${Y} ${X}`,
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ x(ie, { className: "ttw:size-4" }),
|
|
80
|
-
/* @__PURE__ */ x("span", {
|
|
81
|
-
id: Y,
|
|
82
|
-
children: j ?? q.paymentDatePlaceholder
|
|
83
|
-
}),
|
|
84
|
-
N ? /* @__PURE__ */ x(e, {
|
|
85
|
-
variant: "secondary",
|
|
86
|
-
children: q.today
|
|
87
|
-
}) : null
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
}), /* @__PURE__ */ x(u, {
|
|
91
|
-
align: "start",
|
|
92
|
-
className: "ttw:w-auto ttw:p-0",
|
|
93
|
-
children: /* @__PURE__ */ x(n, {
|
|
94
|
-
mode: "single",
|
|
95
|
-
selected: A,
|
|
96
|
-
onSelect: V,
|
|
97
|
-
disabled: M
|
|
98
|
-
})
|
|
99
|
-
})] })
|
|
100
|
-
]
|
|
101
|
-
})]
|
|
50
|
+
/* @__PURE__ */ u(r, {
|
|
51
|
+
variant: "card",
|
|
52
|
+
level: 3,
|
|
53
|
+
children: O.payToHeading
|
|
102
54
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
className: "ttw:
|
|
105
|
-
children:
|
|
106
|
-
/* @__PURE__ */ x(c, {
|
|
107
|
-
id: Z,
|
|
108
|
-
requirement: s.Required,
|
|
109
|
-
labels: q.fieldMarkers,
|
|
110
|
-
children: q.payFrom
|
|
111
|
-
}),
|
|
112
|
-
/* @__PURE__ */ S(f, {
|
|
113
|
-
value: P,
|
|
114
|
-
disabled: Q,
|
|
115
|
-
onValueChange: H,
|
|
116
|
-
children: [/* @__PURE__ */ x(h, {
|
|
117
|
-
className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
|
|
118
|
-
"aria-labelledby": Z,
|
|
119
|
-
"aria-required": !0,
|
|
120
|
-
children: /* @__PURE__ */ x(g, {
|
|
121
|
-
placeholder: q.payFromPlaceholder,
|
|
122
|
-
children: $ ? /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ S("span", {
|
|
123
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
124
|
-
children: [/* @__PURE__ */ x("span", {
|
|
125
|
-
className: "ttw:truncate",
|
|
126
|
-
children: $.primaryLabel
|
|
127
|
-
}), $.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
128
|
-
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
129
|
-
children: $.secondaryLabel
|
|
130
|
-
}) : null]
|
|
131
|
-
}), I ? /* @__PURE__ */ x(e, {
|
|
132
|
-
variant: "secondary",
|
|
133
|
-
className: "ttw:shrink-0",
|
|
134
|
-
children: q.poweredByBank(I)
|
|
135
|
-
}) : null] }) : null
|
|
136
|
-
})
|
|
137
|
-
}), /* @__PURE__ */ x(p, { children: F.map((e) => /* @__PURE__ */ x(m, {
|
|
138
|
-
value: e.id,
|
|
139
|
-
children: /* @__PURE__ */ S("span", {
|
|
140
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
141
|
-
children: [/* @__PURE__ */ x("span", {
|
|
142
|
-
className: "ttw:truncate",
|
|
143
|
-
children: e.primaryLabel
|
|
144
|
-
}), e.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
145
|
-
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
146
|
-
children: e.secondaryLabel
|
|
147
|
-
}) : null]
|
|
148
|
-
})
|
|
149
|
-
}, e.id)) })]
|
|
150
|
-
}),
|
|
151
|
-
Q ? /* @__PURE__ */ x("p", {
|
|
152
|
-
className: _("ttw:text-sm", z ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
|
|
153
|
-
role: z ? "alert" : void 0,
|
|
154
|
-
children: R ? q.loadingAccounts : z ? q.accountsError : q.noAccounts
|
|
155
|
-
}) : null
|
|
156
|
-
]
|
|
55
|
+
/* @__PURE__ */ u("p", {
|
|
56
|
+
className: "ttw:text-base ttw:font-semibold",
|
|
57
|
+
children: v.name
|
|
157
58
|
}),
|
|
158
|
-
|
|
159
|
-
className:
|
|
160
|
-
children:
|
|
161
|
-
}) : null
|
|
59
|
+
v.email ? /* @__PURE__ */ u("p", {
|
|
60
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
61
|
+
children: v.email
|
|
62
|
+
}) : null,
|
|
63
|
+
v.methodLabel || v.fields.length > 0 ? /* @__PURE__ */ d(l, { children: [
|
|
64
|
+
/* @__PURE__ */ u(a, { className: "ttw:my-3" }),
|
|
65
|
+
v.methodLabel ? /* @__PURE__ */ u("p", {
|
|
66
|
+
className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
|
|
67
|
+
children: v.methodLabel
|
|
68
|
+
}) : null,
|
|
69
|
+
/* @__PURE__ */ u(e, {
|
|
70
|
+
variant: "form-review",
|
|
71
|
+
items: v.fields.map((e) => ({
|
|
72
|
+
label: e.label,
|
|
73
|
+
value: e.accountNumber ? /* @__PURE__ */ u(s, {
|
|
74
|
+
last4: e.accountNumber.slice(-4),
|
|
75
|
+
fullNumber: e.accountNumber,
|
|
76
|
+
labels: O.maskedAccountNumber
|
|
77
|
+
}) : e.value
|
|
78
|
+
}))
|
|
79
|
+
})
|
|
80
|
+
] }) : null
|
|
162
81
|
]
|
|
163
|
-
}),
|
|
164
|
-
/* @__PURE__ */ S(te, {
|
|
165
|
-
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
166
|
-
children: [/* @__PURE__ */ x(t, {
|
|
167
|
-
type: "button",
|
|
168
|
-
variant: "outline",
|
|
169
|
-
onClick: W,
|
|
170
|
-
children: q.cancelButton
|
|
171
|
-
}), /* @__PURE__ */ x(t, {
|
|
172
|
-
type: "button",
|
|
173
|
-
loading: B,
|
|
174
|
-
onClick: U,
|
|
175
|
-
children: q.reviewButton
|
|
176
|
-
})]
|
|
177
82
|
})
|
|
178
83
|
]
|
|
179
84
|
})
|
|
180
85
|
});
|
|
181
86
|
}
|
|
182
|
-
export {
|
|
87
|
+
export { p as ReviewTransactionDialog, p as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index9.js";
|
|
2
2
|
import "./index10.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js
|
|
3
|
+
var r = {
|
|
4
|
+
title: "Schedule payment",
|
|
5
|
+
stepLabel: "Step 1 of 2",
|
|
6
|
+
payFrom: "Pay from",
|
|
7
|
+
payFromPlaceholder: "Select an account",
|
|
8
|
+
paymentDate: "Payment date",
|
|
9
|
+
paymentDatePlaceholder: "Choose a date",
|
|
10
|
+
today: "Today",
|
|
11
|
+
noAccounts: "No accounts available",
|
|
12
|
+
loadingAccounts: "Loading accounts",
|
|
13
|
+
accountsError: "Couldn't load accounts. Try again.",
|
|
14
|
+
poweredByBank: (e) => `Powered by ${e}`,
|
|
15
|
+
reviewButton: "Review payment",
|
|
16
|
+
cancelButton: "Cancel",
|
|
17
|
+
close: "Close",
|
|
18
|
+
fieldMarkers: e,
|
|
19
|
+
requiredFieldsLegend: t
|
|
20
|
+
};
|
|
21
|
+
function i(e) {
|
|
22
|
+
let t = {
|
|
23
|
+
...r.fieldMarkers,
|
|
24
|
+
...e?.fieldMarkers
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
...r,
|
|
28
|
+
...e,
|
|
29
|
+
fieldMarkers: t,
|
|
30
|
+
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export { r as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, i as mergeSchedulePaymentDialogLabels };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js
|
|
2
|
+
var e = {
|
|
3
|
+
neutral: "ttw:text-foreground",
|
|
4
|
+
muted: "ttw:text-muted-foreground",
|
|
5
|
+
success: "ttw:text-success-foreground",
|
|
6
|
+
warning: "ttw:text-warning-foreground",
|
|
7
|
+
error: "ttw:text-destructive"
|
|
8
|
+
};
|
|
9
|
+
export { e as TONE_TEXT_CLASS };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Badge as e, FieldRequirement as t, FlowDialog as n, Label as r, RequiredFieldsLegend as i, Select as a, SelectContent as o, SelectItem as s, SelectTrigger as c, SelectValue as l, cn as u } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { AmountDueHeader as d } from "./index2.js";
|
|
3
|
+
import { PaymentDateField as f } from "./index3.js";
|
|
4
|
+
import { ReadOnlyAmountField as p } from "./index4.js";
|
|
5
|
+
import "./index5.js";
|
|
6
|
+
import { mergeSchedulePaymentDialogLabels as m } from "./index12.js";
|
|
7
|
+
import { TONE_TEXT_CLASS as h } from "./index13.js";
|
|
8
|
+
import { useId as g } from "react";
|
|
9
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js
|
|
11
|
+
var b = {
|
|
12
|
+
sufficient: h.muted,
|
|
13
|
+
warning: h.warning,
|
|
14
|
+
error: h.error
|
|
15
|
+
};
|
|
16
|
+
function x({ open: h, onOpenChange: x, amountDueLabel: S, amountDue: C, dueDateSuffix: w, paymentAmountLabel: T, paymentAmount: E, selectedDate: D, minDate: O, isToday: k, selectedAccountId: A, accounts: j, poweredByBankName: M, funds: N, errors: P, isAccountsLoading: F, isAccountsError: I, isSubmitting: L, onDateChange: R, onAccountChange: z, onReview: B, onCancel: V, testId: H, labels: U }) {
|
|
17
|
+
let W = m(U), G = g(), K = g(), q = F || I || j.length === 0, J = j.find((e) => e.id === A), Y = F ? W.loadingAccounts : I ? W.accountsError : j.length === 0 ? W.noAccounts : void 0;
|
|
18
|
+
return /* @__PURE__ */ v(n, {
|
|
19
|
+
open: h,
|
|
20
|
+
onOpenChange: (e) => e ? x(e) : V(),
|
|
21
|
+
title: W.title,
|
|
22
|
+
stepLabel: W.stepLabel,
|
|
23
|
+
onNext: B,
|
|
24
|
+
onCancel: V,
|
|
25
|
+
nextLoading: L,
|
|
26
|
+
labels: {
|
|
27
|
+
next: W.reviewButton,
|
|
28
|
+
cancel: W.cancelButton,
|
|
29
|
+
close: W.close
|
|
30
|
+
},
|
|
31
|
+
testIds: { content: H },
|
|
32
|
+
children: /* @__PURE__ */ y("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ v(d, {
|
|
36
|
+
label: S,
|
|
37
|
+
amount: C,
|
|
38
|
+
suffix: w
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ v(i, { labels: W.requiredFieldsLegend }),
|
|
41
|
+
/* @__PURE__ */ y("div", {
|
|
42
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
43
|
+
children: [/* @__PURE__ */ v(p, {
|
|
44
|
+
label: T,
|
|
45
|
+
value: E
|
|
46
|
+
}), /* @__PURE__ */ v(f, {
|
|
47
|
+
value: D,
|
|
48
|
+
minDate: O,
|
|
49
|
+
isToday: k,
|
|
50
|
+
error: P?.paymentDate,
|
|
51
|
+
onChange: R,
|
|
52
|
+
labels: {
|
|
53
|
+
label: W.paymentDate,
|
|
54
|
+
placeholder: W.paymentDatePlaceholder,
|
|
55
|
+
today: W.today,
|
|
56
|
+
fieldMarkers: W.fieldMarkers
|
|
57
|
+
}
|
|
58
|
+
})]
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ y("div", {
|
|
61
|
+
className: "ttw:grid ttw:gap-2",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ v(r, {
|
|
64
|
+
id: G,
|
|
65
|
+
requirement: t.Required,
|
|
66
|
+
labels: W.fieldMarkers,
|
|
67
|
+
children: W.payFrom
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ y(a, {
|
|
70
|
+
value: A,
|
|
71
|
+
disabled: q,
|
|
72
|
+
onValueChange: z,
|
|
73
|
+
children: [/* @__PURE__ */ v(c, {
|
|
74
|
+
className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
|
|
75
|
+
"aria-labelledby": G,
|
|
76
|
+
"aria-required": !0,
|
|
77
|
+
"aria-invalid": P?.sourceAccount ? !0 : void 0,
|
|
78
|
+
"aria-describedby": P?.sourceAccount || Y ? K : void 0,
|
|
79
|
+
children: /* @__PURE__ */ v(l, {
|
|
80
|
+
placeholder: W.payFromPlaceholder,
|
|
81
|
+
children: J ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("span", {
|
|
82
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
83
|
+
children: [/* @__PURE__ */ v("span", {
|
|
84
|
+
className: "ttw:truncate",
|
|
85
|
+
children: J.primaryLabel
|
|
86
|
+
}), J.secondaryLabel ? /* @__PURE__ */ v("span", {
|
|
87
|
+
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
88
|
+
children: J.secondaryLabel
|
|
89
|
+
}) : null]
|
|
90
|
+
}), M ? /* @__PURE__ */ v(e, {
|
|
91
|
+
tone: "neutral",
|
|
92
|
+
className: "ttw:shrink-0",
|
|
93
|
+
children: W.poweredByBank(M)
|
|
94
|
+
}) : null] }) : null
|
|
95
|
+
})
|
|
96
|
+
}), /* @__PURE__ */ v(o, { children: j.map((e) => /* @__PURE__ */ v(s, {
|
|
97
|
+
value: e.id,
|
|
98
|
+
children: /* @__PURE__ */ y("span", {
|
|
99
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
100
|
+
children: [/* @__PURE__ */ v("span", {
|
|
101
|
+
className: "ttw:truncate",
|
|
102
|
+
children: e.primaryLabel
|
|
103
|
+
}), e.secondaryLabel ? /* @__PURE__ */ v("span", {
|
|
104
|
+
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
105
|
+
children: e.secondaryLabel
|
|
106
|
+
}) : null]
|
|
107
|
+
})
|
|
108
|
+
}, e.id)) })]
|
|
109
|
+
}),
|
|
110
|
+
P?.sourceAccount || Y ? /* @__PURE__ */ v("p", {
|
|
111
|
+
id: K,
|
|
112
|
+
role: I && !P?.sourceAccount ? "alert" : void 0,
|
|
113
|
+
className: u("ttw:text-sm", P?.sourceAccount || I ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
|
|
114
|
+
children: P?.sourceAccount ?? Y
|
|
115
|
+
}) : null,
|
|
116
|
+
N.message && !P?.sourceAccount ? /* @__PURE__ */ v("p", {
|
|
117
|
+
className: u("ttw:text-sm", b[N.state]),
|
|
118
|
+
children: N.message
|
|
119
|
+
}) : null
|
|
120
|
+
]
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export { x as SchedulePaymentDialog, x as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DisplayAmount as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
2
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
...r,
|
|
26
|
-
...e,
|
|
27
|
-
fieldMarkers: t,
|
|
28
|
-
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
29
|
-
};
|
|
4
|
+
function i({ label: i, amount: a, suffix: o }) {
|
|
5
|
+
return /* @__PURE__ */ r("div", {
|
|
6
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
7
|
+
children: [/* @__PURE__ */ n(t, {
|
|
8
|
+
variant: "caption",
|
|
9
|
+
color: "muted",
|
|
10
|
+
children: i
|
|
11
|
+
}), /* @__PURE__ */ r("div", {
|
|
12
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-baseline ttw:gap-2",
|
|
13
|
+
children: [/* @__PURE__ */ n(e, {
|
|
14
|
+
component: "span",
|
|
15
|
+
children: a
|
|
16
|
+
}), o ? /* @__PURE__ */ n(t, {
|
|
17
|
+
component: "span",
|
|
18
|
+
variant: "caption",
|
|
19
|
+
color: "muted",
|
|
20
|
+
children: o
|
|
21
|
+
}) : null]
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
30
24
|
}
|
|
31
|
-
export {
|
|
25
|
+
export { i as AmountDueHeader };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js
CHANGED
|
@@ -1,129 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
|
-
import { CalendarIcon as b } from "lucide-react";
|
|
1
|
+
import { DatePicker as e, FieldDescription as t, FieldError as n, FieldRequirement as r, Label as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { useId as a } from "react";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
4
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}) : null]
|
|
36
|
-
})]
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ v(m, { labels: L.requiredFieldsLegend }),
|
|
39
|
-
/* @__PURE__ */ y("div", {
|
|
40
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
41
|
-
children: [/* @__PURE__ */ y("div", {
|
|
42
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
43
|
-
children: [/* @__PURE__ */ v(u, { children: L.paymentAmount }), /* @__PURE__ */ v("div", {
|
|
44
|
-
"aria-disabled": !0,
|
|
45
|
-
className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
46
|
-
children: w
|
|
47
|
-
})]
|
|
48
|
-
}), /* @__PURE__ */ y("div", {
|
|
49
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ v(u, {
|
|
52
|
-
id: R,
|
|
53
|
-
requirement: l.Required,
|
|
54
|
-
labels: L.fieldMarkers,
|
|
55
|
-
children: L.paymentDate
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ v("span", {
|
|
58
|
-
id: B,
|
|
59
|
-
className: "ttw:sr-only",
|
|
60
|
-
children: L.fieldMarkers.requiredAccessibleText
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ y(d, { children: [/* @__PURE__ */ v(p, {
|
|
63
|
-
asChild: !0,
|
|
64
|
-
children: /* @__PURE__ */ y(t, {
|
|
65
|
-
type: "button",
|
|
66
|
-
variant: "outline",
|
|
67
|
-
className: "ttw:justify-start ttw:gap-2",
|
|
68
|
-
"aria-labelledby": `${R} ${z} ${B}`,
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ v(b, { className: "ttw:size-4" }),
|
|
71
|
-
/* @__PURE__ */ v("span", {
|
|
72
|
-
id: z,
|
|
73
|
-
children: E ?? L.paymentDatePlaceholder
|
|
74
|
-
}),
|
|
75
|
-
D ? /* @__PURE__ */ v(e, {
|
|
76
|
-
variant: "secondary",
|
|
77
|
-
children: L.today
|
|
78
|
-
}) : null
|
|
79
|
-
]
|
|
80
|
-
})
|
|
81
|
-
}), /* @__PURE__ */ v(f, {
|
|
82
|
-
align: "start",
|
|
83
|
-
className: "ttw:w-auto ttw:p-0",
|
|
84
|
-
children: /* @__PURE__ */ v(n, {
|
|
85
|
-
mode: "single",
|
|
86
|
-
selected: T,
|
|
87
|
-
onSelect: A
|
|
88
|
-
})
|
|
89
|
-
})] })
|
|
90
|
-
]
|
|
91
|
-
})]
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ y("div", {
|
|
94
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
95
|
-
children: [/* @__PURE__ */ v(u, {
|
|
96
|
-
htmlFor: V,
|
|
97
|
-
requirement: l.Optional,
|
|
98
|
-
labels: L.fieldMarkers,
|
|
99
|
-
children: L.comments
|
|
100
|
-
}), /* @__PURE__ */ v(h, {
|
|
101
|
-
id: V,
|
|
102
|
-
value: O,
|
|
103
|
-
placeholder: L.commentsPlaceholder,
|
|
104
|
-
onChange: (e) => j(e.target.value)
|
|
105
|
-
})]
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ y(o, {
|
|
110
|
-
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
111
|
-
children: [/* @__PURE__ */ v(t, {
|
|
112
|
-
type: "button",
|
|
113
|
-
variant: "outline",
|
|
114
|
-
onClick: N,
|
|
115
|
-
children: L.cancelButton
|
|
116
|
-
}), /* @__PURE__ */ v(t, {
|
|
117
|
-
type: "button",
|
|
118
|
-
"data-testid": F,
|
|
119
|
-
disabled: !T,
|
|
120
|
-
loading: k,
|
|
121
|
-
onClick: M,
|
|
122
|
-
children: L.confirmButton
|
|
123
|
-
})]
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
})
|
|
5
|
+
function c({ value: c, minDate: l, isToday: u, error: d, onChange: f, labels: p }) {
|
|
6
|
+
let m = a(), h = a();
|
|
7
|
+
return /* @__PURE__ */ s("div", {
|
|
8
|
+
className: "ttw:grid ttw:content-start ttw:gap-2",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ o(i, {
|
|
11
|
+
htmlFor: m,
|
|
12
|
+
requirement: r.Required,
|
|
13
|
+
labels: p.fieldMarkers,
|
|
14
|
+
children: p.label
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ o(e, {
|
|
17
|
+
id: m,
|
|
18
|
+
value: c,
|
|
19
|
+
onChange: f,
|
|
20
|
+
minDate: l,
|
|
21
|
+
placeholder: p.placeholder,
|
|
22
|
+
"aria-invalid": d ? !0 : void 0,
|
|
23
|
+
"aria-describedby": d || u ? h : void 0
|
|
24
|
+
}),
|
|
25
|
+
d ? /* @__PURE__ */ o(n, {
|
|
26
|
+
id: h,
|
|
27
|
+
children: d
|
|
28
|
+
}) : u ? /* @__PURE__ */ o(t, {
|
|
29
|
+
id: h,
|
|
30
|
+
children: p.today
|
|
31
|
+
}) : null
|
|
32
|
+
]
|
|
127
33
|
});
|
|
128
34
|
}
|
|
129
|
-
export {
|
|
35
|
+
export { c as PaymentDateField };
|