@tesouro/embedded-components-react 0.7.74 → 0.8.0
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/README.md +14 -17
- package/dist/index.css +18 -17
- package/dist/index.d.ts +178 -49
- package/dist/index.js +51 -50
- package/dist/lib/BankAccountOnboardingWidget.d.ts +178 -49
- package/dist/lib/BankAccountOnboardingWidget.js +8 -7
- package/dist/lib/WidgetSuite.d.ts +177 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +131 -96
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +509 -496
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +47 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +47 -49
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +103 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +49 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +35 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +4 -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/fieldInput/formatPhoneNumberInput.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +59 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +344 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +7 -40
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +57 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +30 -93
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +40 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +36 -269
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +61 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +270 -61
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +25 -338
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +342 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +56 -54
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +123 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +256 -311
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +83 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +2 -147
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +69 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +5 -35
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +122 -165
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +0 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +81 -23
- package/package.json +1 -1
|
@@ -1,343 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as v } from "react";
|
|
4
|
-
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
5
|
-
import { EyeIcon as x, EyeOffIcon as S } from "lucide-react";
|
|
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";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
function i({ label: i, value: a, testId: o }) {
|
|
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",
|
|
15
|
+
children: a
|
|
16
|
+
})] }) : null;
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
htmlFor: "firstName",
|
|
24
|
-
children: D.firstName
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ y(n, {
|
|
27
|
-
id: "firstName",
|
|
28
|
-
value: T.firstName.value,
|
|
29
|
-
onChange: (e) => T.firstName.onValueChange(e.target.value),
|
|
30
|
-
onBlur: T.firstName.onBlur,
|
|
31
|
-
...h("firstName", T.firstName.error),
|
|
32
|
-
disabled: O,
|
|
33
|
-
required: !0
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ y(m, {
|
|
36
|
-
fieldId: "firstName",
|
|
37
|
-
error: T.firstName.error
|
|
38
|
-
})
|
|
39
|
-
] }),
|
|
40
|
-
/* @__PURE__ */ b("div", { children: [
|
|
41
|
-
/* @__PURE__ */ y(C, {
|
|
42
|
-
htmlFor: "lastName",
|
|
43
|
-
children: D.lastName
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ y(n, {
|
|
46
|
-
id: "lastName",
|
|
47
|
-
value: T.lastName.value,
|
|
48
|
-
onChange: (e) => T.lastName.onValueChange(e.target.value),
|
|
49
|
-
onBlur: T.lastName.onBlur,
|
|
50
|
-
...h("lastName", T.lastName.error),
|
|
51
|
-
disabled: O,
|
|
52
|
-
required: !0
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ y(m, {
|
|
55
|
-
fieldId: "lastName",
|
|
56
|
-
error: T.lastName.error
|
|
57
|
-
})
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ b("div", { children: [
|
|
60
|
-
/* @__PURE__ */ y(C, {
|
|
61
|
-
htmlFor: "dateOfBirth",
|
|
62
|
-
children: D.dateOfBirth
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ y(t, {
|
|
65
|
-
id: "dateOfBirth",
|
|
66
|
-
value: T.dateOfBirth.value,
|
|
67
|
-
onChange: T.dateOfBirth.onValueChange,
|
|
68
|
-
placeholder: D.dateOfBirthPlaceholder,
|
|
69
|
-
disabled: O,
|
|
70
|
-
maxDate: N,
|
|
71
|
-
onBlur: T.dateOfBirth.onBlur,
|
|
72
|
-
...h("dateOfBirth", T.dateOfBirth.error)
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ y(m, {
|
|
75
|
-
fieldId: "dateOfBirth",
|
|
76
|
-
error: T.dateOfBirth.error
|
|
77
|
-
})
|
|
78
|
-
] }),
|
|
79
|
-
/* @__PURE__ */ b("div", { children: [
|
|
80
|
-
/* @__PURE__ */ y(C, {
|
|
81
|
-
htmlFor: "ssn",
|
|
82
|
-
children: D.ssn
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ b("div", {
|
|
85
|
-
className: "ttw:flex ttw:gap-2",
|
|
86
|
-
onBlur: g(T.ssn.onBlur),
|
|
87
|
-
children: [/* @__PURE__ */ y(n, {
|
|
88
|
-
id: "ssn",
|
|
89
|
-
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
90
|
-
type: "text",
|
|
91
|
-
value: V ? P : F,
|
|
92
|
-
onChange: (e) => T.ssn.onValueChange(e.target.value),
|
|
93
|
-
onFocus: () => B(!0),
|
|
94
|
-
onBlur: () => B(!1),
|
|
95
|
-
disabled: O,
|
|
96
|
-
autoComplete: "off",
|
|
97
|
-
inputMode: "numeric",
|
|
98
|
-
maxLength: 11,
|
|
99
|
-
required: I,
|
|
100
|
-
placeholder: L,
|
|
101
|
-
...h("ssn", T.ssn.error, R ? "ssn-on-file" : void 0)
|
|
102
|
-
}), /* @__PURE__ */ y(e, {
|
|
103
|
-
type: "button",
|
|
104
|
-
variant: "outline",
|
|
105
|
-
size: "icon",
|
|
106
|
-
onClick: j,
|
|
107
|
-
disabled: O,
|
|
108
|
-
"aria-label": A,
|
|
109
|
-
children: y(k ? S : x, { className: "ttw:size-4" })
|
|
110
|
-
})]
|
|
111
|
-
}),
|
|
112
|
-
R ? /* @__PURE__ */ y("p", {
|
|
113
|
-
id: "ssn-on-file",
|
|
114
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
115
|
-
children: R
|
|
116
|
-
}) : null,
|
|
117
|
-
/* @__PURE__ */ y(m, {
|
|
118
|
-
fieldId: "ssn",
|
|
119
|
-
error: T.ssn.error
|
|
120
|
-
})
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ b("div", { children: [
|
|
123
|
-
/* @__PURE__ */ y(C, {
|
|
124
|
-
htmlFor: "homeAddress",
|
|
125
|
-
children: D.homeAddress
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ y(n, {
|
|
128
|
-
id: "homeAddress",
|
|
129
|
-
value: T.homeAddress.value,
|
|
130
|
-
onChange: (e) => T.homeAddress.onValueChange(e.target.value),
|
|
131
|
-
onBlur: T.homeAddress.onBlur,
|
|
132
|
-
...h("homeAddress", T.homeAddress.error),
|
|
133
|
-
disabled: O,
|
|
134
|
-
required: !0
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ y(m, {
|
|
137
|
-
fieldId: "homeAddress",
|
|
138
|
-
error: T.homeAddress.error
|
|
139
|
-
})
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ b("div", {
|
|
142
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
143
|
-
children: [
|
|
144
|
-
/* @__PURE__ */ b("div", {
|
|
145
|
-
className: "ttw:min-w-0",
|
|
146
|
-
children: [
|
|
147
|
-
/* @__PURE__ */ y(C, {
|
|
148
|
-
htmlFor: "city",
|
|
149
|
-
children: D.city
|
|
150
|
-
}),
|
|
151
|
-
/* @__PURE__ */ y(n, {
|
|
152
|
-
id: "city",
|
|
153
|
-
value: T.city.value,
|
|
154
|
-
onChange: (e) => T.city.onValueChange(e.target.value),
|
|
155
|
-
onBlur: T.city.onBlur,
|
|
156
|
-
...h("city", T.city.error),
|
|
157
|
-
disabled: O,
|
|
158
|
-
required: !0
|
|
159
|
-
}),
|
|
160
|
-
/* @__PURE__ */ y(m, {
|
|
161
|
-
fieldId: "city",
|
|
162
|
-
error: T.city.error
|
|
163
|
-
})
|
|
164
|
-
]
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ b("div", {
|
|
167
|
-
className: "ttw:min-w-0",
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ y(C, {
|
|
170
|
-
htmlFor: "state",
|
|
171
|
-
children: D.state
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ b(l, {
|
|
174
|
-
value: T.state.value,
|
|
175
|
-
onValueChange: T.state.onValueChange,
|
|
176
|
-
onOpenChange: H.onOpenChange,
|
|
177
|
-
disabled: O,
|
|
178
|
-
children: [/* @__PURE__ */ y(f, {
|
|
179
|
-
id: "state",
|
|
180
|
-
className: w,
|
|
181
|
-
onBlur: H.onTriggerBlur,
|
|
182
|
-
...h("state", T.state.error),
|
|
183
|
-
children: /* @__PURE__ */ y(p, { placeholder: D.statePlaceholder })
|
|
184
|
-
}), /* @__PURE__ */ y(u, { children: T.state.options.map((e) => /* @__PURE__ */ y(d, {
|
|
185
|
-
value: e.value,
|
|
186
|
-
children: e.label
|
|
187
|
-
}, e.value)) })]
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ y(m, {
|
|
190
|
-
fieldId: "state",
|
|
191
|
-
error: T.state.error
|
|
192
|
-
})
|
|
193
|
-
]
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ b("div", {
|
|
196
|
-
className: "ttw:min-w-0",
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ y(C, {
|
|
199
|
-
htmlFor: "zipCode",
|
|
200
|
-
children: D.zipCode
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ y(n, {
|
|
203
|
-
id: "zipCode",
|
|
204
|
-
value: T.zipCode.value,
|
|
205
|
-
onChange: (e) => T.zipCode.onValueChange(e.target.value),
|
|
206
|
-
onBlur: T.zipCode.onBlur,
|
|
207
|
-
...h("zipCode", T.zipCode.error),
|
|
208
|
-
disabled: O,
|
|
209
|
-
required: !0,
|
|
210
|
-
inputMode: "numeric"
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ y(m, {
|
|
213
|
-
fieldId: "zipCode",
|
|
214
|
-
error: T.zipCode.error
|
|
215
|
-
})
|
|
216
|
-
]
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
}),
|
|
220
|
-
/* @__PURE__ */ b("div", { children: [
|
|
221
|
-
/* @__PURE__ */ y(C, {
|
|
222
|
-
htmlFor: "mobilePhoneNumber",
|
|
223
|
-
children: D.mobilePhoneNumber
|
|
224
|
-
}),
|
|
225
|
-
/* @__PURE__ */ y(n, {
|
|
226
|
-
id: "mobilePhoneNumber",
|
|
227
|
-
type: "tel",
|
|
228
|
-
value: T.mobilePhoneNumber.value,
|
|
229
|
-
onChange: (e) => T.mobilePhoneNumber.onValueChange(e.target.value),
|
|
230
|
-
onBlur: T.mobilePhoneNumber.onBlur,
|
|
231
|
-
...h("mobilePhoneNumber", T.mobilePhoneNumber.error),
|
|
232
|
-
disabled: O,
|
|
233
|
-
required: !0
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ y(m, {
|
|
236
|
-
fieldId: "mobilePhoneNumber",
|
|
237
|
-
error: T.mobilePhoneNumber.error
|
|
238
|
-
})
|
|
239
|
-
] }),
|
|
240
|
-
/* @__PURE__ */ b("div", { children: [
|
|
241
|
-
/* @__PURE__ */ y(C, {
|
|
242
|
-
htmlFor: "workEmail",
|
|
243
|
-
children: D.workEmail
|
|
244
|
-
}),
|
|
245
|
-
/* @__PURE__ */ y(n, {
|
|
246
|
-
id: "workEmail",
|
|
247
|
-
type: "email",
|
|
248
|
-
value: T.workEmail.value,
|
|
249
|
-
onChange: (e) => T.workEmail.onValueChange(e.target.value),
|
|
250
|
-
onBlur: T.workEmail.onBlur,
|
|
251
|
-
...h("workEmail", T.workEmail.error),
|
|
252
|
-
disabled: O,
|
|
253
|
-
required: !0
|
|
254
|
-
}),
|
|
255
|
-
/* @__PURE__ */ y(m, {
|
|
256
|
-
fieldId: "workEmail",
|
|
257
|
-
error: T.workEmail.error
|
|
258
|
-
})
|
|
259
|
-
] }),
|
|
260
|
-
/* @__PURE__ */ b("fieldset", {
|
|
261
|
-
"data-testid": E?.ownsOver25Question,
|
|
262
|
-
children: [
|
|
263
|
-
/* @__PURE__ */ y("legend", {
|
|
264
|
-
id: "ownsOver25Legend",
|
|
265
|
-
className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
|
|
266
|
-
children: D.ownsOver25Question
|
|
267
|
-
}),
|
|
268
|
-
/* @__PURE__ */ b(s, {
|
|
269
|
-
value: T.ownsOver25Percent.value,
|
|
270
|
-
onValueChange: T.ownsOver25Percent.onValueChange,
|
|
271
|
-
className: "ttw:flex ttw:gap-4",
|
|
272
|
-
disabled: O,
|
|
273
|
-
"aria-labelledby": "ownsOver25Legend",
|
|
274
|
-
"aria-describedby": h("ownsOver25", T.ownsOver25Percent.error)["aria-describedby"],
|
|
275
|
-
onBlur: g(T.ownsOver25Percent.onBlur),
|
|
276
|
-
children: [/* @__PURE__ */ b("div", {
|
|
277
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
278
|
-
children: [/* @__PURE__ */ y(c, {
|
|
279
|
-
value: "yes",
|
|
280
|
-
id: "ownsOver25Yes",
|
|
281
|
-
"aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
|
|
282
|
-
className: "ttw:cursor-pointer"
|
|
283
|
-
}), /* @__PURE__ */ y(o, {
|
|
284
|
-
htmlFor: "ownsOver25Yes",
|
|
285
|
-
className: "ttw:cursor-pointer",
|
|
286
|
-
children: D.ownsOver25Yes
|
|
287
|
-
})]
|
|
288
|
-
}), /* @__PURE__ */ b("div", {
|
|
289
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
290
|
-
children: [/* @__PURE__ */ y(c, {
|
|
291
|
-
value: "no",
|
|
292
|
-
id: "ownsOver25No",
|
|
293
|
-
"aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
|
|
294
|
-
className: "ttw:cursor-pointer"
|
|
295
|
-
}), /* @__PURE__ */ y(o, {
|
|
296
|
-
htmlFor: "ownsOver25No",
|
|
297
|
-
className: "ttw:cursor-pointer",
|
|
298
|
-
children: D.ownsOver25No
|
|
299
|
-
})]
|
|
300
|
-
})]
|
|
301
|
-
}),
|
|
302
|
-
/* @__PURE__ */ y(m, {
|
|
303
|
-
fieldId: "ownsOver25",
|
|
304
|
-
error: T.ownsOver25Percent.error
|
|
305
|
-
})
|
|
306
|
-
]
|
|
307
|
-
}),
|
|
308
|
-
M ? /* @__PURE__ */ b("div", { children: [
|
|
309
|
-
/* @__PURE__ */ y(C, {
|
|
310
|
-
htmlFor: "ownershipPercentage",
|
|
311
|
-
children: D.ownershipPercentage
|
|
312
|
-
}),
|
|
313
|
-
/* @__PURE__ */ b(r, {
|
|
314
|
-
className: "ttw:w-32",
|
|
315
|
-
children: [/* @__PURE__ */ y(a, {
|
|
316
|
-
id: "ownershipPercentage",
|
|
317
|
-
type: "number",
|
|
318
|
-
min: 25,
|
|
319
|
-
max: 100,
|
|
320
|
-
"data-has-end-addon": "",
|
|
321
|
-
placeholder: D.ownershipPercentagePlaceholder,
|
|
322
|
-
value: T.ownershipPercentage.value ?? "",
|
|
323
|
-
onChange: (e) => T.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
324
|
-
onBlur: T.ownershipPercentage.onBlur,
|
|
325
|
-
...h("ownershipPercentage", T.ownershipPercentage.error),
|
|
326
|
-
disabled: O,
|
|
327
|
-
required: !0
|
|
328
|
-
}), /* @__PURE__ */ y(i, {
|
|
329
|
-
align: "inline-end",
|
|
330
|
-
"aria-hidden": !0,
|
|
331
|
-
children: "%"
|
|
332
|
-
})]
|
|
333
|
-
}),
|
|
334
|
-
/* @__PURE__ */ y(m, {
|
|
335
|
-
fieldId: "ownershipPercentage",
|
|
336
|
-
error: T.ownershipPercentage.error
|
|
337
|
-
})
|
|
338
|
-
] }) : null
|
|
339
|
-
]
|
|
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
|
+
}, e.testId ?? e.label))
|
|
340
27
|
});
|
|
341
28
|
}
|
|
342
29
|
//#endregion
|
|
343
|
-
export {
|
|
30
|
+
export { a as BusinessDetailsSummary };
|
|
@@ -1,31 +1,25 @@
|
|
|
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";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
valueMonospace: e.valueMonospace
|
|
27
|
-
}, e.testId ?? e.label))
|
|
28
|
-
});
|
|
29
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
panelTitle: "Business details",
|
|
4
|
+
editButtonAriaLabel: "Edit business details",
|
|
5
|
+
editButton: "Edit business details",
|
|
6
|
+
requiredFieldsNote: "Required fields are marked with an asterisk *",
|
|
7
|
+
requiredFieldMarker: " *",
|
|
8
|
+
companyLegalName: "Legal company name",
|
|
9
|
+
companyDbaName: "Doing business as (optional)",
|
|
10
|
+
businessAddress: "Business address",
|
|
11
|
+
city: "City",
|
|
12
|
+
state: "State",
|
|
13
|
+
statePlaceholder: "Select state",
|
|
14
|
+
zipCode: "Postal code",
|
|
15
|
+
companyPhoneNumber: "Company phone number",
|
|
16
|
+
companyStructure: "Company structure",
|
|
17
|
+
companyStructurePlaceholder: "Select structure",
|
|
18
|
+
website: "Website (optional)",
|
|
19
|
+
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
20
|
+
taxId: "Tax ID (EIN)",
|
|
21
|
+
naicsCode: "Industry (NAICS code)",
|
|
22
|
+
naicsCodePlaceholder: "Search by code or industry"
|
|
23
|
+
};
|
|
30
24
|
//#endregion
|
|
31
|
-
export {
|
|
25
|
+
export { e as BUSINESS_DETAILS_PANEL_LABELS_EN };
|
|
@@ -1,28 +1,55 @@
|
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as n } from "./index22.js";
|
|
3
|
+
import { BusinessDetailsEditForm as r } from "./index20.js";
|
|
4
|
+
import { BusinessDetailsSummary as i } from "./index21.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
6
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.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
|
-
|
|
7
|
+
function s({ isEditing: s, onEditClick: c, summaryRows: l, editFields: u, labels: d, isDisabled: f, taxIdRequired: p, taxIdPlaceholder: m, taxIdHelpText: h, testIds: g }) {
|
|
8
|
+
let _ = {
|
|
9
|
+
...n,
|
|
10
|
+
...d
|
|
11
|
+
};
|
|
12
|
+
return s ? /* @__PURE__ */ a(r, {
|
|
13
|
+
fields: u,
|
|
14
|
+
labels: _,
|
|
15
|
+
isDisabled: f,
|
|
16
|
+
taxIdRequired: p,
|
|
17
|
+
taxIdPlaceholder: m,
|
|
18
|
+
taxIdHelpText: h,
|
|
19
|
+
testIds: g?.editForm
|
|
20
|
+
}) : /* @__PURE__ */ o("section", {
|
|
21
|
+
"data-testid": g?.root,
|
|
22
|
+
className: "ttw:relative ttw:min-w-0",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ a(t, {
|
|
25
|
+
component: "h3",
|
|
26
|
+
variant: "h6",
|
|
27
|
+
className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
|
|
28
|
+
children: _.panelTitle
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ a("div", {
|
|
31
|
+
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
32
|
+
"aria-hidden": !0
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ a(i, {
|
|
35
|
+
rows: l,
|
|
36
|
+
testIds: g?.summary
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ a("div", {
|
|
39
|
+
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
40
|
+
children: /* @__PURE__ */ a(e, {
|
|
41
|
+
type: "button",
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
size: "sm",
|
|
44
|
+
onClick: c,
|
|
45
|
+
disabled: f,
|
|
46
|
+
"aria-label": _.editButtonAriaLabel,
|
|
47
|
+
"data-testid": g?.editButton,
|
|
48
|
+
children: _.editButton
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
27
54
|
//#endregion
|
|
28
|
-
export {
|
|
55
|
+
export { n as BUSINESS_DETAILS_PANEL_LABELS_EN, s as BusinessDetailsPanel };
|