braid-ui 1.0.31 → 1.0.32

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
@@ -169,50 +169,6 @@ interface IdentityVerification {
169
169
  result: string;
170
170
  }
171
171
 
172
- interface Business {
173
- id: string;
174
- businessName: string;
175
- status: string;
176
- cipStatus: "PASS" | "FAIL" | "IN_REVIEW" | "NOT_START" | "not_start" | "pending" | "rejected" | "verified";
177
- type: "Business" | "Individual";
178
- subType: "Customer" | "UBO";
179
- }
180
- interface BusinessAccount {
181
- id: string;
182
- number: string;
183
- routingNumber: string;
184
- type: string;
185
- }
186
- interface BusinessDetailViewProps {
187
- business: Business;
188
- identityVerification?: IdentityVerification;
189
- businessUBOs: UBO[];
190
- businessDocuments: BusinessDocument[];
191
- businessAccounts: BusinessAccount[];
192
- currentStatus: string;
193
- isEditingProfile: boolean;
194
- onStatusChange: (newStatus: string) => void;
195
- onToggleProfileEdit: () => void;
196
- onNavigateToAccounts: () => void;
197
- onNavigateToCounterparty: () => void;
198
- onAddAccount: () => void;
199
- }
200
- declare const BusinessDetailView: ({ business, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
201
-
202
- interface BusinessFilters {
203
- name: string;
204
- productName: string;
205
- status: string;
206
- createdDateStart?: Date;
207
- createdDateEnd?: Date;
208
- }
209
- interface BusinessFiltersSheetProps {
210
- filters: BusinessFilters;
211
- onFilterChange: (field: keyof BusinessFilters, value: string | Date | undefined) => void;
212
- onResetFilters: () => void;
213
- }
214
- declare const BusinessFiltersSheet: ({ filters, onFilterChange, onResetFilters }: BusinessFiltersSheetProps) => react_jsx_runtime.JSX.Element;
215
-
216
172
  declare const businessProfileSchema: z.ZodObject<{
217
173
  name: z.ZodString;
218
174
  productId: z.ZodNumber;
@@ -341,6 +297,52 @@ declare const businessProfileSchema: z.ZodObject<{
341
297
  }>;
342
298
  type BusinessProfile = z.infer<typeof businessProfileSchema>;
343
299
 
300
+ interface Business {
301
+ id: string;
302
+ businessName: string;
303
+ status: string;
304
+ cipStatus: "PASS" | "FAIL" | "IN_REVIEW" | "NOT_START" | "not_start" | "pending" | "rejected" | "verified";
305
+ type: "Business" | "Individual";
306
+ subType: "Customer" | "UBO";
307
+ }
308
+ interface BusinessAccount {
309
+ id: string;
310
+ number: string;
311
+ routingNumber: string;
312
+ type: string;
313
+ }
314
+ interface BusinessDetailViewProps {
315
+ business: Business;
316
+ businessProfile?: BusinessProfile;
317
+ identityVerification?: IdentityVerification;
318
+ businessUBOs: UBO[];
319
+ businessDocuments: BusinessDocument[];
320
+ businessAccounts: BusinessAccount[];
321
+ currentStatus: string;
322
+ isEditingProfile: boolean;
323
+ onStatusChange: (newStatus: string) => void;
324
+ onProfileDataChange: (profile: BusinessProfile) => void;
325
+ onToggleProfileEdit: () => void;
326
+ onNavigateToAccounts: () => void;
327
+ onNavigateToCounterparty: () => void;
328
+ onAddAccount: () => void;
329
+ }
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
+
332
+ interface BusinessFilters {
333
+ name: string;
334
+ productName: string;
335
+ status: string;
336
+ createdDateStart?: Date;
337
+ createdDateEnd?: Date;
338
+ }
339
+ interface BusinessFiltersSheetProps {
340
+ filters: BusinessFilters;
341
+ onFilterChange: (field: keyof BusinessFilters, value: string | Date | undefined) => void;
342
+ onResetFilters: () => void;
343
+ }
344
+ declare const BusinessFiltersSheet: ({ filters, onFilterChange, onResetFilters }: BusinessFiltersSheetProps) => react_jsx_runtime.JSX.Element;
345
+
344
346
  interface CreateBusinessViewProps {
345
347
  form: UseFormReturn<BusinessProfile>;
346
348
  businessType: string;
package/dist/index.d.ts CHANGED
@@ -169,50 +169,6 @@ interface IdentityVerification {
169
169
  result: string;
170
170
  }
171
171
 
172
- interface Business {
173
- id: string;
174
- businessName: string;
175
- status: string;
176
- cipStatus: "PASS" | "FAIL" | "IN_REVIEW" | "NOT_START" | "not_start" | "pending" | "rejected" | "verified";
177
- type: "Business" | "Individual";
178
- subType: "Customer" | "UBO";
179
- }
180
- interface BusinessAccount {
181
- id: string;
182
- number: string;
183
- routingNumber: string;
184
- type: string;
185
- }
186
- interface BusinessDetailViewProps {
187
- business: Business;
188
- identityVerification?: IdentityVerification;
189
- businessUBOs: UBO[];
190
- businessDocuments: BusinessDocument[];
191
- businessAccounts: BusinessAccount[];
192
- currentStatus: string;
193
- isEditingProfile: boolean;
194
- onStatusChange: (newStatus: string) => void;
195
- onToggleProfileEdit: () => void;
196
- onNavigateToAccounts: () => void;
197
- onNavigateToCounterparty: () => void;
198
- onAddAccount: () => void;
199
- }
200
- declare const BusinessDetailView: ({ business, identityVerification, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, onStatusChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onAddAccount }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
201
-
202
- interface BusinessFilters {
203
- name: string;
204
- productName: string;
205
- status: string;
206
- createdDateStart?: Date;
207
- createdDateEnd?: Date;
208
- }
209
- interface BusinessFiltersSheetProps {
210
- filters: BusinessFilters;
211
- onFilterChange: (field: keyof BusinessFilters, value: string | Date | undefined) => void;
212
- onResetFilters: () => void;
213
- }
214
- declare const BusinessFiltersSheet: ({ filters, onFilterChange, onResetFilters }: BusinessFiltersSheetProps) => react_jsx_runtime.JSX.Element;
215
-
216
172
  declare const businessProfileSchema: z.ZodObject<{
217
173
  name: z.ZodString;
218
174
  productId: z.ZodNumber;
@@ -341,6 +297,52 @@ declare const businessProfileSchema: z.ZodObject<{
341
297
  }>;
342
298
  type BusinessProfile = z.infer<typeof businessProfileSchema>;
343
299
 
300
+ interface Business {
301
+ id: string;
302
+ businessName: string;
303
+ status: string;
304
+ cipStatus: "PASS" | "FAIL" | "IN_REVIEW" | "NOT_START" | "not_start" | "pending" | "rejected" | "verified";
305
+ type: "Business" | "Individual";
306
+ subType: "Customer" | "UBO";
307
+ }
308
+ interface BusinessAccount {
309
+ id: string;
310
+ number: string;
311
+ routingNumber: string;
312
+ type: string;
313
+ }
314
+ interface BusinessDetailViewProps {
315
+ business: Business;
316
+ businessProfile?: BusinessProfile;
317
+ identityVerification?: IdentityVerification;
318
+ businessUBOs: UBO[];
319
+ businessDocuments: BusinessDocument[];
320
+ businessAccounts: BusinessAccount[];
321
+ currentStatus: string;
322
+ isEditingProfile: boolean;
323
+ onStatusChange: (newStatus: string) => void;
324
+ onProfileDataChange: (profile: BusinessProfile) => void;
325
+ onToggleProfileEdit: () => void;
326
+ onNavigateToAccounts: () => void;
327
+ onNavigateToCounterparty: () => void;
328
+ onAddAccount: () => void;
329
+ }
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
+
332
+ interface BusinessFilters {
333
+ name: string;
334
+ productName: string;
335
+ status: string;
336
+ createdDateStart?: Date;
337
+ createdDateEnd?: Date;
338
+ }
339
+ interface BusinessFiltersSheetProps {
340
+ filters: BusinessFilters;
341
+ onFilterChange: (field: keyof BusinessFilters, value: string | Date | undefined) => void;
342
+ onResetFilters: () => void;
343
+ }
344
+ declare const BusinessFiltersSheet: ({ filters, onFilterChange, onResetFilters }: BusinessFiltersSheetProps) => react_jsx_runtime.JSX.Element;
345
+
344
346
  interface CreateBusinessViewProps {
345
347
  form: UseFormReturn<BusinessProfile>;
346
348
  businessType: string;
package/dist/index.js CHANGED
@@ -4604,6 +4604,7 @@ var accountColumns = [
4604
4604
  ];
4605
4605
  var BusinessDetailView = ({
4606
4606
  business,
4607
+ businessProfile,
4607
4608
  identityVerification,
4608
4609
  businessUBOs,
4609
4610
  businessDocuments,
@@ -4611,6 +4612,7 @@ var BusinessDetailView = ({
4611
4612
  currentStatus,
4612
4613
  isEditingProfile,
4613
4614
  onStatusChange,
4615
+ onProfileDataChange,
4614
4616
  onToggleProfileEdit,
4615
4617
  onNavigateToAccounts,
4616
4618
  onNavigateToCounterparty,
@@ -4660,9 +4662,11 @@ var BusinessDetailView = ({
4660
4662
  /* @__PURE__ */ jsx(
4661
4663
  BusinessProfileCard,
4662
4664
  {
4665
+ data: businessProfile,
4663
4666
  identityVerification,
4664
4667
  isEditing: isEditingProfile,
4665
- onToggleEdit: onToggleProfileEdit
4668
+ onToggleEdit: onToggleProfileEdit,
4669
+ onDataChange: onProfileDataChange
4666
4670
  }
4667
4671
  ),
4668
4672
  /* @__PURE__ */ jsx(UBOCard, { ubos: businessUBOs }),
@@ -10211,6 +10215,136 @@ var mockBusinessDocuments = {
10211
10215
  }
10212
10216
  ]
10213
10217
  };
10218
+
10219
+ // src/lib/mock-data/business-profiles-data.ts
10220
+ var mockBusinessProfiles = {
10221
+ "8112488": {
10222
+ name: "RAPIDZ PAY INC",
10223
+ productId: 1,
10224
+ businessIdType: "EIN",
10225
+ idNumber: "12-3456789",
10226
+ dba: "Rapidz Pay",
10227
+ businessEntityType: "CORPORATION",
10228
+ incorporationState: "Delaware",
10229
+ formationDate: "2020-01-15",
10230
+ website: "https://rapidzpay.com",
10231
+ mcc: "6211",
10232
+ naics: "522320",
10233
+ mobilePhone: "+1 (555) 123-4567",
10234
+ achCompanyId: "1234567890",
10235
+ contactPersonFirstName: "John",
10236
+ contactPersonLastName: "Smith",
10237
+ contactPersonEmail: "john.smith@rapidzpay.com",
10238
+ contactPersonPhone: "+1 (555) 234-5678",
10239
+ address: {
10240
+ line1: "123 Business Ave",
10241
+ line2: "Suite 100",
10242
+ city: "New York",
10243
+ state: "NY",
10244
+ postalCode: "10001",
10245
+ countryCode: "US"
10246
+ }
10247
+ },
10248
+ "8111609": {
10249
+ name: "Fern Hyper Growth Llc",
10250
+ productId: 2,
10251
+ businessIdType: "EIN",
10252
+ idNumber: "98-7654321",
10253
+ businessEntityType: "LIMITED_LIABILITY_COMPANY",
10254
+ incorporationState: "California",
10255
+ formationDate: "2019-06-20",
10256
+ website: "https://fernhypergrowth.com",
10257
+ mcc: "5999",
10258
+ naics: "541519",
10259
+ mobilePhone: "+1 (555) 987-6543",
10260
+ contactPersonFirstName: "Jane",
10261
+ contactPersonLastName: "Doe",
10262
+ contactPersonEmail: "jane.doe@fernhypergrowth.com",
10263
+ contactPersonPhone: "+1 (555) 876-5432",
10264
+ address: {
10265
+ line1: "456 Tech Street",
10266
+ city: "San Francisco",
10267
+ state: "CA",
10268
+ postalCode: "94102",
10269
+ countryCode: "US"
10270
+ }
10271
+ },
10272
+ "8111026": {
10273
+ name: "ACEROSGALVANISADOS & PREPINTADOS",
10274
+ productId: 3,
10275
+ businessIdType: "EIN",
10276
+ idNumber: "45-6789012",
10277
+ businessEntityType: "PARTNERSHIP",
10278
+ incorporationState: "Texas",
10279
+ formationDate: "2018-03-10",
10280
+ website: "https://acerosgalvanisados.com",
10281
+ mcc: "5051",
10282
+ naics: "423510",
10283
+ mobilePhone: "+1 (555) 456-7890",
10284
+ contactPersonFirstName: "Carlos",
10285
+ contactPersonLastName: "Rodriguez",
10286
+ contactPersonEmail: "carlos@acerosgalvanisados.com",
10287
+ contactPersonPhone: "+1 (555) 567-8901",
10288
+ address: {
10289
+ line1: "789 Industrial Blvd",
10290
+ city: "Houston",
10291
+ state: "TX",
10292
+ postalCode: "77001",
10293
+ countryCode: "US"
10294
+ }
10295
+ },
10296
+ "8110892": {
10297
+ name: "Tech Solutions Corp",
10298
+ productId: 4,
10299
+ businessIdType: "EIN",
10300
+ idNumber: "23-4567890",
10301
+ businessEntityType: "CORPORATION",
10302
+ incorporationState: "Washington",
10303
+ formationDate: "2021-08-15",
10304
+ website: "https://techsolutions.com",
10305
+ mcc: "7372",
10306
+ naics: "541511",
10307
+ mobilePhone: "+1 (555) 321-0987",
10308
+ achCompanyId: "9876543210",
10309
+ contactPersonFirstName: "Sarah",
10310
+ contactPersonLastName: "Johnson",
10311
+ contactPersonEmail: "sarah.johnson@techsolutions.com",
10312
+ contactPersonPhone: "+1 (555) 432-1098",
10313
+ address: {
10314
+ line1: "321 Tech Park",
10315
+ line2: "Building B",
10316
+ city: "Seattle",
10317
+ state: "WA",
10318
+ postalCode: "98101",
10319
+ countryCode: "US"
10320
+ }
10321
+ },
10322
+ "8110654": {
10323
+ name: "Global Trade Partners LLC",
10324
+ productId: 5,
10325
+ businessIdType: "EIN",
10326
+ idNumber: "67-8901234",
10327
+ dba: "GTP",
10328
+ businessEntityType: "LIMITED_LIABILITY_COMPANY",
10329
+ incorporationState: "Florida",
10330
+ formationDate: "2017-11-01",
10331
+ website: "https://globaltradepartners.com",
10332
+ mcc: "5732",
10333
+ naics: "443142",
10334
+ mobilePhone: "+1 (555) 654-3210",
10335
+ contactPersonFirstName: "Michael",
10336
+ contactPersonLastName: "Chen",
10337
+ contactPersonEmail: "michael.chen@gtp.com",
10338
+ contactPersonPhone: "+1 (555) 765-4321",
10339
+ address: {
10340
+ line1: "555 Trade Center",
10341
+ city: "Miami",
10342
+ state: "FL",
10343
+ postalCode: "33101",
10344
+ countryCode: "US"
10345
+ }
10346
+ }
10347
+ };
10214
10348
  var BusinessDetail = () => {
10215
10349
  const { id } = useParams();
10216
10350
  const navigate = useNavigate();
@@ -10219,14 +10353,22 @@ var BusinessDetail = () => {
10219
10353
  const businessUBOs = id ? mockBusinessUBOs[id] || [] : [];
10220
10354
  const businessDocuments = id ? mockBusinessDocuments[id] || [] : [];
10221
10355
  const businessAccounts = id ? mockBusinessAccounts[id] || [] : [];
10356
+ const initialProfile = id ? mockBusinessProfiles[id] : void 0;
10222
10357
  const [currentStatus, setCurrentStatus] = useState(business?.status || "active");
10223
10358
  const [isEditingProfile, setIsEditingProfile] = useState(false);
10359
+ const [businessProfile, setBusinessProfile] = useState(
10360
+ initialProfile
10361
+ );
10224
10362
  const handleStatusChange = (newStatus) => {
10225
10363
  setCurrentStatus(newStatus);
10226
10364
  };
10227
10365
  const handleToggleProfileEdit = () => {
10228
10366
  setIsEditingProfile(!isEditingProfile);
10229
10367
  };
10368
+ const handleProfileDataChange = (updatedProfile) => {
10369
+ setBusinessProfile(updatedProfile);
10370
+ console.log("Profile updated:", updatedProfile);
10371
+ };
10230
10372
  const handleNavigateToAccounts = () => {
10231
10373
  navigate(`/accounts?customerId=${id}&customerType=business`);
10232
10374
  };
@@ -10246,6 +10388,7 @@ var BusinessDetail = () => {
10246
10388
  BusinessDetailView,
10247
10389
  {
10248
10390
  business,
10391
+ businessProfile,
10249
10392
  identityVerification,
10250
10393
  businessUBOs,
10251
10394
  businessDocuments,
@@ -10253,6 +10396,7 @@ var BusinessDetail = () => {
10253
10396
  currentStatus,
10254
10397
  isEditingProfile,
10255
10398
  onStatusChange: handleStatusChange,
10399
+ onProfileDataChange: handleProfileDataChange,
10256
10400
  onToggleProfileEdit: handleToggleProfileEdit,
10257
10401
  onNavigateToAccounts: handleNavigateToAccounts,
10258
10402
  onNavigateToCounterparty: handleNavigateToCounterparty,