@tesouro/embedded-components-react 0.11.114 → 0.11.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.css +81 -125
  2. package/dist/index.d.ts +11 -2
  3. package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
  4. package/dist/lib/ReceivablesWidget.d.ts +7 -2
  5. package/dist/lib/WidgetSuite.d.ts +7 -2
  6. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +91 -88
  7. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +41 -59
  8. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js +2 -0
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +7 -5
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +163 -160
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +18 -18
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +25 -25
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +34 -31
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +3 -2
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +21 -18
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -0
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +382 -275
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +37 -42
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +56 -50
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +32 -69
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +3 -3
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -25
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +36 -39
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +120 -116
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +14 -26
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +41 -44
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +96 -115
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +14 -14
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +35 -57
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +37 -60
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +28 -42
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +266 -259
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +51 -55
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +42 -48
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +69 -70
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +85 -50
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +7 -2
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +51 -0
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js +5 -3
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +84 -87
  49. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +35 -21
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +38 -101
  52. package/package.json +1 -1
@@ -1,224 +1,228 @@
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";
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 v({ htmlFor: e, children: t }) {
8
- return /* @__PURE__ */ m(r, {
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 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,
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__ */ m("p", {
21
+ /* @__PURE__ */ v("p", {
22
22
  className: "ttw:text-sm ttw:text-muted-foreground",
23
- children: x.requiredFieldsNote
23
+ children: T.requiredFieldsNote
24
24
  }),
25
- /* @__PURE__ */ h("div", { children: [
26
- /* @__PURE__ */ h(v, {
25
+ /* @__PURE__ */ y("div", { children: [
26
+ /* @__PURE__ */ y(S, {
27
27
  htmlFor: "firstName",
28
- children: [x.firstName, x.requiredFieldMarker]
28
+ children: [T.firstName, T.requiredFieldMarker]
29
29
  }),
30
- /* @__PURE__ */ m(n, {
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
- ...u("firstName", r.firstName.error),
36
- disabled: S,
35
+ ...m("firstName", r.firstName.error),
36
+ disabled: E,
37
37
  required: !0
38
38
  }),
39
- /* @__PURE__ */ m(l, {
39
+ /* @__PURE__ */ v(p, {
40
40
  fieldId: "firstName",
41
41
  error: r.firstName.error
42
42
  })
43
43
  ] }),
44
- /* @__PURE__ */ h("div", { children: [
45
- /* @__PURE__ */ h(v, {
44
+ /* @__PURE__ */ y("div", { children: [
45
+ /* @__PURE__ */ y(S, {
46
46
  htmlFor: "lastName",
47
- children: [x.lastName, x.requiredFieldMarker]
47
+ children: [T.lastName, T.requiredFieldMarker]
48
48
  }),
49
- /* @__PURE__ */ m(n, {
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
- ...u("lastName", r.lastName.error),
55
- disabled: S,
54
+ ...m("lastName", r.lastName.error),
55
+ disabled: E,
56
56
  required: !0
57
57
  }),
58
- /* @__PURE__ */ m(l, {
58
+ /* @__PURE__ */ v(p, {
59
59
  fieldId: "lastName",
60
60
  error: r.lastName.error
61
61
  })
62
62
  ] }),
63
- /* @__PURE__ */ h("div", { children: [
64
- /* @__PURE__ */ h(v, {
63
+ /* @__PURE__ */ y("div", { children: [
64
+ /* @__PURE__ */ y(S, {
65
65
  htmlFor: "dateOfBirth",
66
- children: [x.dateOfBirth, x.requiredFieldMarker]
66
+ children: [T.dateOfBirth, T.requiredFieldMarker]
67
67
  }),
68
- /* @__PURE__ */ m(t, {
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: x.dateOfBirthPlaceholder,
73
- disabled: S,
74
+ placeholder: T.dateOfBirthPlaceholder,
75
+ disabled: E,
74
76
  onBlur: r.dateOfBirth.onBlur,
75
- required: !0,
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__ */ m("p", {
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: x.dateOfBirthHint
82
+ children: T.dateOfBirthHint
82
83
  }),
83
- /* @__PURE__ */ m(l, {
84
+ /* @__PURE__ */ v(p, {
84
85
  fieldId: "dateOfBirth",
85
86
  error: r.dateOfBirth.error
86
87
  })
87
88
  ] }),
88
- /* @__PURE__ */ h("div", { children: [
89
- /* @__PURE__ */ h(v, {
89
+ /* @__PURE__ */ y("div", { children: [
90
+ /* @__PURE__ */ y(S, {
90
91
  htmlFor: "ssn",
91
- children: [x.ssn, O ? x.requiredFieldMarker : null]
92
+ children: [T.ssn, M ? T.requiredFieldMarker : null]
92
93
  }),
93
- /* @__PURE__ */ h("div", {
94
+ /* @__PURE__ */ y("div", {
94
95
  className: "ttw:flex ttw:gap-2",
95
- onBlur: d(r.ssn.onBlur),
96
- children: [/* @__PURE__ */ m(n, {
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: N ? E : D,
101
+ value: L ? A : j,
101
102
  onChange: (e) => r.ssn.onValueChange(e.target.value),
102
- onFocus: () => M(!0),
103
- onBlur: () => M(!1),
104
- disabled: S,
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: 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
- })]
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
- A ? /* @__PURE__ */ m("p", {
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: A
128
+ children: P
125
129
  }) : null,
126
- /* @__PURE__ */ m(l, {
130
+ /* @__PURE__ */ v(p, {
127
131
  fieldId: "ssn",
128
132
  error: r.ssn.error
129
133
  })
130
134
  ] }),
131
- /* @__PURE__ */ h("div", { children: [
132
- /* @__PURE__ */ h(v, {
135
+ /* @__PURE__ */ y("div", { children: [
136
+ /* @__PURE__ */ y(S, {
133
137
  htmlFor: "homeAddress",
134
- children: [x.homeAddress, x.requiredFieldMarker]
138
+ children: [T.homeAddress, T.requiredFieldMarker]
135
139
  }),
136
- /* @__PURE__ */ m(n, {
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
- ...u("homeAddress", r.homeAddress.error),
142
- disabled: S,
145
+ ...m("homeAddress", r.homeAddress.error),
146
+ disabled: E,
143
147
  required: !0
144
148
  }),
145
- /* @__PURE__ */ m(l, {
149
+ /* @__PURE__ */ v(p, {
146
150
  fieldId: "homeAddress",
147
151
  error: r.homeAddress.error
148
152
  })
149
153
  ] }),
150
- /* @__PURE__ */ h("div", {
151
- className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
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__ */ h("div", {
157
+ /* @__PURE__ */ y("div", {
154
158
  className: "ttw:min-w-0",
155
159
  children: [
156
- /* @__PURE__ */ h(v, {
160
+ /* @__PURE__ */ y(S, {
157
161
  htmlFor: "city",
158
- children: [x.city, x.requiredFieldMarker]
162
+ children: [T.city, T.requiredFieldMarker]
159
163
  }),
160
- /* @__PURE__ */ m(n, {
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
- ...u("city", r.city.error),
166
- disabled: S,
169
+ ...m("city", r.city.error),
170
+ disabled: E,
167
171
  required: !0
168
172
  }),
169
- /* @__PURE__ */ m(l, {
173
+ /* @__PURE__ */ v(p, {
170
174
  fieldId: "city",
171
175
  error: r.city.error
172
176
  })
173
177
  ]
174
178
  }),
175
- /* @__PURE__ */ h("div", {
179
+ /* @__PURE__ */ y("div", {
176
180
  className: "ttw:min-w-0",
177
181
  children: [
178
- /* @__PURE__ */ h(v, {
182
+ /* @__PURE__ */ y(S, {
179
183
  htmlFor: "state",
180
- children: [x.state, x.requiredFieldMarker]
184
+ children: [T.state, T.requiredFieldMarker]
181
185
  }),
182
- /* @__PURE__ */ h(i, {
186
+ /* @__PURE__ */ y(i, {
183
187
  value: r.state.value,
184
188
  onValueChange: r.state.onValueChange,
185
- onOpenChange: P.onOpenChange,
186
- disabled: S,
187
- children: [/* @__PURE__ */ m(s, {
189
+ onOpenChange: R.onOpenChange,
190
+ disabled: E,
191
+ children: [/* @__PURE__ */ v(s, {
188
192
  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, {
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__ */ m(l, {
202
+ /* @__PURE__ */ v(p, {
199
203
  fieldId: "state",
200
204
  error: r.state.error
201
205
  })
202
206
  ]
203
207
  }),
204
- /* @__PURE__ */ h("div", {
208
+ /* @__PURE__ */ y("div", {
205
209
  className: "ttw:min-w-0",
206
210
  children: [
207
- /* @__PURE__ */ h(v, {
211
+ /* @__PURE__ */ y(S, {
208
212
  htmlFor: "zipCode",
209
- children: [x.zipCode, x.requiredFieldMarker]
213
+ children: [T.zipCode, T.requiredFieldMarker]
210
214
  }),
211
- /* @__PURE__ */ m(n, {
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
- ...u("zipCode", r.zipCode.error),
217
- disabled: S,
220
+ ...m("zipCode", r.zipCode.error),
221
+ disabled: E,
218
222
  required: !0,
219
223
  inputMode: "numeric"
220
224
  }),
221
- /* @__PURE__ */ m(l, {
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__ */ h("div", { children: [
230
- /* @__PURE__ */ h(v, {
233
+ /* @__PURE__ */ y("div", { children: [
234
+ /* @__PURE__ */ y(S, {
231
235
  htmlFor: "mobilePhoneNumber",
232
- children: [x.mobilePhoneNumber, x.requiredFieldMarker]
236
+ children: [T.mobilePhoneNumber, T.requiredFieldMarker]
233
237
  }),
234
- /* @__PURE__ */ m(n, {
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
- ...u("mobilePhoneNumber", r.mobilePhoneNumber.error),
241
- disabled: S,
244
+ ...m("mobilePhoneNumber", r.mobilePhoneNumber.error),
245
+ disabled: E,
242
246
  required: !0
243
247
  }),
244
- /* @__PURE__ */ m(l, {
248
+ /* @__PURE__ */ v(p, {
245
249
  fieldId: "mobilePhoneNumber",
246
250
  error: r.mobilePhoneNumber.error
247
251
  })
248
252
  ] }),
249
- /* @__PURE__ */ h("div", { children: [
250
- /* @__PURE__ */ h(v, {
253
+ /* @__PURE__ */ y("div", { children: [
254
+ /* @__PURE__ */ y(S, {
251
255
  htmlFor: "workEmail",
252
- children: [x.workEmail, x.requiredFieldMarker]
256
+ children: [T.workEmail, T.requiredFieldMarker]
253
257
  }),
254
- /* @__PURE__ */ m(n, {
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
- ...u("workEmail", r.workEmail.error),
261
- disabled: S,
264
+ ...m("workEmail", r.workEmail.error),
265
+ disabled: E,
262
266
  required: !0
263
267
  }),
264
- /* @__PURE__ */ m(l, {
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 { b as AboutYouEditForm };
276
+ export { w as AboutYouEditForm };
@@ -1,30 +1,18 @@
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
+ 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 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, {
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: e.value,
25
- testId: e.testId,
26
- valueMonospace: e.valueMonospace
27
- }, e.testId ?? e.label))
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 { a as AboutYouSummary };
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: "MM/DD/YYYY",
12
- dateOfBirthHint: "For example, 04/23/1985",
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, 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";
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 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 = {
9
- ...n,
10
- ...d
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 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,
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__ */ a(t, {
30
- component: "h3",
31
- variant: "h6",
32
- className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
33
- children: S.panelTitle
29
+ /* @__PURE__ */ o(t, {
30
+ variant: "section",
31
+ level: 3,
32
+ className: "ttw:mb-3",
33
+ children: C.panelTitle
34
34
  }),
35
- /* @__PURE__ */ a("div", {
36
- className: "ttw:mb-3 ttw:border-b ttw:border-border",
37
- "aria-hidden": !0
35
+ /* @__PURE__ */ o(n, { className: "ttw:mb-3" }),
36
+ /* @__PURE__ */ o(a, {
37
+ rows: u,
38
+ testIds: S?.summary
38
39
  }),
39
- /* @__PURE__ */ a(i, {
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__ */ a(e, {
42
+ children: /* @__PURE__ */ o(e, {
46
43
  type: "button",
47
44
  variant: "secondary",
48
45
  size: "sm",
49
- onClick: c,
50
- disabled: f,
51
- "aria-label": S.editButtonAriaLabel,
52
- "data-testid": x?.editButton,
53
- children: S.editButton
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 { n as ABOUT_YOU_PANEL_LABELS_EN, s as AboutYouPanel };
56
+ export { r as ABOUT_YOU_PANEL_LABELS_EN, c as AboutYouPanel };