@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
|
@@ -1,224 +1,228 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { FieldError as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { EyeIcon as
|
|
1
|
+
import { Button as e, DatePicker as t, Input as n, Label as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c, Tooltip as l, TooltipContent as u, TooltipProvider as d, TooltipTrigger as f } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { FieldError as p, fieldErrorAria as m, onCompositeBlur as h, selectBlurHandlers as g } from "./index3.js";
|
|
3
|
+
import { useState as _ } from "react";
|
|
4
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
|
+
import { EyeIcon as b, EyeOffIcon as x } from "lucide-react";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function S({ htmlFor: e, children: t }) {
|
|
8
|
+
return /* @__PURE__ */ v(r, {
|
|
9
9
|
htmlFor: e,
|
|
10
10
|
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
11
11
|
children: t
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let [
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
-
"data-testid":
|
|
14
|
+
var C = "ttw:w-full";
|
|
15
|
+
function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ssnToggleAriaLabel: O, onToggleSsnVisibility: k, ssnMaskedDisplay: A, ssnFormattedDisplay: j, ssnRequired: M, ssnPlaceholder: N, ssnHelpText: P }) {
|
|
16
|
+
let [F, I] = _(!1), L = !D && !F, R = g(r.state.onBlur);
|
|
17
|
+
return /* @__PURE__ */ y("section", {
|
|
18
|
+
className: "ttw:@container/form ttw:max-w-[720px] ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
+
"data-testid": w?.root,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ v("p", {
|
|
22
22
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
-
children:
|
|
23
|
+
children: T.requiredFieldsNote
|
|
24
24
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ y("div", { children: [
|
|
26
|
+
/* @__PURE__ */ y(S, {
|
|
27
27
|
htmlFor: "firstName",
|
|
28
|
-
children: [
|
|
28
|
+
children: [T.firstName, T.requiredFieldMarker]
|
|
29
29
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ v(n, {
|
|
31
31
|
id: "firstName",
|
|
32
32
|
value: r.firstName.value,
|
|
33
33
|
onChange: (e) => r.firstName.onValueChange(e.target.value),
|
|
34
34
|
onBlur: r.firstName.onBlur,
|
|
35
|
-
...
|
|
36
|
-
disabled:
|
|
35
|
+
...m("firstName", r.firstName.error),
|
|
36
|
+
disabled: E,
|
|
37
37
|
required: !0
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ v(p, {
|
|
40
40
|
fieldId: "firstName",
|
|
41
41
|
error: r.firstName.error
|
|
42
42
|
})
|
|
43
43
|
] }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ y("div", { children: [
|
|
45
|
+
/* @__PURE__ */ y(S, {
|
|
46
46
|
htmlFor: "lastName",
|
|
47
|
-
children: [
|
|
47
|
+
children: [T.lastName, T.requiredFieldMarker]
|
|
48
48
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ v(n, {
|
|
50
50
|
id: "lastName",
|
|
51
51
|
value: r.lastName.value,
|
|
52
52
|
onChange: (e) => r.lastName.onValueChange(e.target.value),
|
|
53
53
|
onBlur: r.lastName.onBlur,
|
|
54
|
-
...
|
|
55
|
-
disabled:
|
|
54
|
+
...m("lastName", r.lastName.error),
|
|
55
|
+
disabled: E,
|
|
56
56
|
required: !0
|
|
57
57
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ v(p, {
|
|
59
59
|
fieldId: "lastName",
|
|
60
60
|
error: r.lastName.error
|
|
61
61
|
})
|
|
62
62
|
] }),
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ y("div", { children: [
|
|
64
|
+
/* @__PURE__ */ y(S, {
|
|
65
65
|
htmlFor: "dateOfBirth",
|
|
66
|
-
children: [
|
|
66
|
+
children: [T.dateOfBirth, T.requiredFieldMarker]
|
|
67
67
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ v(t, {
|
|
69
69
|
id: "dateOfBirth",
|
|
70
70
|
value: r.dateOfBirth.value,
|
|
71
|
+
minDate: r.dateOfBirth.minDate,
|
|
72
|
+
maxDate: r.dateOfBirth.maxDate,
|
|
71
73
|
onChange: r.dateOfBirth.onValueChange,
|
|
72
|
-
placeholder:
|
|
73
|
-
disabled:
|
|
74
|
+
placeholder: T.dateOfBirthPlaceholder,
|
|
75
|
+
disabled: E,
|
|
74
76
|
onBlur: r.dateOfBirth.onBlur,
|
|
75
|
-
|
|
76
|
-
...u("dateOfBirth", r.dateOfBirth.error, r.dateOfBirth.error ? void 0 : "dateOfBirth-hint")
|
|
77
|
+
...m("dateOfBirth", r.dateOfBirth.error, r.dateOfBirth.error ? void 0 : "dateOfBirth-hint")
|
|
77
78
|
}),
|
|
78
|
-
r.dateOfBirth.error ? null : /* @__PURE__ */
|
|
79
|
+
r.dateOfBirth.error ? null : /* @__PURE__ */ v("p", {
|
|
79
80
|
id: "dateOfBirth-hint",
|
|
80
81
|
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
81
|
-
children:
|
|
82
|
+
children: T.dateOfBirthHint
|
|
82
83
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ v(p, {
|
|
84
85
|
fieldId: "dateOfBirth",
|
|
85
86
|
error: r.dateOfBirth.error
|
|
86
87
|
})
|
|
87
88
|
] }),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ y("div", { children: [
|
|
90
|
+
/* @__PURE__ */ y(S, {
|
|
90
91
|
htmlFor: "ssn",
|
|
91
|
-
children: [
|
|
92
|
+
children: [T.ssn, M ? T.requiredFieldMarker : null]
|
|
92
93
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ y("div", {
|
|
94
95
|
className: "ttw:flex ttw:gap-2",
|
|
95
|
-
onBlur:
|
|
96
|
-
children: [/* @__PURE__ */
|
|
96
|
+
onBlur: h(r.ssn.onBlur),
|
|
97
|
+
children: [/* @__PURE__ */ v(n, {
|
|
97
98
|
id: "ssn",
|
|
98
99
|
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
99
100
|
type: "text",
|
|
100
|
-
value:
|
|
101
|
+
value: L ? A : j,
|
|
101
102
|
onChange: (e) => r.ssn.onValueChange(e.target.value),
|
|
102
|
-
onFocus: () =>
|
|
103
|
-
onBlur: () =>
|
|
104
|
-
disabled:
|
|
103
|
+
onFocus: () => I(!0),
|
|
104
|
+
onBlur: () => I(!1),
|
|
105
|
+
disabled: E,
|
|
105
106
|
autoComplete: "off",
|
|
106
107
|
inputMode: "numeric",
|
|
107
108
|
maxLength: 11,
|
|
108
|
-
required:
|
|
109
|
-
placeholder:
|
|
110
|
-
...
|
|
111
|
-
}), /* @__PURE__ */
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
required: M,
|
|
110
|
+
placeholder: N,
|
|
111
|
+
...m("ssn", r.ssn.error, P ? "ssn-on-file" : void 0)
|
|
112
|
+
}), /* @__PURE__ */ v(d, { children: /* @__PURE__ */ y(l, { children: [/* @__PURE__ */ v(f, {
|
|
113
|
+
asChild: !0,
|
|
114
|
+
children: /* @__PURE__ */ v(e, {
|
|
115
|
+
type: "button",
|
|
116
|
+
variant: "ghost",
|
|
117
|
+
size: "icon-sm",
|
|
118
|
+
onClick: k,
|
|
119
|
+
disabled: E,
|
|
120
|
+
"aria-label": O,
|
|
121
|
+
children: v(D ? x : b, { className: "ttw:size-4" })
|
|
122
|
+
})
|
|
123
|
+
}), /* @__PURE__ */ v(u, { children: O })] }) })]
|
|
120
124
|
}),
|
|
121
|
-
|
|
125
|
+
P ? /* @__PURE__ */ v("p", {
|
|
122
126
|
id: "ssn-on-file",
|
|
123
127
|
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
124
|
-
children:
|
|
128
|
+
children: P
|
|
125
129
|
}) : null,
|
|
126
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ v(p, {
|
|
127
131
|
fieldId: "ssn",
|
|
128
132
|
error: r.ssn.error
|
|
129
133
|
})
|
|
130
134
|
] }),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ y("div", { children: [
|
|
136
|
+
/* @__PURE__ */ y(S, {
|
|
133
137
|
htmlFor: "homeAddress",
|
|
134
|
-
children: [
|
|
138
|
+
children: [T.homeAddress, T.requiredFieldMarker]
|
|
135
139
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ v(n, {
|
|
137
141
|
id: "homeAddress",
|
|
138
142
|
value: r.homeAddress.value,
|
|
139
143
|
onChange: (e) => r.homeAddress.onValueChange(e.target.value),
|
|
140
144
|
onBlur: r.homeAddress.onBlur,
|
|
141
|
-
...
|
|
142
|
-
disabled:
|
|
145
|
+
...m("homeAddress", r.homeAddress.error),
|
|
146
|
+
disabled: E,
|
|
143
147
|
required: !0
|
|
144
148
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ v(p, {
|
|
146
150
|
fieldId: "homeAddress",
|
|
147
151
|
error: r.homeAddress.error
|
|
148
152
|
})
|
|
149
153
|
] }),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
className: "ttw:grid ttw:grid-cols-
|
|
154
|
+
/* @__PURE__ */ y("div", {
|
|
155
|
+
className: "ttw:grid ttw:grid-cols-1 ttw:gap-4 ttw:@md/form:grid-cols-3",
|
|
152
156
|
children: [
|
|
153
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ y("div", {
|
|
154
158
|
className: "ttw:min-w-0",
|
|
155
159
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ y(S, {
|
|
157
161
|
htmlFor: "city",
|
|
158
|
-
children: [
|
|
162
|
+
children: [T.city, T.requiredFieldMarker]
|
|
159
163
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ v(n, {
|
|
161
165
|
id: "city",
|
|
162
166
|
value: r.city.value,
|
|
163
167
|
onChange: (e) => r.city.onValueChange(e.target.value),
|
|
164
168
|
onBlur: r.city.onBlur,
|
|
165
|
-
...
|
|
166
|
-
disabled:
|
|
169
|
+
...m("city", r.city.error),
|
|
170
|
+
disabled: E,
|
|
167
171
|
required: !0
|
|
168
172
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ v(p, {
|
|
170
174
|
fieldId: "city",
|
|
171
175
|
error: r.city.error
|
|
172
176
|
})
|
|
173
177
|
]
|
|
174
178
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ y("div", {
|
|
176
180
|
className: "ttw:min-w-0",
|
|
177
181
|
children: [
|
|
178
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ y(S, {
|
|
179
183
|
htmlFor: "state",
|
|
180
|
-
children: [
|
|
184
|
+
children: [T.state, T.requiredFieldMarker]
|
|
181
185
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ y(i, {
|
|
183
187
|
value: r.state.value,
|
|
184
188
|
onValueChange: r.state.onValueChange,
|
|
185
|
-
onOpenChange:
|
|
186
|
-
disabled:
|
|
187
|
-
children: [/* @__PURE__ */
|
|
189
|
+
onOpenChange: R.onOpenChange,
|
|
190
|
+
disabled: E,
|
|
191
|
+
children: [/* @__PURE__ */ v(s, {
|
|
188
192
|
id: "state",
|
|
189
|
-
className:
|
|
190
|
-
onBlur:
|
|
191
|
-
...
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
}), /* @__PURE__ */
|
|
193
|
+
className: C,
|
|
194
|
+
onBlur: R.onTriggerBlur,
|
|
195
|
+
...m("state", r.state.error),
|
|
196
|
+
children: /* @__PURE__ */ v(c, { placeholder: T.statePlaceholder })
|
|
197
|
+
}), /* @__PURE__ */ v(a, { children: r.state.options.map((e) => /* @__PURE__ */ v(o, {
|
|
194
198
|
value: e.value,
|
|
195
199
|
children: e.label
|
|
196
200
|
}, e.value)) })]
|
|
197
201
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ v(p, {
|
|
199
203
|
fieldId: "state",
|
|
200
204
|
error: r.state.error
|
|
201
205
|
})
|
|
202
206
|
]
|
|
203
207
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ y("div", {
|
|
205
209
|
className: "ttw:min-w-0",
|
|
206
210
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ y(S, {
|
|
208
212
|
htmlFor: "zipCode",
|
|
209
|
-
children: [
|
|
213
|
+
children: [T.zipCode, T.requiredFieldMarker]
|
|
210
214
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ v(n, {
|
|
212
216
|
id: "zipCode",
|
|
213
217
|
value: r.zipCode.value,
|
|
214
218
|
onChange: (e) => r.zipCode.onValueChange(e.target.value),
|
|
215
219
|
onBlur: r.zipCode.onBlur,
|
|
216
|
-
...
|
|
217
|
-
disabled:
|
|
220
|
+
...m("zipCode", r.zipCode.error),
|
|
221
|
+
disabled: E,
|
|
218
222
|
required: !0,
|
|
219
223
|
inputMode: "numeric"
|
|
220
224
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ v(p, {
|
|
222
226
|
fieldId: "zipCode",
|
|
223
227
|
error: r.zipCode.error
|
|
224
228
|
})
|
|
@@ -226,42 +230,42 @@ function b({ fields: r, testIds: b, labels: x, isDisabled: S, ssnRevealed: C, ss
|
|
|
226
230
|
})
|
|
227
231
|
]
|
|
228
232
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ y("div", { children: [
|
|
234
|
+
/* @__PURE__ */ y(S, {
|
|
231
235
|
htmlFor: "mobilePhoneNumber",
|
|
232
|
-
children: [
|
|
236
|
+
children: [T.mobilePhoneNumber, T.requiredFieldMarker]
|
|
233
237
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ v(n, {
|
|
235
239
|
id: "mobilePhoneNumber",
|
|
236
240
|
type: "tel",
|
|
237
241
|
value: r.mobilePhoneNumber.value,
|
|
238
242
|
onChange: (e) => r.mobilePhoneNumber.onValueChange(e.target.value),
|
|
239
243
|
onBlur: r.mobilePhoneNumber.onBlur,
|
|
240
|
-
...
|
|
241
|
-
disabled:
|
|
244
|
+
...m("mobilePhoneNumber", r.mobilePhoneNumber.error),
|
|
245
|
+
disabled: E,
|
|
242
246
|
required: !0
|
|
243
247
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ v(p, {
|
|
245
249
|
fieldId: "mobilePhoneNumber",
|
|
246
250
|
error: r.mobilePhoneNumber.error
|
|
247
251
|
})
|
|
248
252
|
] }),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ y("div", { children: [
|
|
254
|
+
/* @__PURE__ */ y(S, {
|
|
251
255
|
htmlFor: "workEmail",
|
|
252
|
-
children: [
|
|
256
|
+
children: [T.workEmail, T.requiredFieldMarker]
|
|
253
257
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ v(n, {
|
|
255
259
|
id: "workEmail",
|
|
256
260
|
type: "email",
|
|
257
261
|
value: r.workEmail.value,
|
|
258
262
|
onChange: (e) => r.workEmail.onValueChange(e.target.value),
|
|
259
263
|
onBlur: r.workEmail.onBlur,
|
|
260
|
-
...
|
|
261
|
-
disabled:
|
|
264
|
+
...m("workEmail", r.workEmail.error),
|
|
265
|
+
disabled: E,
|
|
262
266
|
required: !0
|
|
263
267
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ v(p, {
|
|
265
269
|
fieldId: "workEmail",
|
|
266
270
|
error: r.workEmail.error
|
|
267
271
|
})
|
|
@@ -269,4 +273,4 @@ function b({ fields: r, testIds: b, labels: x, isDisabled: S, ssnRevealed: C, ss
|
|
|
269
273
|
]
|
|
270
274
|
});
|
|
271
275
|
}
|
|
272
|
-
export {
|
|
276
|
+
export { w as AboutYouEditForm };
|
|
@@ -1,30 +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/index26.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 ${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, {
|
|
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
|
-
|
|
27
|
-
|
|
10
|
+
value: /* @__PURE__ */ t("span", {
|
|
11
|
+
"data-testid": e.testId,
|
|
12
|
+
className: e.valueMonospace ? "ttw:whitespace-pre-line ttw:font-mono" : "ttw:whitespace-pre-line",
|
|
13
|
+
children: e.value
|
|
14
|
+
})
|
|
15
|
+
}))
|
|
28
16
|
});
|
|
29
17
|
}
|
|
30
|
-
export {
|
|
18
|
+
export { n as AboutYouSummary };
|
|
@@ -8,8 +8,8 @@ var e = {
|
|
|
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
|
ssn: "SSN",
|
|
14
14
|
ssnShow: "Show",
|
|
15
15
|
ssnHide: "Hide",
|
|
@@ -1,59 +1,56 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { ABOUT_YOU_PANEL_LABELS_EN as
|
|
3
|
-
import { AboutYouEditForm as
|
|
4
|
-
import { AboutYouSummary 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 { ABOUT_YOU_PANEL_LABELS_EN as r } from "./index27.js";
|
|
3
|
+
import { AboutYouEditForm as i } from "./index25.js";
|
|
4
|
+
import { AboutYouSummary as a } from "./index26.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/index28.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
7
|
+
function c({ isEditing: c, onEditClick: l, summaryRows: u, editFields: d, labels: f, isDisabled: p, ssnRevealed: m, ssnToggleAriaLabel: h, onToggleSsnVisibility: g, ssnMaskedDisplay: _, ssnFormattedDisplay: v, ssnRequired: y, ssnPlaceholder: b, ssnHelpText: x, testIds: S }) {
|
|
8
|
+
let C = {
|
|
9
|
+
...r,
|
|
10
|
+
...f
|
|
11
11
|
};
|
|
12
|
-
return
|
|
13
|
-
fields:
|
|
14
|
-
labels:
|
|
15
|
-
isDisabled:
|
|
16
|
-
ssnRevealed:
|
|
17
|
-
ssnToggleAriaLabel:
|
|
18
|
-
onToggleSsnVisibility:
|
|
19
|
-
ssnMaskedDisplay:
|
|
20
|
-
ssnFormattedDisplay:
|
|
21
|
-
ssnRequired:
|
|
22
|
-
ssnPlaceholder:
|
|
23
|
-
ssnHelpText:
|
|
24
|
-
testIds:
|
|
25
|
-
}) : /* @__PURE__ */
|
|
26
|
-
"data-testid":
|
|
12
|
+
return c ? /* @__PURE__ */ o(i, {
|
|
13
|
+
fields: d,
|
|
14
|
+
labels: C,
|
|
15
|
+
isDisabled: p,
|
|
16
|
+
ssnRevealed: m,
|
|
17
|
+
ssnToggleAriaLabel: h,
|
|
18
|
+
onToggleSsnVisibility: g,
|
|
19
|
+
ssnMaskedDisplay: _,
|
|
20
|
+
ssnFormattedDisplay: v,
|
|
21
|
+
ssnRequired: y,
|
|
22
|
+
ssnPlaceholder: b,
|
|
23
|
+
ssnHelpText: x,
|
|
24
|
+
testIds: S?.editForm
|
|
25
|
+
}) : /* @__PURE__ */ s("section", {
|
|
26
|
+
"data-testid": S?.root,
|
|
27
27
|
className: "ttw:relative ttw:min-w-0",
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
className: "ttw:mb-3
|
|
33
|
-
children:
|
|
29
|
+
/* @__PURE__ */ o(t, {
|
|
30
|
+
variant: "section",
|
|
31
|
+
level: 3,
|
|
32
|
+
className: "ttw:mb-3",
|
|
33
|
+
children: C.panelTitle
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
/* @__PURE__ */ o(n, { className: "ttw:mb-3" }),
|
|
36
|
+
/* @__PURE__ */ o(a, {
|
|
37
|
+
rows: u,
|
|
38
|
+
testIds: S?.summary
|
|
38
39
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
rows: l,
|
|
41
|
-
testIds: x?.summary
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ a("div", {
|
|
40
|
+
/* @__PURE__ */ o("div", {
|
|
44
41
|
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
45
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ o(e, {
|
|
46
43
|
type: "button",
|
|
47
44
|
variant: "secondary",
|
|
48
45
|
size: "sm",
|
|
49
|
-
onClick:
|
|
50
|
-
disabled:
|
|
51
|
-
"aria-label":
|
|
52
|
-
"data-testid":
|
|
53
|
-
children:
|
|
46
|
+
onClick: l,
|
|
47
|
+
disabled: p,
|
|
48
|
+
"aria-label": C.editButtonAriaLabel,
|
|
49
|
+
"data-testid": S?.editButton,
|
|
50
|
+
children: C.editButton
|
|
54
51
|
})
|
|
55
52
|
})
|
|
56
53
|
]
|
|
57
54
|
});
|
|
58
55
|
}
|
|
59
|
-
export {
|
|
56
|
+
export { r as ABOUT_YOU_PANEL_LABELS_EN, c as AboutYouPanel };
|