braid-ui 1.0.43 → 1.0.44
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 +63 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +130 -128
- package/dist/index.d.ts +130 -128
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -385,134 +385,6 @@ interface PaymentMethodCardProps {
|
|
|
385
385
|
className?: string;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
interface CounterpartyDetailViewProps {
|
|
389
|
-
counterpartyName: string;
|
|
390
|
-
counterpartyType: string;
|
|
391
|
-
currentStatus: string;
|
|
392
|
-
isEditingProfile: boolean;
|
|
393
|
-
mockPaymentMethods: PaymentMethodCardProps[];
|
|
394
|
-
documents: any[];
|
|
395
|
-
onStatusChange: (newStatus: string) => void;
|
|
396
|
-
onToggleProfileEdit: () => void;
|
|
397
|
-
onAddPaymentMethod: () => void;
|
|
398
|
-
onAddDocument: () => void;
|
|
399
|
-
onEntityClick?: (entityType: string, entityId: string) => void;
|
|
400
|
-
}
|
|
401
|
-
declare const CounterpartyDetailView: ({ counterpartyName, counterpartyType, currentStatus, isEditingProfile, mockPaymentMethods, documents, onStatusChange, onToggleProfileEdit, onAddPaymentMethod, onAddDocument, onEntityClick }: CounterpartyDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
402
|
-
|
|
403
|
-
declare const achTransferSchema: z.ZodObject<{
|
|
404
|
-
basicInfo: z.ZodObject<{
|
|
405
|
-
counterpartyName: z.ZodString;
|
|
406
|
-
shortName: z.ZodString;
|
|
407
|
-
type: z.ZodString;
|
|
408
|
-
description: z.ZodOptional<z.ZodString>;
|
|
409
|
-
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
description?: string;
|
|
411
|
-
type?: string;
|
|
412
|
-
counterpartyName?: string;
|
|
413
|
-
shortName?: string;
|
|
414
|
-
}, {
|
|
415
|
-
description?: string;
|
|
416
|
-
type?: string;
|
|
417
|
-
counterpartyName?: string;
|
|
418
|
-
shortName?: string;
|
|
419
|
-
}>;
|
|
420
|
-
bankDetails: z.ZodObject<{
|
|
421
|
-
gatewayRoutingNumber: z.ZodString;
|
|
422
|
-
rdfiNumberQualifier: z.ZodString;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
gatewayRoutingNumber?: string;
|
|
425
|
-
rdfiNumberQualifier?: string;
|
|
426
|
-
}, {
|
|
427
|
-
gatewayRoutingNumber?: string;
|
|
428
|
-
rdfiNumberQualifier?: string;
|
|
429
|
-
}>;
|
|
430
|
-
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
basicInfo?: {
|
|
432
|
-
description?: string;
|
|
433
|
-
type?: string;
|
|
434
|
-
counterpartyName?: string;
|
|
435
|
-
shortName?: string;
|
|
436
|
-
};
|
|
437
|
-
bankDetails?: {
|
|
438
|
-
gatewayRoutingNumber?: string;
|
|
439
|
-
rdfiNumberQualifier?: string;
|
|
440
|
-
};
|
|
441
|
-
}, {
|
|
442
|
-
basicInfo?: {
|
|
443
|
-
description?: string;
|
|
444
|
-
type?: string;
|
|
445
|
-
counterpartyName?: string;
|
|
446
|
-
shortName?: string;
|
|
447
|
-
};
|
|
448
|
-
bankDetails?: {
|
|
449
|
-
gatewayRoutingNumber?: string;
|
|
450
|
-
rdfiNumberQualifier?: string;
|
|
451
|
-
};
|
|
452
|
-
}>;
|
|
453
|
-
type ACHTransfer = z.infer<typeof achTransferSchema>;
|
|
454
|
-
|
|
455
|
-
interface ACHBankCardProps {
|
|
456
|
-
data?: Partial<ACHTransfer>;
|
|
457
|
-
onDataChange?: (data: ACHTransfer) => void;
|
|
458
|
-
isEditing?: boolean;
|
|
459
|
-
onToggleEdit?: () => void;
|
|
460
|
-
className?: string;
|
|
461
|
-
hideActions?: boolean;
|
|
462
|
-
}
|
|
463
|
-
declare const ACHBankCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBankCardProps) => react_jsx_runtime.JSX.Element;
|
|
464
|
-
|
|
465
|
-
interface ACHBasicInfoCardProps {
|
|
466
|
-
data?: Partial<ACHTransfer>;
|
|
467
|
-
onDataChange?: (data: ACHTransfer) => void;
|
|
468
|
-
isEditing?: boolean;
|
|
469
|
-
onToggleEdit?: () => void;
|
|
470
|
-
className?: string;
|
|
471
|
-
hideActions?: boolean;
|
|
472
|
-
}
|
|
473
|
-
declare const ACHBasicInfoCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBasicInfoCardProps) => react_jsx_runtime.JSX.Element;
|
|
474
|
-
|
|
475
|
-
interface ACHTransferSectionProps {
|
|
476
|
-
isEditing?: boolean;
|
|
477
|
-
onToggleEdit?: () => void;
|
|
478
|
-
className?: string;
|
|
479
|
-
hideActions?: boolean;
|
|
480
|
-
}
|
|
481
|
-
declare const ACHTransferSection: ({ isEditing, onToggleEdit, className, hideActions }: ACHTransferSectionProps) => react_jsx_runtime.JSX.Element;
|
|
482
|
-
|
|
483
|
-
declare const inputVariants: (props?: {
|
|
484
|
-
variant?: "default" | "success" | "disabled" | "error" | "readonly";
|
|
485
|
-
size?: "default" | "sm" | "lg";
|
|
486
|
-
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
487
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
488
|
-
label?: string;
|
|
489
|
-
hint?: string;
|
|
490
|
-
error?: string;
|
|
491
|
-
success?: string;
|
|
492
|
-
isLoading?: boolean;
|
|
493
|
-
}
|
|
494
|
-
declare const EnhancedInput: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
495
|
-
|
|
496
|
-
interface AddressFormProps {
|
|
497
|
-
title: string;
|
|
498
|
-
description: string;
|
|
499
|
-
fieldPrefix?: string;
|
|
500
|
-
showAddressType?: boolean;
|
|
501
|
-
addressTypeOptions?: Array<{
|
|
502
|
-
value: string;
|
|
503
|
-
label: string;
|
|
504
|
-
}>;
|
|
505
|
-
fieldOverrides?: {
|
|
506
|
-
state?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
507
|
-
city?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
508
|
-
streetAddress?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
509
|
-
postalCode?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
510
|
-
apartment?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
511
|
-
};
|
|
512
|
-
showApartment?: boolean;
|
|
513
|
-
}
|
|
514
|
-
declare const AddressForm: ({ title, description, fieldPrefix, showAddressType, addressTypeOptions, fieldOverrides, showApartment }: AddressFormProps) => react_jsx_runtime.JSX.Element;
|
|
515
|
-
|
|
516
388
|
declare const addressSchema: z.ZodObject<{
|
|
517
389
|
line1: z.ZodOptional<z.ZodString>;
|
|
518
390
|
line2: z.ZodOptional<z.ZodString>;
|
|
@@ -606,6 +478,58 @@ declare const counterpartyDetailSchema: z.ZodObject<{
|
|
|
606
478
|
type CounterpartyDetail$1 = z.infer<typeof counterpartyDetailSchema>;
|
|
607
479
|
type Address = z.infer<typeof addressSchema>;
|
|
608
480
|
|
|
481
|
+
declare const achTransferSchema: z.ZodObject<{
|
|
482
|
+
basicInfo: z.ZodObject<{
|
|
483
|
+
counterpartyName: z.ZodString;
|
|
484
|
+
shortName: z.ZodString;
|
|
485
|
+
type: z.ZodString;
|
|
486
|
+
description: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
description?: string;
|
|
489
|
+
type?: string;
|
|
490
|
+
counterpartyName?: string;
|
|
491
|
+
shortName?: string;
|
|
492
|
+
}, {
|
|
493
|
+
description?: string;
|
|
494
|
+
type?: string;
|
|
495
|
+
counterpartyName?: string;
|
|
496
|
+
shortName?: string;
|
|
497
|
+
}>;
|
|
498
|
+
bankDetails: z.ZodObject<{
|
|
499
|
+
gatewayRoutingNumber: z.ZodString;
|
|
500
|
+
rdfiNumberQualifier: z.ZodString;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
502
|
+
gatewayRoutingNumber?: string;
|
|
503
|
+
rdfiNumberQualifier?: string;
|
|
504
|
+
}, {
|
|
505
|
+
gatewayRoutingNumber?: string;
|
|
506
|
+
rdfiNumberQualifier?: string;
|
|
507
|
+
}>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
basicInfo?: {
|
|
510
|
+
description?: string;
|
|
511
|
+
type?: string;
|
|
512
|
+
counterpartyName?: string;
|
|
513
|
+
shortName?: string;
|
|
514
|
+
};
|
|
515
|
+
bankDetails?: {
|
|
516
|
+
gatewayRoutingNumber?: string;
|
|
517
|
+
rdfiNumberQualifier?: string;
|
|
518
|
+
};
|
|
519
|
+
}, {
|
|
520
|
+
basicInfo?: {
|
|
521
|
+
description?: string;
|
|
522
|
+
type?: string;
|
|
523
|
+
counterpartyName?: string;
|
|
524
|
+
shortName?: string;
|
|
525
|
+
};
|
|
526
|
+
bankDetails?: {
|
|
527
|
+
gatewayRoutingNumber?: string;
|
|
528
|
+
rdfiNumberQualifier?: string;
|
|
529
|
+
};
|
|
530
|
+
}>;
|
|
531
|
+
type ACHTransfer = z.infer<typeof achTransferSchema>;
|
|
532
|
+
|
|
609
533
|
declare const intermediaryFISchema: z.ZodObject<{
|
|
610
534
|
accountNumber: z.ZodOptional<z.ZodString>;
|
|
611
535
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -667,6 +591,84 @@ declare const intermediaryFISchema: z.ZodObject<{
|
|
|
667
591
|
}>;
|
|
668
592
|
type IntermediaryFI$1 = z.infer<typeof intermediaryFISchema>;
|
|
669
593
|
|
|
594
|
+
interface CounterpartyDetailViewProps {
|
|
595
|
+
counterpartyName: string;
|
|
596
|
+
counterpartyType: string;
|
|
597
|
+
currentStatus: string;
|
|
598
|
+
isEditingProfile: boolean;
|
|
599
|
+
counterpartyProfileData: CounterpartyDetail$1;
|
|
600
|
+
mockPaymentMethods: PaymentMethodCardProps[];
|
|
601
|
+
documents: any[];
|
|
602
|
+
onStatusChange: (newStatus: string) => void;
|
|
603
|
+
onToggleProfileEdit: () => void;
|
|
604
|
+
onProfileDataChange: (data: CounterpartyDetail$1) => void;
|
|
605
|
+
onAddPaymentMethod: () => void;
|
|
606
|
+
onAddDocument: () => void;
|
|
607
|
+
onEntityClick?: (entityType: string, entityId: string) => void;
|
|
608
|
+
}
|
|
609
|
+
declare const CounterpartyDetailView: ({ counterpartyName, counterpartyType, currentStatus, isEditingProfile, counterpartyProfileData, mockPaymentMethods, documents, onStatusChange, onToggleProfileEdit, onProfileDataChange, onAddPaymentMethod, onAddDocument, onEntityClick }: CounterpartyDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
interface ACHBankCardProps {
|
|
612
|
+
data?: Partial<ACHTransfer>;
|
|
613
|
+
onDataChange?: (data: ACHTransfer) => void;
|
|
614
|
+
isEditing?: boolean;
|
|
615
|
+
onToggleEdit?: () => void;
|
|
616
|
+
className?: string;
|
|
617
|
+
hideActions?: boolean;
|
|
618
|
+
}
|
|
619
|
+
declare const ACHBankCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBankCardProps) => react_jsx_runtime.JSX.Element;
|
|
620
|
+
|
|
621
|
+
interface ACHBasicInfoCardProps {
|
|
622
|
+
data?: Partial<ACHTransfer>;
|
|
623
|
+
onDataChange?: (data: ACHTransfer) => void;
|
|
624
|
+
isEditing?: boolean;
|
|
625
|
+
onToggleEdit?: () => void;
|
|
626
|
+
className?: string;
|
|
627
|
+
hideActions?: boolean;
|
|
628
|
+
}
|
|
629
|
+
declare const ACHBasicInfoCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBasicInfoCardProps) => react_jsx_runtime.JSX.Element;
|
|
630
|
+
|
|
631
|
+
interface ACHTransferSectionProps {
|
|
632
|
+
isEditing?: boolean;
|
|
633
|
+
onToggleEdit?: () => void;
|
|
634
|
+
className?: string;
|
|
635
|
+
hideActions?: boolean;
|
|
636
|
+
}
|
|
637
|
+
declare const ACHTransferSection: ({ isEditing, onToggleEdit, className, hideActions }: ACHTransferSectionProps) => react_jsx_runtime.JSX.Element;
|
|
638
|
+
|
|
639
|
+
declare const inputVariants: (props?: {
|
|
640
|
+
variant?: "default" | "success" | "disabled" | "error" | "readonly";
|
|
641
|
+
size?: "default" | "sm" | "lg";
|
|
642
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
643
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
644
|
+
label?: string;
|
|
645
|
+
hint?: string;
|
|
646
|
+
error?: string;
|
|
647
|
+
success?: string;
|
|
648
|
+
isLoading?: boolean;
|
|
649
|
+
}
|
|
650
|
+
declare const EnhancedInput: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
651
|
+
|
|
652
|
+
interface AddressFormProps {
|
|
653
|
+
title: string;
|
|
654
|
+
description: string;
|
|
655
|
+
fieldPrefix?: string;
|
|
656
|
+
showAddressType?: boolean;
|
|
657
|
+
addressTypeOptions?: Array<{
|
|
658
|
+
value: string;
|
|
659
|
+
label: string;
|
|
660
|
+
}>;
|
|
661
|
+
fieldOverrides?: {
|
|
662
|
+
state?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
663
|
+
city?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
664
|
+
streetAddress?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
665
|
+
postalCode?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
666
|
+
apartment?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
667
|
+
};
|
|
668
|
+
showApartment?: boolean;
|
|
669
|
+
}
|
|
670
|
+
declare const AddressForm: ({ title, description, fieldPrefix, showAddressType, addressTypeOptions, fieldOverrides, showApartment }: AddressFormProps) => react_jsx_runtime.JSX.Element;
|
|
671
|
+
|
|
670
672
|
interface BankAddressCardProps {
|
|
671
673
|
data?: Partial<Address>;
|
|
672
674
|
onDataChange?: (data: Address) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -385,134 +385,6 @@ interface PaymentMethodCardProps {
|
|
|
385
385
|
className?: string;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
interface CounterpartyDetailViewProps {
|
|
389
|
-
counterpartyName: string;
|
|
390
|
-
counterpartyType: string;
|
|
391
|
-
currentStatus: string;
|
|
392
|
-
isEditingProfile: boolean;
|
|
393
|
-
mockPaymentMethods: PaymentMethodCardProps[];
|
|
394
|
-
documents: any[];
|
|
395
|
-
onStatusChange: (newStatus: string) => void;
|
|
396
|
-
onToggleProfileEdit: () => void;
|
|
397
|
-
onAddPaymentMethod: () => void;
|
|
398
|
-
onAddDocument: () => void;
|
|
399
|
-
onEntityClick?: (entityType: string, entityId: string) => void;
|
|
400
|
-
}
|
|
401
|
-
declare const CounterpartyDetailView: ({ counterpartyName, counterpartyType, currentStatus, isEditingProfile, mockPaymentMethods, documents, onStatusChange, onToggleProfileEdit, onAddPaymentMethod, onAddDocument, onEntityClick }: CounterpartyDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
402
|
-
|
|
403
|
-
declare const achTransferSchema: z.ZodObject<{
|
|
404
|
-
basicInfo: z.ZodObject<{
|
|
405
|
-
counterpartyName: z.ZodString;
|
|
406
|
-
shortName: z.ZodString;
|
|
407
|
-
type: z.ZodString;
|
|
408
|
-
description: z.ZodOptional<z.ZodString>;
|
|
409
|
-
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
description?: string;
|
|
411
|
-
type?: string;
|
|
412
|
-
counterpartyName?: string;
|
|
413
|
-
shortName?: string;
|
|
414
|
-
}, {
|
|
415
|
-
description?: string;
|
|
416
|
-
type?: string;
|
|
417
|
-
counterpartyName?: string;
|
|
418
|
-
shortName?: string;
|
|
419
|
-
}>;
|
|
420
|
-
bankDetails: z.ZodObject<{
|
|
421
|
-
gatewayRoutingNumber: z.ZodString;
|
|
422
|
-
rdfiNumberQualifier: z.ZodString;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
gatewayRoutingNumber?: string;
|
|
425
|
-
rdfiNumberQualifier?: string;
|
|
426
|
-
}, {
|
|
427
|
-
gatewayRoutingNumber?: string;
|
|
428
|
-
rdfiNumberQualifier?: string;
|
|
429
|
-
}>;
|
|
430
|
-
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
basicInfo?: {
|
|
432
|
-
description?: string;
|
|
433
|
-
type?: string;
|
|
434
|
-
counterpartyName?: string;
|
|
435
|
-
shortName?: string;
|
|
436
|
-
};
|
|
437
|
-
bankDetails?: {
|
|
438
|
-
gatewayRoutingNumber?: string;
|
|
439
|
-
rdfiNumberQualifier?: string;
|
|
440
|
-
};
|
|
441
|
-
}, {
|
|
442
|
-
basicInfo?: {
|
|
443
|
-
description?: string;
|
|
444
|
-
type?: string;
|
|
445
|
-
counterpartyName?: string;
|
|
446
|
-
shortName?: string;
|
|
447
|
-
};
|
|
448
|
-
bankDetails?: {
|
|
449
|
-
gatewayRoutingNumber?: string;
|
|
450
|
-
rdfiNumberQualifier?: string;
|
|
451
|
-
};
|
|
452
|
-
}>;
|
|
453
|
-
type ACHTransfer = z.infer<typeof achTransferSchema>;
|
|
454
|
-
|
|
455
|
-
interface ACHBankCardProps {
|
|
456
|
-
data?: Partial<ACHTransfer>;
|
|
457
|
-
onDataChange?: (data: ACHTransfer) => void;
|
|
458
|
-
isEditing?: boolean;
|
|
459
|
-
onToggleEdit?: () => void;
|
|
460
|
-
className?: string;
|
|
461
|
-
hideActions?: boolean;
|
|
462
|
-
}
|
|
463
|
-
declare const ACHBankCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBankCardProps) => react_jsx_runtime.JSX.Element;
|
|
464
|
-
|
|
465
|
-
interface ACHBasicInfoCardProps {
|
|
466
|
-
data?: Partial<ACHTransfer>;
|
|
467
|
-
onDataChange?: (data: ACHTransfer) => void;
|
|
468
|
-
isEditing?: boolean;
|
|
469
|
-
onToggleEdit?: () => void;
|
|
470
|
-
className?: string;
|
|
471
|
-
hideActions?: boolean;
|
|
472
|
-
}
|
|
473
|
-
declare const ACHBasicInfoCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBasicInfoCardProps) => react_jsx_runtime.JSX.Element;
|
|
474
|
-
|
|
475
|
-
interface ACHTransferSectionProps {
|
|
476
|
-
isEditing?: boolean;
|
|
477
|
-
onToggleEdit?: () => void;
|
|
478
|
-
className?: string;
|
|
479
|
-
hideActions?: boolean;
|
|
480
|
-
}
|
|
481
|
-
declare const ACHTransferSection: ({ isEditing, onToggleEdit, className, hideActions }: ACHTransferSectionProps) => react_jsx_runtime.JSX.Element;
|
|
482
|
-
|
|
483
|
-
declare const inputVariants: (props?: {
|
|
484
|
-
variant?: "default" | "success" | "disabled" | "error" | "readonly";
|
|
485
|
-
size?: "default" | "sm" | "lg";
|
|
486
|
-
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
487
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
488
|
-
label?: string;
|
|
489
|
-
hint?: string;
|
|
490
|
-
error?: string;
|
|
491
|
-
success?: string;
|
|
492
|
-
isLoading?: boolean;
|
|
493
|
-
}
|
|
494
|
-
declare const EnhancedInput: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
495
|
-
|
|
496
|
-
interface AddressFormProps {
|
|
497
|
-
title: string;
|
|
498
|
-
description: string;
|
|
499
|
-
fieldPrefix?: string;
|
|
500
|
-
showAddressType?: boolean;
|
|
501
|
-
addressTypeOptions?: Array<{
|
|
502
|
-
value: string;
|
|
503
|
-
label: string;
|
|
504
|
-
}>;
|
|
505
|
-
fieldOverrides?: {
|
|
506
|
-
state?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
507
|
-
city?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
508
|
-
streetAddress?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
509
|
-
postalCode?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
510
|
-
apartment?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
511
|
-
};
|
|
512
|
-
showApartment?: boolean;
|
|
513
|
-
}
|
|
514
|
-
declare const AddressForm: ({ title, description, fieldPrefix, showAddressType, addressTypeOptions, fieldOverrides, showApartment }: AddressFormProps) => react_jsx_runtime.JSX.Element;
|
|
515
|
-
|
|
516
388
|
declare const addressSchema: z.ZodObject<{
|
|
517
389
|
line1: z.ZodOptional<z.ZodString>;
|
|
518
390
|
line2: z.ZodOptional<z.ZodString>;
|
|
@@ -606,6 +478,58 @@ declare const counterpartyDetailSchema: z.ZodObject<{
|
|
|
606
478
|
type CounterpartyDetail$1 = z.infer<typeof counterpartyDetailSchema>;
|
|
607
479
|
type Address = z.infer<typeof addressSchema>;
|
|
608
480
|
|
|
481
|
+
declare const achTransferSchema: z.ZodObject<{
|
|
482
|
+
basicInfo: z.ZodObject<{
|
|
483
|
+
counterpartyName: z.ZodString;
|
|
484
|
+
shortName: z.ZodString;
|
|
485
|
+
type: z.ZodString;
|
|
486
|
+
description: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
description?: string;
|
|
489
|
+
type?: string;
|
|
490
|
+
counterpartyName?: string;
|
|
491
|
+
shortName?: string;
|
|
492
|
+
}, {
|
|
493
|
+
description?: string;
|
|
494
|
+
type?: string;
|
|
495
|
+
counterpartyName?: string;
|
|
496
|
+
shortName?: string;
|
|
497
|
+
}>;
|
|
498
|
+
bankDetails: z.ZodObject<{
|
|
499
|
+
gatewayRoutingNumber: z.ZodString;
|
|
500
|
+
rdfiNumberQualifier: z.ZodString;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
502
|
+
gatewayRoutingNumber?: string;
|
|
503
|
+
rdfiNumberQualifier?: string;
|
|
504
|
+
}, {
|
|
505
|
+
gatewayRoutingNumber?: string;
|
|
506
|
+
rdfiNumberQualifier?: string;
|
|
507
|
+
}>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
basicInfo?: {
|
|
510
|
+
description?: string;
|
|
511
|
+
type?: string;
|
|
512
|
+
counterpartyName?: string;
|
|
513
|
+
shortName?: string;
|
|
514
|
+
};
|
|
515
|
+
bankDetails?: {
|
|
516
|
+
gatewayRoutingNumber?: string;
|
|
517
|
+
rdfiNumberQualifier?: string;
|
|
518
|
+
};
|
|
519
|
+
}, {
|
|
520
|
+
basicInfo?: {
|
|
521
|
+
description?: string;
|
|
522
|
+
type?: string;
|
|
523
|
+
counterpartyName?: string;
|
|
524
|
+
shortName?: string;
|
|
525
|
+
};
|
|
526
|
+
bankDetails?: {
|
|
527
|
+
gatewayRoutingNumber?: string;
|
|
528
|
+
rdfiNumberQualifier?: string;
|
|
529
|
+
};
|
|
530
|
+
}>;
|
|
531
|
+
type ACHTransfer = z.infer<typeof achTransferSchema>;
|
|
532
|
+
|
|
609
533
|
declare const intermediaryFISchema: z.ZodObject<{
|
|
610
534
|
accountNumber: z.ZodOptional<z.ZodString>;
|
|
611
535
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -667,6 +591,84 @@ declare const intermediaryFISchema: z.ZodObject<{
|
|
|
667
591
|
}>;
|
|
668
592
|
type IntermediaryFI$1 = z.infer<typeof intermediaryFISchema>;
|
|
669
593
|
|
|
594
|
+
interface CounterpartyDetailViewProps {
|
|
595
|
+
counterpartyName: string;
|
|
596
|
+
counterpartyType: string;
|
|
597
|
+
currentStatus: string;
|
|
598
|
+
isEditingProfile: boolean;
|
|
599
|
+
counterpartyProfileData: CounterpartyDetail$1;
|
|
600
|
+
mockPaymentMethods: PaymentMethodCardProps[];
|
|
601
|
+
documents: any[];
|
|
602
|
+
onStatusChange: (newStatus: string) => void;
|
|
603
|
+
onToggleProfileEdit: () => void;
|
|
604
|
+
onProfileDataChange: (data: CounterpartyDetail$1) => void;
|
|
605
|
+
onAddPaymentMethod: () => void;
|
|
606
|
+
onAddDocument: () => void;
|
|
607
|
+
onEntityClick?: (entityType: string, entityId: string) => void;
|
|
608
|
+
}
|
|
609
|
+
declare const CounterpartyDetailView: ({ counterpartyName, counterpartyType, currentStatus, isEditingProfile, counterpartyProfileData, mockPaymentMethods, documents, onStatusChange, onToggleProfileEdit, onProfileDataChange, onAddPaymentMethod, onAddDocument, onEntityClick }: CounterpartyDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
interface ACHBankCardProps {
|
|
612
|
+
data?: Partial<ACHTransfer>;
|
|
613
|
+
onDataChange?: (data: ACHTransfer) => void;
|
|
614
|
+
isEditing?: boolean;
|
|
615
|
+
onToggleEdit?: () => void;
|
|
616
|
+
className?: string;
|
|
617
|
+
hideActions?: boolean;
|
|
618
|
+
}
|
|
619
|
+
declare const ACHBankCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBankCardProps) => react_jsx_runtime.JSX.Element;
|
|
620
|
+
|
|
621
|
+
interface ACHBasicInfoCardProps {
|
|
622
|
+
data?: Partial<ACHTransfer>;
|
|
623
|
+
onDataChange?: (data: ACHTransfer) => void;
|
|
624
|
+
isEditing?: boolean;
|
|
625
|
+
onToggleEdit?: () => void;
|
|
626
|
+
className?: string;
|
|
627
|
+
hideActions?: boolean;
|
|
628
|
+
}
|
|
629
|
+
declare const ACHBasicInfoCard: ({ data, onDataChange, isEditing, onToggleEdit, className, hideActions }: ACHBasicInfoCardProps) => react_jsx_runtime.JSX.Element;
|
|
630
|
+
|
|
631
|
+
interface ACHTransferSectionProps {
|
|
632
|
+
isEditing?: boolean;
|
|
633
|
+
onToggleEdit?: () => void;
|
|
634
|
+
className?: string;
|
|
635
|
+
hideActions?: boolean;
|
|
636
|
+
}
|
|
637
|
+
declare const ACHTransferSection: ({ isEditing, onToggleEdit, className, hideActions }: ACHTransferSectionProps) => react_jsx_runtime.JSX.Element;
|
|
638
|
+
|
|
639
|
+
declare const inputVariants: (props?: {
|
|
640
|
+
variant?: "default" | "success" | "disabled" | "error" | "readonly";
|
|
641
|
+
size?: "default" | "sm" | "lg";
|
|
642
|
+
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
643
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
644
|
+
label?: string;
|
|
645
|
+
hint?: string;
|
|
646
|
+
error?: string;
|
|
647
|
+
success?: string;
|
|
648
|
+
isLoading?: boolean;
|
|
649
|
+
}
|
|
650
|
+
declare const EnhancedInput: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
651
|
+
|
|
652
|
+
interface AddressFormProps {
|
|
653
|
+
title: string;
|
|
654
|
+
description: string;
|
|
655
|
+
fieldPrefix?: string;
|
|
656
|
+
showAddressType?: boolean;
|
|
657
|
+
addressTypeOptions?: Array<{
|
|
658
|
+
value: string;
|
|
659
|
+
label: string;
|
|
660
|
+
}>;
|
|
661
|
+
fieldOverrides?: {
|
|
662
|
+
state?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
663
|
+
city?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
664
|
+
streetAddress?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
665
|
+
postalCode?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
666
|
+
apartment?: Partial<React.ComponentProps<typeof EnhancedInput>>;
|
|
667
|
+
};
|
|
668
|
+
showApartment?: boolean;
|
|
669
|
+
}
|
|
670
|
+
declare const AddressForm: ({ title, description, fieldPrefix, showAddressType, addressTypeOptions, fieldOverrides, showApartment }: AddressFormProps) => react_jsx_runtime.JSX.Element;
|
|
671
|
+
|
|
670
672
|
interface BankAddressCardProps {
|
|
671
673
|
data?: Partial<Address>;
|
|
672
674
|
onDataChange?: (data: Address) => void;
|
package/dist/index.js
CHANGED
|
@@ -6156,10 +6156,12 @@ var CounterpartyDetailView = ({
|
|
|
6156
6156
|
counterpartyType,
|
|
6157
6157
|
currentStatus,
|
|
6158
6158
|
isEditingProfile,
|
|
6159
|
+
counterpartyProfileData,
|
|
6159
6160
|
mockPaymentMethods: mockPaymentMethods2,
|
|
6160
6161
|
documents,
|
|
6161
6162
|
onStatusChange,
|
|
6162
6163
|
onToggleProfileEdit,
|
|
6164
|
+
onProfileDataChange,
|
|
6163
6165
|
onAddPaymentMethod,
|
|
6164
6166
|
onAddDocument,
|
|
6165
6167
|
onEntityClick
|
|
@@ -6222,8 +6224,10 @@ var CounterpartyDetailView = ({
|
|
|
6222
6224
|
/* @__PURE__ */ jsx(
|
|
6223
6225
|
CounterpartyProfileCard,
|
|
6224
6226
|
{
|
|
6227
|
+
data: counterpartyProfileData,
|
|
6225
6228
|
isEditing: isEditingProfile,
|
|
6226
6229
|
onToggleEdit: onToggleProfileEdit,
|
|
6230
|
+
onDataChange: onProfileDataChange,
|
|
6227
6231
|
onEntityClick
|
|
6228
6232
|
}
|
|
6229
6233
|
),
|
|
@@ -11555,6 +11559,60 @@ var CounterpartyDetail = () => {
|
|
|
11555
11559
|
const counterpartyDocuments = id ? mockBusinessDocuments[id] || [] : [];
|
|
11556
11560
|
const [currentStatus, setCurrentStatus] = useState(counterparty?.status || "ACTIVE");
|
|
11557
11561
|
const [isEditingProfile, setIsEditingProfile] = useState(false);
|
|
11562
|
+
const getInitialProfileData = () => {
|
|
11563
|
+
if (!counterparty) {
|
|
11564
|
+
return {
|
|
11565
|
+
idType: "product_id",
|
|
11566
|
+
idValue: "",
|
|
11567
|
+
email: "",
|
|
11568
|
+
phone: "",
|
|
11569
|
+
dateOfBirth: "",
|
|
11570
|
+
idNumber: "",
|
|
11571
|
+
address: {
|
|
11572
|
+
line1: "",
|
|
11573
|
+
line2: "",
|
|
11574
|
+
city: "",
|
|
11575
|
+
state: "",
|
|
11576
|
+
postalCode: "",
|
|
11577
|
+
countryCode: "US",
|
|
11578
|
+
type: ""
|
|
11579
|
+
}
|
|
11580
|
+
};
|
|
11581
|
+
}
|
|
11582
|
+
let idType = "product_id";
|
|
11583
|
+
let idValue = "";
|
|
11584
|
+
if (counterparty.productId) {
|
|
11585
|
+
idType = "product_id";
|
|
11586
|
+
idValue = counterparty.productId;
|
|
11587
|
+
} else if (counterparty.businessId) {
|
|
11588
|
+
idType = "business_id";
|
|
11589
|
+
idValue = counterparty.businessId;
|
|
11590
|
+
} else if (counterparty.individualId) {
|
|
11591
|
+
idType = "individual_id";
|
|
11592
|
+
idValue = counterparty.individualId;
|
|
11593
|
+
} else if (counterparty.accountNumber) {
|
|
11594
|
+
idType = "account_number";
|
|
11595
|
+
idValue = counterparty.accountNumber;
|
|
11596
|
+
}
|
|
11597
|
+
return {
|
|
11598
|
+
idType,
|
|
11599
|
+
idValue,
|
|
11600
|
+
email: "",
|
|
11601
|
+
phone: "",
|
|
11602
|
+
dateOfBirth: "",
|
|
11603
|
+
idNumber: "",
|
|
11604
|
+
address: {
|
|
11605
|
+
line1: "",
|
|
11606
|
+
line2: "",
|
|
11607
|
+
city: "",
|
|
11608
|
+
state: "",
|
|
11609
|
+
postalCode: "",
|
|
11610
|
+
countryCode: "US",
|
|
11611
|
+
type: ""
|
|
11612
|
+
}
|
|
11613
|
+
};
|
|
11614
|
+
};
|
|
11615
|
+
const [counterpartyProfileData, setCounterpartyProfileData] = useState(getInitialProfileData());
|
|
11558
11616
|
const handleEntityClick = (entityType, entityId) => {
|
|
11559
11617
|
switch (entityType) {
|
|
11560
11618
|
case "business_id":
|
|
@@ -11574,6 +11632,9 @@ var CounterpartyDetail = () => {
|
|
|
11574
11632
|
const handleToggleProfileEdit = () => {
|
|
11575
11633
|
setIsEditingProfile(!isEditingProfile);
|
|
11576
11634
|
};
|
|
11635
|
+
const handleProfileDataChange = (newData) => {
|
|
11636
|
+
setCounterpartyProfileData(newData);
|
|
11637
|
+
};
|
|
11577
11638
|
const handleAddPaymentMethod = () => {
|
|
11578
11639
|
console.log("Add payment method");
|
|
11579
11640
|
};
|
|
@@ -11593,10 +11654,12 @@ var CounterpartyDetail = () => {
|
|
|
11593
11654
|
counterpartyType: counterparty.type,
|
|
11594
11655
|
currentStatus,
|
|
11595
11656
|
isEditingProfile,
|
|
11657
|
+
counterpartyProfileData,
|
|
11596
11658
|
mockPaymentMethods,
|
|
11597
11659
|
documents: counterpartyDocuments,
|
|
11598
11660
|
onStatusChange: handleStatusChange,
|
|
11599
11661
|
onToggleProfileEdit: handleToggleProfileEdit,
|
|
11662
|
+
onProfileDataChange: handleProfileDataChange,
|
|
11600
11663
|
onAddPaymentMethod: handleAddPaymentMethod,
|
|
11601
11664
|
onAddDocument: handleAddDocument,
|
|
11602
11665
|
onEntityClick: handleEntityClick
|