@tesouro/embedded-components-react 0.11.114 → 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 -125
- package/dist/index.d.ts +11 -2
- package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
- package/dist/lib/ReceivablesWidget.d.ts +7 -2
- package/dist/lib/WidgetSuite.d.ts +7 -2
- 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/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +7 -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 +38 -101
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
CHANGED
|
@@ -1,82 +1,78 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e, Heading as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as r } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { AdditionalOwnerFieldsGrid as i } from "./index4.js";
|
|
5
|
+
import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
7
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
"aria-
|
|
11
|
-
|
|
8
|
+
function d({ heading: d, submitLabel: f, editor: p, isDisabled: m, labels: h, onDelete: g, testIds: _ }) {
|
|
9
|
+
let v = o(), y = s(null), [b, x] = c(0);
|
|
10
|
+
return a(() => {
|
|
11
|
+
b > 0 && y.current?.querySelector("[aria-invalid=\"true\"]")?.focus();
|
|
12
|
+
}, [b]), /* @__PURE__ */ u("section", {
|
|
13
|
+
ref: y,
|
|
14
|
+
"aria-labelledby": v,
|
|
15
|
+
"data-testid": _?.root,
|
|
12
16
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
|
|
13
17
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
id:
|
|
18
|
+
/* @__PURE__ */ l(t, {
|
|
19
|
+
variant: "subsection",
|
|
20
|
+
level: 4,
|
|
21
|
+
id: v,
|
|
18
22
|
tabIndex: -1,
|
|
19
23
|
"data-owner-panel-heading": "",
|
|
20
24
|
"data-needs-attention": "",
|
|
21
25
|
className: "ttw:font-semibold ttw:text-foreground",
|
|
22
|
-
children:
|
|
26
|
+
children: d
|
|
23
27
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ l(n, {
|
|
25
29
|
variant: "body2",
|
|
26
30
|
className: "ttw:text-muted-foreground",
|
|
27
|
-
children:
|
|
31
|
+
children: h.allFieldsRequiredNote
|
|
28
32
|
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-xl ttw:border ttw:border-destructive/30 ttw:bg-destructive/15 ttw:px-6 ttw:py-4 ttw:text-sm ttw:text-destructive",
|
|
32
|
-
children: [/* @__PURE__ */ i(o, {
|
|
33
|
-
"aria-hidden": !0,
|
|
34
|
-
className: "ttw:size-5 ttw:shrink-0"
|
|
35
|
-
}), /* @__PURE__ */ i("span", { children: f.missingFieldsAlert })]
|
|
36
|
-
}) : null,
|
|
37
|
-
/* @__PURE__ */ i("div", {
|
|
33
|
+
p.showMissingFieldsAlert ? /* @__PURE__ */ l(r, { children: h.missingFieldsAlert }) : null,
|
|
34
|
+
/* @__PURE__ */ l("div", {
|
|
38
35
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
39
|
-
children: /* @__PURE__ */ i
|
|
40
|
-
fields:
|
|
41
|
-
display:
|
|
42
|
-
isDisabled:
|
|
43
|
-
labels:
|
|
44
|
-
ssnRevealed:
|
|
45
|
-
ssnToggleAriaLabel:
|
|
46
|
-
onToggleSsnVisibility:
|
|
36
|
+
children: /* @__PURE__ */ l(i, {
|
|
37
|
+
fields: p.fields,
|
|
38
|
+
display: p.display,
|
|
39
|
+
isDisabled: m,
|
|
40
|
+
labels: h,
|
|
41
|
+
ssnRevealed: p.ssnRevealed,
|
|
42
|
+
ssnToggleAriaLabel: p.ssnToggleAriaLabel,
|
|
43
|
+
onToggleSsnVisibility: p.onToggleSsnVisibility
|
|
47
44
|
})
|
|
48
45
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ u("div", {
|
|
50
47
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
51
|
-
children: [
|
|
48
|
+
children: [g ? /* @__PURE__ */ l(e, {
|
|
52
49
|
type: "button",
|
|
53
50
|
variant: "ghost",
|
|
54
|
-
onClick:
|
|
55
|
-
disabled:
|
|
51
|
+
onClick: g,
|
|
52
|
+
disabled: m,
|
|
56
53
|
"data-owner-delete-trigger": "",
|
|
57
|
-
className: "ttw:
|
|
58
|
-
children:
|
|
59
|
-
|
|
60
|
-
"aria-hidden": !0
|
|
61
|
-
}), f.deleteOwner]
|
|
62
|
-
}) : /* @__PURE__ */ i("span", {}), /* @__PURE__ */ a("div", {
|
|
54
|
+
className: "ttw:text-destructive ttw:hover:text-destructive",
|
|
55
|
+
children: h.deleteOwner
|
|
56
|
+
}) : /* @__PURE__ */ l("span", {}), /* @__PURE__ */ u("div", {
|
|
63
57
|
className: "ttw:flex ttw:gap-3",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
58
|
+
children: [/* @__PURE__ */ l(e, {
|
|
65
59
|
type: "button",
|
|
66
|
-
variant: "
|
|
67
|
-
onClick:
|
|
68
|
-
disabled:
|
|
69
|
-
children:
|
|
70
|
-
}), /* @__PURE__ */
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
onClick: p.onCancel,
|
|
62
|
+
disabled: m,
|
|
63
|
+
children: h.cancel
|
|
64
|
+
}), /* @__PURE__ */ l(e, {
|
|
71
65
|
type: "button",
|
|
72
|
-
onClick:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
onClick: () => {
|
|
67
|
+
p.onSubmit(), p.isValid || x((e) => e + 1);
|
|
68
|
+
},
|
|
69
|
+
disabled: m,
|
|
70
|
+
"data-testid": _?.saveButton,
|
|
71
|
+
children: f
|
|
76
72
|
})]
|
|
77
73
|
})]
|
|
78
74
|
})
|
|
79
75
|
]
|
|
80
76
|
});
|
|
81
77
|
}
|
|
82
|
-
export {
|
|
78
|
+
export { d as AdditionalOwnerInlineEditor };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
CHANGED
|
@@ -1,84 +1,78 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { CircleUserRoundIcon as
|
|
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 { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
import { CircleUserRoundIcon as s } from "lucide-react";
|
|
4
4
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function c({ ownerName: c, shareDisplay: l, review: u, isDisabled: d, labels: f, onDelete: p, testIds: m }) {
|
|
6
|
+
return /* @__PURE__ */ o("section", {
|
|
7
7
|
"aria-labelledby": "additional-owner-review-title",
|
|
8
|
-
"data-testid":
|
|
8
|
+
"data-testid": m?.root,
|
|
9
9
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
|
|
10
10
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ o("div", {
|
|
12
12
|
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
13
|
-
children: [/* @__PURE__ */
|
|
13
|
+
children: [/* @__PURE__ */ a(s, {
|
|
14
14
|
className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground",
|
|
15
15
|
"aria-hidden": !0
|
|
16
|
-
}), /* @__PURE__ */
|
|
16
|
+
}), /* @__PURE__ */ o("div", {
|
|
17
17
|
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:gap-x-6",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
children: [/* @__PURE__ */ a(n, {
|
|
19
|
+
variant: "subsection",
|
|
20
|
+
level: 4,
|
|
21
21
|
id: "additional-owner-review-title",
|
|
22
22
|
tabIndex: -1,
|
|
23
23
|
"data-owner-panel-heading": "",
|
|
24
24
|
"data-needs-attention": "",
|
|
25
25
|
className: "ttw:font-semibold ttw:text-foreground",
|
|
26
|
-
children:
|
|
27
|
-
}), /* @__PURE__ */
|
|
26
|
+
children: c
|
|
27
|
+
}), /* @__PURE__ */ a(i, {
|
|
28
28
|
variant: "body1",
|
|
29
29
|
className: "ttw:text-foreground",
|
|
30
|
-
children:
|
|
30
|
+
children: l
|
|
31
31
|
})]
|
|
32
32
|
})]
|
|
33
33
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ o("div", {
|
|
35
35
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pl-8",
|
|
36
|
-
children: [/* @__PURE__ */ r
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
className: "ttw:
|
|
42
|
-
children: e.label
|
|
43
|
-
}), /* @__PURE__ */ r("dd", {
|
|
44
|
-
className: "ttw:whitespace-pre-line ttw:text-foreground",
|
|
36
|
+
children: [/* @__PURE__ */ a(r, {}), /* @__PURE__ */ a(t, {
|
|
37
|
+
variant: "form-review",
|
|
38
|
+
items: u.rows.map((e) => ({
|
|
39
|
+
label: e.label,
|
|
40
|
+
value: /* @__PURE__ */ a("span", {
|
|
41
|
+
className: "ttw:whitespace-pre-line",
|
|
45
42
|
children: e.value
|
|
46
|
-
})
|
|
47
|
-
}
|
|
43
|
+
})
|
|
44
|
+
}))
|
|
48
45
|
})]
|
|
49
46
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ o("div", {
|
|
51
48
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3 ttw:pl-8",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ a(e, {
|
|
53
50
|
type: "button",
|
|
54
51
|
variant: "ghost",
|
|
55
|
-
onClick:
|
|
56
|
-
disabled:
|
|
52
|
+
onClick: p,
|
|
53
|
+
disabled: d,
|
|
57
54
|
"data-owner-delete-trigger": "",
|
|
58
|
-
className: "ttw:
|
|
59
|
-
children:
|
|
60
|
-
|
|
61
|
-
"aria-hidden": !0
|
|
62
|
-
}), d.deleteOwner]
|
|
63
|
-
}), /* @__PURE__ */ i("div", {
|
|
55
|
+
className: "ttw:text-destructive ttw:hover:text-destructive",
|
|
56
|
+
children: f.deleteOwner
|
|
57
|
+
}), /* @__PURE__ */ o("div", {
|
|
64
58
|
className: "ttw:flex ttw:flex-wrap ttw:gap-3",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ a(e, {
|
|
66
60
|
type: "button",
|
|
67
61
|
variant: "secondary",
|
|
68
|
-
onClick:
|
|
69
|
-
disabled:
|
|
70
|
-
"data-testid":
|
|
71
|
-
children:
|
|
72
|
-
}), /* @__PURE__ */
|
|
62
|
+
onClick: u.onEdit,
|
|
63
|
+
disabled: d,
|
|
64
|
+
"data-testid": m?.editButton,
|
|
65
|
+
children: f.editOwner
|
|
66
|
+
}), /* @__PURE__ */ a(e, {
|
|
73
67
|
type: "button",
|
|
74
|
-
onClick:
|
|
75
|
-
disabled:
|
|
76
|
-
"data-testid":
|
|
77
|
-
children:
|
|
68
|
+
onClick: u.onConfirm,
|
|
69
|
+
disabled: d,
|
|
70
|
+
"data-testid": m?.confirmButton,
|
|
71
|
+
children: f.confirmDetails
|
|
78
72
|
})]
|
|
79
73
|
})]
|
|
80
74
|
})
|
|
81
75
|
]
|
|
82
76
|
});
|
|
83
77
|
}
|
|
84
|
-
export {
|
|
78
|
+
export { c as AdditionalOwnerReviewPanel };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
CHANGED
|
@@ -1,111 +1,110 @@
|
|
|
1
|
-
import { Badge as e, Button as t,
|
|
2
|
-
import { FieldError as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { PencilIcon as f } from "lucide-react";
|
|
1
|
+
import { Badge as e, Button as t, Heading as n, InputGroup as r, InputGroupAddon as i, InputGroupInput as a, Label as o, Typography as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { FieldError as c, fieldErrorAria as l } from "./index3.js";
|
|
3
|
+
import { useEffect as u, useId as d, useRef as f, useState as p } from "react";
|
|
4
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
6
5
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
"aria-
|
|
11
|
-
|
|
6
|
+
function g({ applicantName: g, editor: _, onEditPersonalDetails: v, isDisabled: y, labels: b, testIds: x }) {
|
|
7
|
+
let S = d(), C = f(null), [w, T] = p(0);
|
|
8
|
+
u(() => {
|
|
9
|
+
w > 0 && C.current?.querySelector("[aria-invalid=\"true\"]")?.focus();
|
|
10
|
+
}, [w]);
|
|
11
|
+
let E = d();
|
|
12
|
+
return /* @__PURE__ */ h("section", {
|
|
13
|
+
ref: C,
|
|
14
|
+
"aria-labelledby": S,
|
|
15
|
+
"data-testid": x?.root,
|
|
12
16
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
|
|
13
17
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ h("div", {
|
|
15
19
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
16
|
-
children: [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
children: _.inlineEditHeadingTemplate(p)
|
|
30
|
-
}),
|
|
31
|
-
/* @__PURE__ */ u(e, {
|
|
32
|
-
variant: "secondary",
|
|
33
|
-
children: _.applicantBadge
|
|
34
|
-
})
|
|
35
|
-
]
|
|
20
|
+
children: [/* @__PURE__ */ m(n, {
|
|
21
|
+
variant: "subsection",
|
|
22
|
+
level: 4,
|
|
23
|
+
id: S,
|
|
24
|
+
tabIndex: -1,
|
|
25
|
+
"data-owner-panel-heading": "",
|
|
26
|
+
"data-needs-attention": "",
|
|
27
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
28
|
+
children: b.inlineEditHeadingTemplate(g)
|
|
29
|
+
}), /* @__PURE__ */ m(e, {
|
|
30
|
+
variant: "secondary",
|
|
31
|
+
children: b.applicantBadge
|
|
32
|
+
})]
|
|
36
33
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
htmlFor:
|
|
34
|
+
/* @__PURE__ */ h("div", { children: [
|
|
35
|
+
/* @__PURE__ */ h(o, {
|
|
36
|
+
htmlFor: E,
|
|
40
37
|
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
41
|
-
children: [
|
|
38
|
+
children: [b.applicantOwnershipPercentage, b.requiredFieldMarker]
|
|
42
39
|
}),
|
|
43
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ h(r, {
|
|
44
41
|
className: "ttw:w-32",
|
|
45
|
-
children: [/* @__PURE__ */
|
|
46
|
-
id:
|
|
42
|
+
children: [/* @__PURE__ */ m(a, {
|
|
43
|
+
id: E,
|
|
47
44
|
type: "number",
|
|
48
45
|
min: 25,
|
|
49
46
|
max: 100,
|
|
50
47
|
"data-has-end-addon": "",
|
|
51
|
-
placeholder:
|
|
52
|
-
value:
|
|
53
|
-
onChange: (e) =>
|
|
54
|
-
onBlur:
|
|
55
|
-
...
|
|
56
|
-
disabled:
|
|
48
|
+
placeholder: b.ownershipPercentagePlaceholder,
|
|
49
|
+
value: _.share.value ?? "",
|
|
50
|
+
onChange: (e) => _.share.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
51
|
+
onBlur: _.share.onBlur,
|
|
52
|
+
...l(E, _.share.error),
|
|
53
|
+
disabled: y,
|
|
57
54
|
required: !0
|
|
58
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ m(i, {
|
|
59
56
|
align: "inline-end",
|
|
60
57
|
"aria-hidden": !0,
|
|
61
|
-
children:
|
|
58
|
+
children: b.percentSuffix
|
|
62
59
|
})]
|
|
63
60
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
fieldId:
|
|
66
|
-
error:
|
|
61
|
+
/* @__PURE__ */ m(c, {
|
|
62
|
+
fieldId: E,
|
|
63
|
+
error: _.share.error
|
|
67
64
|
})
|
|
68
65
|
] }),
|
|
69
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ h("div", {
|
|
70
67
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ m(s, {
|
|
72
69
|
variant: "body2",
|
|
73
70
|
className: "ttw:text-foreground",
|
|
74
|
-
children:
|
|
75
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: _.summary
|
|
72
|
+
}), /* @__PURE__ */ h(s, {
|
|
76
73
|
variant: "body2",
|
|
77
74
|
className: "ttw:text-muted-foreground",
|
|
78
75
|
children: [
|
|
79
|
-
|
|
76
|
+
b.applicantDetailsSourceNote,
|
|
80
77
|
" ",
|
|
81
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ m(t, {
|
|
82
79
|
type: "button",
|
|
83
80
|
variant: "link",
|
|
84
|
-
onClick:
|
|
85
|
-
disabled:
|
|
81
|
+
onClick: v,
|
|
82
|
+
disabled: y,
|
|
86
83
|
className: "ttw:h-auto ttw:p-0 ttw:align-baseline",
|
|
87
|
-
children:
|
|
84
|
+
children: b.editPersonalDetails
|
|
88
85
|
})
|
|
89
86
|
]
|
|
90
87
|
})]
|
|
91
88
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ h("div", {
|
|
93
90
|
className: "ttw:flex ttw:justify-end ttw:gap-3",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
91
|
+
children: [/* @__PURE__ */ m(t, {
|
|
95
92
|
type: "button",
|
|
96
|
-
variant: "
|
|
97
|
-
onClick:
|
|
98
|
-
disabled:
|
|
99
|
-
children:
|
|
100
|
-
}), /* @__PURE__ */
|
|
93
|
+
variant: "ghost",
|
|
94
|
+
onClick: _.onCancel,
|
|
95
|
+
disabled: y,
|
|
96
|
+
children: b.cancel
|
|
97
|
+
}), /* @__PURE__ */ m(t, {
|
|
101
98
|
type: "button",
|
|
102
|
-
onClick:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
onClick: () => {
|
|
100
|
+
_.onSave(), _.isValid || T((e) => e + 1);
|
|
101
|
+
},
|
|
102
|
+
disabled: y,
|
|
103
|
+
"data-testid": x?.saveButton,
|
|
104
|
+
children: b.saveOwnerSubmit
|
|
106
105
|
})]
|
|
107
106
|
})
|
|
108
107
|
]
|
|
109
108
|
});
|
|
110
109
|
}
|
|
111
|
-
export {
|
|
110
|
+
export { g as ApplicantOwnerInlineEditor };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
CHANGED
|
@@ -56,8 +56,8 @@ var t = {
|
|
|
56
56
|
firstName: "First name",
|
|
57
57
|
lastName: "Last name",
|
|
58
58
|
dateOfBirth: "Date of birth",
|
|
59
|
-
dateOfBirthPlaceholder: "
|
|
60
|
-
dateOfBirthHint: "
|
|
59
|
+
dateOfBirthPlaceholder: "Select date",
|
|
60
|
+
dateOfBirthHint: "Select a date of birth.",
|
|
61
61
|
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
62
62
|
ssn: "SSN",
|
|
63
63
|
ssnOnFileTemplate: e,
|