@tesouro/embedded-components-react 0.10.6 → 0.10.10
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 -0
- package/dist/index.d.ts +46 -7
- package/dist/index.js +4 -4
- package/dist/lib/BankAccountOnboardingWidget.d.ts +46 -7
- package/dist/lib/BankAccountOnboardingWidget.js +4 -4
- package/dist/lib/WidgetSuite.d.ts +46 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +175 -98
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +365 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +15 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +5 -340
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +422 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +62 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +12 -276
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +294 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +46 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +268 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +53 -118
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +5 -80
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +64 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +6 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +89 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -61
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +16 -19
- package/package.json +1 -1
|
@@ -1,30 +1,272 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e, DateInput as t, Input as n, Label as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { FieldError as l, fieldErrorAria as u, onCompositeBlur as d, selectBlurHandlers as f } from "./index3.js";
|
|
3
|
+
import { useState as p } from "react";
|
|
4
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { EyeIcon as g, EyeOffIcon as _ } from "lucide-react";
|
|
3
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
|
|
15
|
-
children: a
|
|
16
|
-
})] }) : null;
|
|
7
|
+
function v({ htmlFor: e, children: t }) {
|
|
8
|
+
return /* @__PURE__ */ m(r, {
|
|
9
|
+
htmlFor: e,
|
|
10
|
+
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
11
|
+
children: t
|
|
12
|
+
});
|
|
17
13
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
var y = "ttw:w-full";
|
|
15
|
+
function b({ fields: r, testIds: b, labels: x, isDisabled: S, ssnRevealed: C, ssnToggleAriaLabel: w, onToggleSsnVisibility: T, ssnMaskedDisplay: E, ssnFormattedDisplay: D, ssnRequired: O, ssnPlaceholder: k, ssnHelpText: A }) {
|
|
16
|
+
let [j, M] = p(!1), N = !C && !j, P = f(r.state.onBlur);
|
|
17
|
+
return /* @__PURE__ */ h("section", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
+
"data-testid": b?.root,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ m("p", {
|
|
22
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
+
children: x.requiredFieldsNote
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ h("div", { children: [
|
|
26
|
+
/* @__PURE__ */ h(v, {
|
|
27
|
+
htmlFor: "firstName",
|
|
28
|
+
children: [x.firstName, x.requiredFieldMarker]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ m(n, {
|
|
31
|
+
id: "firstName",
|
|
32
|
+
value: r.firstName.value,
|
|
33
|
+
onChange: (e) => r.firstName.onValueChange(e.target.value),
|
|
34
|
+
onBlur: r.firstName.onBlur,
|
|
35
|
+
...u("firstName", r.firstName.error),
|
|
36
|
+
disabled: S,
|
|
37
|
+
required: !0
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ m(l, {
|
|
40
|
+
fieldId: "firstName",
|
|
41
|
+
error: r.firstName.error
|
|
42
|
+
})
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ h("div", { children: [
|
|
45
|
+
/* @__PURE__ */ h(v, {
|
|
46
|
+
htmlFor: "lastName",
|
|
47
|
+
children: [x.lastName, x.requiredFieldMarker]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ m(n, {
|
|
50
|
+
id: "lastName",
|
|
51
|
+
value: r.lastName.value,
|
|
52
|
+
onChange: (e) => r.lastName.onValueChange(e.target.value),
|
|
53
|
+
onBlur: r.lastName.onBlur,
|
|
54
|
+
...u("lastName", r.lastName.error),
|
|
55
|
+
disabled: S,
|
|
56
|
+
required: !0
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ m(l, {
|
|
59
|
+
fieldId: "lastName",
|
|
60
|
+
error: r.lastName.error
|
|
61
|
+
})
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ h("div", { children: [
|
|
64
|
+
/* @__PURE__ */ h(v, {
|
|
65
|
+
htmlFor: "dateOfBirth",
|
|
66
|
+
children: [x.dateOfBirth, x.requiredFieldMarker]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ m(t, {
|
|
69
|
+
id: "dateOfBirth",
|
|
70
|
+
value: r.dateOfBirth.value,
|
|
71
|
+
onChange: r.dateOfBirth.onValueChange,
|
|
72
|
+
placeholder: x.dateOfBirthPlaceholder,
|
|
73
|
+
disabled: S,
|
|
74
|
+
onBlur: r.dateOfBirth.onBlur,
|
|
75
|
+
required: !0,
|
|
76
|
+
...u("dateOfBirth", r.dateOfBirth.error, r.dateOfBirth.error ? void 0 : "dateOfBirth-hint")
|
|
77
|
+
}),
|
|
78
|
+
r.dateOfBirth.error ? null : /* @__PURE__ */ m("p", {
|
|
79
|
+
id: "dateOfBirth-hint",
|
|
80
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
81
|
+
children: x.dateOfBirthHint
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ m(l, {
|
|
84
|
+
fieldId: "dateOfBirth",
|
|
85
|
+
error: r.dateOfBirth.error
|
|
86
|
+
})
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ h("div", { children: [
|
|
89
|
+
/* @__PURE__ */ h(v, {
|
|
90
|
+
htmlFor: "ssn",
|
|
91
|
+
children: [x.ssn, O ? x.requiredFieldMarker : null]
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ h("div", {
|
|
94
|
+
className: "ttw:flex ttw:gap-2",
|
|
95
|
+
onBlur: d(r.ssn.onBlur),
|
|
96
|
+
children: [/* @__PURE__ */ m(n, {
|
|
97
|
+
id: "ssn",
|
|
98
|
+
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
99
|
+
type: "text",
|
|
100
|
+
value: N ? E : D,
|
|
101
|
+
onChange: (e) => r.ssn.onValueChange(e.target.value),
|
|
102
|
+
onFocus: () => M(!0),
|
|
103
|
+
onBlur: () => M(!1),
|
|
104
|
+
disabled: S,
|
|
105
|
+
autoComplete: "off",
|
|
106
|
+
inputMode: "numeric",
|
|
107
|
+
maxLength: 11,
|
|
108
|
+
required: O,
|
|
109
|
+
placeholder: k,
|
|
110
|
+
...u("ssn", r.ssn.error, A ? "ssn-on-file" : void 0)
|
|
111
|
+
}), /* @__PURE__ */ m(e, {
|
|
112
|
+
type: "button",
|
|
113
|
+
variant: "outline",
|
|
114
|
+
size: "icon",
|
|
115
|
+
onClick: T,
|
|
116
|
+
disabled: S,
|
|
117
|
+
"aria-label": w,
|
|
118
|
+
children: m(C ? _ : g, { className: "ttw:size-4" })
|
|
119
|
+
})]
|
|
120
|
+
}),
|
|
121
|
+
A ? /* @__PURE__ */ m("p", {
|
|
122
|
+
id: "ssn-on-file",
|
|
123
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
124
|
+
children: A
|
|
125
|
+
}) : null,
|
|
126
|
+
/* @__PURE__ */ m(l, {
|
|
127
|
+
fieldId: "ssn",
|
|
128
|
+
error: r.ssn.error
|
|
129
|
+
})
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ h("div", { children: [
|
|
132
|
+
/* @__PURE__ */ h(v, {
|
|
133
|
+
htmlFor: "homeAddress",
|
|
134
|
+
children: [x.homeAddress, x.requiredFieldMarker]
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ m(n, {
|
|
137
|
+
id: "homeAddress",
|
|
138
|
+
value: r.homeAddress.value,
|
|
139
|
+
onChange: (e) => r.homeAddress.onValueChange(e.target.value),
|
|
140
|
+
onBlur: r.homeAddress.onBlur,
|
|
141
|
+
...u("homeAddress", r.homeAddress.error),
|
|
142
|
+
disabled: S,
|
|
143
|
+
required: !0
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ m(l, {
|
|
146
|
+
fieldId: "homeAddress",
|
|
147
|
+
error: r.homeAddress.error
|
|
148
|
+
})
|
|
149
|
+
] }),
|
|
150
|
+
/* @__PURE__ */ h("div", {
|
|
151
|
+
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ h("div", {
|
|
154
|
+
className: "ttw:min-w-0",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ h(v, {
|
|
157
|
+
htmlFor: "city",
|
|
158
|
+
children: [x.city, x.requiredFieldMarker]
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ m(n, {
|
|
161
|
+
id: "city",
|
|
162
|
+
value: r.city.value,
|
|
163
|
+
onChange: (e) => r.city.onValueChange(e.target.value),
|
|
164
|
+
onBlur: r.city.onBlur,
|
|
165
|
+
...u("city", r.city.error),
|
|
166
|
+
disabled: S,
|
|
167
|
+
required: !0
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ m(l, {
|
|
170
|
+
fieldId: "city",
|
|
171
|
+
error: r.city.error
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ h("div", {
|
|
176
|
+
className: "ttw:min-w-0",
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ h(v, {
|
|
179
|
+
htmlFor: "state",
|
|
180
|
+
children: [x.state, x.requiredFieldMarker]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ h(i, {
|
|
183
|
+
value: r.state.value,
|
|
184
|
+
onValueChange: r.state.onValueChange,
|
|
185
|
+
onOpenChange: P.onOpenChange,
|
|
186
|
+
disabled: S,
|
|
187
|
+
children: [/* @__PURE__ */ m(s, {
|
|
188
|
+
id: "state",
|
|
189
|
+
className: y,
|
|
190
|
+
onBlur: P.onTriggerBlur,
|
|
191
|
+
...u("state", r.state.error),
|
|
192
|
+
children: /* @__PURE__ */ m(c, { placeholder: x.statePlaceholder })
|
|
193
|
+
}), /* @__PURE__ */ m(a, { children: r.state.options.map((e) => /* @__PURE__ */ m(o, {
|
|
194
|
+
value: e.value,
|
|
195
|
+
children: e.label
|
|
196
|
+
}, e.value)) })]
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ m(l, {
|
|
199
|
+
fieldId: "state",
|
|
200
|
+
error: r.state.error
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ h("div", {
|
|
205
|
+
className: "ttw:min-w-0",
|
|
206
|
+
children: [
|
|
207
|
+
/* @__PURE__ */ h(v, {
|
|
208
|
+
htmlFor: "zipCode",
|
|
209
|
+
children: [x.zipCode, x.requiredFieldMarker]
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ m(n, {
|
|
212
|
+
id: "zipCode",
|
|
213
|
+
value: r.zipCode.value,
|
|
214
|
+
onChange: (e) => r.zipCode.onValueChange(e.target.value),
|
|
215
|
+
onBlur: r.zipCode.onBlur,
|
|
216
|
+
...u("zipCode", r.zipCode.error),
|
|
217
|
+
disabled: S,
|
|
218
|
+
required: !0,
|
|
219
|
+
inputMode: "numeric"
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ m(l, {
|
|
222
|
+
fieldId: "zipCode",
|
|
223
|
+
error: r.zipCode.error
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
})
|
|
227
|
+
]
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ h("div", { children: [
|
|
230
|
+
/* @__PURE__ */ h(v, {
|
|
231
|
+
htmlFor: "mobilePhoneNumber",
|
|
232
|
+
children: [x.mobilePhoneNumber, x.requiredFieldMarker]
|
|
233
|
+
}),
|
|
234
|
+
/* @__PURE__ */ m(n, {
|
|
235
|
+
id: "mobilePhoneNumber",
|
|
236
|
+
type: "tel",
|
|
237
|
+
value: r.mobilePhoneNumber.value,
|
|
238
|
+
onChange: (e) => r.mobilePhoneNumber.onValueChange(e.target.value),
|
|
239
|
+
onBlur: r.mobilePhoneNumber.onBlur,
|
|
240
|
+
...u("mobilePhoneNumber", r.mobilePhoneNumber.error),
|
|
241
|
+
disabled: S,
|
|
242
|
+
required: !0
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ m(l, {
|
|
245
|
+
fieldId: "mobilePhoneNumber",
|
|
246
|
+
error: r.mobilePhoneNumber.error
|
|
247
|
+
})
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ h("div", { children: [
|
|
250
|
+
/* @__PURE__ */ h(v, {
|
|
251
|
+
htmlFor: "workEmail",
|
|
252
|
+
children: [x.workEmail, x.requiredFieldMarker]
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ m(n, {
|
|
255
|
+
id: "workEmail",
|
|
256
|
+
type: "email",
|
|
257
|
+
value: r.workEmail.value,
|
|
258
|
+
onChange: (e) => r.workEmail.onValueChange(e.target.value),
|
|
259
|
+
onBlur: r.workEmail.onBlur,
|
|
260
|
+
...u("workEmail", r.workEmail.error),
|
|
261
|
+
disabled: S,
|
|
262
|
+
required: !0
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ m(l, {
|
|
265
|
+
fieldId: "workEmail",
|
|
266
|
+
error: r.workEmail.error
|
|
267
|
+
})
|
|
268
|
+
] })
|
|
269
|
+
]
|
|
28
270
|
});
|
|
29
271
|
}
|
|
30
|
-
export {
|
|
272
|
+
export { b as AboutYouEditForm };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
+
import { Typography 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";
|
|
1
3
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
export { e as ABOUT_YOU_PANEL_LABELS_EN };
|
|
4
|
+
function i({ label: i, value: a, testId: o, valueMonospace: s }) {
|
|
5
|
+
return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
6
|
+
component: "span",
|
|
7
|
+
variant: "body2",
|
|
8
|
+
className: "ttw:text-muted-foreground",
|
|
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 ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
|
|
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, {
|
|
23
|
+
label: e.label,
|
|
24
|
+
value: e.value,
|
|
25
|
+
testId: e.testId,
|
|
26
|
+
valueMonospace: e.valueMonospace
|
|
27
|
+
}, e.testId ?? e.label))
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export { a as AboutYouSummary };
|
|
@@ -1,60 +1,30 @@
|
|
|
1
|
-
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { ABOUT_YOU_PANEL_LABELS_EN as n } from "./index26.js";
|
|
3
|
-
import { AboutYouEditForm as r } from "./index24.js";
|
|
4
|
-
import { AboutYouSummary as i } from "./index25.js";
|
|
5
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
1
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */ a("div", {
|
|
37
|
-
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
38
|
-
"aria-hidden": !0
|
|
39
|
-
}),
|
|
40
|
-
/* @__PURE__ */ a(i, {
|
|
41
|
-
rows: l,
|
|
42
|
-
testIds: S?.summary
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ a("div", {
|
|
45
|
-
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
46
|
-
children: /* @__PURE__ */ a(e, {
|
|
47
|
-
type: "button",
|
|
48
|
-
variant: "secondary",
|
|
49
|
-
size: "sm",
|
|
50
|
-
onClick: c,
|
|
51
|
-
disabled: f,
|
|
52
|
-
"aria-label": C.editButtonAriaLabel,
|
|
53
|
-
"data-testid": S?.editButton,
|
|
54
|
-
children: C.editButton
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
export { n as ABOUT_YOU_PANEL_LABELS_EN, s as AboutYouPanel };
|
|
2
|
+
var e = {
|
|
3
|
+
panelTitle: "Personal details",
|
|
4
|
+
editButtonAriaLabel: "Edit personal details",
|
|
5
|
+
editButton: "Edit personal details",
|
|
6
|
+
requiredFieldsNote: "Required fields are marked with an asterisk *",
|
|
7
|
+
requiredFieldMarker: " *",
|
|
8
|
+
firstName: "First name",
|
|
9
|
+
lastName: "Last name",
|
|
10
|
+
dateOfBirth: "Date of birth",
|
|
11
|
+
dateOfBirthPlaceholder: "MM/DD/YYYY",
|
|
12
|
+
dateOfBirthHint: "For example, 04/23/1985",
|
|
13
|
+
ssn: "SSN",
|
|
14
|
+
ssnShow: "Show",
|
|
15
|
+
ssnHide: "Hide",
|
|
16
|
+
homeAddress: "Home address",
|
|
17
|
+
city: "City",
|
|
18
|
+
state: "State",
|
|
19
|
+
statePlaceholder: "Select state",
|
|
20
|
+
zipCode: "Postal code",
|
|
21
|
+
mobilePhoneNumber: "Phone",
|
|
22
|
+
workEmail: "Work email",
|
|
23
|
+
ownsOver25Question: "Do you own 25% or more of the business?",
|
|
24
|
+
ownsOver25SummaryLabel: "Owns 25% or more of the business",
|
|
25
|
+
ownsOver25Yes: "Yes",
|
|
26
|
+
ownsOver25No: "No",
|
|
27
|
+
ownershipPercentage: "Ownership share (minimum 25%)",
|
|
28
|
+
ownershipPercentagePlaceholder: "e.g., 25"
|
|
29
|
+
};
|
|
30
|
+
export { e as ABOUT_YOU_PANEL_LABELS_EN };
|
|
@@ -1,124 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ABOUT_YOU_PANEL_LABELS_EN as n } from "./index27.js";
|
|
3
|
+
import { AboutYouEditForm as r } from "./index25.js";
|
|
4
|
+
import { AboutYouSummary as i } from "./index26.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return e ? /* @__PURE__ */ i("a", {
|
|
8
|
-
href: e,
|
|
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 = {
|
|
7
|
+
function s({ isEditing: s, onEditClick: c, summaryRows: l, editFields: u, labels: d, isDisabled: f, ssnRevealed: p, ssnToggleAriaLabel: m, onToggleSsnVisibility: h, ssnMaskedDisplay: g, ssnFormattedDisplay: _, ssnRequired: v, ssnPlaceholder: y, ssnHelpText: b, testIds: x }) {
|
|
8
|
+
let S = {
|
|
20
9
|
...n,
|
|
21
|
-
...d
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
10
|
+
...d
|
|
11
|
+
};
|
|
12
|
+
return s ? /* @__PURE__ */ a(r, {
|
|
13
|
+
fields: u,
|
|
14
|
+
labels: S,
|
|
15
|
+
isDisabled: f,
|
|
16
|
+
ssnRevealed: p,
|
|
17
|
+
ssnToggleAriaLabel: m,
|
|
18
|
+
onToggleSsnVisibility: h,
|
|
19
|
+
ssnMaskedDisplay: g,
|
|
20
|
+
ssnFormattedDisplay: _,
|
|
21
|
+
ssnRequired: v,
|
|
22
|
+
ssnPlaceholder: y,
|
|
23
|
+
ssnHelpText: b,
|
|
24
|
+
testIds: x?.editForm
|
|
25
|
+
}) : /* @__PURE__ */ o("section", {
|
|
26
|
+
"data-testid": x?.root,
|
|
27
|
+
className: "ttw:relative ttw:min-w-0",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ a(t, {
|
|
35
30
|
component: "h3",
|
|
36
31
|
variant: "h6",
|
|
37
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
38
|
-
children:
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
className: "ttw:
|
|
42
|
-
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"aria-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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]
|
|
69
|
-
})]
|
|
70
|
-
}), /* @__PURE__ */ a("div", {
|
|
71
|
-
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
72
|
-
children: [/* @__PURE__ */ i(e, {
|
|
73
|
-
id: "isCheckboxChecked",
|
|
74
|
-
"data-testid": _?.disclosureCheckbox,
|
|
75
|
-
checked: o.isCheckboxChecked,
|
|
76
|
-
onCheckedChange: (e) => y("isCheckboxChecked", e === !0),
|
|
77
|
-
disabled: l,
|
|
78
|
-
className: "ttw:mt-0.5",
|
|
79
|
-
"aria-labelledby": "bank-account-onboarding-disclosure-text",
|
|
80
|
-
"aria-invalid": x || void 0,
|
|
81
|
-
"aria-describedby": x ? "bank-account-onboarding-disclosure-error" : void 0
|
|
82
|
-
}), /* @__PURE__ */ a("div", {
|
|
83
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
84
|
-
children: [/* @__PURE__ */ a("p", {
|
|
85
|
-
id: "bank-account-onboarding-disclosure-text",
|
|
86
|
-
className: "ttw:max-w-3xl ttw:text-sm ttw:font-normal ttw:leading-relaxed ttw:text-foreground",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ i("span", {
|
|
89
|
-
className: "ttw:font-semibold",
|
|
90
|
-
children: v.disclosureAgreementLead
|
|
91
|
-
}),
|
|
92
|
-
" ",
|
|
93
|
-
r(v.acceptDisclosuresPrefix, f),
|
|
94
|
-
/* @__PURE__ */ i(s, {
|
|
95
|
-
href: p,
|
|
96
|
-
children: v.termsOfUse
|
|
97
|
-
}),
|
|
98
|
-
v.acceptDisclosuresTermsPrivacyJoin,
|
|
99
|
-
/* @__PURE__ */ i(s, {
|
|
100
|
-
href: m,
|
|
101
|
-
children: v.privacyPolicy
|
|
102
|
-
}),
|
|
103
|
-
r(v.acceptDisclosuresAfterPrivacy, f),
|
|
104
|
-
/* @__PURE__ */ i(s, {
|
|
105
|
-
href: h,
|
|
106
|
-
children: v.electronicCommunication
|
|
107
|
-
}),
|
|
108
|
-
r(v.acceptDisclosuresAfterElectronic, f),
|
|
109
|
-
/* @__PURE__ */ i(s, {
|
|
110
|
-
href: g,
|
|
111
|
-
children: v.patriotAct
|
|
112
|
-
})
|
|
113
|
-
]
|
|
114
|
-
}), x ? /* @__PURE__ */ i("p", {
|
|
115
|
-
id: "bank-account-onboarding-disclosure-error",
|
|
116
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
117
|
-
children: v.consentRequiredError
|
|
118
|
-
}) : null]
|
|
119
|
-
})]
|
|
120
|
-
})]
|
|
121
|
-
})]
|
|
32
|
+
className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
|
|
33
|
+
children: S.panelTitle
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ a("div", {
|
|
36
|
+
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
37
|
+
"aria-hidden": !0
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ a(i, {
|
|
40
|
+
rows: l,
|
|
41
|
+
testIds: x?.summary
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ a("div", {
|
|
44
|
+
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
45
|
+
children: /* @__PURE__ */ a(e, {
|
|
46
|
+
type: "button",
|
|
47
|
+
variant: "secondary",
|
|
48
|
+
size: "sm",
|
|
49
|
+
onClick: c,
|
|
50
|
+
disabled: f,
|
|
51
|
+
"aria-label": S.editButtonAriaLabel,
|
|
52
|
+
"data-testid": x?.editButton,
|
|
53
|
+
children: S.editButton
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
]
|
|
122
57
|
});
|
|
123
58
|
}
|
|
124
|
-
export {
|
|
59
|
+
export { n as ABOUT_YOU_PANEL_LABELS_EN, s as AboutYouPanel };
|