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