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