braid-ui 1.0.118 → 1.0.119

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
@@ -293,8 +293,8 @@ interface BusinessDetailViewProps {
293
293
  isEditingProfile: boolean;
294
294
  statusOptions: SelectOption$5[];
295
295
  businessEntityTypeOptions: SelectOption$5[];
296
- onStatusChange: (newStatus: string) => void;
297
- onProfileDataChange: (profile: BusinessProfile) => void;
296
+ onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
297
+ onProfileDataChange: (profile: BusinessProfile) => void | Promise<void>;
298
298
  onToggleProfileEdit: () => void;
299
299
  onNavigateToAccounts: () => void;
300
300
  onNavigateToCounterparty: () => void;
@@ -343,8 +343,9 @@ interface CreateBusinessViewProps {
343
343
  onBusinessTypeChange: (value: string) => void;
344
344
  onSubmit: (data: BusinessProfile) => void;
345
345
  onCancel: () => void;
346
+ isSubmitting?: boolean;
346
347
  }
347
- declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
348
+ declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
348
349
 
349
350
  interface CounterpartiesViewProps {
350
351
  table: React.ReactNode;
@@ -378,7 +379,6 @@ interface PaymentMethodCardProps {
378
379
  beneficiaryFiIdType?: string;
379
380
  correspondentBankId?: string;
380
381
  correspondentFiId?: string;
381
- correspondentFiName?: string;
382
382
  intermediaryBankId?: string;
383
383
  wireType?: "DOMESTIC" | "INTERNATIONAL";
384
384
  direction?: "INBOUND" | "OUTBOUND";
@@ -457,7 +457,7 @@ interface CounterpartyDetailViewProps {
457
457
  wirePaymentMethod?: PaymentMethodCardProps | null;
458
458
  onStatusChange: (newStatus: string) => void;
459
459
  onToggleProfileEdit: () => void;
460
- onProfileDataChange: (data: CounterpartyDetail$1) => void;
460
+ onProfileDataChange: (data: CounterpartyDetail$1) => void | Promise<void>;
461
461
  onACHSave: (data: PaymentMethodCardProps) => void;
462
462
  onACHDelete: () => void;
463
463
  onWireSave: (data: PaymentMethodCardProps) => void;
@@ -520,6 +520,7 @@ interface CreateCounterpartyViewProps {
520
520
  onBasicInfoChange: (data: any) => void;
521
521
  onCancel: () => void;
522
522
  onSubmit: () => void;
523
+ isSubmitting?: boolean;
523
524
  achPaymentMethod: PaymentMethodCardProps | null;
524
525
  wirePaymentMethod: PaymentMethodCardProps | null;
525
526
  hasWire: boolean;
@@ -531,7 +532,7 @@ interface CreateCounterpartyViewProps {
531
532
  address?: AddressData;
532
533
  onAddressChange?: (address: AddressData) => void;
533
534
  }
534
- declare const CreateCounterpartyView: ({ counterpartyData, onBasicInfoChange, onCancel, onSubmit, achPaymentMethod, wirePaymentMethod, hasWire, onACHSave, onACHDelete, onWireSave, onWireDelete, onCountryCodeChange, address, onAddressChange, }: CreateCounterpartyViewProps) => react_jsx_runtime.JSX.Element;
535
+ declare const CreateCounterpartyView: ({ counterpartyData, onBasicInfoChange, onCancel, onSubmit, isSubmitting, achPaymentMethod, wirePaymentMethod, hasWire, onACHSave, onACHDelete, onWireSave, onWireDelete, onCountryCodeChange, address, onAddressChange, }: CreateCounterpartyViewProps) => react_jsx_runtime.JSX.Element;
535
536
 
536
537
  interface BusinessAccount {
537
538
  id: string;
@@ -648,23 +649,23 @@ interface IndividualsViewProps {
648
649
  declare const IndividualsView: ({ title, filters, statusOptions, isLoading, onFilterChange, onResetFilters, onApplyFilters, onCreateIndividual, table, }: IndividualsViewProps) => react_jsx_runtime.JSX.Element;
649
650
 
650
651
  declare const individualProfileEditSchema: z.ZodObject<{
651
- firstName: z.ZodOptional<z.ZodString>;
652
- middleName: z.ZodOptional<z.ZodString>;
653
- lastName: z.ZodOptional<z.ZodString>;
654
- dateOfBirth: z.ZodOptional<z.ZodString>;
655
- idType: z.ZodOptional<z.ZodString>;
656
- idNumber: z.ZodOptional<z.ZodString>;
657
- email: z.ZodOptional<z.ZodString>;
658
- mobilePhone: z.ZodOptional<z.ZodString>;
659
- streetAddress: z.ZodOptional<z.ZodString>;
660
- apartment: z.ZodOptional<z.ZodString>;
661
- city: z.ZodOptional<z.ZodString>;
662
- state: z.ZodOptional<z.ZodString>;
663
- postalCode: z.ZodOptional<z.ZodString>;
664
- country: z.ZodOptional<z.ZodString>;
665
- externalId: z.ZodOptional<z.ZodCoercedString<unknown>>;
666
- productId: z.ZodOptional<z.ZodCoercedString<unknown>>;
667
- achCompanyId: z.ZodOptional<z.ZodCoercedString<unknown>>;
652
+ firstName: z.ZodOptional<z.ZodAny>;
653
+ middleName: z.ZodOptional<z.ZodAny>;
654
+ lastName: z.ZodOptional<z.ZodAny>;
655
+ dateOfBirth: z.ZodOptional<z.ZodAny>;
656
+ idType: z.ZodOptional<z.ZodAny>;
657
+ idNumber: z.ZodOptional<z.ZodAny>;
658
+ email: z.ZodOptional<z.ZodAny>;
659
+ mobilePhone: z.ZodOptional<z.ZodAny>;
660
+ streetAddress: z.ZodOptional<z.ZodAny>;
661
+ apartment: z.ZodOptional<z.ZodAny>;
662
+ city: z.ZodOptional<z.ZodAny>;
663
+ state: z.ZodOptional<z.ZodAny>;
664
+ postalCode: z.ZodOptional<z.ZodAny>;
665
+ country: z.ZodOptional<z.ZodAny>;
666
+ externalId: z.ZodOptional<z.ZodAny>;
667
+ productId: z.ZodOptional<z.ZodAny>;
668
+ achCompanyId: z.ZodOptional<z.ZodAny>;
668
669
  }, z.core.$strip>;
669
670
  type IndividualProfileEdit = z.infer<typeof individualProfileEditSchema>;
670
671
 
@@ -700,7 +701,7 @@ interface IndividualDetailViewProps {
700
701
  onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
701
702
  status: string;
702
703
  statusOptions: SelectOption$3[];
703
- onStatusChange: (newStatus: string) => void;
704
+ onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
704
705
  latestOFAC?: OFACCheck;
705
706
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
706
707
  onNavigateToAccounts: () => void;
@@ -745,8 +746,9 @@ interface CreateIndividualViewProps {
745
746
  form: CreateIndividualViewForm;
746
747
  onCancel: () => void;
747
748
  onSubmit: () => void;
749
+ isSubmitting?: boolean;
748
750
  }
749
- declare const CreateIndividualView: ({ form, onCancel, onSubmit }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
751
+ declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
750
752
 
751
753
  interface ACHBankCardProps {
752
754
  data?: Partial<ACHTransfer>;
@@ -829,7 +831,7 @@ interface BusinessProfileCardProps {
829
831
  data?: Partial<BusinessProfile>;
830
832
  businessId?: string;
831
833
  identityVerification?: IdentityVerification;
832
- onDataChange?: (data: BusinessProfile) => void;
834
+ onDataChange?: (data: BusinessProfile) => void | Promise<void>;
833
835
  isEditing?: boolean;
834
836
  onToggleEdit?: () => void;
835
837
  className?: string;
@@ -859,7 +861,7 @@ declare const CounterpartyBasicInfo: ({ value, onDataChange }: CounterpartyBasic
859
861
 
860
862
  interface CounterpartyProfileCardProps {
861
863
  data?: Partial<CounterpartyDetail$1>;
862
- onDataChange?: (data: CounterpartyDetail$1) => void;
864
+ onDataChange?: (data: CounterpartyDetail$1) => void | Promise<void>;
863
865
  isEditing?: boolean;
864
866
  onToggleEdit?: () => void;
865
867
  hideActions?: boolean;
@@ -1001,12 +1003,13 @@ interface CreateFeeViewProps {
1001
1003
  nextStartCount: string;
1002
1004
  onSubmit: (e: React.FormEvent) => void;
1003
1005
  onCancel: () => void;
1006
+ isSubmitting?: boolean;
1004
1007
  feeTypeOptions: OptionItem[];
1005
1008
  transactionGroupOptions: OptionItem[];
1006
1009
  transactionTypeOptions: OptionItem[];
1007
1010
  associatedEntityTypeOptions: OptionItem[];
1008
1011
  }
1009
- declare const CreateFeeView: ({ formData, onFieldChange, onSameDayChange, transactionScope, onTransactionScopeChange, transactionGroups, onTransactionGroupsChange, transactionTypes, onTransactionTypesChange, tiers, newTier, onNewTierChange, onAddTier, onRemoveTier, nextStartCount, onSubmit, onCancel, feeTypeOptions, transactionGroupOptions, transactionTypeOptions, associatedEntityTypeOptions, }: CreateFeeViewProps) => react_jsx_runtime.JSX.Element;
1012
+ declare const CreateFeeView: ({ formData, onFieldChange, onSameDayChange, transactionScope, onTransactionScopeChange, transactionGroups, onTransactionGroupsChange, transactionTypes, onTransactionTypesChange, tiers, newTier, onNewTierChange, onAddTier, onRemoveTier, nextStartCount, onSubmit, onCancel, isSubmitting, feeTypeOptions, transactionGroupOptions, transactionTypeOptions, associatedEntityTypeOptions, }: CreateFeeViewProps) => react_jsx_runtime.JSX.Element;
1010
1013
 
1011
1014
  interface TieredFee {
1012
1015
  amount: number;
@@ -1033,10 +1036,11 @@ interface AccountFee {
1033
1036
  interface FeeDetailViewProps {
1034
1037
  fee: AccountFee;
1035
1038
  onDelete: () => void;
1039
+ isDeleting?: boolean;
1036
1040
  onNavigateBack: () => void;
1037
1041
  onNavigateToAccount: (accountNumber: string) => void;
1038
1042
  }
1039
- declare const FeeDetailView: ({ fee, onDelete, onNavigateBack, onNavigateToAccount }: FeeDetailViewProps) => react_jsx_runtime.JSX.Element;
1043
+ declare const FeeDetailView: ({ fee, onDelete, isDeleting, onNavigateBack, onNavigateToAccount }: FeeDetailViewProps) => react_jsx_runtime.JSX.Element;
1040
1044
 
1041
1045
  interface FeeFilters {
1042
1046
  accountNumber: string;
@@ -1809,6 +1813,8 @@ interface PageAction {
1809
1813
  icon?: React$1.ComponentType<{
1810
1814
  className?: string;
1811
1815
  }>;
1816
+ disabled?: boolean;
1817
+ loading?: boolean;
1812
1818
  }
1813
1819
  interface PageCard {
1814
1820
  component: React$1.ComponentType<any>;
package/dist/index.d.ts CHANGED
@@ -293,8 +293,8 @@ interface BusinessDetailViewProps {
293
293
  isEditingProfile: boolean;
294
294
  statusOptions: SelectOption$5[];
295
295
  businessEntityTypeOptions: SelectOption$5[];
296
- onStatusChange: (newStatus: string) => void;
297
- onProfileDataChange: (profile: BusinessProfile) => void;
296
+ onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
297
+ onProfileDataChange: (profile: BusinessProfile) => void | Promise<void>;
298
298
  onToggleProfileEdit: () => void;
299
299
  onNavigateToAccounts: () => void;
300
300
  onNavigateToCounterparty: () => void;
@@ -343,8 +343,9 @@ interface CreateBusinessViewProps {
343
343
  onBusinessTypeChange: (value: string) => void;
344
344
  onSubmit: (data: BusinessProfile) => void;
345
345
  onCancel: () => void;
346
+ isSubmitting?: boolean;
346
347
  }
347
- declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
348
+ declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
348
349
 
349
350
  interface CounterpartiesViewProps {
350
351
  table: React.ReactNode;
@@ -378,7 +379,6 @@ interface PaymentMethodCardProps {
378
379
  beneficiaryFiIdType?: string;
379
380
  correspondentBankId?: string;
380
381
  correspondentFiId?: string;
381
- correspondentFiName?: string;
382
382
  intermediaryBankId?: string;
383
383
  wireType?: "DOMESTIC" | "INTERNATIONAL";
384
384
  direction?: "INBOUND" | "OUTBOUND";
@@ -457,7 +457,7 @@ interface CounterpartyDetailViewProps {
457
457
  wirePaymentMethod?: PaymentMethodCardProps | null;
458
458
  onStatusChange: (newStatus: string) => void;
459
459
  onToggleProfileEdit: () => void;
460
- onProfileDataChange: (data: CounterpartyDetail$1) => void;
460
+ onProfileDataChange: (data: CounterpartyDetail$1) => void | Promise<void>;
461
461
  onACHSave: (data: PaymentMethodCardProps) => void;
462
462
  onACHDelete: () => void;
463
463
  onWireSave: (data: PaymentMethodCardProps) => void;
@@ -520,6 +520,7 @@ interface CreateCounterpartyViewProps {
520
520
  onBasicInfoChange: (data: any) => void;
521
521
  onCancel: () => void;
522
522
  onSubmit: () => void;
523
+ isSubmitting?: boolean;
523
524
  achPaymentMethod: PaymentMethodCardProps | null;
524
525
  wirePaymentMethod: PaymentMethodCardProps | null;
525
526
  hasWire: boolean;
@@ -531,7 +532,7 @@ interface CreateCounterpartyViewProps {
531
532
  address?: AddressData;
532
533
  onAddressChange?: (address: AddressData) => void;
533
534
  }
534
- declare const CreateCounterpartyView: ({ counterpartyData, onBasicInfoChange, onCancel, onSubmit, achPaymentMethod, wirePaymentMethod, hasWire, onACHSave, onACHDelete, onWireSave, onWireDelete, onCountryCodeChange, address, onAddressChange, }: CreateCounterpartyViewProps) => react_jsx_runtime.JSX.Element;
535
+ declare const CreateCounterpartyView: ({ counterpartyData, onBasicInfoChange, onCancel, onSubmit, isSubmitting, achPaymentMethod, wirePaymentMethod, hasWire, onACHSave, onACHDelete, onWireSave, onWireDelete, onCountryCodeChange, address, onAddressChange, }: CreateCounterpartyViewProps) => react_jsx_runtime.JSX.Element;
535
536
 
536
537
  interface BusinessAccount {
537
538
  id: string;
@@ -648,23 +649,23 @@ interface IndividualsViewProps {
648
649
  declare const IndividualsView: ({ title, filters, statusOptions, isLoading, onFilterChange, onResetFilters, onApplyFilters, onCreateIndividual, table, }: IndividualsViewProps) => react_jsx_runtime.JSX.Element;
649
650
 
650
651
  declare const individualProfileEditSchema: z.ZodObject<{
651
- firstName: z.ZodOptional<z.ZodString>;
652
- middleName: z.ZodOptional<z.ZodString>;
653
- lastName: z.ZodOptional<z.ZodString>;
654
- dateOfBirth: z.ZodOptional<z.ZodString>;
655
- idType: z.ZodOptional<z.ZodString>;
656
- idNumber: z.ZodOptional<z.ZodString>;
657
- email: z.ZodOptional<z.ZodString>;
658
- mobilePhone: z.ZodOptional<z.ZodString>;
659
- streetAddress: z.ZodOptional<z.ZodString>;
660
- apartment: z.ZodOptional<z.ZodString>;
661
- city: z.ZodOptional<z.ZodString>;
662
- state: z.ZodOptional<z.ZodString>;
663
- postalCode: z.ZodOptional<z.ZodString>;
664
- country: z.ZodOptional<z.ZodString>;
665
- externalId: z.ZodOptional<z.ZodCoercedString<unknown>>;
666
- productId: z.ZodOptional<z.ZodCoercedString<unknown>>;
667
- achCompanyId: z.ZodOptional<z.ZodCoercedString<unknown>>;
652
+ firstName: z.ZodOptional<z.ZodAny>;
653
+ middleName: z.ZodOptional<z.ZodAny>;
654
+ lastName: z.ZodOptional<z.ZodAny>;
655
+ dateOfBirth: z.ZodOptional<z.ZodAny>;
656
+ idType: z.ZodOptional<z.ZodAny>;
657
+ idNumber: z.ZodOptional<z.ZodAny>;
658
+ email: z.ZodOptional<z.ZodAny>;
659
+ mobilePhone: z.ZodOptional<z.ZodAny>;
660
+ streetAddress: z.ZodOptional<z.ZodAny>;
661
+ apartment: z.ZodOptional<z.ZodAny>;
662
+ city: z.ZodOptional<z.ZodAny>;
663
+ state: z.ZodOptional<z.ZodAny>;
664
+ postalCode: z.ZodOptional<z.ZodAny>;
665
+ country: z.ZodOptional<z.ZodAny>;
666
+ externalId: z.ZodOptional<z.ZodAny>;
667
+ productId: z.ZodOptional<z.ZodAny>;
668
+ achCompanyId: z.ZodOptional<z.ZodAny>;
668
669
  }, z.core.$strip>;
669
670
  type IndividualProfileEdit = z.infer<typeof individualProfileEditSchema>;
670
671
 
@@ -700,7 +701,7 @@ interface IndividualDetailViewProps {
700
701
  onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
701
702
  status: string;
702
703
  statusOptions: SelectOption$3[];
703
- onStatusChange: (newStatus: string) => void;
704
+ onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
704
705
  latestOFAC?: OFACCheck;
705
706
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
706
707
  onNavigateToAccounts: () => void;
@@ -745,8 +746,9 @@ interface CreateIndividualViewProps {
745
746
  form: CreateIndividualViewForm;
746
747
  onCancel: () => void;
747
748
  onSubmit: () => void;
749
+ isSubmitting?: boolean;
748
750
  }
749
- declare const CreateIndividualView: ({ form, onCancel, onSubmit }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
751
+ declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
750
752
 
751
753
  interface ACHBankCardProps {
752
754
  data?: Partial<ACHTransfer>;
@@ -829,7 +831,7 @@ interface BusinessProfileCardProps {
829
831
  data?: Partial<BusinessProfile>;
830
832
  businessId?: string;
831
833
  identityVerification?: IdentityVerification;
832
- onDataChange?: (data: BusinessProfile) => void;
834
+ onDataChange?: (data: BusinessProfile) => void | Promise<void>;
833
835
  isEditing?: boolean;
834
836
  onToggleEdit?: () => void;
835
837
  className?: string;
@@ -859,7 +861,7 @@ declare const CounterpartyBasicInfo: ({ value, onDataChange }: CounterpartyBasic
859
861
 
860
862
  interface CounterpartyProfileCardProps {
861
863
  data?: Partial<CounterpartyDetail$1>;
862
- onDataChange?: (data: CounterpartyDetail$1) => void;
864
+ onDataChange?: (data: CounterpartyDetail$1) => void | Promise<void>;
863
865
  isEditing?: boolean;
864
866
  onToggleEdit?: () => void;
865
867
  hideActions?: boolean;
@@ -1001,12 +1003,13 @@ interface CreateFeeViewProps {
1001
1003
  nextStartCount: string;
1002
1004
  onSubmit: (e: React.FormEvent) => void;
1003
1005
  onCancel: () => void;
1006
+ isSubmitting?: boolean;
1004
1007
  feeTypeOptions: OptionItem[];
1005
1008
  transactionGroupOptions: OptionItem[];
1006
1009
  transactionTypeOptions: OptionItem[];
1007
1010
  associatedEntityTypeOptions: OptionItem[];
1008
1011
  }
1009
- declare const CreateFeeView: ({ formData, onFieldChange, onSameDayChange, transactionScope, onTransactionScopeChange, transactionGroups, onTransactionGroupsChange, transactionTypes, onTransactionTypesChange, tiers, newTier, onNewTierChange, onAddTier, onRemoveTier, nextStartCount, onSubmit, onCancel, feeTypeOptions, transactionGroupOptions, transactionTypeOptions, associatedEntityTypeOptions, }: CreateFeeViewProps) => react_jsx_runtime.JSX.Element;
1012
+ declare const CreateFeeView: ({ formData, onFieldChange, onSameDayChange, transactionScope, onTransactionScopeChange, transactionGroups, onTransactionGroupsChange, transactionTypes, onTransactionTypesChange, tiers, newTier, onNewTierChange, onAddTier, onRemoveTier, nextStartCount, onSubmit, onCancel, isSubmitting, feeTypeOptions, transactionGroupOptions, transactionTypeOptions, associatedEntityTypeOptions, }: CreateFeeViewProps) => react_jsx_runtime.JSX.Element;
1010
1013
 
1011
1014
  interface TieredFee {
1012
1015
  amount: number;
@@ -1033,10 +1036,11 @@ interface AccountFee {
1033
1036
  interface FeeDetailViewProps {
1034
1037
  fee: AccountFee;
1035
1038
  onDelete: () => void;
1039
+ isDeleting?: boolean;
1036
1040
  onNavigateBack: () => void;
1037
1041
  onNavigateToAccount: (accountNumber: string) => void;
1038
1042
  }
1039
- declare const FeeDetailView: ({ fee, onDelete, onNavigateBack, onNavigateToAccount }: FeeDetailViewProps) => react_jsx_runtime.JSX.Element;
1043
+ declare const FeeDetailView: ({ fee, onDelete, isDeleting, onNavigateBack, onNavigateToAccount }: FeeDetailViewProps) => react_jsx_runtime.JSX.Element;
1040
1044
 
1041
1045
  interface FeeFilters {
1042
1046
  accountNumber: string;
@@ -1809,6 +1813,8 @@ interface PageAction {
1809
1813
  icon?: React$1.ComponentType<{
1810
1814
  className?: string;
1811
1815
  }>;
1816
+ disabled?: boolean;
1817
+ loading?: boolean;
1812
1818
  }
1813
1819
  interface PageCard {
1814
1820
  component: React$1.ComponentType<any>;