@tesouro/embedded-components-react 0.5.214 → 0.5.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +144 -3
- package/dist/index.js +14 -13
- package/dist/lib/BankAccountOnboardingWidget.d.ts +56 -2
- package/dist/lib/BankAccountOnboardingWidget.js +4 -3
- package/dist/lib/MarketingWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +88 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +53 -0
- package/dist/libs/shared/util-validation/dist/index5.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +72 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +95 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +16 -616
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +669 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +15 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +33 -89
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -185
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +4 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +26 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +21 -233
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +66 -27
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +233 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +27 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +26 -85
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +74 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +83 -55
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +7 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +157 -16
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +2 -1
- 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/feature/dist/lib/application/bankAccountApplication.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
|
@@ -1,185 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js
|
|
4
|
-
function u({ htmlFor: e, children: t }) {
|
|
5
|
-
return /* @__PURE__ */ c(n, {
|
|
6
|
-
htmlFor: e,
|
|
7
|
-
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
8
|
-
children: t
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
var d = "ttw:w-full";
|
|
12
|
-
function f({ fields: n, testIds: f, labels: p, isDisabled: m, websiteInvalid: h = !1, taxIdRequired: g, taxIdPlaceholder: _, taxIdHelpText: v }) {
|
|
13
|
-
return /* @__PURE__ */ l("section", {
|
|
14
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
15
|
-
"data-testid": f?.root,
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
18
|
-
htmlFor: "companyLegalName",
|
|
19
|
-
children: p.companyLegalName
|
|
20
|
-
}), /* @__PURE__ */ c(t, {
|
|
21
|
-
id: "companyLegalName",
|
|
22
|
-
value: n.companyLegalName.value,
|
|
23
|
-
onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
|
|
24
|
-
disabled: m,
|
|
25
|
-
required: !0
|
|
26
|
-
})] }),
|
|
27
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
28
|
-
htmlFor: "companyDbaName",
|
|
29
|
-
children: p.companyDbaName
|
|
30
|
-
}), /* @__PURE__ */ c(t, {
|
|
31
|
-
id: "companyDbaName",
|
|
32
|
-
value: n.companyDbaName.value,
|
|
33
|
-
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
34
|
-
disabled: m
|
|
35
|
-
})] }),
|
|
36
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
37
|
-
htmlFor: "businessAddress",
|
|
38
|
-
children: p.businessAddress
|
|
39
|
-
}), /* @__PURE__ */ c(t, {
|
|
40
|
-
id: "businessAddress",
|
|
41
|
-
value: n.businessAddress.value,
|
|
42
|
-
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
43
|
-
disabled: m,
|
|
44
|
-
required: !0
|
|
45
|
-
})] }),
|
|
46
|
-
/* @__PURE__ */ l("div", {
|
|
47
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ l("div", {
|
|
50
|
-
className: "ttw:min-w-0",
|
|
51
|
-
children: [/* @__PURE__ */ c(u, {
|
|
52
|
-
htmlFor: "city",
|
|
53
|
-
children: p.city
|
|
54
|
-
}), /* @__PURE__ */ c(t, {
|
|
55
|
-
id: "city",
|
|
56
|
-
value: n.city.value,
|
|
57
|
-
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
58
|
-
disabled: m,
|
|
59
|
-
required: !0
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ l("div", {
|
|
63
|
-
className: "ttw:min-w-0",
|
|
64
|
-
children: [/* @__PURE__ */ c(u, {
|
|
65
|
-
htmlFor: "state",
|
|
66
|
-
children: p.state
|
|
67
|
-
}), /* @__PURE__ */ l(r, {
|
|
68
|
-
value: n.state.value,
|
|
69
|
-
onValueChange: n.state.onValueChange,
|
|
70
|
-
disabled: m,
|
|
71
|
-
children: [/* @__PURE__ */ c(o, {
|
|
72
|
-
id: "state",
|
|
73
|
-
className: d,
|
|
74
|
-
children: /* @__PURE__ */ c(s, { placeholder: p.statePlaceholder })
|
|
75
|
-
}), /* @__PURE__ */ c(i, { children: n.state.options.map((e) => /* @__PURE__ */ c(a, {
|
|
76
|
-
value: e.value,
|
|
77
|
-
children: e.label
|
|
78
|
-
}, e.value)) })]
|
|
79
|
-
})]
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ l("div", {
|
|
82
|
-
className: "ttw:min-w-0",
|
|
83
|
-
children: [/* @__PURE__ */ c(u, {
|
|
84
|
-
htmlFor: "zipCode",
|
|
85
|
-
children: p.zipCode
|
|
86
|
-
}), /* @__PURE__ */ c(t, {
|
|
87
|
-
id: "zipCode",
|
|
88
|
-
value: n.zipCode.value,
|
|
89
|
-
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
90
|
-
disabled: m,
|
|
91
|
-
required: !0,
|
|
92
|
-
inputMode: "numeric"
|
|
93
|
-
})]
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
98
|
-
htmlFor: "companyPhoneNumber",
|
|
99
|
-
children: p.companyPhoneNumber
|
|
100
|
-
}), /* @__PURE__ */ c(t, {
|
|
101
|
-
id: "companyPhoneNumber",
|
|
102
|
-
type: "tel",
|
|
103
|
-
value: n.companyPhoneNumber.value,
|
|
104
|
-
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
105
|
-
disabled: m,
|
|
106
|
-
required: !0
|
|
107
|
-
})] }),
|
|
108
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
109
|
-
htmlFor: "companyStructure",
|
|
110
|
-
children: p.companyStructure
|
|
111
|
-
}), /* @__PURE__ */ l(r, {
|
|
112
|
-
value: n.companyStructure.value,
|
|
113
|
-
onValueChange: n.companyStructure.onValueChange,
|
|
114
|
-
disabled: m,
|
|
115
|
-
children: [/* @__PURE__ */ c(o, {
|
|
116
|
-
id: "companyStructure",
|
|
117
|
-
className: d,
|
|
118
|
-
children: /* @__PURE__ */ c(s, { placeholder: p.companyStructurePlaceholder })
|
|
119
|
-
}), /* @__PURE__ */ c(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ c(a, {
|
|
120
|
-
value: e.value,
|
|
121
|
-
children: e.label
|
|
122
|
-
}, e.value)) })]
|
|
123
|
-
})] }),
|
|
124
|
-
/* @__PURE__ */ l("div", { children: [
|
|
125
|
-
/* @__PURE__ */ c(u, {
|
|
126
|
-
htmlFor: "website",
|
|
127
|
-
children: p.website
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ c(t, {
|
|
130
|
-
id: "website",
|
|
131
|
-
type: "url",
|
|
132
|
-
value: n.website.value,
|
|
133
|
-
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
134
|
-
disabled: m,
|
|
135
|
-
"aria-invalid": h || void 0,
|
|
136
|
-
"aria-describedby": h ? "website-error" : void 0
|
|
137
|
-
}),
|
|
138
|
-
h ? /* @__PURE__ */ c("p", {
|
|
139
|
-
id: "website-error",
|
|
140
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-destructive",
|
|
141
|
-
role: "alert",
|
|
142
|
-
children: p.websiteInvalid
|
|
143
|
-
}) : null
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ l("div", { children: [
|
|
146
|
-
/* @__PURE__ */ c(u, {
|
|
147
|
-
htmlFor: "taxId",
|
|
148
|
-
children: p.taxId
|
|
149
|
-
}),
|
|
150
|
-
/* @__PURE__ */ c(t, {
|
|
151
|
-
id: "taxId",
|
|
152
|
-
value: n.taxId.value,
|
|
153
|
-
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
154
|
-
disabled: m,
|
|
155
|
-
required: g,
|
|
156
|
-
inputMode: "numeric",
|
|
157
|
-
maxLength: 9,
|
|
158
|
-
placeholder: _,
|
|
159
|
-
"aria-describedby": v ? "taxId-on-file" : void 0
|
|
160
|
-
}),
|
|
161
|
-
v ? /* @__PURE__ */ c("p", {
|
|
162
|
-
id: "taxId-on-file",
|
|
163
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
164
|
-
children: v
|
|
165
|
-
}) : null
|
|
166
|
-
] }),
|
|
167
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
168
|
-
htmlFor: "naicsCode",
|
|
169
|
-
children: p.naicsCode
|
|
170
|
-
}), /* @__PURE__ */ c(e, {
|
|
171
|
-
id: "naicsCode",
|
|
172
|
-
"data-testid": f?.naicsCombobox,
|
|
173
|
-
items: n.naicsCode.options,
|
|
174
|
-
value: n.naicsCode.value,
|
|
175
|
-
onValueChange: (e) => {
|
|
176
|
-
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
177
|
-
},
|
|
178
|
-
labels: { placeholder: p.naicsCodePlaceholder },
|
|
179
|
-
disabled: m
|
|
180
|
-
})] })
|
|
181
|
-
]
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
//#endregion
|
|
185
|
-
export { f as BusinessDetailsEditForm };
|
|
1
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
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, {
|
|
23
|
-
label: e.label,
|
|
24
|
-
value: e.value,
|
|
25
|
-
testId: e.testId
|
|
26
|
-
}, e.testId ?? e.label))
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { a as BusinessDetailsSummary };
|
|
1
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "@radix-ui/react-use-controllable-state";
|
|
@@ -1,23 +1,185 @@
|
|
|
1
|
+
import { Combobox as e, Input as t, Label as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
function u({ htmlFor: e, children: t }) {
|
|
5
|
+
return /* @__PURE__ */ c(n, {
|
|
6
|
+
htmlFor: e,
|
|
7
|
+
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
8
|
+
children: t
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
var d = "ttw:w-full";
|
|
12
|
+
function f({ fields: n, testIds: f, labels: p, isDisabled: m, websiteInvalid: h = !1, taxIdRequired: g, taxIdPlaceholder: _, taxIdHelpText: v }) {
|
|
13
|
+
return /* @__PURE__ */ l("section", {
|
|
14
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
15
|
+
"data-testid": f?.root,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
18
|
+
htmlFor: "companyLegalName",
|
|
19
|
+
children: p.companyLegalName
|
|
20
|
+
}), /* @__PURE__ */ c(t, {
|
|
21
|
+
id: "companyLegalName",
|
|
22
|
+
value: n.companyLegalName.value,
|
|
23
|
+
onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
|
|
24
|
+
disabled: m,
|
|
25
|
+
required: !0
|
|
26
|
+
})] }),
|
|
27
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
28
|
+
htmlFor: "companyDbaName",
|
|
29
|
+
children: p.companyDbaName
|
|
30
|
+
}), /* @__PURE__ */ c(t, {
|
|
31
|
+
id: "companyDbaName",
|
|
32
|
+
value: n.companyDbaName.value,
|
|
33
|
+
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
34
|
+
disabled: m
|
|
35
|
+
})] }),
|
|
36
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
37
|
+
htmlFor: "businessAddress",
|
|
38
|
+
children: p.businessAddress
|
|
39
|
+
}), /* @__PURE__ */ c(t, {
|
|
40
|
+
id: "businessAddress",
|
|
41
|
+
value: n.businessAddress.value,
|
|
42
|
+
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
43
|
+
disabled: m,
|
|
44
|
+
required: !0
|
|
45
|
+
})] }),
|
|
46
|
+
/* @__PURE__ */ l("div", {
|
|
47
|
+
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ l("div", {
|
|
50
|
+
className: "ttw:min-w-0",
|
|
51
|
+
children: [/* @__PURE__ */ c(u, {
|
|
52
|
+
htmlFor: "city",
|
|
53
|
+
children: p.city
|
|
54
|
+
}), /* @__PURE__ */ c(t, {
|
|
55
|
+
id: "city",
|
|
56
|
+
value: n.city.value,
|
|
57
|
+
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
58
|
+
disabled: m,
|
|
59
|
+
required: !0
|
|
60
|
+
})]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ l("div", {
|
|
63
|
+
className: "ttw:min-w-0",
|
|
64
|
+
children: [/* @__PURE__ */ c(u, {
|
|
65
|
+
htmlFor: "state",
|
|
66
|
+
children: p.state
|
|
67
|
+
}), /* @__PURE__ */ l(r, {
|
|
68
|
+
value: n.state.value,
|
|
69
|
+
onValueChange: n.state.onValueChange,
|
|
70
|
+
disabled: m,
|
|
71
|
+
children: [/* @__PURE__ */ c(o, {
|
|
72
|
+
id: "state",
|
|
73
|
+
className: d,
|
|
74
|
+
children: /* @__PURE__ */ c(s, { placeholder: p.statePlaceholder })
|
|
75
|
+
}), /* @__PURE__ */ c(i, { children: n.state.options.map((e) => /* @__PURE__ */ c(a, {
|
|
76
|
+
value: e.value,
|
|
77
|
+
children: e.label
|
|
78
|
+
}, e.value)) })]
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ l("div", {
|
|
82
|
+
className: "ttw:min-w-0",
|
|
83
|
+
children: [/* @__PURE__ */ c(u, {
|
|
84
|
+
htmlFor: "zipCode",
|
|
85
|
+
children: p.zipCode
|
|
86
|
+
}), /* @__PURE__ */ c(t, {
|
|
87
|
+
id: "zipCode",
|
|
88
|
+
value: n.zipCode.value,
|
|
89
|
+
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
90
|
+
disabled: m,
|
|
91
|
+
required: !0,
|
|
92
|
+
inputMode: "numeric"
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
98
|
+
htmlFor: "companyPhoneNumber",
|
|
99
|
+
children: p.companyPhoneNumber
|
|
100
|
+
}), /* @__PURE__ */ c(t, {
|
|
101
|
+
id: "companyPhoneNumber",
|
|
102
|
+
type: "tel",
|
|
103
|
+
value: n.companyPhoneNumber.value,
|
|
104
|
+
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
105
|
+
disabled: m,
|
|
106
|
+
required: !0
|
|
107
|
+
})] }),
|
|
108
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
109
|
+
htmlFor: "companyStructure",
|
|
110
|
+
children: p.companyStructure
|
|
111
|
+
}), /* @__PURE__ */ l(r, {
|
|
112
|
+
value: n.companyStructure.value,
|
|
113
|
+
onValueChange: n.companyStructure.onValueChange,
|
|
114
|
+
disabled: m,
|
|
115
|
+
children: [/* @__PURE__ */ c(o, {
|
|
116
|
+
id: "companyStructure",
|
|
117
|
+
className: d,
|
|
118
|
+
children: /* @__PURE__ */ c(s, { placeholder: p.companyStructurePlaceholder })
|
|
119
|
+
}), /* @__PURE__ */ c(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ c(a, {
|
|
120
|
+
value: e.value,
|
|
121
|
+
children: e.label
|
|
122
|
+
}, e.value)) })]
|
|
123
|
+
})] }),
|
|
124
|
+
/* @__PURE__ */ l("div", { children: [
|
|
125
|
+
/* @__PURE__ */ c(u, {
|
|
126
|
+
htmlFor: "website",
|
|
127
|
+
children: p.website
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ c(t, {
|
|
130
|
+
id: "website",
|
|
131
|
+
type: "url",
|
|
132
|
+
value: n.website.value,
|
|
133
|
+
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
134
|
+
disabled: m,
|
|
135
|
+
"aria-invalid": h || void 0,
|
|
136
|
+
"aria-describedby": h ? "website-error" : void 0
|
|
137
|
+
}),
|
|
138
|
+
h ? /* @__PURE__ */ c("p", {
|
|
139
|
+
id: "website-error",
|
|
140
|
+
className: "ttw:mt-1 ttw:text-sm ttw:text-destructive",
|
|
141
|
+
role: "alert",
|
|
142
|
+
children: p.websiteInvalid
|
|
143
|
+
}) : null
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ l("div", { children: [
|
|
146
|
+
/* @__PURE__ */ c(u, {
|
|
147
|
+
htmlFor: "taxId",
|
|
148
|
+
children: p.taxId
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ c(t, {
|
|
151
|
+
id: "taxId",
|
|
152
|
+
value: n.taxId.value,
|
|
153
|
+
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
154
|
+
disabled: m,
|
|
155
|
+
required: g,
|
|
156
|
+
inputMode: "numeric",
|
|
157
|
+
maxLength: 9,
|
|
158
|
+
placeholder: _,
|
|
159
|
+
"aria-describedby": v ? "taxId-on-file" : void 0
|
|
160
|
+
}),
|
|
161
|
+
v ? /* @__PURE__ */ c("p", {
|
|
162
|
+
id: "taxId-on-file",
|
|
163
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
164
|
+
children: v
|
|
165
|
+
}) : null
|
|
166
|
+
] }),
|
|
167
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
168
|
+
htmlFor: "naicsCode",
|
|
169
|
+
children: p.naicsCode
|
|
170
|
+
}), /* @__PURE__ */ c(e, {
|
|
171
|
+
id: "naicsCode",
|
|
172
|
+
"data-testid": f?.naicsCombobox,
|
|
173
|
+
items: n.naicsCode.options,
|
|
174
|
+
value: n.naicsCode.value,
|
|
175
|
+
onValueChange: (e) => {
|
|
176
|
+
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
177
|
+
},
|
|
178
|
+
labels: { placeholder: p.naicsCodePlaceholder },
|
|
179
|
+
disabled: m
|
|
180
|
+
})] })
|
|
181
|
+
]
|
|
182
|
+
});
|
|
183
|
+
}
|
|
22
184
|
//#endregion
|
|
23
|
-
export {
|
|
185
|
+
export { f as BusinessDetailsEditForm };
|
|
@@ -1,70 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { BusinessDetailsEditForm as s } from "./index16.js";
|
|
4
|
-
import { BusinessDetailsSummary as c } from "./index17.js";
|
|
5
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { Pen as d } 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";
|
|
7
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
className: "ttw:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
32
|
-
children: C.panelTitle
|
|
33
|
-
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
34
|
-
asChild: !0,
|
|
35
|
-
onFocus: (e) => {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
},
|
|
38
|
-
children: /* @__PURE__ */ l(e, {
|
|
39
|
-
type: "button",
|
|
40
|
-
variant: "ghost",
|
|
41
|
-
size: "icon-sm",
|
|
42
|
-
onClick: p,
|
|
43
|
-
disabled: _,
|
|
44
|
-
"aria-label": C.editButtonAriaLabel,
|
|
45
|
-
"data-testid": S?.editButton,
|
|
46
|
-
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
47
|
-
children: /* @__PURE__ */ l(d, {
|
|
48
|
-
className: "ttw:size-5",
|
|
49
|
-
"aria-hidden": !0
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
}), /* @__PURE__ */ l(n, {
|
|
53
|
-
side: "top",
|
|
54
|
-
sideOffset: 4,
|
|
55
|
-
children: C.editTooltip
|
|
56
|
-
})] }) })]
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ l("div", {
|
|
59
|
-
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
60
|
-
"aria-hidden": !0
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ l(c, {
|
|
63
|
-
rows: m,
|
|
64
|
-
testIds: S?.summary
|
|
65
|
-
})
|
|
66
|
-
]
|
|
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;
|
|
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, {
|
|
23
|
+
label: e.label,
|
|
24
|
+
value: e.value,
|
|
25
|
+
testId: e.testId
|
|
26
|
+
}, e.testId ?? e.label))
|
|
67
27
|
});
|
|
68
28
|
}
|
|
69
29
|
//#endregion
|
|
70
|
-
export {
|
|
30
|
+
export { a as BusinessDetailsSummary };
|