braid-ui 1.0.143 → 1.0.144

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
@@ -124,18 +124,6 @@ interface MainLayoutProps {
124
124
  }
125
125
  declare const MainLayout: ({ children }: MainLayoutProps) => react_jsx_runtime.JSX.Element;
126
126
 
127
- interface OFACCheck {
128
- id: string;
129
- created: string;
130
- entityId: string;
131
- entityName: string;
132
- entityType: "Individual" | "Business" | "Counterparty";
133
- alertId: string | null;
134
- status: "NO MATCH" | "REVIEW" | "CLEARED" | "CONFIRMED";
135
- updatedBy: string;
136
- note: string | null;
137
- }
138
-
139
127
  interface OFACFilters {
140
128
  status: string;
141
129
  entityType: string;
@@ -147,20 +135,26 @@ interface OFACOption {
147
135
  label: string;
148
136
  }
149
137
  interface OFACViewProps {
150
- checks: OFACCheck[];
151
- sortField: keyof OFACCheck;
152
- sortDirection: "asc" | "desc";
138
+ table: React.ReactNode;
153
139
  filters: OFACFilters;
154
140
  statusOptions: OFACOption[];
155
141
  entityTypeOptions: OFACOption[];
156
- onSort: (field: keyof OFACCheck) => void;
157
142
  onFilterChange: (field: keyof OFACFilters, value: string | Date | undefined) => void;
158
143
  onResetFilters: () => void;
159
- onRowClick: (check: OFACCheck) => void;
160
- onEntityClick: (check: OFACCheck) => void;
161
- onAlertClick: (alertId: string) => void;
162
144
  }
163
- declare function OFACView({ checks, sortField, sortDirection, filters, statusOptions, entityTypeOptions, onSort, onFilterChange, onResetFilters, onRowClick, onEntityClick, onAlertClick, }: OFACViewProps): react_jsx_runtime.JSX.Element;
145
+ declare function OFACView({ table, filters, statusOptions, entityTypeOptions, onFilterChange, onResetFilters, }: OFACViewProps): react_jsx_runtime.JSX.Element;
146
+
147
+ interface OFACCheck {
148
+ id: string;
149
+ created: string;
150
+ entityId: string;
151
+ entityName: string;
152
+ entityType: "Individual" | "Business" | "Counterparty";
153
+ alertId: string | null;
154
+ status: "NO MATCH" | "REVIEW" | "CLEARED" | "CONFIRMED";
155
+ updatedBy: string;
156
+ note: string | null;
157
+ }
164
158
 
165
159
  interface OFACDetailViewProps {
166
160
  ofacCheck: OFACCheck | undefined;
package/dist/index.d.ts CHANGED
@@ -124,18 +124,6 @@ interface MainLayoutProps {
124
124
  }
125
125
  declare const MainLayout: ({ children }: MainLayoutProps) => react_jsx_runtime.JSX.Element;
126
126
 
127
- interface OFACCheck {
128
- id: string;
129
- created: string;
130
- entityId: string;
131
- entityName: string;
132
- entityType: "Individual" | "Business" | "Counterparty";
133
- alertId: string | null;
134
- status: "NO MATCH" | "REVIEW" | "CLEARED" | "CONFIRMED";
135
- updatedBy: string;
136
- note: string | null;
137
- }
138
-
139
127
  interface OFACFilters {
140
128
  status: string;
141
129
  entityType: string;
@@ -147,20 +135,26 @@ interface OFACOption {
147
135
  label: string;
148
136
  }
149
137
  interface OFACViewProps {
150
- checks: OFACCheck[];
151
- sortField: keyof OFACCheck;
152
- sortDirection: "asc" | "desc";
138
+ table: React.ReactNode;
153
139
  filters: OFACFilters;
154
140
  statusOptions: OFACOption[];
155
141
  entityTypeOptions: OFACOption[];
156
- onSort: (field: keyof OFACCheck) => void;
157
142
  onFilterChange: (field: keyof OFACFilters, value: string | Date | undefined) => void;
158
143
  onResetFilters: () => void;
159
- onRowClick: (check: OFACCheck) => void;
160
- onEntityClick: (check: OFACCheck) => void;
161
- onAlertClick: (alertId: string) => void;
162
144
  }
163
- declare function OFACView({ checks, sortField, sortDirection, filters, statusOptions, entityTypeOptions, onSort, onFilterChange, onResetFilters, onRowClick, onEntityClick, onAlertClick, }: OFACViewProps): react_jsx_runtime.JSX.Element;
145
+ declare function OFACView({ table, filters, statusOptions, entityTypeOptions, onFilterChange, onResetFilters, }: OFACViewProps): react_jsx_runtime.JSX.Element;
146
+
147
+ interface OFACCheck {
148
+ id: string;
149
+ created: string;
150
+ entityId: string;
151
+ entityName: string;
152
+ entityType: "Individual" | "Business" | "Counterparty";
153
+ alertId: string | null;
154
+ status: "NO MATCH" | "REVIEW" | "CLEARED" | "CONFIRMED";
155
+ updatedBy: string;
156
+ note: string | null;
157
+ }
164
158
 
165
159
  interface OFACDetailViewProps {
166
160
  ofacCheck: OFACCheck | undefined;