braid-ui 1.0.62 → 1.0.64

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
@@ -1070,43 +1070,65 @@ interface NewTransactionViewProps {
1070
1070
  declare const NewTransactionView: ({ form, accountLookedUp, accountData, counterpartyLookedUp, counterpartyData, confirmationOpen, submissionStatus, errorMessage, transactionId, isAccountLoading, isCounterpartyLoading, isSubmitting, counterpartySearchResults, isCounterpartySearching, showCounterpartyDropdown, onAccountLookup, onEditAccount, onEditCounterparty, onTransactionTypeChange, onSubmit, onConfirmationClose, onConfirmationOpenChange, onNewTransaction, onCounterpartySearchChange, onCounterpartySelect, onCounterpartyDropdownClose, counterpartyHasMore, counterpartyTotalResults, isLoadingMoreCounterparties, onLoadMoreCounterparties, receiverAccountLookedUp, receiverAccountData, isReceiverAccountLoading, onReceiverAccountLookup, onEditReceiverAccount, isReviewReady, adjustmentTypeOptions, transactionTypeOptions, showSuccessInfoBox, successInfoMessage, }: NewTransactionViewProps) => react_jsx_runtime.JSX.Element;
1071
1071
 
1072
1072
  interface TransactionHistoryFilters {
1073
- accountNumber: string;
1074
- product: string;
1075
- customerId: string;
1076
- counterpartyId: string;
1077
- settlementFileName: string;
1078
- originalFileName: string;
1079
- requesterIpAddress: string;
1080
- requesterUsername: string;
1081
- wireFileHandle: string;
1082
- paymentId: string;
1083
- transactionType: string;
1084
- transactionStatus: string;
1085
- processingStatus: string;
1086
- direction: string;
1087
- minAmount: string;
1088
- maxAmount: string;
1089
- creationDateStart?: Date;
1090
- creationDateEnd?: Date;
1091
- postDateStart?: Date;
1092
- postDateEnd?: Date;
1073
+ originalFileName?: string;
1074
+ requesterIpAddress?: string;
1075
+ requesterUsername?: string;
1076
+ showAchNoc?: boolean;
1077
+ excludeWire?: boolean;
1078
+ excludeAch?: boolean;
1079
+ wireFileHandle?: string;
1080
+ direction?: string;
1081
+ counterpartyId?: string;
1082
+ customerId?: string;
1083
+ settlementFileName?: string;
1084
+ isInbound?: boolean;
1085
+ accountNumber?: string;
1086
+ processingStatus?: string[];
1087
+ beginDate?: string;
1088
+ endDate?: string;
1089
+ postDateStart?: string;
1090
+ postDateEnd?: string;
1091
+ maxAmount?: string;
1092
+ minAmount?: string;
1093
+ productId?: string;
1094
+ paymentId?: string;
1095
+ transactionStatus?: string[];
1096
+ transactionType?: string[];
1097
+ }
1098
+ type FilterValue$1 = string | string[] | boolean | undefined;
1099
+ interface SelectOption {
1100
+ value: string;
1101
+ label: string;
1102
+ }
1103
+ interface FilterOptions {
1104
+ transactionTypes?: SelectOption[];
1105
+ transactionStatuses?: SelectOption[];
1106
+ processingStatuses?: SelectOption[];
1107
+ directions?: SelectOption[];
1108
+ products?: SelectOption[];
1093
1109
  }
1094
1110
  interface TransactionHistoryFiltersSheetProps {
1095
1111
  filters: TransactionHistoryFilters;
1096
- onFilterChange: (field: keyof TransactionHistoryFilters, value: string | Date | undefined) => void;
1112
+ filterOptions?: FilterOptions;
1113
+ onFilterChange: (field: keyof TransactionHistoryFilters, value: FilterValue$1) => void;
1097
1114
  onResetFilters: () => void;
1098
1115
  onApplyFilters: () => void;
1099
1116
  }
1100
- declare const TransactionHistoryFiltersSheet: ({ filters, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryFiltersSheetProps) => react_jsx_runtime.JSX.Element;
1117
+ declare const TransactionHistoryFiltersSheet: ({ filters, filterOptions, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryFiltersSheetProps) => react_jsx_runtime.JSX.Element;
1101
1118
 
1119
+ type FilterValue = string | string[] | boolean | undefined;
1102
1120
  interface TransactionHistoryViewProps {
1103
1121
  table: React.ReactNode;
1104
1122
  filters: TransactionHistoryFilters;
1105
- onFilterChange: (field: keyof TransactionHistoryFilters, value: string | Date | undefined) => void;
1123
+ filterOptions?: FilterOptions;
1124
+ onFilterChange: (field: keyof TransactionHistoryFilters, value: FilterValue) => void;
1106
1125
  onResetFilters: () => void;
1107
1126
  onApplyFilters: () => void;
1127
+ isLoading?: boolean;
1128
+ error?: string | null;
1129
+ onRetry?: () => void;
1108
1130
  }
1109
- declare const TransactionHistoryView: ({ table, filters, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryViewProps) => react_jsx_runtime.JSX.Element;
1131
+ declare const TransactionHistoryView: ({ table, filters, filterOptions, onFilterChange, onResetFilters, onApplyFilters, isLoading, error, onRetry }: TransactionHistoryViewProps) => react_jsx_runtime.JSX.Element;
1110
1132
 
1111
1133
  interface TransactionData {
1112
1134
  id: string;
@@ -1124,7 +1146,7 @@ interface TransactionData {
1124
1146
  wireDetails?: any;
1125
1147
  }
1126
1148
  interface TransactionDetailViewProps {
1127
- transaction: TransactionData;
1149
+ transaction?: TransactionData | null;
1128
1150
  timelineEvents: TimelineEvent[];
1129
1151
  isWireTransfer: boolean;
1130
1152
  isACHTransfer: boolean;
@@ -1137,8 +1159,49 @@ interface TransactionDetailViewProps {
1137
1159
  onCounterpartyClick: (counterparty: string) => void;
1138
1160
  onOFACClick: (ofacId: string) => void;
1139
1161
  onProductClick: (productId: string) => void;
1162
+ isLoading?: boolean;
1163
+ error?: string | null;
1164
+ onRetry?: () => void;
1165
+ }
1166
+ declare const TransactionDetailView: ({ transaction, timelineEvents, isWireTransfer, isACHTransfer, showCancelButton, showReturnButton, onReturnClick, onCancelClick, onAccountClick, onCustomerClick, onCounterpartyClick, onOFACClick, onProductClick, isLoading, error, onRetry, }: TransactionDetailViewProps) => react_jsx_runtime.JSX.Element;
1167
+
1168
+ declare const cancelTransactionSchema: z.ZodObject<{
1169
+ reason: z.ZodString;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ reason?: string;
1172
+ }, {
1173
+ reason?: string;
1174
+ }>;
1175
+ type CancelTransactionFormData = z.infer<typeof cancelTransactionSchema>;
1176
+ declare const returnTransactionSchema: z.ZodObject<{
1177
+ reasonCode: z.ZodString;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ reasonCode?: string;
1180
+ }, {
1181
+ reasonCode?: string;
1182
+ }>;
1183
+ type ReturnTransactionFormData = z.infer<typeof returnTransactionSchema>;
1184
+ interface ReturnReasonCode {
1185
+ value: string;
1186
+ label: string;
1187
+ }
1188
+
1189
+ interface CancelTransactionDialogProps {
1190
+ transactionId: string;
1191
+ open: boolean;
1192
+ onOpenChange: (open: boolean) => void;
1193
+ onCancel: (data: CancelTransactionFormData) => Promise<void>;
1194
+ }
1195
+ declare const CancelTransactionDialog: ({ transactionId, open, onOpenChange, onCancel, }: CancelTransactionDialogProps) => react_jsx_runtime.JSX.Element;
1196
+
1197
+ interface ReturnTransactionDialogProps {
1198
+ transactionId: string;
1199
+ open: boolean;
1200
+ onOpenChange: (open: boolean) => void;
1201
+ onReturn: (data: ReturnTransactionFormData) => Promise<void>;
1202
+ reasonCodes: ReturnReasonCode[];
1140
1203
  }
1141
- declare const TransactionDetailView: ({ transaction, timelineEvents, isWireTransfer, isACHTransfer, showCancelButton, showReturnButton, onReturnClick, onCancelClick, onAccountClick, onCustomerClick, onCounterpartyClick, onOFACClick, onProductClick, }: TransactionDetailViewProps) => react_jsx_runtime.JSX.Element;
1204
+ declare function ReturnTransactionDialog({ transactionId, open, onOpenChange, onReturn, reasonCodes, }: ReturnTransactionDialogProps): react_jsx_runtime.JSX.Element;
1142
1205
 
1143
1206
  interface AccountCardProps {
1144
1207
  account: {
@@ -1159,7 +1222,7 @@ interface AccountCardProps {
1159
1222
  declare const AccountCard: React$1.ForwardRefExoticComponent<AccountCardProps & React$1.RefAttributes<HTMLDivElement>>;
1160
1223
 
1161
1224
  declare const badgeVariants: (props?: {
1162
- variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "cip-active" | "cip-inactive" | "cip-pending" | "cip-secondary" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error";
1225
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "cip-active" | "cip-inactive" | "cip-pending" | "cip-secondary" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error" | "checking" | "savings" | "zero-balance" | "funding";
1163
1226
  } & class_variance_authority_dist_types.ClassProp) => string;
1164
1227
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
1165
1228
  }
@@ -1987,4 +2050,4 @@ declare function generateStatementCSV(header: StatementHeader, transactions: Sta
1987
2050
  */
1988
2051
  declare function downloadCSV(content: string, filename: string): void;
1989
2052
 
1990
- export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, ADJUSTMENT_DIRECTION_OPTIONS, AccountCard, type AccountData, AccountDetail, Accounts, AddressForm, type AdjustmentTypeOption, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, BusinessDetail, BusinessDetailView, BusinessFiltersSheet, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses, Button, type ButtonProps, CIPStatusBadge, Calendar, type CalendarProps, Card, CardContent, type CardContentProps, CardDescription, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties, CounterpartiesView, CounterpartyBasicInfo, type CounterpartyData, CounterpartyDetail, CounterpartyDetailView, CounterpartyProfileCard, CounterpartyRecordsCard, type CounterpartySearchResult, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, CreateCounterparty, CreateCounterpartyView, CreateIndividual, CreateVelocityLimit, Dashboard, DashboardDemo, DataGrid, type DataGridItem, type DataGridSection, DataTable, type DataTableColumn, type DataTableProps, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, FormCard, type FormCardProps, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail, Individuals, InfoField, type InputProps, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, type NewTransactionFormValues, NewTransactionView, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, ReconExceptions, ReconUpload, ResolveAlertDialog, ResponsiveGrid, ScrollArea, ScrollBar, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Stack, Statement, type StatementHeader, type StatementTransaction, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail, TransactionDetailView, type TransactionDetailViewProps, TransactionHistory, type TransactionHistoryFilters, TransactionHistoryFiltersSheet, TransactionHistoryView, TransactionTypeBadge, type TransactionTypeOption, UIKit, UIKitShowcase, type UseAlertDetailReturn, VelocityLimitDetail, VelocityLimits, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, newTransactionSchema, reducer, textareaVariants, toast, useAlertDetail, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
2053
+ export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, ADJUSTMENT_DIRECTION_OPTIONS, AccountCard, type AccountData, AccountDetail, Accounts, AddressForm, type AdjustmentTypeOption, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, BusinessDetail, BusinessDetailView, BusinessFiltersSheet, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses, Button, type ButtonProps, CIPStatusBadge, Calendar, type CalendarProps, CancelTransactionDialog, Card, CardContent, type CardContentProps, CardDescription, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties, CounterpartiesView, CounterpartyBasicInfo, type CounterpartyData, CounterpartyDetail, CounterpartyDetailView, CounterpartyProfileCard, CounterpartyRecordsCard, type CounterpartySearchResult, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, CreateCounterparty, CreateCounterpartyView, CreateIndividual, CreateVelocityLimit, Dashboard, DashboardDemo, DataGrid, type DataGridItem, type DataGridSection, DataTable, type DataTableColumn, type DataTableProps, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, type FilterOptions, FormCard, type FormCardProps, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail, Individuals, InfoField, type InputProps, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, type NewTransactionFormValues, NewTransactionView, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, ReconExceptions, ReconUpload, ResolveAlertDialog, ResponsiveGrid, ReturnTransactionDialog, ScrollArea, ScrollBar, type SelectOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Stack, Statement, type StatementHeader, type StatementTransaction, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail, TransactionDetailView, type TransactionDetailViewProps, TransactionHistory, type TransactionHistoryFilters, TransactionHistoryFiltersSheet, TransactionHistoryView, TransactionTypeBadge, type TransactionTypeOption, UIKit, UIKitShowcase, type UseAlertDetailReturn, VelocityLimitDetail, VelocityLimits, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, newTransactionSchema, reducer, textareaVariants, toast, useAlertDetail, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
package/dist/index.d.ts CHANGED
@@ -1070,43 +1070,65 @@ interface NewTransactionViewProps {
1070
1070
  declare const NewTransactionView: ({ form, accountLookedUp, accountData, counterpartyLookedUp, counterpartyData, confirmationOpen, submissionStatus, errorMessage, transactionId, isAccountLoading, isCounterpartyLoading, isSubmitting, counterpartySearchResults, isCounterpartySearching, showCounterpartyDropdown, onAccountLookup, onEditAccount, onEditCounterparty, onTransactionTypeChange, onSubmit, onConfirmationClose, onConfirmationOpenChange, onNewTransaction, onCounterpartySearchChange, onCounterpartySelect, onCounterpartyDropdownClose, counterpartyHasMore, counterpartyTotalResults, isLoadingMoreCounterparties, onLoadMoreCounterparties, receiverAccountLookedUp, receiverAccountData, isReceiverAccountLoading, onReceiverAccountLookup, onEditReceiverAccount, isReviewReady, adjustmentTypeOptions, transactionTypeOptions, showSuccessInfoBox, successInfoMessage, }: NewTransactionViewProps) => react_jsx_runtime.JSX.Element;
1071
1071
 
1072
1072
  interface TransactionHistoryFilters {
1073
- accountNumber: string;
1074
- product: string;
1075
- customerId: string;
1076
- counterpartyId: string;
1077
- settlementFileName: string;
1078
- originalFileName: string;
1079
- requesterIpAddress: string;
1080
- requesterUsername: string;
1081
- wireFileHandle: string;
1082
- paymentId: string;
1083
- transactionType: string;
1084
- transactionStatus: string;
1085
- processingStatus: string;
1086
- direction: string;
1087
- minAmount: string;
1088
- maxAmount: string;
1089
- creationDateStart?: Date;
1090
- creationDateEnd?: Date;
1091
- postDateStart?: Date;
1092
- postDateEnd?: Date;
1073
+ originalFileName?: string;
1074
+ requesterIpAddress?: string;
1075
+ requesterUsername?: string;
1076
+ showAchNoc?: boolean;
1077
+ excludeWire?: boolean;
1078
+ excludeAch?: boolean;
1079
+ wireFileHandle?: string;
1080
+ direction?: string;
1081
+ counterpartyId?: string;
1082
+ customerId?: string;
1083
+ settlementFileName?: string;
1084
+ isInbound?: boolean;
1085
+ accountNumber?: string;
1086
+ processingStatus?: string[];
1087
+ beginDate?: string;
1088
+ endDate?: string;
1089
+ postDateStart?: string;
1090
+ postDateEnd?: string;
1091
+ maxAmount?: string;
1092
+ minAmount?: string;
1093
+ productId?: string;
1094
+ paymentId?: string;
1095
+ transactionStatus?: string[];
1096
+ transactionType?: string[];
1097
+ }
1098
+ type FilterValue$1 = string | string[] | boolean | undefined;
1099
+ interface SelectOption {
1100
+ value: string;
1101
+ label: string;
1102
+ }
1103
+ interface FilterOptions {
1104
+ transactionTypes?: SelectOption[];
1105
+ transactionStatuses?: SelectOption[];
1106
+ processingStatuses?: SelectOption[];
1107
+ directions?: SelectOption[];
1108
+ products?: SelectOption[];
1093
1109
  }
1094
1110
  interface TransactionHistoryFiltersSheetProps {
1095
1111
  filters: TransactionHistoryFilters;
1096
- onFilterChange: (field: keyof TransactionHistoryFilters, value: string | Date | undefined) => void;
1112
+ filterOptions?: FilterOptions;
1113
+ onFilterChange: (field: keyof TransactionHistoryFilters, value: FilterValue$1) => void;
1097
1114
  onResetFilters: () => void;
1098
1115
  onApplyFilters: () => void;
1099
1116
  }
1100
- declare const TransactionHistoryFiltersSheet: ({ filters, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryFiltersSheetProps) => react_jsx_runtime.JSX.Element;
1117
+ declare const TransactionHistoryFiltersSheet: ({ filters, filterOptions, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryFiltersSheetProps) => react_jsx_runtime.JSX.Element;
1101
1118
 
1119
+ type FilterValue = string | string[] | boolean | undefined;
1102
1120
  interface TransactionHistoryViewProps {
1103
1121
  table: React.ReactNode;
1104
1122
  filters: TransactionHistoryFilters;
1105
- onFilterChange: (field: keyof TransactionHistoryFilters, value: string | Date | undefined) => void;
1123
+ filterOptions?: FilterOptions;
1124
+ onFilterChange: (field: keyof TransactionHistoryFilters, value: FilterValue) => void;
1106
1125
  onResetFilters: () => void;
1107
1126
  onApplyFilters: () => void;
1127
+ isLoading?: boolean;
1128
+ error?: string | null;
1129
+ onRetry?: () => void;
1108
1130
  }
1109
- declare const TransactionHistoryView: ({ table, filters, onFilterChange, onResetFilters, onApplyFilters }: TransactionHistoryViewProps) => react_jsx_runtime.JSX.Element;
1131
+ declare const TransactionHistoryView: ({ table, filters, filterOptions, onFilterChange, onResetFilters, onApplyFilters, isLoading, error, onRetry }: TransactionHistoryViewProps) => react_jsx_runtime.JSX.Element;
1110
1132
 
1111
1133
  interface TransactionData {
1112
1134
  id: string;
@@ -1124,7 +1146,7 @@ interface TransactionData {
1124
1146
  wireDetails?: any;
1125
1147
  }
1126
1148
  interface TransactionDetailViewProps {
1127
- transaction: TransactionData;
1149
+ transaction?: TransactionData | null;
1128
1150
  timelineEvents: TimelineEvent[];
1129
1151
  isWireTransfer: boolean;
1130
1152
  isACHTransfer: boolean;
@@ -1137,8 +1159,49 @@ interface TransactionDetailViewProps {
1137
1159
  onCounterpartyClick: (counterparty: string) => void;
1138
1160
  onOFACClick: (ofacId: string) => void;
1139
1161
  onProductClick: (productId: string) => void;
1162
+ isLoading?: boolean;
1163
+ error?: string | null;
1164
+ onRetry?: () => void;
1165
+ }
1166
+ declare const TransactionDetailView: ({ transaction, timelineEvents, isWireTransfer, isACHTransfer, showCancelButton, showReturnButton, onReturnClick, onCancelClick, onAccountClick, onCustomerClick, onCounterpartyClick, onOFACClick, onProductClick, isLoading, error, onRetry, }: TransactionDetailViewProps) => react_jsx_runtime.JSX.Element;
1167
+
1168
+ declare const cancelTransactionSchema: z.ZodObject<{
1169
+ reason: z.ZodString;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ reason?: string;
1172
+ }, {
1173
+ reason?: string;
1174
+ }>;
1175
+ type CancelTransactionFormData = z.infer<typeof cancelTransactionSchema>;
1176
+ declare const returnTransactionSchema: z.ZodObject<{
1177
+ reasonCode: z.ZodString;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ reasonCode?: string;
1180
+ }, {
1181
+ reasonCode?: string;
1182
+ }>;
1183
+ type ReturnTransactionFormData = z.infer<typeof returnTransactionSchema>;
1184
+ interface ReturnReasonCode {
1185
+ value: string;
1186
+ label: string;
1187
+ }
1188
+
1189
+ interface CancelTransactionDialogProps {
1190
+ transactionId: string;
1191
+ open: boolean;
1192
+ onOpenChange: (open: boolean) => void;
1193
+ onCancel: (data: CancelTransactionFormData) => Promise<void>;
1194
+ }
1195
+ declare const CancelTransactionDialog: ({ transactionId, open, onOpenChange, onCancel, }: CancelTransactionDialogProps) => react_jsx_runtime.JSX.Element;
1196
+
1197
+ interface ReturnTransactionDialogProps {
1198
+ transactionId: string;
1199
+ open: boolean;
1200
+ onOpenChange: (open: boolean) => void;
1201
+ onReturn: (data: ReturnTransactionFormData) => Promise<void>;
1202
+ reasonCodes: ReturnReasonCode[];
1140
1203
  }
1141
- declare const TransactionDetailView: ({ transaction, timelineEvents, isWireTransfer, isACHTransfer, showCancelButton, showReturnButton, onReturnClick, onCancelClick, onAccountClick, onCustomerClick, onCounterpartyClick, onOFACClick, onProductClick, }: TransactionDetailViewProps) => react_jsx_runtime.JSX.Element;
1204
+ declare function ReturnTransactionDialog({ transactionId, open, onOpenChange, onReturn, reasonCodes, }: ReturnTransactionDialogProps): react_jsx_runtime.JSX.Element;
1142
1205
 
1143
1206
  interface AccountCardProps {
1144
1207
  account: {
@@ -1159,7 +1222,7 @@ interface AccountCardProps {
1159
1222
  declare const AccountCard: React$1.ForwardRefExoticComponent<AccountCardProps & React$1.RefAttributes<HTMLDivElement>>;
1160
1223
 
1161
1224
  declare const badgeVariants: (props?: {
1162
- variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "cip-active" | "cip-inactive" | "cip-pending" | "cip-secondary" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error";
1225
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "cip-active" | "cip-inactive" | "cip-pending" | "cip-secondary" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error" | "checking" | "savings" | "zero-balance" | "funding";
1163
1226
  } & class_variance_authority_dist_types.ClassProp) => string;
1164
1227
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
1165
1228
  }
@@ -1987,4 +2050,4 @@ declare function generateStatementCSV(header: StatementHeader, transactions: Sta
1987
2050
  */
1988
2051
  declare function downloadCSV(content: string, filename: string): void;
1989
2052
 
1990
- export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, ADJUSTMENT_DIRECTION_OPTIONS, AccountCard, type AccountData, AccountDetail, Accounts, AddressForm, type AdjustmentTypeOption, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, BusinessDetail, BusinessDetailView, BusinessFiltersSheet, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses, Button, type ButtonProps, CIPStatusBadge, Calendar, type CalendarProps, Card, CardContent, type CardContentProps, CardDescription, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties, CounterpartiesView, CounterpartyBasicInfo, type CounterpartyData, CounterpartyDetail, CounterpartyDetailView, CounterpartyProfileCard, CounterpartyRecordsCard, type CounterpartySearchResult, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, CreateCounterparty, CreateCounterpartyView, CreateIndividual, CreateVelocityLimit, Dashboard, DashboardDemo, DataGrid, type DataGridItem, type DataGridSection, DataTable, type DataTableColumn, type DataTableProps, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, FormCard, type FormCardProps, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail, Individuals, InfoField, type InputProps, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, type NewTransactionFormValues, NewTransactionView, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, ReconExceptions, ReconUpload, ResolveAlertDialog, ResponsiveGrid, ScrollArea, ScrollBar, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Stack, Statement, type StatementHeader, type StatementTransaction, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail, TransactionDetailView, type TransactionDetailViewProps, TransactionHistory, type TransactionHistoryFilters, TransactionHistoryFiltersSheet, TransactionHistoryView, TransactionTypeBadge, type TransactionTypeOption, UIKit, UIKitShowcase, type UseAlertDetailReturn, VelocityLimitDetail, VelocityLimits, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, newTransactionSchema, reducer, textareaVariants, toast, useAlertDetail, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
2053
+ export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, ADJUSTMENT_DIRECTION_OPTIONS, AccountCard, type AccountData, AccountDetail, Accounts, AddressForm, type AdjustmentTypeOption, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, BusinessDetail, BusinessDetailView, BusinessFiltersSheet, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses, Button, type ButtonProps, CIPStatusBadge, Calendar, type CalendarProps, CancelTransactionDialog, Card, CardContent, type CardContentProps, CardDescription, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties, CounterpartiesView, CounterpartyBasicInfo, type CounterpartyData, CounterpartyDetail, CounterpartyDetailView, CounterpartyProfileCard, CounterpartyRecordsCard, type CounterpartySearchResult, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, CreateCounterparty, CreateCounterpartyView, CreateIndividual, CreateVelocityLimit, Dashboard, DashboardDemo, DataGrid, type DataGridItem, type DataGridSection, DataTable, type DataTableColumn, type DataTableProps, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, type FilterOptions, FormCard, type FormCardProps, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail, Individuals, InfoField, type InputProps, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, type NewTransactionFormValues, NewTransactionView, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, ReconExceptions, ReconUpload, ResolveAlertDialog, ResponsiveGrid, ReturnTransactionDialog, ScrollArea, ScrollBar, type SelectOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Stack, Statement, type StatementHeader, type StatementTransaction, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail, TransactionDetailView, type TransactionDetailViewProps, TransactionHistory, type TransactionHistoryFilters, TransactionHistoryFiltersSheet, TransactionHistoryView, TransactionTypeBadge, type TransactionTypeOption, UIKit, UIKitShowcase, type UseAlertDetailReturn, VelocityLimitDetail, VelocityLimits, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, newTransactionSchema, reducer, textareaVariants, toast, useAlertDetail, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };