braid-ui 1.0.14 → 1.0.16
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 +97 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -11
- package/dist/index.d.ts +20 -11
- package/dist/index.js +96 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -667,7 +667,7 @@ interface ListPageProps {
|
|
|
667
667
|
}
|
|
668
668
|
declare const ListPage: React$1.ForwardRefExoticComponent<ListPageProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
669
669
|
|
|
670
|
-
interface StatementHeader
|
|
670
|
+
interface StatementHeader {
|
|
671
671
|
account?: string;
|
|
672
672
|
productId?: string;
|
|
673
673
|
programId?: string;
|
|
@@ -683,12 +683,6 @@ interface StatementTransaction {
|
|
|
683
683
|
count: number;
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
interface StatementHeaderProps {
|
|
687
|
-
data: StatementHeader$1;
|
|
688
|
-
onEdit: () => void;
|
|
689
|
-
}
|
|
690
|
-
declare const StatementHeader: ({ data, onEdit }: StatementHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
691
|
-
|
|
692
686
|
interface StatementViewProps {
|
|
693
687
|
statementType: string;
|
|
694
688
|
selectedProgram: string;
|
|
@@ -705,7 +699,7 @@ interface StatementViewProps {
|
|
|
705
699
|
value: string;
|
|
706
700
|
label: string;
|
|
707
701
|
}>;
|
|
708
|
-
statementHeader: StatementHeader
|
|
702
|
+
statementHeader: StatementHeader | null;
|
|
709
703
|
statementTransactions: StatementTransaction[];
|
|
710
704
|
programsLoading: boolean;
|
|
711
705
|
productsLoading: boolean;
|
|
@@ -792,7 +786,7 @@ interface AccountCardProps {
|
|
|
792
786
|
declare const AccountCard: React$1.ForwardRefExoticComponent<AccountCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
793
787
|
|
|
794
788
|
declare const badgeVariants: (props?: {
|
|
795
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error";
|
|
789
|
+
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";
|
|
796
790
|
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
797
791
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
798
792
|
}
|
|
@@ -1296,11 +1290,17 @@ interface StackProps {
|
|
|
1296
1290
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1297
1291
|
|
|
1298
1292
|
interface StatusBadgeProps {
|
|
1299
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING" | "SUSPENDED" | "POSTED" | "FAILED" | "CANCELLED";
|
|
1293
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING" | "SUSPENDED" | "BLOCKED" | "PENDING_APPROVAL" | "POSTED" | "FAILED" | "CANCELLED";
|
|
1300
1294
|
className?: string;
|
|
1301
1295
|
}
|
|
1302
1296
|
declare const StatusBadge: ({ status, className }: StatusBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1303
1297
|
|
|
1298
|
+
interface CIPStatusBadgeProps {
|
|
1299
|
+
status: "NOT_START" | "PASS" | "FAIL" | "IN_REVIEW" | "verified" | "not_start" | "pending" | "rejected";
|
|
1300
|
+
className?: string;
|
|
1301
|
+
}
|
|
1302
|
+
declare const CIPStatusBadge: ({ status, className }: CIPStatusBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1303
|
+
|
|
1304
1304
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
1305
1305
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1306
1306
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1466,4 +1466,13 @@ declare const TransactionDetail: () => react_jsx_runtime.JSX.Element;
|
|
|
1466
1466
|
|
|
1467
1467
|
declare function UIKit(): react_jsx_runtime.JSX.Element;
|
|
1468
1468
|
|
|
1469
|
-
|
|
1469
|
+
/**
|
|
1470
|
+
* Generates a CSV string from statement header and transaction data
|
|
1471
|
+
*/
|
|
1472
|
+
declare function generateStatementCSV(header: StatementHeader, transactions: StatementTransaction[]): string;
|
|
1473
|
+
/**
|
|
1474
|
+
* Triggers a browser download for CSV content
|
|
1475
|
+
*/
|
|
1476
|
+
declare function downloadCSV(content: string, filename: string): void;
|
|
1477
|
+
|
|
1478
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AddressForm, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, Business as BusinessDetail, 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, CounterpartyBasicInfo, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, CreateBusiness, CreateCounterparty, CreateIndividual, 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, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, 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, TransactionHistory, TransactionTypeBadge, UIKit, UIKitShowcase, type UseAlertDetailReturn, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, reducer, textareaVariants, toast, useAlertDetail, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -667,7 +667,7 @@ interface ListPageProps {
|
|
|
667
667
|
}
|
|
668
668
|
declare const ListPage: React$1.ForwardRefExoticComponent<ListPageProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
669
669
|
|
|
670
|
-
interface StatementHeader
|
|
670
|
+
interface StatementHeader {
|
|
671
671
|
account?: string;
|
|
672
672
|
productId?: string;
|
|
673
673
|
programId?: string;
|
|
@@ -683,12 +683,6 @@ interface StatementTransaction {
|
|
|
683
683
|
count: number;
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
interface StatementHeaderProps {
|
|
687
|
-
data: StatementHeader$1;
|
|
688
|
-
onEdit: () => void;
|
|
689
|
-
}
|
|
690
|
-
declare const StatementHeader: ({ data, onEdit }: StatementHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
691
|
-
|
|
692
686
|
interface StatementViewProps {
|
|
693
687
|
statementType: string;
|
|
694
688
|
selectedProgram: string;
|
|
@@ -705,7 +699,7 @@ interface StatementViewProps {
|
|
|
705
699
|
value: string;
|
|
706
700
|
label: string;
|
|
707
701
|
}>;
|
|
708
|
-
statementHeader: StatementHeader
|
|
702
|
+
statementHeader: StatementHeader | null;
|
|
709
703
|
statementTransactions: StatementTransaction[];
|
|
710
704
|
programsLoading: boolean;
|
|
711
705
|
productsLoading: boolean;
|
|
@@ -792,7 +786,7 @@ interface AccountCardProps {
|
|
|
792
786
|
declare const AccountCard: React$1.ForwardRefExoticComponent<AccountCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
793
787
|
|
|
794
788
|
declare const badgeVariants: (props?: {
|
|
795
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "inbound" | "outbound" | "business" | "individual" | "government" | "nonprofit" | "corporation" | "llc" | "partnership" | "sole_proprietorship" | "active" | "inactive" | "pending" | "suspended" | "alert-ofac" | "alert-dual" | "alert-monitoring" | "alert-error";
|
|
789
|
+
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";
|
|
796
790
|
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
797
791
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
798
792
|
}
|
|
@@ -1296,11 +1290,17 @@ interface StackProps {
|
|
|
1296
1290
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1297
1291
|
|
|
1298
1292
|
interface StatusBadgeProps {
|
|
1299
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING" | "SUSPENDED" | "POSTED" | "FAILED" | "CANCELLED";
|
|
1293
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING" | "SUSPENDED" | "BLOCKED" | "PENDING_APPROVAL" | "POSTED" | "FAILED" | "CANCELLED";
|
|
1300
1294
|
className?: string;
|
|
1301
1295
|
}
|
|
1302
1296
|
declare const StatusBadge: ({ status, className }: StatusBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1303
1297
|
|
|
1298
|
+
interface CIPStatusBadgeProps {
|
|
1299
|
+
status: "NOT_START" | "PASS" | "FAIL" | "IN_REVIEW" | "verified" | "not_start" | "pending" | "rejected";
|
|
1300
|
+
className?: string;
|
|
1301
|
+
}
|
|
1302
|
+
declare const CIPStatusBadge: ({ status, className }: CIPStatusBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1303
|
+
|
|
1304
1304
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
1305
1305
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1306
1306
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1466,4 +1466,13 @@ declare const TransactionDetail: () => react_jsx_runtime.JSX.Element;
|
|
|
1466
1466
|
|
|
1467
1467
|
declare function UIKit(): react_jsx_runtime.JSX.Element;
|
|
1468
1468
|
|
|
1469
|
-
|
|
1469
|
+
/**
|
|
1470
|
+
* Generates a CSV string from statement header and transaction data
|
|
1471
|
+
*/
|
|
1472
|
+
declare function generateStatementCSV(header: StatementHeader, transactions: StatementTransaction[]): string;
|
|
1473
|
+
/**
|
|
1474
|
+
* Triggers a browser download for CSV content
|
|
1475
|
+
*/
|
|
1476
|
+
declare function downloadCSV(content: string, filename: string): void;
|
|
1477
|
+
|
|
1478
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AddressForm, AlertDetail, AlertDetailRouter, type AlertDetailRouterProps, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts, AppSidebar, Badge, type BadgeProps, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, type BreadcrumbItem, Business as BusinessDetail, 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, CounterpartyBasicInfo, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, CreateBusiness, CreateCounterparty, CreateIndividual, 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, NotFound, OFACAlertView, type OFACAlertViewProps, OriginatorCard, OriginatorFI, OriginatorFIAddress, type PageAction, type PageCard, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, 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, TransactionHistory, TransactionTypeBadge, UIKit, UIKitShowcase, type UseAlertDetailReturn, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, reducer, textareaVariants, toast, useAlertDetail, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { cva } from 'class-variance-authority';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
import { ChevronDown, ChevronUp, Check, X, PanelLeft, Edit, Home, Globe, CreditCard, Building, MoreVertical, Minus, TrendingDown, TrendingUp, ChevronRight, Eye, Trash2, Plus, MessageSquare, Upload, FileText, Download, Copy, LayoutDashboard, Bell, Briefcase, FileCheck, Receipt, ArrowLeftRight, Users, Building2, Shield, AlertCircle, RefreshCw, Landmark, Search, Repeat, Zap, Box, Settings, BarChart3, Key, Heart, User, AlertTriangle, XCircle, CheckCircle, Clock, Loader2, ArrowDownRight, ArrowUpRight, Filter, ChevronLeft, Wallet, CheckCircle2, StickyNote, FileUp, RotateCcw, Send, PlayCircle,
|
|
7
|
+
import { ChevronDown, ChevronUp, Check, X, PanelLeft, Edit, Home, Globe, CreditCard, Building, MoreVertical, Minus, TrendingDown, TrendingUp, ChevronRight, Eye, Trash2, Plus, MessageSquare, Upload, FileText, Download, Copy, LayoutDashboard, Bell, Briefcase, FileCheck, Receipt, ArrowLeftRight, Users, Building2, Shield, AlertCircle, RefreshCw, Landmark, Search, Repeat, Zap, Box, Settings, BarChart3, Key, Heart, User, AlertTriangle, XCircle, CheckCircle, Clock, Ban, Loader2, Circle, ArrowDownRight, ArrowUpRight, Filter, ChevronLeft, Wallet, CheckCircle2, StickyNote, FileUp, RotateCcw, Send, PlayCircle, UserPlus, ChevronsUpDown, CalendarIcon, UserCheck, FileJson } from 'lucide-react';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
10
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -268,6 +268,11 @@ var badgeVariants = cva(
|
|
|
268
268
|
inactive: "border-red-200 bg-red-50 text-red-700 hover:bg-red-100 dark:border-red-800 dark:bg-red-950 dark:text-red-300",
|
|
269
269
|
pending: "border-yellow-200 bg-yellow-50 text-yellow-700 hover:bg-yellow-100 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-300",
|
|
270
270
|
suspended: "border-gray-200 bg-gray-50 text-gray-700 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300",
|
|
271
|
+
// CIP Status outlined variants
|
|
272
|
+
"cip-active": "border-2 border-green-600 bg-transparent text-green-700 hover:bg-green-50 dark:border-green-500 dark:text-green-400 dark:hover:bg-green-950/30",
|
|
273
|
+
"cip-inactive": "border-2 border-red-600 bg-transparent text-red-700 hover:bg-red-50 dark:border-red-500 dark:text-red-400 dark:hover:bg-red-950/30",
|
|
274
|
+
"cip-pending": "border-2 border-yellow-600 bg-transparent text-yellow-700 hover:bg-yellow-50 dark:border-yellow-500 dark:text-yellow-400 dark:hover:bg-yellow-950/30",
|
|
275
|
+
"cip-secondary": "border-2 border-gray-500 bg-transparent text-gray-700 hover:bg-gray-50 dark:border-gray-400 dark:text-gray-300 dark:hover:bg-gray-950/30",
|
|
271
276
|
// Alert type subtle variants
|
|
272
277
|
"alert-ofac": "border-red-200 bg-red-50 text-red-700 hover:bg-red-100 dark:border-red-800 dark:bg-red-950 dark:text-red-300 font-medium",
|
|
273
278
|
"alert-dual": "border-emerald-200 bg-emerald-50 text-emerald-700 hover:bg-emerald-100 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-300 font-medium",
|
|
@@ -3775,6 +3780,16 @@ var statusConfig = {
|
|
|
3775
3780
|
label: "Suspended",
|
|
3776
3781
|
icon: AlertTriangle
|
|
3777
3782
|
},
|
|
3783
|
+
BLOCKED: {
|
|
3784
|
+
variant: "suspended",
|
|
3785
|
+
label: "Blocked",
|
|
3786
|
+
icon: Ban
|
|
3787
|
+
},
|
|
3788
|
+
PENDING_APPROVAL: {
|
|
3789
|
+
variant: "pending",
|
|
3790
|
+
label: "Pending Approval",
|
|
3791
|
+
icon: Clock
|
|
3792
|
+
},
|
|
3778
3793
|
POSTED: {
|
|
3779
3794
|
variant: "active",
|
|
3780
3795
|
label: "Posted",
|
|
@@ -6783,6 +6798,63 @@ var Toaster = ({ ...props }) => {
|
|
|
6783
6798
|
}
|
|
6784
6799
|
);
|
|
6785
6800
|
};
|
|
6801
|
+
var statusConfig2 = {
|
|
6802
|
+
NOT_START: {
|
|
6803
|
+
variant: "cip-secondary",
|
|
6804
|
+
label: "Not Start",
|
|
6805
|
+
icon: Circle
|
|
6806
|
+
},
|
|
6807
|
+
PASS: {
|
|
6808
|
+
variant: "cip-active",
|
|
6809
|
+
label: "Pass",
|
|
6810
|
+
icon: CheckCircle
|
|
6811
|
+
},
|
|
6812
|
+
FAIL: {
|
|
6813
|
+
variant: "cip-inactive",
|
|
6814
|
+
label: "Fail",
|
|
6815
|
+
icon: XCircle
|
|
6816
|
+
},
|
|
6817
|
+
IN_REVIEW: {
|
|
6818
|
+
variant: "cip-pending",
|
|
6819
|
+
label: "In Review",
|
|
6820
|
+
icon: Clock
|
|
6821
|
+
},
|
|
6822
|
+
// Backward compatibility
|
|
6823
|
+
verified: {
|
|
6824
|
+
variant: "cip-active",
|
|
6825
|
+
label: "Verified",
|
|
6826
|
+
icon: CheckCircle
|
|
6827
|
+
},
|
|
6828
|
+
not_start: {
|
|
6829
|
+
variant: "cip-secondary",
|
|
6830
|
+
label: "Not Start",
|
|
6831
|
+
icon: Circle
|
|
6832
|
+
},
|
|
6833
|
+
pending: {
|
|
6834
|
+
variant: "cip-pending",
|
|
6835
|
+
label: "Pending",
|
|
6836
|
+
icon: Clock
|
|
6837
|
+
},
|
|
6838
|
+
rejected: {
|
|
6839
|
+
variant: "cip-inactive",
|
|
6840
|
+
label: "Rejected",
|
|
6841
|
+
icon: XCircle
|
|
6842
|
+
}
|
|
6843
|
+
};
|
|
6844
|
+
var CIPStatusBadge = ({ status, className }) => {
|
|
6845
|
+
const config = statusConfig2[status];
|
|
6846
|
+
if (!config) {
|
|
6847
|
+
return /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className, children: [
|
|
6848
|
+
/* @__PURE__ */ jsx(Circle, { className: "w-3 h-3 mr-1" }),
|
|
6849
|
+
status || "Unknown"
|
|
6850
|
+
] });
|
|
6851
|
+
}
|
|
6852
|
+
const Icon2 = config.icon;
|
|
6853
|
+
return /* @__PURE__ */ jsxs(Badge, { variant: config.variant, className, children: [
|
|
6854
|
+
/* @__PURE__ */ jsx(Icon2, { className: "w-3 h-3 mr-1" }),
|
|
6855
|
+
config.label
|
|
6856
|
+
] });
|
|
6857
|
+
};
|
|
6786
6858
|
var Tabs = TabsPrimitive.Root;
|
|
6787
6859
|
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6788
6860
|
TabsPrimitive.List,
|
|
@@ -8082,8 +8154,8 @@ var mockBusinessesList = [
|
|
|
8082
8154
|
id: "8112488",
|
|
8083
8155
|
businessName: "RAPIDZ PAY INC",
|
|
8084
8156
|
productName: "Fiat Republic Canada Inc. FBO Rapidz Pay",
|
|
8085
|
-
cipStatus: "
|
|
8086
|
-
status: "
|
|
8157
|
+
cipStatus: "PASS",
|
|
8158
|
+
status: "ACTIVE",
|
|
8087
8159
|
type: "Business",
|
|
8088
8160
|
subType: "Customer",
|
|
8089
8161
|
isDeveloperInitiated: true,
|
|
@@ -8096,8 +8168,8 @@ var mockBusinessesList = [
|
|
|
8096
8168
|
id: "8111609",
|
|
8097
8169
|
businessName: "Fern Hyper Growth Llc",
|
|
8098
8170
|
productName: "Atomic Brokerage FBO Atomic Brokerage Clients",
|
|
8099
|
-
cipStatus: "
|
|
8100
|
-
status: "
|
|
8171
|
+
cipStatus: "PASS",
|
|
8172
|
+
status: "ACTIVE",
|
|
8101
8173
|
type: "Business",
|
|
8102
8174
|
subType: "UBO",
|
|
8103
8175
|
isDeveloperInitiated: false,
|
|
@@ -8110,8 +8182,8 @@ var mockBusinessesList = [
|
|
|
8110
8182
|
id: "8111026",
|
|
8111
8183
|
businessName: "ACEROSGALVANISADOS & PREPINTADOS",
|
|
8112
8184
|
productName: "SendFriend Inc FBO Conduit Pay Agent",
|
|
8113
|
-
cipStatus: "
|
|
8114
|
-
status: "
|
|
8185
|
+
cipStatus: "NOT_START",
|
|
8186
|
+
status: "ACTIVE",
|
|
8115
8187
|
type: "Individual",
|
|
8116
8188
|
subType: "Customer",
|
|
8117
8189
|
isDeveloperInitiated: true,
|
|
@@ -8124,8 +8196,8 @@ var mockBusinessesList = [
|
|
|
8124
8196
|
id: "8110892",
|
|
8125
8197
|
businessName: "Tech Solutions Corp",
|
|
8126
8198
|
productName: "Digital Finance Inc FBO Tech Solutions",
|
|
8127
|
-
cipStatus: "
|
|
8128
|
-
status: "
|
|
8199
|
+
cipStatus: "IN_REVIEW",
|
|
8200
|
+
status: "PENDING_APPROVAL",
|
|
8129
8201
|
type: "Business",
|
|
8130
8202
|
subType: "Customer",
|
|
8131
8203
|
isDeveloperInitiated: false,
|
|
@@ -8138,8 +8210,8 @@ var mockBusinessesList = [
|
|
|
8138
8210
|
id: "8110654",
|
|
8139
8211
|
businessName: "Global Trade Partners LLC",
|
|
8140
8212
|
productName: "Swift Transfer FBO Global Trade",
|
|
8141
|
-
cipStatus: "
|
|
8142
|
-
status: "
|
|
8213
|
+
cipStatus: "PASS",
|
|
8214
|
+
status: "ACTIVE",
|
|
8143
8215
|
type: "Individual",
|
|
8144
8216
|
subType: "UBO",
|
|
8145
8217
|
isDeveloperInitiated: true,
|
|
@@ -8234,23 +8306,13 @@ var Businesses = () => {
|
|
|
8234
8306
|
key: "cipStatus",
|
|
8235
8307
|
title: "CIP status",
|
|
8236
8308
|
sortable: true,
|
|
8237
|
-
render: (value) => {
|
|
8238
|
-
const status = value;
|
|
8239
|
-
const variant = status === "verified" ? "success" : status === "pending" ? "warning" : "default";
|
|
8240
|
-
const label = status === "verified" ? "Verified" : status === "pending" ? "Pending" : "Not Start";
|
|
8241
|
-
return /* @__PURE__ */ jsx(Badge, { variant, children: label });
|
|
8242
|
-
}
|
|
8309
|
+
render: (value) => /* @__PURE__ */ jsx(CIPStatusBadge, { status: value })
|
|
8243
8310
|
},
|
|
8244
8311
|
{
|
|
8245
8312
|
key: "status",
|
|
8246
8313
|
title: "Status",
|
|
8247
8314
|
sortable: true,
|
|
8248
|
-
render: (value) => {
|
|
8249
|
-
const status = value;
|
|
8250
|
-
const variant = status === "active" ? "success" : "default";
|
|
8251
|
-
const label = status.charAt(0).toUpperCase() + status.slice(1);
|
|
8252
|
-
return /* @__PURE__ */ jsx(Badge, { variant, children: label });
|
|
8253
|
-
}
|
|
8315
|
+
render: (value) => /* @__PURE__ */ jsx(StatusBadge, { status: value?.toUpperCase() })
|
|
8254
8316
|
},
|
|
8255
8317
|
{
|
|
8256
8318
|
key: "created",
|
|
@@ -8366,37 +8428,6 @@ var Businesses = () => {
|
|
|
8366
8428
|
] });
|
|
8367
8429
|
};
|
|
8368
8430
|
var Businesses_default = Businesses;
|
|
8369
|
-
var statusConfig2 = {
|
|
8370
|
-
verified: {
|
|
8371
|
-
variant: "active",
|
|
8372
|
-
label: "Verified",
|
|
8373
|
-
icon: CheckCircle
|
|
8374
|
-
},
|
|
8375
|
-
not_start: {
|
|
8376
|
-
variant: "secondary",
|
|
8377
|
-
label: "Not Start",
|
|
8378
|
-
icon: Circle
|
|
8379
|
-
},
|
|
8380
|
-
pending: {
|
|
8381
|
-
variant: "pending",
|
|
8382
|
-
label: "Pending",
|
|
8383
|
-
icon: Clock
|
|
8384
|
-
}
|
|
8385
|
-
};
|
|
8386
|
-
var CIPStatusBadge = ({ status, className }) => {
|
|
8387
|
-
const config = statusConfig2[status];
|
|
8388
|
-
if (!config) {
|
|
8389
|
-
return /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className, children: [
|
|
8390
|
-
/* @__PURE__ */ jsx(Circle, { className: "w-3 h-3 mr-1" }),
|
|
8391
|
-
status || "Unknown"
|
|
8392
|
-
] });
|
|
8393
|
-
}
|
|
8394
|
-
const Icon2 = config.icon;
|
|
8395
|
-
return /* @__PURE__ */ jsxs(Badge, { variant: config.variant, className, children: [
|
|
8396
|
-
/* @__PURE__ */ jsx(Icon2, { className: "w-3 h-3 mr-1" }),
|
|
8397
|
-
config.label
|
|
8398
|
-
] });
|
|
8399
|
-
};
|
|
8400
8431
|
var typeConfig3 = {
|
|
8401
8432
|
Individual: {
|
|
8402
8433
|
variant: "individual",
|
|
@@ -10048,8 +10079,8 @@ var mockIndividualsListData = [
|
|
|
10048
10079
|
lastName: "Smith",
|
|
10049
10080
|
fullName: "John Smith",
|
|
10050
10081
|
productName: "Personal Checking",
|
|
10051
|
-
cipStatus: "
|
|
10052
|
-
status: "
|
|
10082
|
+
cipStatus: "PASS",
|
|
10083
|
+
status: "ACTIVE",
|
|
10053
10084
|
createdAt: "2024-01-15T10:30:00Z",
|
|
10054
10085
|
modifiedAt: "2024-01-20T14:45:00Z"
|
|
10055
10086
|
},
|
|
@@ -10059,8 +10090,8 @@ var mockIndividualsListData = [
|
|
|
10059
10090
|
lastName: "Johnson",
|
|
10060
10091
|
fullName: "Sarah Johnson",
|
|
10061
10092
|
productName: "Premium Savings",
|
|
10062
|
-
cipStatus: "
|
|
10063
|
-
status: "
|
|
10093
|
+
cipStatus: "PASS",
|
|
10094
|
+
status: "ACTIVE",
|
|
10064
10095
|
createdAt: "2024-01-18T09:15:00Z",
|
|
10065
10096
|
modifiedAt: "2024-01-22T11:30:00Z"
|
|
10066
10097
|
},
|
|
@@ -10070,8 +10101,8 @@ var mockIndividualsListData = [
|
|
|
10070
10101
|
lastName: "Chen",
|
|
10071
10102
|
fullName: "Michael Chen",
|
|
10072
10103
|
productName: "Personal Checking",
|
|
10073
|
-
cipStatus: "
|
|
10074
|
-
status: "
|
|
10104
|
+
cipStatus: "IN_REVIEW",
|
|
10105
|
+
status: "PENDING_APPROVAL",
|
|
10075
10106
|
createdAt: "2024-01-20T13:45:00Z",
|
|
10076
10107
|
modifiedAt: "2024-01-20T13:45:00Z"
|
|
10077
10108
|
},
|
|
@@ -10081,8 +10112,8 @@ var mockIndividualsListData = [
|
|
|
10081
10112
|
lastName: "Rodriguez",
|
|
10082
10113
|
fullName: "Emily Rodriguez",
|
|
10083
10114
|
productName: "Student Checking",
|
|
10084
|
-
cipStatus: "
|
|
10085
|
-
status: "
|
|
10115
|
+
cipStatus: "PASS",
|
|
10116
|
+
status: "ACTIVE",
|
|
10086
10117
|
createdAt: "2024-01-22T16:20:00Z",
|
|
10087
10118
|
modifiedAt: "2024-01-25T10:15:00Z"
|
|
10088
10119
|
},
|
|
@@ -10092,8 +10123,8 @@ var mockIndividualsListData = [
|
|
|
10092
10123
|
lastName: "Williams",
|
|
10093
10124
|
fullName: "David Williams",
|
|
10094
10125
|
productName: "Business Checking",
|
|
10095
|
-
cipStatus: "
|
|
10096
|
-
status: "
|
|
10126
|
+
cipStatus: "FAIL",
|
|
10127
|
+
status: "BLOCKED",
|
|
10097
10128
|
createdAt: "2024-01-25T08:30:00Z",
|
|
10098
10129
|
modifiedAt: "2024-01-26T14:00:00Z"
|
|
10099
10130
|
}
|
|
@@ -12730,6 +12761,6 @@ function UIKit() {
|
|
|
12730
12761
|
] }) }) });
|
|
12731
12762
|
}
|
|
12732
12763
|
|
|
12733
|
-
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AddressForm, AlertDetail_default as AlertDetail, AlertDetailRouter, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts_default as Alerts, AppSidebar, Badge, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, BusinessDetail_default as BusinessDetail, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses_default as Businesses, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cases_default as Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties_default as Counterparties, CounterpartyBasicInfo, CounterpartyDetail_default as CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, Create_default as CreateBusiness, Create_default2 as CreateCounterparty, Create_default3 as CreateIndividual, Dashboard_default as Dashboard, DashboardDemo, DataGrid, DataTable, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, FormCard, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail_default as IndividualDetail, Individuals_default as Individuals, InfoField, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, NotFound_default as NotFound, OFACAlertView, OriginatorCard, OriginatorFI, OriginatorFIAddress, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, 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, StatementHeader, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail_default as TransactionDetail, TransactionHistory_default as TransactionHistory, TransactionTypeBadge, UIKit, UIKitShowcase, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, inputVariants, reducer, textareaVariants, toast, useAlertDetail, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
12764
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AddressForm, AlertDetail_default as AlertDetail, AlertDetailRouter, AlertDocuments, AlertHeaderControls, AlertNotes, AlertTimeline, Alerts_default as Alerts, AppSidebar, Badge, BankAddressCard, BankingDetailsCard, BasicInfoCard, BasicInfoSection, BeneficiaryAddress, BeneficiaryCard, BeneficiaryDomesticWire, Breadcrumb, BusinessDetail_default as BusinessDetail, BusinessProfileCard, BusinessStatusCard, BusinessTypeBadge, Businesses_default as Businesses, Button, CIPStatusBadge, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Cases_default as Cases, Checkbox, ContactInfoCard, Container, ContextSection, Counterparties_default as Counterparties, CounterpartyBasicInfo, CounterpartyDetail_default as CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, Create_default as CreateBusiness, Create_default2 as CreateCounterparty, Create_default3 as CreateIndividual, Dashboard_default as Dashboard, DashboardDemo, DataGrid, DataTable, DetailPageLayout, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EditableFormCard, EditableInfoField, EnhancedInput, EnhancedSelect, EnhancedTextarea, EntityCard, FormCard, FormField, FormInput, FormProvider, FormSection, FormSelect, IndividualDetail_default as IndividualDetail, Individuals_default as Individuals, InfoField, IntermediaryCard, IntermediaryFI, IntermediaryFIAddress, JsonViewer, Label, ListPage, MainLayout, MetricCard, NewTransaction, NotFound_default as NotFound, OFACAlertView, OriginatorCard, OriginatorFI, OriginatorFIAddress, PageLayout, PatternLibrary, PaymentInformationSection, Popover, PopoverContent, PopoverTrigger, ReceiverCard, 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, StatementHeader, StatementView, StatusBadge, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransactionDetail_default as TransactionDetail, TransactionHistory_default as TransactionHistory, TransactionTypeBadge, UIKit, UIKitShowcase, WireDetailsSection, WireTransferSection, badgeVariants, buttonVariants, cardVariants, downloadCSV, generateStatementCSV, inputVariants, reducer, textareaVariants, toast, useAlertDetail, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
12734
12765
|
//# sourceMappingURL=index.js.map
|
|
12735
12766
|
//# sourceMappingURL=index.js.map
|