braid-ui 1.0.32 → 1.0.34
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.cjs +40 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +40 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -326,8 +326,9 @@ interface BusinessDetailViewProps {
|
|
|
326
326
|
onNavigateToAccounts: () => void;
|
|
327
327
|
onNavigateToCounterparty: () => void;
|
|
328
328
|
onAddAccount: () => void;
|
|
329
|
+
onUBOClick: (customerId: string) => void;
|
|
329
330
|
}
|
|
330
|
-
declare const BusinessDetailView: ({ business, businessProfile, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
331
|
+
declare const BusinessDetailView: ({ business, businessProfile, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount, onUBOClick }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
331
332
|
|
|
332
333
|
interface BusinessFilters {
|
|
333
334
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -326,8 +326,9 @@ interface BusinessDetailViewProps {
|
|
|
326
326
|
onNavigateToAccounts: () => void;
|
|
327
327
|
onNavigateToCounterparty: () => void;
|
|
328
328
|
onAddAccount: () => void;
|
|
329
|
+
onUBOClick: (customerId: string) => void;
|
|
329
330
|
}
|
|
330
|
-
declare const BusinessDetailView: ({ business, businessProfile, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
331
|
+
declare const BusinessDetailView: ({ business, businessProfile, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount, onUBOClick }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
331
332
|
|
|
332
333
|
interface BusinessFilters {
|
|
333
334
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -3346,30 +3346,30 @@ z.object({
|
|
|
3346
3346
|
|
|
3347
3347
|
// src/lib/mock-data/business-data.ts
|
|
3348
3348
|
var defaultBusinessProfile = {
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3349
|
+
name: "Acme Corporation",
|
|
3350
|
+
productId: 1,
|
|
3351
|
+
businessIdType: "EIN",
|
|
3352
|
+
idNumber: "12-3456789",
|
|
3353
|
+
dba: "ACME Tech",
|
|
3354
|
+
businessEntityType: "CORPORATION",
|
|
3355
3355
|
incorporationState: "Delaware",
|
|
3356
|
+
formationDate: "2020-01-15",
|
|
3356
3357
|
website: "https://acme.com",
|
|
3357
|
-
email: "contact@acme.com",
|
|
3358
|
-
mobilePhone: "+1 (555) 234-5678",
|
|
3359
3358
|
mcc: "1234",
|
|
3360
3359
|
naics: "123456",
|
|
3360
|
+
mobilePhone: "+1 (555) 234-5678",
|
|
3361
3361
|
achCompanyId: "1234567890",
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3362
|
+
contactPersonFirstName: "John",
|
|
3363
|
+
contactPersonLastName: "Smith",
|
|
3364
|
+
contactPersonEmail: "contact@acme.com",
|
|
3365
|
+
contactPersonPhone: "+1 (555) 123-4567",
|
|
3365
3366
|
address: {
|
|
3366
|
-
|
|
3367
|
-
|
|
3367
|
+
line1: "123 Business Avenue",
|
|
3368
|
+
line2: "Suite 100",
|
|
3368
3369
|
city: "New York",
|
|
3369
3370
|
state: "NY",
|
|
3370
3371
|
postalCode: "10001",
|
|
3371
|
-
|
|
3372
|
-
addressType: "business"
|
|
3372
|
+
countryCode: "US"
|
|
3373
3373
|
}
|
|
3374
3374
|
};
|
|
3375
3375
|
var BusinessProfileCard = ({
|
|
@@ -3661,7 +3661,19 @@ var BusinessProfileCard = ({
|
|
|
3661
3661
|
InfoField,
|
|
3662
3662
|
{
|
|
3663
3663
|
label: "Address",
|
|
3664
|
-
value: formValues?.address ?
|
|
3664
|
+
value: formValues?.address ? (() => {
|
|
3665
|
+
const parts = [];
|
|
3666
|
+
if (formValues.address.line1) parts.push(formValues.address.line1);
|
|
3667
|
+
if (formValues.address.line2) parts.push(formValues.address.line2);
|
|
3668
|
+
const cityStateZip = [
|
|
3669
|
+
formValues.address.city,
|
|
3670
|
+
formValues.address.state,
|
|
3671
|
+
formValues.address.postalCode
|
|
3672
|
+
].filter(Boolean).join(" ");
|
|
3673
|
+
if (cityStateZip) parts.push(cityStateZip);
|
|
3674
|
+
if (formValues.address.countryCode) parts.push(formValues.address.countryCode);
|
|
3675
|
+
return parts.length > 0 ? parts.join(", ") : "-";
|
|
3676
|
+
})() : "-",
|
|
3665
3677
|
layout: "horizontal"
|
|
3666
3678
|
}
|
|
3667
3679
|
),
|
|
@@ -4244,7 +4256,7 @@ var PageLayout = React15.forwardRef(
|
|
|
4244
4256
|
}
|
|
4245
4257
|
);
|
|
4246
4258
|
PageLayout.displayName = "PageLayout";
|
|
4247
|
-
var UBOCard = ({ ubos }) => {
|
|
4259
|
+
var UBOCard = ({ ubos, onUBOClick }) => {
|
|
4248
4260
|
const columns3 = [
|
|
4249
4261
|
{
|
|
4250
4262
|
key: "name",
|
|
@@ -4252,10 +4264,10 @@ var UBOCard = ({ ubos }) => {
|
|
|
4252
4264
|
sortable: true,
|
|
4253
4265
|
width: "40%",
|
|
4254
4266
|
render: (value, row) => /* @__PURE__ */ jsx(
|
|
4255
|
-
|
|
4267
|
+
"button",
|
|
4256
4268
|
{
|
|
4257
|
-
|
|
4258
|
-
className: "text-primary hover:underline font-medium",
|
|
4269
|
+
onClick: () => onUBOClick(row.customerId),
|
|
4270
|
+
className: "text-primary hover:underline font-medium text-left",
|
|
4259
4271
|
children: value
|
|
4260
4272
|
}
|
|
4261
4273
|
)
|
|
@@ -4616,7 +4628,8 @@ var BusinessDetailView = ({
|
|
|
4616
4628
|
onToggleProfileEdit,
|
|
4617
4629
|
onNavigateToAccounts,
|
|
4618
4630
|
onNavigateToCounterparty,
|
|
4619
|
-
onAddAccount
|
|
4631
|
+
onAddAccount,
|
|
4632
|
+
onUBOClick
|
|
4620
4633
|
}) => {
|
|
4621
4634
|
return /* @__PURE__ */ jsx(
|
|
4622
4635
|
PageLayout,
|
|
@@ -4669,7 +4682,7 @@ var BusinessDetailView = ({
|
|
|
4669
4682
|
onDataChange: onProfileDataChange
|
|
4670
4683
|
}
|
|
4671
4684
|
),
|
|
4672
|
-
/* @__PURE__ */ jsx(UBOCard, { ubos: businessUBOs }),
|
|
4685
|
+
/* @__PURE__ */ jsx(UBOCard, { ubos: businessUBOs, onUBOClick }),
|
|
4673
4686
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
4674
4687
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-4", children: [
|
|
4675
4688
|
/* @__PURE__ */ jsx(CardTitle, { children: "External Accounts" }),
|
|
@@ -10378,6 +10391,9 @@ var BusinessDetail = () => {
|
|
|
10378
10391
|
const handleAddAccount = () => {
|
|
10379
10392
|
console.log("Add account clicked");
|
|
10380
10393
|
};
|
|
10394
|
+
const handleUBOClick = (customerId) => {
|
|
10395
|
+
navigate(`/customer/${customerId}`);
|
|
10396
|
+
};
|
|
10381
10397
|
if (!business) {
|
|
10382
10398
|
return /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
10383
10399
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-2", children: "Business Not Found" }),
|
|
@@ -10400,7 +10416,8 @@ var BusinessDetail = () => {
|
|
|
10400
10416
|
onToggleProfileEdit: handleToggleProfileEdit,
|
|
10401
10417
|
onNavigateToAccounts: handleNavigateToAccounts,
|
|
10402
10418
|
onNavigateToCounterparty: handleNavigateToCounterparty,
|
|
10403
|
-
onAddAccount: handleAddAccount
|
|
10419
|
+
onAddAccount: handleAddAccount,
|
|
10420
|
+
onUBOClick: handleUBOClick
|
|
10404
10421
|
}
|
|
10405
10422
|
);
|
|
10406
10423
|
};
|