@tesouro/embedded-components-react 0.11.116 → 0.11.118
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
|
@@ -43,7 +43,7 @@ var n = {
|
|
|
43
43
|
electronicCommunication: "Electronic Communications Agreement",
|
|
44
44
|
acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
|
|
45
45
|
patriotAct: "USA PATRIOT Act disclosure.",
|
|
46
|
-
consentRequiredError: "
|
|
46
|
+
consentRequiredError: "Check this box to continue.",
|
|
47
47
|
companyStructureOptions: {
|
|
48
48
|
CORPORATION_PUBLIC: "Public corporation",
|
|
49
49
|
CORPORATION_PRIVATE: "Private corporation",
|
|
@@ -8,8 +8,8 @@ var t = {
|
|
|
8
8
|
firstName: "First name",
|
|
9
9
|
lastName: "Last name",
|
|
10
10
|
dateOfBirth: "Date of birth",
|
|
11
|
-
dateOfBirthPlaceholder: "
|
|
12
|
-
dateOfBirthHint: "
|
|
11
|
+
dateOfBirthPlaceholder: "Select date",
|
|
12
|
+
dateOfBirthHint: "Select a date of birth.",
|
|
13
13
|
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
14
14
|
dateOfBirthMinAgeError: "Must be at least 18 years old",
|
|
15
15
|
ssn: "SSN",
|
|
@@ -1,65 +1,60 @@
|
|
|
1
|
-
import { Badge as e,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { Badge as e, Heading as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { WidgetFrame as n } from "../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { APPLICATION_STATUS_CARD_LABELS_EN as r } from "./index14.js";
|
|
5
|
+
import { useEffect as i, useRef as a } from "react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
7
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js
|
|
6
|
-
var
|
|
7
|
-
Brand: "
|
|
8
|
+
var c = {
|
|
9
|
+
Brand: "info",
|
|
8
10
|
Warning: "warning",
|
|
9
|
-
Danger: "
|
|
10
|
-
|
|
11
|
-
[s.Brand]: "ttw:border-transparent ttw:bg-primary/10 ttw:text-primary",
|
|
12
|
-
[s.Warning]: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700",
|
|
13
|
-
[s.Danger]: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive"
|
|
11
|
+
Danger: "destructive",
|
|
12
|
+
Neutral: "neutral"
|
|
14
13
|
};
|
|
15
|
-
function l({ chipTone:
|
|
14
|
+
function l({ chipTone: c, labels: l, action: u, focusTitleOnMount: d = !1, className: f, testIds: p }) {
|
|
16
15
|
let { title: m, bankDisclosure: h, chipLabel: g, heading: _, body: v } = {
|
|
17
|
-
...
|
|
16
|
+
...r,
|
|
18
17
|
...l
|
|
19
|
-
}, y =
|
|
20
|
-
return
|
|
21
|
-
b.current
|
|
22
|
-
|
|
18
|
+
}, y = a(null), b = a(d);
|
|
19
|
+
return i(() => {
|
|
20
|
+
if (b.current) {
|
|
21
|
+
let e = y.current?.querySelector("h2");
|
|
22
|
+
e?.setAttribute("tabindex", "-1"), e?.focus();
|
|
23
|
+
}
|
|
24
|
+
}, []), /* @__PURE__ */ s(n, {
|
|
25
|
+
ref: y,
|
|
23
26
|
"data-testid": p?.root,
|
|
27
|
+
role: "region",
|
|
24
28
|
"aria-label": m,
|
|
25
|
-
|
|
29
|
+
title: m,
|
|
30
|
+
className: f,
|
|
31
|
+
bodyClassName: "ttw:items-start ttw:gap-3",
|
|
26
32
|
children: [
|
|
27
|
-
/* @__PURE__ */ o("
|
|
28
|
-
className: "ttw:
|
|
29
|
-
children:
|
|
30
|
-
|
|
31
|
-
tabIndex: -1,
|
|
32
|
-
className: "ttw:text-lg ttw:font-semibold ttw:outline-none",
|
|
33
|
-
children: m
|
|
34
|
-
}), h ? /* @__PURE__ */ a("p", {
|
|
35
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
36
|
-
children: h
|
|
37
|
-
}) : null]
|
|
38
|
-
}),
|
|
33
|
+
h ? /* @__PURE__ */ o("p", {
|
|
34
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
35
|
+
children: h
|
|
36
|
+
}) : null,
|
|
39
37
|
/* @__PURE__ */ o(e, {
|
|
40
38
|
"data-testid": p?.chip,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
children: [/* @__PURE__ */ a("span", {
|
|
44
|
-
"aria-hidden": "true",
|
|
45
|
-
className: "ttw:size-2 ttw:rounded-full ttw:bg-current"
|
|
46
|
-
}), g]
|
|
39
|
+
tone: c,
|
|
40
|
+
children: g
|
|
47
41
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ s("div", {
|
|
49
43
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
50
|
-
children: [_ ? /* @__PURE__ */
|
|
51
|
-
|
|
44
|
+
children: [_ ? /* @__PURE__ */ o(t, {
|
|
45
|
+
variant: "section",
|
|
46
|
+
level: 3,
|
|
52
47
|
children: _
|
|
53
|
-
}) : null, v.map((e) => /* @__PURE__ */
|
|
48
|
+
}) : null, v.map((e) => /* @__PURE__ */ o("p", {
|
|
54
49
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
55
50
|
children: e
|
|
56
51
|
}, e))]
|
|
57
52
|
}),
|
|
58
|
-
u ? /* @__PURE__ */
|
|
53
|
+
u ? /* @__PURE__ */ o("div", {
|
|
59
54
|
className: "ttw:pt-2",
|
|
60
55
|
children: u
|
|
61
56
|
}) : null
|
|
62
57
|
]
|
|
63
58
|
});
|
|
64
59
|
}
|
|
65
|
-
export {
|
|
60
|
+
export { r as APPLICATION_STATUS_CARD_LABELS_EN, l as ApplicationStatusCard, c as ApplicationStatusTone };
|
|
@@ -1,95 +1,101 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { ResultStepConfetti as
|
|
3
|
-
import { ResultStepFdicLogo as
|
|
4
|
-
import { ResultStepMailIcon as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { ArrowUpRightIcon as c } from "lucide-react";
|
|
1
|
+
import { Button as e, Heading as t, Spinner as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ResultStepConfetti as r } from "./index16.js";
|
|
3
|
+
import { ResultStepFdicLogo as i } from "./index17.js";
|
|
4
|
+
import { ResultStepMailIcon as a } from "./index18.js";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js
|
|
8
7
|
function l({ lead: e, email: t }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ c("div", {
|
|
10
9
|
className: "ttw:mb-2 ttw:w-[90%] ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:px-8 ttw:py-6 ttw:text-center",
|
|
11
|
-
children: [/* @__PURE__ */
|
|
10
|
+
children: [/* @__PURE__ */ s("p", {
|
|
12
11
|
className: "ttw:text-base ttw:font-medium ttw:leading-none",
|
|
13
12
|
children: e
|
|
14
|
-
}), /* @__PURE__ */
|
|
13
|
+
}), /* @__PURE__ */ s("p", {
|
|
15
14
|
className: "ttw:break-all ttw:text-lg ttw:font-semibold ttw:text-primary",
|
|
16
15
|
children: t
|
|
17
16
|
})]
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
function u({ line1: e, line2:
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
19
|
+
function u({ line1: e, line2: n }) {
|
|
20
|
+
return /* @__PURE__ */ c(t, {
|
|
21
|
+
level: 2,
|
|
22
|
+
variant: "page",
|
|
23
|
+
className: "ttw:mb-1 ttw:text-center",
|
|
23
24
|
children: [
|
|
24
25
|
e,
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
26
|
+
/* @__PURE__ */ s("br", {}),
|
|
27
|
+
n
|
|
27
28
|
]
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function d({ status:
|
|
31
|
-
return
|
|
31
|
+
function d({ status: t, isLoading: d, loadingMessage: f, headingLine1: p, headingLine2: m, body: h, followUpEmail: g, emailBoxLead: _, navigateToDashboardLabel: v, bankLogoSrc: y, bankLogoAlt: b, fdicDisclaimer: x, onNavigateToDashboard: S, testIds: C }) {
|
|
32
|
+
return d ? /* @__PURE__ */ c("div", {
|
|
33
|
+
role: "status",
|
|
34
|
+
"aria-busy": "true",
|
|
32
35
|
className: "ttw:flex ttw:min-h-[300px] ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-6 ttw:text-center",
|
|
33
|
-
"data-testid":
|
|
34
|
-
children: [/* @__PURE__ */
|
|
36
|
+
"data-testid": C?.processing,
|
|
37
|
+
children: [/* @__PURE__ */ s(n, {
|
|
38
|
+
"aria-hidden": "true",
|
|
39
|
+
className: "ttw:size-[65px] ttw:text-primary"
|
|
40
|
+
}), /* @__PURE__ */ s("p", {
|
|
35
41
|
className: "ttw:text-xl ttw:font-normal",
|
|
36
|
-
children:
|
|
42
|
+
children: f
|
|
37
43
|
})]
|
|
38
|
-
}) : /* @__PURE__ */
|
|
44
|
+
}) : /* @__PURE__ */ c("div", {
|
|
39
45
|
className: "ttw:mb-2 ttw:flex ttw:flex-col ttw:items-center ttw:p-8 ttw:text-center",
|
|
40
|
-
"data-testid":
|
|
46
|
+
"data-testid": t === "success" ? C?.success ?? "bank-account-onboarding-result-success" : C?.pending ?? "bank-account-onboarding-result-pending",
|
|
41
47
|
children: [
|
|
42
|
-
|
|
48
|
+
t === "pending" ? /* @__PURE__ */ s("div", {
|
|
43
49
|
className: "ttw:mb-2",
|
|
44
|
-
children: /* @__PURE__ */
|
|
50
|
+
children: /* @__PURE__ */ s(a, {})
|
|
45
51
|
}) : null,
|
|
46
|
-
|
|
52
|
+
y ? /* @__PURE__ */ s("div", {
|
|
47
53
|
className: "ttw:mb-2 ttw:flex ttw:justify-center",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
src:
|
|
50
|
-
alt:
|
|
54
|
+
children: /* @__PURE__ */ s("img", {
|
|
55
|
+
src: y,
|
|
56
|
+
alt: b,
|
|
51
57
|
className: "ttw:h-[50px] ttw:w-auto ttw:object-contain"
|
|
52
58
|
})
|
|
53
59
|
}) : null,
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
line1:
|
|
58
|
-
line2:
|
|
60
|
+
t === "success" ? /* @__PURE__ */ c(o, { children: [
|
|
61
|
+
/* @__PURE__ */ s(r, {}),
|
|
62
|
+
/* @__PURE__ */ s(u, {
|
|
63
|
+
line1: p,
|
|
64
|
+
line2: m
|
|
59
65
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ s("p", {
|
|
61
67
|
className: "ttw:mb-2 ttw:text-center ttw:text-base",
|
|
62
|
-
children:
|
|
68
|
+
children: h
|
|
63
69
|
}),
|
|
64
70
|
/* @__PURE__ */ s(e, {
|
|
65
71
|
type: "button",
|
|
66
72
|
size: "lg",
|
|
67
73
|
className: "ttw:mb-1 ttw:w-fit ttw:px-4 ttw:py-2",
|
|
68
|
-
"data-testid":
|
|
69
|
-
onClick:
|
|
70
|
-
children:
|
|
74
|
+
"data-testid": C?.dashboardButton,
|
|
75
|
+
onClick: S,
|
|
76
|
+
children: v
|
|
71
77
|
})
|
|
72
78
|
] }) : null,
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
line1:
|
|
76
|
-
line2:
|
|
79
|
+
t === "pending" ? /* @__PURE__ */ c(o, { children: [
|
|
80
|
+
/* @__PURE__ */ s(u, {
|
|
81
|
+
line1: p,
|
|
82
|
+
line2: m
|
|
77
83
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ s("p", {
|
|
79
85
|
className: "ttw:mb-1 ttw:text-center ttw:text-base",
|
|
80
|
-
children:
|
|
86
|
+
children: h
|
|
81
87
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
lead:
|
|
84
|
-
email:
|
|
88
|
+
/* @__PURE__ */ s(l, {
|
|
89
|
+
lead: _,
|
|
90
|
+
email: g
|
|
85
91
|
})
|
|
86
92
|
] }) : null,
|
|
87
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ c("div", {
|
|
88
94
|
className: "ttw:mt-1 ttw:flex ttw:items-center ttw:gap-1",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ s("p", {
|
|
90
96
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
91
|
-
children:
|
|
92
|
-
}), /* @__PURE__ */
|
|
97
|
+
children: x
|
|
98
|
+
}), /* @__PURE__ */ s(i, {})]
|
|
93
99
|
})
|
|
94
100
|
]
|
|
95
101
|
});
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
CHANGED
|
@@ -1,72 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Trash2Icon as a } from "lucide-react";
|
|
1
|
+
import { ConfirmDialog as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { Trash2Icon as i } from "lucide-react";
|
|
5
4
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
children: s.deleteOwnerHeading
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ i("p", {
|
|
37
|
-
id: "additional-owner-delete-description",
|
|
38
|
-
className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground",
|
|
39
|
-
children: [
|
|
40
|
-
s.deleteOwnerPromptBeforeName,
|
|
41
|
-
" ",
|
|
42
|
-
/* @__PURE__ */ r("span", {
|
|
43
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
44
|
-
children: o
|
|
45
|
-
}),
|
|
46
|
-
" ",
|
|
47
|
-
s.deleteOwnerPromptAfterName
|
|
48
|
-
]
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
}), /* @__PURE__ */ i("div", {
|
|
52
|
-
className: "ttw:flex ttw:justify-center ttw:gap-3",
|
|
53
|
-
children: [/* @__PURE__ */ r(e, {
|
|
54
|
-
ref: f,
|
|
55
|
-
type: "button",
|
|
56
|
-
variant: "outline",
|
|
57
|
-
onClick: l,
|
|
58
|
-
disabled: c,
|
|
59
|
-
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
60
|
-
children: s.cancel
|
|
61
|
-
}), /* @__PURE__ */ r(e, {
|
|
62
|
-
type: "button",
|
|
63
|
-
variant: "destructive",
|
|
64
|
-
onClick: u,
|
|
65
|
-
disabled: c,
|
|
66
|
-
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
67
|
-
children: s.deleteOwnerConfirm
|
|
68
|
-
})]
|
|
69
|
-
})]
|
|
5
|
+
function a({ ownerName: a, labels: o, isDisabled: s, onCancel: c, onConfirm: l, testIds: u }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
"data-testid": u?.root,
|
|
8
|
+
children: /* @__PURE__ */ n(e, {
|
|
9
|
+
open: !0,
|
|
10
|
+
onOpenChange: (e) => {
|
|
11
|
+
!e && !s && c();
|
|
12
|
+
},
|
|
13
|
+
title: o.deleteOwnerHeading,
|
|
14
|
+
description: /* @__PURE__ */ r(t, { children: [
|
|
15
|
+
o.deleteOwnerPromptBeforeName,
|
|
16
|
+
" ",
|
|
17
|
+
/* @__PURE__ */ n("strong", { children: a }),
|
|
18
|
+
" ",
|
|
19
|
+
o.deleteOwnerPromptAfterName
|
|
20
|
+
] }),
|
|
21
|
+
icon: /* @__PURE__ */ n(i, {}),
|
|
22
|
+
destructive: !0,
|
|
23
|
+
loading: s,
|
|
24
|
+
confirmDisabled: s,
|
|
25
|
+
onConfirm: l,
|
|
26
|
+
labels: {
|
|
27
|
+
cancel: o.cancel,
|
|
28
|
+
confirm: o.deleteOwnerConfirm,
|
|
29
|
+
close: o.close
|
|
30
|
+
},
|
|
31
|
+
testIds: { content: u?.content }
|
|
32
|
+
})
|
|
70
33
|
});
|
|
71
34
|
}
|
|
72
|
-
export {
|
|
35
|
+
export { a as AdditionalOwnerDeleteConfirmation };
|
|
@@ -13,13 +13,13 @@ var h = "ttw:w-full";
|
|
|
13
13
|
function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x }) {
|
|
14
14
|
let S = d(n.state.onBlur), C = d(n.companyStructure.onBlur);
|
|
15
15
|
return /* @__PURE__ */ p("section", {
|
|
16
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
16
|
+
className: "ttw:@container/form ttw:flex ttw:max-w-[720px] ttw:flex-col ttw:gap-3",
|
|
17
17
|
"data-testid": g?.root,
|
|
18
18
|
children: [/* @__PURE__ */ f("p", {
|
|
19
19
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
20
20
|
children: _.requiredFieldsNote
|
|
21
21
|
}), /* @__PURE__ */ p("div", {
|
|
22
|
-
className: "ttw:grid ttw:grid-cols-1 ttw:gap-x-4 ttw:gap-y-3 ttw:
|
|
22
|
+
className: "ttw:grid ttw:grid-cols-1 ttw:gap-x-4 ttw:gap-y-3 ttw:@md/form:grid-cols-2",
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ p("div", {
|
|
25
25
|
className: "ttw:min-w-0",
|
|
@@ -124,7 +124,7 @@ function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y,
|
|
|
124
124
|
]
|
|
125
125
|
}),
|
|
126
126
|
/* @__PURE__ */ p("div", {
|
|
127
|
-
className: "ttw:
|
|
127
|
+
className: "ttw:@md/form:col-span-2",
|
|
128
128
|
children: [
|
|
129
129
|
/* @__PURE__ */ p(m, {
|
|
130
130
|
htmlFor: "businessAddress",
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DescriptionList as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
children: i
|
|
10
|
-
}), /* @__PURE__ */ n(e, {
|
|
11
|
-
component: "span",
|
|
12
|
-
variant: "body2",
|
|
13
|
-
"data-testid": o,
|
|
14
|
-
className: "ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground",
|
|
15
|
-
children: a
|
|
16
|
-
})] }) : null;
|
|
17
|
-
}
|
|
18
|
-
function a({ rows: e, testIds: t }) {
|
|
19
|
-
return /* @__PURE__ */ n("div", {
|
|
20
|
-
className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
|
|
21
|
-
"data-testid": t?.root,
|
|
22
|
-
children: e.map((e) => /* @__PURE__ */ n(i, {
|
|
4
|
+
function n({ rows: n, testIds: r }) {
|
|
5
|
+
return /* @__PURE__ */ t(e, {
|
|
6
|
+
variant: "form-review",
|
|
7
|
+
"data-testid": r?.root,
|
|
8
|
+
items: n.filter((e) => e.value).map((e) => ({
|
|
23
9
|
label: e.label,
|
|
24
|
-
value:
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
value: /* @__PURE__ */ t("span", {
|
|
11
|
+
"data-testid": e.testId,
|
|
12
|
+
className: "ttw:whitespace-pre-line",
|
|
13
|
+
children: e.value
|
|
14
|
+
})
|
|
15
|
+
}))
|
|
27
16
|
});
|
|
28
17
|
}
|
|
29
|
-
export {
|
|
18
|
+
export { n as BusinessDetailsSummary };
|
|
@@ -1,54 +1,51 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { BUSINESS_DETAILS_PANEL_LABELS_EN as
|
|
3
|
-
import { BusinessDetailsEditForm as
|
|
4
|
-
import { BusinessDetailsSummary as
|
|
5
|
-
import { jsx as
|
|
1
|
+
import { Button as e, Heading as t, Separator as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as r } from "./index23.js";
|
|
3
|
+
import { BusinessDetailsEditForm as i } from "./index21.js";
|
|
4
|
+
import { BusinessDetailsSummary as a } from "./index22.js";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
7
|
+
function c({ isEditing: c, onEditClick: l, summaryRows: u, editFields: d, labels: f, isDisabled: p, taxIdRequired: m, taxIdPlaceholder: h, taxIdHelpText: g, testIds: _ }) {
|
|
8
|
+
let v = {
|
|
9
|
+
...r,
|
|
10
|
+
...f
|
|
11
11
|
};
|
|
12
|
-
return
|
|
13
|
-
fields:
|
|
14
|
-
labels:
|
|
15
|
-
isDisabled:
|
|
16
|
-
taxIdRequired:
|
|
17
|
-
taxIdPlaceholder:
|
|
18
|
-
taxIdHelpText:
|
|
19
|
-
testIds:
|
|
20
|
-
}) : /* @__PURE__ */
|
|
21
|
-
"data-testid":
|
|
12
|
+
return c ? /* @__PURE__ */ o(i, {
|
|
13
|
+
fields: d,
|
|
14
|
+
labels: v,
|
|
15
|
+
isDisabled: p,
|
|
16
|
+
taxIdRequired: m,
|
|
17
|
+
taxIdPlaceholder: h,
|
|
18
|
+
taxIdHelpText: g,
|
|
19
|
+
testIds: _?.editForm
|
|
20
|
+
}) : /* @__PURE__ */ s("section", {
|
|
21
|
+
"data-testid": _?.root,
|
|
22
22
|
className: "ttw:relative ttw:min-w-0",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: "ttw:mb-3
|
|
28
|
-
children:
|
|
24
|
+
/* @__PURE__ */ o(t, {
|
|
25
|
+
variant: "section",
|
|
26
|
+
level: 3,
|
|
27
|
+
className: "ttw:mb-3",
|
|
28
|
+
children: v.panelTitle
|
|
29
29
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
/* @__PURE__ */ o(n, { className: "ttw:mb-3" }),
|
|
31
|
+
/* @__PURE__ */ o(a, {
|
|
32
|
+
rows: u,
|
|
33
|
+
testIds: _?.summary
|
|
33
34
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
rows: l,
|
|
36
|
-
testIds: g?.summary
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ a("div", {
|
|
35
|
+
/* @__PURE__ */ o("div", {
|
|
39
36
|
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
40
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ o(e, {
|
|
41
38
|
type: "button",
|
|
42
39
|
variant: "secondary",
|
|
43
40
|
size: "sm",
|
|
44
|
-
onClick:
|
|
45
|
-
disabled:
|
|
46
|
-
"aria-label":
|
|
47
|
-
"data-testid":
|
|
48
|
-
children:
|
|
41
|
+
onClick: l,
|
|
42
|
+
disabled: p,
|
|
43
|
+
"aria-label": v.editButtonAriaLabel,
|
|
44
|
+
"data-testid": _?.editButton,
|
|
45
|
+
children: v.editButton
|
|
49
46
|
})
|
|
50
47
|
})
|
|
51
48
|
]
|
|
52
49
|
});
|
|
53
50
|
}
|
|
54
|
-
export {
|
|
51
|
+
export { r as BUSINESS_DETAILS_PANEL_LABELS_EN, c as BusinessDetailsPanel };
|