@tesouro/embedded-components-react 0.3.15 → 0.3.17
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 +22 -1
- package/dist/index.js +10 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -1
- package/dist/lib/AcceptDisclosuresWidget.js +1 -1
- package/dist/lib/BalancesWidget.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +21 -21
- package/dist/lib/BankAccountOnboardingWidget.js +1 -1
- package/dist/lib/CardsWidget.js +1 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.js +1 -1
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +1 -1
- package/dist/lib/ReceiptMatchWidget.js +1 -1
- package/dist/lib/TransfersWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +10 -140
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +152 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index6.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/BalancesWidget.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/SingleBalance/SingleBalance.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +109 -169
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +170 -63
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +73 -81
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +77 -101
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +110 -83
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +91 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +26 -320
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +341 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index9.js +29 -100
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +42 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +80 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index5.js +24 -30
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index6.js +28 -55
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index7.js +54 -209
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +206 -81
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +95 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +31 -30
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +1 -255
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +253 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +2 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +73 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +7 -218
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +219 -79
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +2 -47
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +49 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index12.js +73 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/InsightsWidget.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +67 -46
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/testIds.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +151 -135
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index14.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index20.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1206 -1201
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +18 -99
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +116 -19
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
|
@@ -9,38 +9,38 @@ function u({ htmlFor: e, children: t }) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
var d = "ttw:w-full";
|
|
12
|
-
function f({ fields: n,
|
|
12
|
+
function f({ fields: n, testIds: f, labels: p, isDisabled: m, websiteInvalid: h = !1 }) {
|
|
13
13
|
return /* @__PURE__ */ l("section", {
|
|
14
14
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
15
|
-
"data-testid":
|
|
15
|
+
"data-testid": f?.root,
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
18
18
|
htmlFor: "companyLegalName",
|
|
19
|
-
children:
|
|
19
|
+
children: p.companyLegalName
|
|
20
20
|
}), /* @__PURE__ */ c(t, {
|
|
21
21
|
id: "companyLegalName",
|
|
22
22
|
value: n.companyLegalName.value,
|
|
23
23
|
onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: m,
|
|
25
25
|
required: !0
|
|
26
26
|
})] }),
|
|
27
27
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
28
28
|
htmlFor: "companyDbaName",
|
|
29
|
-
children:
|
|
29
|
+
children: p.companyDbaName
|
|
30
30
|
}), /* @__PURE__ */ c(t, {
|
|
31
31
|
id: "companyDbaName",
|
|
32
32
|
value: n.companyDbaName.value,
|
|
33
33
|
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
34
|
-
disabled:
|
|
34
|
+
disabled: m
|
|
35
35
|
})] }),
|
|
36
36
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
37
37
|
htmlFor: "businessAddress",
|
|
38
|
-
children:
|
|
38
|
+
children: p.businessAddress
|
|
39
39
|
}), /* @__PURE__ */ c(t, {
|
|
40
40
|
id: "businessAddress",
|
|
41
41
|
value: n.businessAddress.value,
|
|
42
42
|
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
43
|
-
disabled:
|
|
43
|
+
disabled: m,
|
|
44
44
|
required: !0
|
|
45
45
|
})] }),
|
|
46
46
|
/* @__PURE__ */ l("div", {
|
|
@@ -50,12 +50,12 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
50
50
|
className: "ttw:min-w-0",
|
|
51
51
|
children: [/* @__PURE__ */ c(u, {
|
|
52
52
|
htmlFor: "city",
|
|
53
|
-
children:
|
|
53
|
+
children: p.city
|
|
54
54
|
}), /* @__PURE__ */ c(t, {
|
|
55
55
|
id: "city",
|
|
56
56
|
value: n.city.value,
|
|
57
57
|
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
58
|
-
disabled:
|
|
58
|
+
disabled: m,
|
|
59
59
|
required: !0
|
|
60
60
|
})]
|
|
61
61
|
}),
|
|
@@ -63,15 +63,15 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
63
63
|
className: "ttw:min-w-0",
|
|
64
64
|
children: [/* @__PURE__ */ c(u, {
|
|
65
65
|
htmlFor: "state",
|
|
66
|
-
children:
|
|
66
|
+
children: p.state
|
|
67
67
|
}), /* @__PURE__ */ l(r, {
|
|
68
68
|
value: n.state.value,
|
|
69
69
|
onValueChange: n.state.onValueChange,
|
|
70
|
-
disabled:
|
|
70
|
+
disabled: m,
|
|
71
71
|
children: [/* @__PURE__ */ c(o, {
|
|
72
72
|
id: "state",
|
|
73
73
|
className: d,
|
|
74
|
-
children: /* @__PURE__ */ c(s, { placeholder:
|
|
74
|
+
children: /* @__PURE__ */ c(s, { placeholder: p.statePlaceholder })
|
|
75
75
|
}), /* @__PURE__ */ c(i, { children: n.state.options.map((e) => /* @__PURE__ */ c(a, {
|
|
76
76
|
value: e.value,
|
|
77
77
|
children: e.label
|
|
@@ -82,12 +82,12 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
82
82
|
className: "ttw:min-w-0",
|
|
83
83
|
children: [/* @__PURE__ */ c(u, {
|
|
84
84
|
htmlFor: "zipCode",
|
|
85
|
-
children:
|
|
85
|
+
children: p.zipCode
|
|
86
86
|
}), /* @__PURE__ */ c(t, {
|
|
87
87
|
id: "zipCode",
|
|
88
88
|
value: n.zipCode.value,
|
|
89
89
|
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
90
|
-
disabled:
|
|
90
|
+
disabled: m,
|
|
91
91
|
required: !0,
|
|
92
92
|
inputMode: "numeric"
|
|
93
93
|
})]
|
|
@@ -96,26 +96,26 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
96
96
|
}),
|
|
97
97
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
98
98
|
htmlFor: "companyPhoneNumber",
|
|
99
|
-
children:
|
|
99
|
+
children: p.companyPhoneNumber
|
|
100
100
|
}), /* @__PURE__ */ c(t, {
|
|
101
101
|
id: "companyPhoneNumber",
|
|
102
102
|
type: "tel",
|
|
103
103
|
value: n.companyPhoneNumber.value,
|
|
104
104
|
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
105
|
-
disabled:
|
|
105
|
+
disabled: m,
|
|
106
106
|
required: !0
|
|
107
107
|
})] }),
|
|
108
108
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
109
109
|
htmlFor: "companyStructure",
|
|
110
|
-
children:
|
|
110
|
+
children: p.companyStructure
|
|
111
111
|
}), /* @__PURE__ */ l(r, {
|
|
112
112
|
value: n.companyStructure.value,
|
|
113
113
|
onValueChange: n.companyStructure.onValueChange,
|
|
114
|
-
disabled:
|
|
114
|
+
disabled: m,
|
|
115
115
|
children: [/* @__PURE__ */ c(o, {
|
|
116
116
|
id: "companyStructure",
|
|
117
117
|
className: d,
|
|
118
|
-
children: /* @__PURE__ */ c(s, { placeholder:
|
|
118
|
+
children: /* @__PURE__ */ c(s, { placeholder: p.companyStructurePlaceholder })
|
|
119
119
|
}), /* @__PURE__ */ c(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ c(a, {
|
|
120
120
|
value: e.value,
|
|
121
121
|
children: e.label
|
|
@@ -124,49 +124,49 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
124
124
|
/* @__PURE__ */ l("div", { children: [
|
|
125
125
|
/* @__PURE__ */ c(u, {
|
|
126
126
|
htmlFor: "website",
|
|
127
|
-
children:
|
|
127
|
+
children: p.website
|
|
128
128
|
}),
|
|
129
129
|
/* @__PURE__ */ c(t, {
|
|
130
130
|
id: "website",
|
|
131
131
|
type: "url",
|
|
132
132
|
value: n.website.value,
|
|
133
133
|
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
134
|
-
disabled:
|
|
135
|
-
"aria-invalid":
|
|
136
|
-
"aria-describedby":
|
|
134
|
+
disabled: m,
|
|
135
|
+
"aria-invalid": h || void 0,
|
|
136
|
+
"aria-describedby": h ? "website-error" : void 0
|
|
137
137
|
}),
|
|
138
|
-
|
|
138
|
+
h ? /* @__PURE__ */ c("p", {
|
|
139
139
|
id: "website-error",
|
|
140
140
|
className: "ttw:mt-1 ttw:text-sm ttw:text-destructive",
|
|
141
141
|
role: "alert",
|
|
142
|
-
children:
|
|
142
|
+
children: p.websiteInvalid
|
|
143
143
|
}) : null
|
|
144
144
|
] }),
|
|
145
145
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
146
146
|
htmlFor: "taxId",
|
|
147
|
-
children:
|
|
147
|
+
children: p.taxId
|
|
148
148
|
}), /* @__PURE__ */ c(t, {
|
|
149
149
|
id: "taxId",
|
|
150
150
|
value: n.taxId.value,
|
|
151
151
|
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
152
|
-
disabled:
|
|
152
|
+
disabled: m,
|
|
153
153
|
required: !0,
|
|
154
154
|
inputMode: "numeric",
|
|
155
155
|
maxLength: 9
|
|
156
156
|
})] }),
|
|
157
157
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
158
158
|
htmlFor: "naicsCode",
|
|
159
|
-
children:
|
|
159
|
+
children: p.naicsCode
|
|
160
160
|
}), /* @__PURE__ */ c(e, {
|
|
161
161
|
id: "naicsCode",
|
|
162
|
-
"data-testid":
|
|
162
|
+
"data-testid": f?.naicsCombobox,
|
|
163
163
|
items: n.naicsCode.options,
|
|
164
164
|
value: n.naicsCode.value,
|
|
165
165
|
onValueChange: (e) => {
|
|
166
166
|
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
167
167
|
},
|
|
168
|
-
labels: { placeholder:
|
|
169
|
-
disabled:
|
|
168
|
+
labels: { placeholder: p.naicsCodePlaceholder },
|
|
169
|
+
disabled: m
|
|
170
170
|
})] })
|
|
171
171
|
]
|
|
172
172
|
});
|
|
@@ -18,10 +18,10 @@ function r({ label: r, value: i, testId: a }) {
|
|
|
18
18
|
})]
|
|
19
19
|
}) : null;
|
|
20
20
|
}
|
|
21
|
-
function i({ rows: e }) {
|
|
21
|
+
function i({ rows: e, testIds: n }) {
|
|
22
22
|
return /* @__PURE__ */ t("div", {
|
|
23
23
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
24
|
-
"data-testid":
|
|
24
|
+
"data-testid": n?.root,
|
|
25
25
|
children: e.map((e) => /* @__PURE__ */ t(r, {
|
|
26
26
|
label: e.label,
|
|
27
27
|
value: e.value,
|
|
@@ -5,18 +5,19 @@ import { BusinessDetailsSummary as c } from "./index16.js";
|
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
import { Pen as d } from "lucide-react";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js
|
|
8
|
-
function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels: g, isDisabled: _, websiteInvalid: v }) {
|
|
9
|
-
let
|
|
8
|
+
function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels: g, isDisabled: _, websiteInvalid: v, testIds: y }) {
|
|
9
|
+
let b = {
|
|
10
10
|
...o,
|
|
11
11
|
...g
|
|
12
12
|
};
|
|
13
13
|
return f ? /* @__PURE__ */ l(s, {
|
|
14
14
|
fields: h,
|
|
15
|
-
labels:
|
|
15
|
+
labels: b,
|
|
16
16
|
isDisabled: _,
|
|
17
|
-
websiteInvalid: v
|
|
17
|
+
websiteInvalid: v,
|
|
18
|
+
testIds: y?.editForm
|
|
18
19
|
}) : /* @__PURE__ */ u("section", {
|
|
19
|
-
"data-testid":
|
|
20
|
+
"data-testid": y?.root,
|
|
20
21
|
className: "ttw:relative ttw:min-w-0 ttw:rounded-lg ttw:bg-surface-subtle ttw:p-4",
|
|
21
22
|
children: [
|
|
22
23
|
/* @__PURE__ */ u("div", {
|
|
@@ -25,7 +26,7 @@ function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels
|
|
|
25
26
|
component: "h3",
|
|
26
27
|
variant: "h6",
|
|
27
28
|
className: "ttw:font-semibold ttw:text-foreground",
|
|
28
|
-
children:
|
|
29
|
+
children: b.panelTitle
|
|
29
30
|
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
30
31
|
asChild: !0,
|
|
31
32
|
onFocus: (e) => {
|
|
@@ -37,8 +38,8 @@ function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels
|
|
|
37
38
|
size: "icon-sm",
|
|
38
39
|
onClick: p,
|
|
39
40
|
disabled: _,
|
|
40
|
-
"aria-label":
|
|
41
|
-
"data-testid":
|
|
41
|
+
"aria-label": b.editButtonAriaLabel,
|
|
42
|
+
"data-testid": y?.editButton,
|
|
42
43
|
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
43
44
|
children: /* @__PURE__ */ l(d, {
|
|
44
45
|
className: "ttw:size-5",
|
|
@@ -48,14 +49,17 @@ function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels
|
|
|
48
49
|
}), /* @__PURE__ */ l(n, {
|
|
49
50
|
side: "top",
|
|
50
51
|
sideOffset: 4,
|
|
51
|
-
children:
|
|
52
|
+
children: b.editTooltip
|
|
52
53
|
})] }) })]
|
|
53
54
|
}),
|
|
54
55
|
/* @__PURE__ */ l("div", {
|
|
55
56
|
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
56
57
|
"aria-hidden": !0
|
|
57
58
|
}),
|
|
58
|
-
/* @__PURE__ */ l(c, {
|
|
59
|
+
/* @__PURE__ */ l(c, {
|
|
60
|
+
rows: m,
|
|
61
|
+
testIds: y?.summary
|
|
62
|
+
})
|
|
59
63
|
]
|
|
60
64
|
});
|
|
61
65
|
}
|
|
@@ -11,57 +11,57 @@ function y({ htmlFor: e, children: t }) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
var b = "ttw:w-full";
|
|
14
|
-
function x({ fields: x,
|
|
15
|
-
let [
|
|
14
|
+
function x({ fields: x, testIds: S, labels: C, isDisabled: w, ssnRevealed: T, ssnToggleAriaLabel: E, onToggleSsnVisibility: D, showOwnershipPercentage: O, maxBirthDate: k, ssnMaskedDisplay: A, ssnFormattedDisplay: j }) {
|
|
15
|
+
let [M, N] = m(!1), P = !T && !M;
|
|
16
16
|
return /* @__PURE__ */ g("section", {
|
|
17
17
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
18
|
-
"data-testid":
|
|
18
|
+
"data-testid": S?.root,
|
|
19
19
|
children: [
|
|
20
20
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
21
21
|
htmlFor: "firstName",
|
|
22
|
-
children:
|
|
22
|
+
children: C.firstName
|
|
23
23
|
}), /* @__PURE__ */ h(n, {
|
|
24
24
|
id: "firstName",
|
|
25
25
|
value: x.firstName.value,
|
|
26
26
|
onChange: (e) => x.firstName.onValueChange(e.target.value),
|
|
27
|
-
disabled:
|
|
27
|
+
disabled: w,
|
|
28
28
|
required: !0
|
|
29
29
|
})] }),
|
|
30
30
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
31
31
|
htmlFor: "lastName",
|
|
32
|
-
children:
|
|
32
|
+
children: C.lastName
|
|
33
33
|
}), /* @__PURE__ */ h(n, {
|
|
34
34
|
id: "lastName",
|
|
35
35
|
value: x.lastName.value,
|
|
36
36
|
onChange: (e) => x.lastName.onValueChange(e.target.value),
|
|
37
|
-
disabled:
|
|
37
|
+
disabled: w,
|
|
38
38
|
required: !0
|
|
39
39
|
})] }),
|
|
40
40
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
41
41
|
htmlFor: "dateOfBirth",
|
|
42
|
-
children:
|
|
42
|
+
children: C.dateOfBirth
|
|
43
43
|
}), /* @__PURE__ */ h(t, {
|
|
44
44
|
id: "dateOfBirth",
|
|
45
45
|
value: x.dateOfBirth.value,
|
|
46
46
|
onChange: x.dateOfBirth.onValueChange,
|
|
47
|
-
placeholder:
|
|
48
|
-
disabled:
|
|
49
|
-
maxDate:
|
|
47
|
+
placeholder: C.dateOfBirthPlaceholder,
|
|
48
|
+
disabled: w,
|
|
49
|
+
maxDate: k
|
|
50
50
|
})] }),
|
|
51
51
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
52
52
|
htmlFor: "ssn",
|
|
53
|
-
children:
|
|
53
|
+
children: C.ssn
|
|
54
54
|
}), /* @__PURE__ */ g("div", {
|
|
55
55
|
className: "ttw:flex ttw:gap-2",
|
|
56
56
|
children: [/* @__PURE__ */ h(n, {
|
|
57
57
|
id: "ssn",
|
|
58
58
|
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
59
59
|
type: "text",
|
|
60
|
-
value:
|
|
60
|
+
value: P ? A : j,
|
|
61
61
|
onChange: (e) => x.ssn.onValueChange(e.target.value),
|
|
62
|
-
onFocus: () =>
|
|
63
|
-
onBlur: () =>
|
|
64
|
-
disabled:
|
|
62
|
+
onFocus: () => N(!0),
|
|
63
|
+
onBlur: () => N(!1),
|
|
64
|
+
disabled: w,
|
|
65
65
|
autoComplete: "off",
|
|
66
66
|
inputMode: "numeric",
|
|
67
67
|
maxLength: 11,
|
|
@@ -70,20 +70,20 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
70
70
|
type: "button",
|
|
71
71
|
variant: "outline",
|
|
72
72
|
size: "icon",
|
|
73
|
-
onClick:
|
|
74
|
-
disabled:
|
|
75
|
-
"aria-label":
|
|
76
|
-
children: h(
|
|
73
|
+
onClick: D,
|
|
74
|
+
disabled: w,
|
|
75
|
+
"aria-label": E,
|
|
76
|
+
children: h(T ? v : _, { className: "ttw:size-4" })
|
|
77
77
|
})]
|
|
78
78
|
})] }),
|
|
79
79
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
80
80
|
htmlFor: "homeAddress",
|
|
81
|
-
children:
|
|
81
|
+
children: C.homeAddress
|
|
82
82
|
}), /* @__PURE__ */ h(n, {
|
|
83
83
|
id: "homeAddress",
|
|
84
84
|
value: x.homeAddress.value,
|
|
85
85
|
onChange: (e) => x.homeAddress.onValueChange(e.target.value),
|
|
86
|
-
disabled:
|
|
86
|
+
disabled: w,
|
|
87
87
|
required: !0
|
|
88
88
|
})] }),
|
|
89
89
|
/* @__PURE__ */ g("div", {
|
|
@@ -93,12 +93,12 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
93
93
|
className: "ttw:min-w-0",
|
|
94
94
|
children: [/* @__PURE__ */ h(y, {
|
|
95
95
|
htmlFor: "city",
|
|
96
|
-
children:
|
|
96
|
+
children: C.city
|
|
97
97
|
}), /* @__PURE__ */ h(n, {
|
|
98
98
|
id: "city",
|
|
99
99
|
value: x.city.value,
|
|
100
100
|
onChange: (e) => x.city.onValueChange(e.target.value),
|
|
101
|
-
disabled:
|
|
101
|
+
disabled: w,
|
|
102
102
|
required: !0
|
|
103
103
|
})]
|
|
104
104
|
}),
|
|
@@ -106,15 +106,15 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
106
106
|
className: "ttw:min-w-0",
|
|
107
107
|
children: [/* @__PURE__ */ h(y, {
|
|
108
108
|
htmlFor: "state",
|
|
109
|
-
children:
|
|
109
|
+
children: C.state
|
|
110
110
|
}), /* @__PURE__ */ g(l, {
|
|
111
111
|
value: x.state.value,
|
|
112
112
|
onValueChange: x.state.onValueChange,
|
|
113
|
-
disabled:
|
|
113
|
+
disabled: w,
|
|
114
114
|
children: [/* @__PURE__ */ h(f, {
|
|
115
115
|
id: "state",
|
|
116
116
|
className: b,
|
|
117
|
-
children: /* @__PURE__ */ h(p, { placeholder:
|
|
117
|
+
children: /* @__PURE__ */ h(p, { placeholder: C.statePlaceholder })
|
|
118
118
|
}), /* @__PURE__ */ h(u, { children: x.state.options.map((e) => /* @__PURE__ */ h(d, {
|
|
119
119
|
value: e.value,
|
|
120
120
|
children: e.label
|
|
@@ -125,12 +125,12 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
125
125
|
className: "ttw:min-w-0",
|
|
126
126
|
children: [/* @__PURE__ */ h(y, {
|
|
127
127
|
htmlFor: "zipCode",
|
|
128
|
-
children:
|
|
128
|
+
children: C.zipCode
|
|
129
129
|
}), /* @__PURE__ */ h(n, {
|
|
130
130
|
id: "zipCode",
|
|
131
131
|
value: x.zipCode.value,
|
|
132
132
|
onChange: (e) => x.zipCode.onValueChange(e.target.value),
|
|
133
|
-
disabled:
|
|
133
|
+
disabled: w,
|
|
134
134
|
required: !0,
|
|
135
135
|
inputMode: "numeric"
|
|
136
136
|
})]
|
|
@@ -139,37 +139,37 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
139
139
|
}),
|
|
140
140
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
141
141
|
htmlFor: "mobilePhoneNumber",
|
|
142
|
-
children:
|
|
142
|
+
children: C.mobilePhoneNumber
|
|
143
143
|
}), /* @__PURE__ */ h(n, {
|
|
144
144
|
id: "mobilePhoneNumber",
|
|
145
145
|
type: "tel",
|
|
146
146
|
value: x.mobilePhoneNumber.value,
|
|
147
147
|
onChange: (e) => x.mobilePhoneNumber.onValueChange(e.target.value),
|
|
148
|
-
disabled:
|
|
148
|
+
disabled: w,
|
|
149
149
|
required: !0
|
|
150
150
|
})] }),
|
|
151
151
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
152
152
|
htmlFor: "workEmail",
|
|
153
|
-
children:
|
|
153
|
+
children: C.workEmail
|
|
154
154
|
}), /* @__PURE__ */ h(n, {
|
|
155
155
|
id: "workEmail",
|
|
156
156
|
type: "email",
|
|
157
157
|
value: x.workEmail.value,
|
|
158
158
|
onChange: (e) => x.workEmail.onValueChange(e.target.value),
|
|
159
|
-
disabled:
|
|
159
|
+
disabled: w,
|
|
160
160
|
required: !0
|
|
161
161
|
})] }),
|
|
162
162
|
/* @__PURE__ */ g("fieldset", {
|
|
163
|
-
"data-testid":
|
|
163
|
+
"data-testid": S?.ownsOver25Question,
|
|
164
164
|
children: [/* @__PURE__ */ h("legend", {
|
|
165
165
|
id: "ownsOver25Legend",
|
|
166
166
|
className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
|
|
167
|
-
children:
|
|
167
|
+
children: C.ownsOver25Question
|
|
168
168
|
}), /* @__PURE__ */ g(s, {
|
|
169
169
|
value: x.ownsOver25Percent.value,
|
|
170
170
|
onValueChange: x.ownsOver25Percent.onValueChange,
|
|
171
171
|
className: "ttw:flex ttw:gap-4",
|
|
172
|
-
disabled:
|
|
172
|
+
disabled: w,
|
|
173
173
|
"aria-labelledby": "ownsOver25Legend",
|
|
174
174
|
children: [/* @__PURE__ */ g("div", {
|
|
175
175
|
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
@@ -180,7 +180,7 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
180
180
|
}), /* @__PURE__ */ h(o, {
|
|
181
181
|
htmlFor: "ownsOver25Yes",
|
|
182
182
|
className: "ttw:cursor-pointer",
|
|
183
|
-
children:
|
|
183
|
+
children: C.ownsOver25Yes
|
|
184
184
|
})]
|
|
185
185
|
}), /* @__PURE__ */ g("div", {
|
|
186
186
|
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
@@ -191,14 +191,14 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
191
191
|
}), /* @__PURE__ */ h(o, {
|
|
192
192
|
htmlFor: "ownsOver25No",
|
|
193
193
|
className: "ttw:cursor-pointer",
|
|
194
|
-
children:
|
|
194
|
+
children: C.ownsOver25No
|
|
195
195
|
})]
|
|
196
196
|
})]
|
|
197
197
|
})]
|
|
198
198
|
}),
|
|
199
|
-
|
|
199
|
+
O ? /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
200
200
|
htmlFor: "ownershipPercentage",
|
|
201
|
-
children:
|
|
201
|
+
children: C.ownershipPercentage
|
|
202
202
|
}), /* @__PURE__ */ g(r, {
|
|
203
203
|
className: "ttw:w-32",
|
|
204
204
|
children: [/* @__PURE__ */ h(a, {
|
|
@@ -207,10 +207,10 @@ function x({ fields: x, labels: S, isDisabled: C, ssnRevealed: w, ssnToggleAriaL
|
|
|
207
207
|
min: 25,
|
|
208
208
|
max: 100,
|
|
209
209
|
"data-has-end-addon": "",
|
|
210
|
-
placeholder:
|
|
210
|
+
placeholder: C.ownershipPercentagePlaceholder,
|
|
211
211
|
value: x.ownershipPercentage.value ?? "",
|
|
212
212
|
onChange: (e) => x.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
213
|
-
disabled:
|
|
213
|
+
disabled: w,
|
|
214
214
|
required: !0
|
|
215
215
|
}), /* @__PURE__ */ h(i, {
|
|
216
216
|
align: "inline-end",
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
CHANGED
|
@@ -4,84 +4,87 @@ import "../../../shared/ui/dist/index.js";
|
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import { Trash2Icon as i, XIcon as a } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
|
|
7
|
-
function o({ ownerName: o, labels: s, isDisabled: c, onCancel: l, onConfirm: u, onClose: d }) {
|
|
8
|
-
return /* @__PURE__ */ n(t, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */ r("div", {
|
|
30
|
-
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:text-center",
|
|
31
|
-
"data-testid": "additional-owner-delete-content",
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ r("div", {
|
|
34
|
-
className: "ttw:relative ttw:mb-6 ttw:flex ttw:items-center ttw:justify-center",
|
|
35
|
-
children: [/* @__PURE__ */ n("div", {
|
|
36
|
-
className: "ttw:absolute ttw:size-16 ttw:rounded-full ttw:bg-destructive/20 ttw:blur-md",
|
|
37
|
-
"aria-hidden": !0
|
|
38
|
-
}), /* @__PURE__ */ n("div", {
|
|
39
|
-
className: "ttw:relative ttw:flex ttw:size-14 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
|
|
40
|
-
"aria-hidden": !0,
|
|
41
|
-
children: /* @__PURE__ */ n(i, { className: "ttw:size-6 ttw:text-destructive" })
|
|
42
|
-
})]
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ n("h2", {
|
|
45
|
-
id: "additional-owner-delete-title",
|
|
46
|
-
className: "ttw:mb-3 ttw:text-2xl ttw:font-semibold ttw:tracking-tight",
|
|
47
|
-
children: s.deleteOwnerHeading
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ r("p", {
|
|
50
|
-
id: "additional-owner-delete-description",
|
|
51
|
-
className: "ttw:max-w-sm ttw:text-base ttw:text-muted-foreground",
|
|
52
|
-
children: [
|
|
53
|
-
s.deleteOwnerPromptBeforeName,
|
|
54
|
-
" ",
|
|
55
|
-
/* @__PURE__ */ n("span", {
|
|
56
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
57
|
-
children: o
|
|
58
|
-
}),
|
|
59
|
-
" ",
|
|
60
|
-
s.deleteOwnerPromptAfterName
|
|
61
|
-
]
|
|
7
|
+
function o({ ownerName: o, labels: s, isDisabled: c, onCancel: l, onConfirm: u, onClose: d, testIds: f }) {
|
|
8
|
+
return /* @__PURE__ */ n(t, {
|
|
9
|
+
testIds: f?.overlay,
|
|
10
|
+
children: /* @__PURE__ */ r("div", {
|
|
11
|
+
className: "ttw:flex ttw:h-full ttw:w-full ttw:min-h-0 ttw:flex-col ttw:px-8 ttw:pb-8 ttw:pt-8",
|
|
12
|
+
role: "alertdialog",
|
|
13
|
+
"aria-modal": "true",
|
|
14
|
+
"aria-labelledby": "additional-owner-delete-title",
|
|
15
|
+
"aria-describedby": "additional-owner-delete-description",
|
|
16
|
+
"data-testid": f?.root,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ n("div", {
|
|
19
|
+
className: "ttw:relative ttw:shrink-0",
|
|
20
|
+
children: /* @__PURE__ */ n(e, {
|
|
21
|
+
type: "button",
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
size: "icon-sm",
|
|
24
|
+
onClick: d,
|
|
25
|
+
disabled: c,
|
|
26
|
+
"aria-label": s.close,
|
|
27
|
+
className: "ttw:absolute ttw:top-0 ttw:right-0",
|
|
28
|
+
children: /* @__PURE__ */ n(a, { className: "ttw:size-4" })
|
|
62
29
|
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ r("div", {
|
|
32
|
+
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:text-center",
|
|
33
|
+
"data-testid": f?.content,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ r("div", {
|
|
36
|
+
className: "ttw:relative ttw:mb-6 ttw:flex ttw:items-center ttw:justify-center",
|
|
37
|
+
children: [/* @__PURE__ */ n("div", {
|
|
38
|
+
className: "ttw:absolute ttw:size-16 ttw:rounded-full ttw:bg-destructive/20 ttw:blur-md",
|
|
39
|
+
"aria-hidden": !0
|
|
40
|
+
}), /* @__PURE__ */ n("div", {
|
|
41
|
+
className: "ttw:relative ttw:flex ttw:size-14 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
|
|
42
|
+
"aria-hidden": !0,
|
|
43
|
+
children: /* @__PURE__ */ n(i, { className: "ttw:size-6 ttw:text-destructive" })
|
|
44
|
+
})]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ n("h2", {
|
|
47
|
+
id: "additional-owner-delete-title",
|
|
48
|
+
className: "ttw:mb-3 ttw:text-2xl ttw:font-semibold ttw:tracking-tight",
|
|
49
|
+
children: s.deleteOwnerHeading
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ r("p", {
|
|
52
|
+
id: "additional-owner-delete-description",
|
|
53
|
+
className: "ttw:max-w-sm ttw:text-base ttw:text-muted-foreground",
|
|
54
|
+
children: [
|
|
55
|
+
s.deleteOwnerPromptBeforeName,
|
|
56
|
+
" ",
|
|
57
|
+
/* @__PURE__ */ n("span", {
|
|
58
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
59
|
+
children: o
|
|
60
|
+
}),
|
|
61
|
+
" ",
|
|
62
|
+
s.deleteOwnerPromptAfterName
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ r("div", {
|
|
68
|
+
className: "ttw:flex ttw:shrink-0 ttw:gap-3",
|
|
69
|
+
children: [/* @__PURE__ */ n(e, {
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "outline",
|
|
72
|
+
onClick: l,
|
|
73
|
+
disabled: c,
|
|
74
|
+
className: "ttw:h-auto ttw:flex-1 ttw:rounded-2xl ttw:border-border ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted",
|
|
75
|
+
children: s.cancel
|
|
76
|
+
}), /* @__PURE__ */ n(e, {
|
|
77
|
+
type: "button",
|
|
78
|
+
variant: "destructive",
|
|
79
|
+
onClick: u,
|
|
80
|
+
disabled: c,
|
|
81
|
+
className: "ttw:h-auto ttw:flex-1 ttw:rounded-2xl ttw:py-3 ttw:text-base ttw:font-medium",
|
|
82
|
+
children: s.deleteOwnerConfirm
|
|
83
|
+
})]
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
});
|
|
85
88
|
}
|
|
86
89
|
//#endregion
|
|
87
90
|
export { o as AdditionalOwnerDeleteOverlay };
|