braid-ui 1.0.33 → 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.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
@@ -4256,7 +4256,7 @@ var PageLayout = React15.forwardRef(
4256
4256
  }
4257
4257
  );
4258
4258
  PageLayout.displayName = "PageLayout";
4259
- var UBOCard = ({ ubos }) => {
4259
+ var UBOCard = ({ ubos, onUBOClick }) => {
4260
4260
  const columns3 = [
4261
4261
  {
4262
4262
  key: "name",
@@ -4264,10 +4264,10 @@ var UBOCard = ({ ubos }) => {
4264
4264
  sortable: true,
4265
4265
  width: "40%",
4266
4266
  render: (value, row) => /* @__PURE__ */ jsx(
4267
- Link,
4267
+ "button",
4268
4268
  {
4269
- to: `/customer/${row.customerId}`,
4270
- className: "text-primary hover:underline font-medium",
4269
+ onClick: () => onUBOClick(row.customerId),
4270
+ className: "text-primary hover:underline font-medium text-left",
4271
4271
  children: value
4272
4272
  }
4273
4273
  )
@@ -4628,7 +4628,8 @@ var BusinessDetailView = ({
4628
4628
  onToggleProfileEdit,
4629
4629
  onNavigateToAccounts,
4630
4630
  onNavigateToCounterparty,
4631
- onAddAccount
4631
+ onAddAccount,
4632
+ onUBOClick
4632
4633
  }) => {
4633
4634
  return /* @__PURE__ */ jsx(
4634
4635
  PageLayout,
@@ -4681,7 +4682,7 @@ var BusinessDetailView = ({
4681
4682
  onDataChange: onProfileDataChange
4682
4683
  }
4683
4684
  ),
4684
- /* @__PURE__ */ jsx(UBOCard, { ubos: businessUBOs }),
4685
+ /* @__PURE__ */ jsx(UBOCard, { ubos: businessUBOs, onUBOClick }),
4685
4686
  /* @__PURE__ */ jsxs(Card, { children: [
4686
4687
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-4", children: [
4687
4688
  /* @__PURE__ */ jsx(CardTitle, { children: "External Accounts" }),
@@ -10390,6 +10391,9 @@ var BusinessDetail = () => {
10390
10391
  const handleAddAccount = () => {
10391
10392
  console.log("Add account clicked");
10392
10393
  };
10394
+ const handleUBOClick = (customerId) => {
10395
+ navigate(`/customer/${customerId}`);
10396
+ };
10393
10397
  if (!business) {
10394
10398
  return /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
10395
10399
  /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-2", children: "Business Not Found" }),
@@ -10412,7 +10416,8 @@ var BusinessDetail = () => {
10412
10416
  onToggleProfileEdit: handleToggleProfileEdit,
10413
10417
  onNavigateToAccounts: handleNavigateToAccounts,
10414
10418
  onNavigateToCounterparty: handleNavigateToCounterparty,
10415
- onAddAccount: handleAddAccount
10419
+ onAddAccount: handleAddAccount,
10420
+ onUBOClick: handleUBOClick
10416
10421
  }
10417
10422
  );
10418
10423
  };