@tesouro/embedded-components-react 0.11.116 → 0.11.119
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 +81 -120
- package/dist/index.d.ts +4 -0
- package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +91 -88
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +41 -59
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +163 -160
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +382 -275
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +56 -50
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +32 -69
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +36 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +120 -116
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +41 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +96 -115
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +35 -57
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +266 -259
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +51 -55
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +42 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +69 -70
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +2 -2
- 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/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +51 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +84 -87
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +35 -21
- package/dist/packages/shared-ui-shadcn/dist/index.js +29 -85
- package/package.json +1 -1
|
@@ -1,124 +1,105 @@
|
|
|
1
|
-
import { Checkbox as e,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Checkbox as e, Heading as t, Separator as n, Typography as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ConsentBlock as i } from "../../../shared/ui/dist/lib/ConsentBlock/ConsentBlock.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { BUSINESS_DETAILS_LABELS_EN as a, interpolateBankName as o } from "./index12.js";
|
|
5
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
target: "_blank",
|
|
10
|
-
rel: "noopener noreferrer",
|
|
11
|
-
className: o,
|
|
12
|
-
children: t
|
|
13
|
-
}) : /* @__PURE__ */ i("span", {
|
|
14
|
-
className: o,
|
|
15
|
-
children: t
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function c({ value: o, onChange: c, isSubmitting: l, showErrors: u = !1, labels: d, bankName: f, termsHref: p, privacyHref: m, electronicCommunicationHref: h, patriotActHref: g, testIds: _ }) {
|
|
19
|
-
let v = {
|
|
20
|
-
...n,
|
|
21
|
-
...d,
|
|
7
|
+
function u({ value: u, onChange: d, isSubmitting: f, showErrors: p = !1, labels: m, bankName: h, termsHref: g, privacyHref: _, electronicCommunicationHref: v, patriotActHref: y, testIds: b }) {
|
|
8
|
+
let x = {
|
|
9
|
+
...a,
|
|
10
|
+
...m,
|
|
22
11
|
companyStructureOptions: {
|
|
23
|
-
...
|
|
24
|
-
...
|
|
12
|
+
...a.companyStructureOptions,
|
|
13
|
+
...m?.companyStructureOptions ?? {}
|
|
25
14
|
}
|
|
26
|
-
},
|
|
27
|
-
...
|
|
15
|
+
}, S = (e, t) => d({
|
|
16
|
+
...u,
|
|
28
17
|
[e]: t
|
|
29
|
-
}),
|
|
30
|
-
return /* @__PURE__ */
|
|
18
|
+
}), C = p && u.isAuthorized !== !0, w = p && !u.isCheckboxChecked;
|
|
19
|
+
return /* @__PURE__ */ l("div", {
|
|
31
20
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
32
|
-
children: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})]
|
|
44
|
-
}), /* @__PURE__ */ a("div", {
|
|
45
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
46
|
-
children: [/* @__PURE__ */ a("div", {
|
|
47
|
-
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
48
|
-
children: [/* @__PURE__ */ i(e, {
|
|
49
|
-
id: "isAuthorized",
|
|
50
|
-
"data-testid": _?.authorizationCheckbox,
|
|
51
|
-
checked: o.isAuthorized === !0,
|
|
52
|
-
onCheckedChange: (e) => y("isAuthorized", e === !0 || null),
|
|
53
|
-
disabled: l,
|
|
54
|
-
className: "ttw:mt-0.5",
|
|
55
|
-
"aria-labelledby": "bank-account-onboarding-authorization-text",
|
|
56
|
-
"aria-invalid": b || void 0,
|
|
57
|
-
"aria-describedby": b ? "bank-account-onboarding-authorization-error" : void 0
|
|
58
|
-
}), /* @__PURE__ */ a("div", {
|
|
59
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
60
|
-
children: [/* @__PURE__ */ i("p", {
|
|
61
|
-
id: "bank-account-onboarding-authorization-text",
|
|
62
|
-
className: "ttw:text-sm ttw:font-normal ttw:leading-relaxed ttw:text-foreground",
|
|
63
|
-
children: v.isAuthorizedQuestion
|
|
64
|
-
}), b ? /* @__PURE__ */ i("p", {
|
|
65
|
-
id: "bank-account-onboarding-authorization-error",
|
|
66
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
67
|
-
children: v.consentRequiredError
|
|
68
|
-
}) : null]
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ l("div", {
|
|
23
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
24
|
+
children: [/* @__PURE__ */ c(t, {
|
|
25
|
+
variant: "section",
|
|
26
|
+
level: 3,
|
|
27
|
+
children: x.disclosuresHeading
|
|
28
|
+
}), /* @__PURE__ */ c(r, {
|
|
29
|
+
variant: "body2",
|
|
30
|
+
className: "ttw:text-muted-foreground",
|
|
31
|
+
children: x.disclosuresSubheading
|
|
69
32
|
})]
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ c(n, {}),
|
|
35
|
+
/* @__PURE__ */ l("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
37
|
+
children: [/* @__PURE__ */ l("div", {
|
|
38
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
39
|
+
children: [/* @__PURE__ */ c(e, {
|
|
40
|
+
id: "isAuthorized",
|
|
41
|
+
"data-testid": b?.authorizationCheckbox,
|
|
42
|
+
checked: u.isAuthorized === !0,
|
|
43
|
+
onCheckedChange: (e) => S("isAuthorized", e === !0 || null),
|
|
44
|
+
disabled: f,
|
|
45
|
+
className: "ttw:mt-0.5",
|
|
46
|
+
"aria-labelledby": "bank-account-onboarding-authorization-text",
|
|
47
|
+
"aria-invalid": C || void 0,
|
|
48
|
+
"aria-describedby": C ? "bank-account-onboarding-authorization-error" : void 0
|
|
49
|
+
}), /* @__PURE__ */ l("div", {
|
|
50
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
51
|
+
children: [/* @__PURE__ */ c("p", {
|
|
52
|
+
id: "bank-account-onboarding-authorization-text",
|
|
53
|
+
className: "ttw:text-sm ttw:font-normal ttw:leading-relaxed ttw:text-foreground",
|
|
54
|
+
children: x.isAuthorizedQuestion
|
|
55
|
+
}), C ? /* @__PURE__ */ c("p", {
|
|
56
|
+
id: "bank-account-onboarding-authorization-error",
|
|
57
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
58
|
+
children: x.consentRequiredError
|
|
59
|
+
}) : null]
|
|
60
|
+
})]
|
|
61
|
+
}), /* @__PURE__ */ c(i, {
|
|
62
|
+
links: [
|
|
63
|
+
{
|
|
64
|
+
label: x.termsOfUse,
|
|
65
|
+
href: g
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: x.privacyPolicy,
|
|
69
|
+
href: _
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: x.electronicCommunication,
|
|
73
|
+
href: v
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: x.patriotAct.replace(/\.\s*$/, ""),
|
|
77
|
+
href: y
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
agreement: /* @__PURE__ */ l(s, { children: [
|
|
81
|
+
/* @__PURE__ */ c("span", {
|
|
82
|
+
className: "ttw:font-semibold",
|
|
83
|
+
children: x.disclosureAgreementLead
|
|
84
|
+
}),
|
|
85
|
+
" ",
|
|
86
|
+
o(x.acceptDisclosuresPrefix, h),
|
|
87
|
+
x.termsOfUse,
|
|
88
|
+
x.acceptDisclosuresTermsPrivacyJoin,
|
|
89
|
+
x.privacyPolicy,
|
|
90
|
+
o(x.acceptDisclosuresAfterPrivacy, h),
|
|
91
|
+
x.electronicCommunication,
|
|
92
|
+
o(x.acceptDisclosuresAfterElectronic, h),
|
|
93
|
+
x.patriotAct
|
|
94
|
+
] }),
|
|
95
|
+
checked: u.isCheckboxChecked,
|
|
96
|
+
onCheckedChange: (e) => S("isCheckboxChecked", e),
|
|
97
|
+
disabled: f,
|
|
98
|
+
error: w ? x.consentRequiredError : void 0,
|
|
99
|
+
testIds: { checkbox: b?.disclosureCheckbox }
|
|
119
100
|
})]
|
|
120
|
-
})
|
|
121
|
-
|
|
101
|
+
})
|
|
102
|
+
]
|
|
122
103
|
});
|
|
123
104
|
}
|
|
124
|
-
export {
|
|
105
|
+
export { u as BusinessDisclosuresSection };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldError as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
3
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js
|
|
3
|
-
function
|
|
4
|
+
function n(e) {
|
|
4
5
|
return `${e}-error`;
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
-
let i = [r,
|
|
7
|
+
function r(e, t, r) {
|
|
8
|
+
let i = [r, t ? n(e) : void 0].filter(Boolean);
|
|
8
9
|
return {
|
|
9
|
-
"aria-invalid":
|
|
10
|
+
"aria-invalid": t ? !0 : void 0,
|
|
10
11
|
"aria-describedby": i.length > 0 ? i.join(" ") : void 0
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
id:
|
|
16
|
-
className: "ttw:mt-1
|
|
17
|
-
|
|
18
|
-
children: r
|
|
14
|
+
function i({ fieldId: r, error: i }) {
|
|
15
|
+
return i ? /* @__PURE__ */ t(e, {
|
|
16
|
+
id: n(r),
|
|
17
|
+
className: "ttw:mt-1",
|
|
18
|
+
children: i
|
|
19
19
|
}) : null;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function a(e) {
|
|
22
22
|
return {
|
|
23
23
|
onOpenChange: (t) => {
|
|
24
24
|
t || e?.();
|
|
@@ -28,10 +28,10 @@ function i(e) {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function o(e) {
|
|
32
32
|
return (t) => {
|
|
33
33
|
let n = t.relatedTarget;
|
|
34
34
|
n instanceof Node && t.currentTarget.contains(n) || e?.();
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
export {
|
|
37
|
+
export { i as FieldError, r as fieldErrorAria, n as fieldErrorId, o as onCompositeBlur, a as selectBlurHandlers };
|
|
@@ -1,81 +1,59 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { APPLICATION_REVIEW_LABELS_EN as
|
|
3
|
-
import {
|
|
4
|
-
import { Pen as s } from "lucide-react";
|
|
1
|
+
import { Button as e, DescriptionList as t, Heading as n, Separator as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { APPLICATION_REVIEW_LABELS_EN as a } from "./index30.js";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
4
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js
|
|
6
|
-
function c({ sections:
|
|
5
|
+
function c({ sections: c, isDisabled: l, labels: u, testIds: d }) {
|
|
7
6
|
let f = {
|
|
8
|
-
...
|
|
7
|
+
...a,
|
|
9
8
|
...u
|
|
10
9
|
};
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ o("div", {
|
|
12
11
|
className: "ttw:flex ttw:flex-col ttw:gap-8",
|
|
13
12
|
"data-testid": d?.root,
|
|
14
|
-
children:
|
|
15
|
-
let { rows:
|
|
16
|
-
return /* @__PURE__ */
|
|
13
|
+
children: c.map((a) => {
|
|
14
|
+
let { rows: c } = a, u = d?.sections?.[a.id];
|
|
15
|
+
return /* @__PURE__ */ s("section", {
|
|
17
16
|
"data-testid": u?.root,
|
|
18
17
|
className: "ttw:min-w-0",
|
|
19
18
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ s("div", {
|
|
21
20
|
className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
children: n.title
|
|
21
|
+
children: [/* @__PURE__ */ o(n, {
|
|
22
|
+
variant: "section",
|
|
23
|
+
level: 3,
|
|
24
|
+
children: a.title
|
|
27
25
|
}), /* @__PURE__ */ o(e, {
|
|
28
26
|
type: "button",
|
|
29
|
-
variant: "
|
|
27
|
+
variant: "secondary",
|
|
30
28
|
size: "sm",
|
|
31
|
-
onClick:
|
|
32
|
-
disabled:
|
|
33
|
-
"aria-label":
|
|
29
|
+
onClick: a.onEdit,
|
|
30
|
+
disabled: l,
|
|
31
|
+
"aria-label": a.editAriaLabel,
|
|
34
32
|
"data-testid": u?.editButton,
|
|
35
|
-
children:
|
|
36
|
-
className: "ttw:size-4",
|
|
37
|
-
"aria-hidden": !0
|
|
38
|
-
}), f.editButton]
|
|
33
|
+
children: f.editButton
|
|
39
34
|
})]
|
|
40
35
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
"aria-hidden": !0
|
|
44
|
-
}),
|
|
45
|
-
r.length === 0 ? /* @__PURE__ */ a(t, {
|
|
36
|
+
/* @__PURE__ */ o(r, { className: "ttw:mb-3" }),
|
|
37
|
+
c.length === 0 ? /* @__PURE__ */ o(i, {
|
|
46
38
|
variant: "body2",
|
|
47
39
|
className: "ttw:text-muted-foreground",
|
|
48
40
|
children: f.emptySection
|
|
49
|
-
}) : /* @__PURE__ */ o(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
})] }) : null, r.map((e, t) => /* @__PURE__ */ a(l, { row: e }, `${t}-${e.label}`))]
|
|
41
|
+
}) : /* @__PURE__ */ o(t, {
|
|
42
|
+
variant: "form-review",
|
|
43
|
+
items: [...a.columnHeaders ? [{
|
|
44
|
+
label: a.columnHeaders.label,
|
|
45
|
+
value: a.columnHeaders.value
|
|
46
|
+
}] : [], ...c.map((e) => ({
|
|
47
|
+
label: e.label,
|
|
48
|
+
value: /* @__PURE__ */ o("span", {
|
|
49
|
+
className: e.valueMonospace ? "ttw:font-mono ttw:whitespace-pre-line" : "ttw:whitespace-pre-line",
|
|
50
|
+
children: e.value
|
|
51
|
+
})
|
|
52
|
+
}))]
|
|
62
53
|
})
|
|
63
54
|
]
|
|
64
|
-
},
|
|
55
|
+
}, a.id);
|
|
65
56
|
})
|
|
66
57
|
});
|
|
67
58
|
}
|
|
68
|
-
|
|
69
|
-
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(t, {
|
|
70
|
-
component: "span",
|
|
71
|
-
variant: "body2",
|
|
72
|
-
className: "ttw:text-muted-foreground",
|
|
73
|
-
children: e.label
|
|
74
|
-
}), /* @__PURE__ */ a(t, {
|
|
75
|
-
component: "span",
|
|
76
|
-
variant: "body2",
|
|
77
|
-
className: n("ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground", e.valueMonospace && "ttw:font-mono"),
|
|
78
|
-
children: e.value
|
|
79
|
-
})] });
|
|
80
|
-
}
|
|
81
|
-
export { r as APPLICATION_REVIEW_LABELS_EN, c as ApplicationReview };
|
|
59
|
+
export { a as APPLICATION_REVIEW_LABELS_EN, c as ApplicationReview };
|
|
@@ -1,65 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DELETE_APPLICATION_DIALOG_LABELS_EN as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Trash2Icon as d } from "lucide-react";
|
|
1
|
+
import { ConfirmDialog as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { DELETE_APPLICATION_DIALOG_LABELS_EN as t } from "./index32.js";
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Trash2Icon as a } from "lucide-react";
|
|
6
5
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
open:
|
|
6
|
+
function o({ open: o, onConfirm: s, onCancel: c, isDeleting: l = !1, labels: u, testIds: d }) {
|
|
7
|
+
let f = {
|
|
8
|
+
...t,
|
|
9
|
+
...u
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ r(e, {
|
|
12
|
+
open: o,
|
|
14
13
|
onOpenChange: (e) => {
|
|
15
|
-
!e && !
|
|
14
|
+
!e && !l && c();
|
|
16
15
|
},
|
|
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
|
-
}), /* @__PURE__ */ u(r, {
|
|
43
|
-
className: "ttw:sm:justify-center",
|
|
44
|
-
children: [/* @__PURE__ */ l(o, {
|
|
45
|
-
ref: y,
|
|
46
|
-
type: "button",
|
|
47
|
-
variant: "outline",
|
|
48
|
-
onClick: m,
|
|
49
|
-
disabled: h,
|
|
50
|
-
"data-testid": _?.cancel,
|
|
51
|
-
children: v.keepEditingButton
|
|
52
|
-
}), /* @__PURE__ */ l(o, {
|
|
53
|
-
type: "button",
|
|
54
|
-
variant: "destructive",
|
|
55
|
-
loading: h,
|
|
56
|
-
disabled: h,
|
|
57
|
-
onClick: p,
|
|
58
|
-
"data-testid": _?.confirm,
|
|
59
|
-
children: v.deleteButton
|
|
60
|
-
})]
|
|
61
|
-
})]
|
|
62
|
-
})
|
|
16
|
+
title: f.title,
|
|
17
|
+
description: /* @__PURE__ */ i(n, { children: [
|
|
18
|
+
f.descriptionBeforeEmphasis,
|
|
19
|
+
/* @__PURE__ */ r("strong", {
|
|
20
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
21
|
+
children: f.descriptionEmphasis
|
|
22
|
+
}),
|
|
23
|
+
f.descriptionAfterEmphasis
|
|
24
|
+
] }),
|
|
25
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
26
|
+
destructive: !0,
|
|
27
|
+
loading: l,
|
|
28
|
+
confirmDisabled: l,
|
|
29
|
+
onConfirm: s,
|
|
30
|
+
labels: {
|
|
31
|
+
confirm: f.deleteButton,
|
|
32
|
+
cancel: f.keepEditingButton,
|
|
33
|
+
close: f.close
|
|
34
|
+
},
|
|
35
|
+
testIds: {
|
|
36
|
+
content: d?.root,
|
|
37
|
+
cancel: d?.cancel,
|
|
38
|
+
confirm: d?.confirm
|
|
39
|
+
}
|
|
63
40
|
});
|
|
64
41
|
}
|
|
65
|
-
export {
|
|
42
|
+
export { t as DELETE_APPLICATION_DIALOG_LABELS_EN, o as DeleteApplicationDialog };
|
|
@@ -1,45 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { APPLICATION_DELETED_SCREEN_LABELS_EN as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { CircleCheckIcon as
|
|
1
|
+
import { ResultScreen as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { APPLICATION_DELETED_SCREEN_LABELS_EN as t } from "./index34.js";
|
|
3
|
+
import { useEffect as n, useRef as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { CircleCheckIcon as a } from "lucide-react";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
},
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
className: "ttw:text-xl ttw:font-semibold ttw:outline-none",
|
|
30
|
-
children: f.title
|
|
31
|
-
}), /* @__PURE__ */ a("p", {
|
|
32
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
33
|
-
children: f.body
|
|
34
|
-
})]
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ a(e, {
|
|
37
|
-
type: "button",
|
|
38
|
-
onClick: c,
|
|
39
|
-
"data-testid": d?.startNewApplication,
|
|
40
|
-
children: f.startNewApplicationButton
|
|
41
|
-
})
|
|
42
|
-
]
|
|
7
|
+
function o({ onStartNewApplication: o, labels: s, className: c, testIds: l }) {
|
|
8
|
+
let u = {
|
|
9
|
+
...t,
|
|
10
|
+
...s
|
|
11
|
+
}, d = r(null);
|
|
12
|
+
return n(() => {
|
|
13
|
+
let e = d.current?.querySelector("h2");
|
|
14
|
+
e?.setAttribute("tabindex", "-1"), e?.focus();
|
|
15
|
+
}, []), /* @__PURE__ */ i("div", {
|
|
16
|
+
ref: d,
|
|
17
|
+
role: "region",
|
|
18
|
+
"aria-label": u.title,
|
|
19
|
+
"data-testid": l?.root,
|
|
20
|
+
className: c,
|
|
21
|
+
children: /* @__PURE__ */ i(e, {
|
|
22
|
+
icon: /* @__PURE__ */ i(a, {}),
|
|
23
|
+
title: u.title,
|
|
24
|
+
description: u.body,
|
|
25
|
+
onDone: o,
|
|
26
|
+
labels: { done: u.startNewApplicationButton },
|
|
27
|
+
testIds: { done: l?.startNewApplication }
|
|
28
|
+
})
|
|
43
29
|
});
|
|
44
30
|
}
|
|
45
|
-
export {
|
|
31
|
+
export { t as APPLICATION_DELETED_SCREEN_LABELS_EN, o as ApplicationDeletedScreen };
|