braid-ui 1.0.36 → 1.0.38
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 +138 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +138 -102
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -358,6 +358,21 @@ interface CreateBusinessViewProps {
|
|
|
358
358
|
}
|
|
359
359
|
declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
|
|
360
360
|
|
|
361
|
+
interface CounterpartiesViewProps {
|
|
362
|
+
table: React.ReactNode;
|
|
363
|
+
filters: {
|
|
364
|
+
name: string;
|
|
365
|
+
type: string;
|
|
366
|
+
status: string;
|
|
367
|
+
createdDateStart?: Date;
|
|
368
|
+
createdDateEnd?: Date;
|
|
369
|
+
};
|
|
370
|
+
onFilterChange: (field: string, value: string | Date | undefined) => void;
|
|
371
|
+
onResetFilters: () => void;
|
|
372
|
+
onCreateCounterparty: () => void;
|
|
373
|
+
}
|
|
374
|
+
declare const CounterpartiesView: ({ table, filters, onFilterChange, onResetFilters, onCreateCounterparty }: CounterpartiesViewProps) => react_jsx_runtime.JSX.Element;
|
|
375
|
+
|
|
361
376
|
declare const achTransferSchema: z.ZodObject<{
|
|
362
377
|
basicInfo: z.ZodObject<{
|
|
363
378
|
counterpartyName: z.ZodString;
|
|
@@ -1657,4 +1672,4 @@ declare function generateStatementCSV(header: StatementHeader, transactions: Sta
|
|
|
1657
1672
|
*/
|
|
1658
1673
|
declare function downloadCSV(content: string, filename: string): void;
|
|
1659
1674
|
|
|
1660
|
-
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail, Accounts, AddressForm, 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, CounterpartyBasicInfo, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
1675
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail, Accounts, AddressForm, 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, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -358,6 +358,21 @@ interface CreateBusinessViewProps {
|
|
|
358
358
|
}
|
|
359
359
|
declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
|
|
360
360
|
|
|
361
|
+
interface CounterpartiesViewProps {
|
|
362
|
+
table: React.ReactNode;
|
|
363
|
+
filters: {
|
|
364
|
+
name: string;
|
|
365
|
+
type: string;
|
|
366
|
+
status: string;
|
|
367
|
+
createdDateStart?: Date;
|
|
368
|
+
createdDateEnd?: Date;
|
|
369
|
+
};
|
|
370
|
+
onFilterChange: (field: string, value: string | Date | undefined) => void;
|
|
371
|
+
onResetFilters: () => void;
|
|
372
|
+
onCreateCounterparty: () => void;
|
|
373
|
+
}
|
|
374
|
+
declare const CounterpartiesView: ({ table, filters, onFilterChange, onResetFilters, onCreateCounterparty }: CounterpartiesViewProps) => react_jsx_runtime.JSX.Element;
|
|
375
|
+
|
|
361
376
|
declare const achTransferSchema: z.ZodObject<{
|
|
362
377
|
basicInfo: z.ZodObject<{
|
|
363
378
|
counterpartyName: z.ZodString;
|
|
@@ -1657,4 +1672,4 @@ declare function generateStatementCSV(header: StatementHeader, transactions: Sta
|
|
|
1657
1672
|
*/
|
|
1658
1673
|
declare function downloadCSV(content: string, filename: string): void;
|
|
1659
1674
|
|
|
1660
|
-
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail, Accounts, AddressForm, 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, CounterpartyBasicInfo, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
1675
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail, Accounts, AddressForm, 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, CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, type CounterpartyWithEntity, CreateBusiness, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
package/dist/index.js
CHANGED
|
@@ -5223,6 +5223,143 @@ var CreateBusinessView = ({
|
|
|
5223
5223
|
}
|
|
5224
5224
|
);
|
|
5225
5225
|
};
|
|
5226
|
+
var CounterpartyFiltersSheet = ({
|
|
5227
|
+
filters,
|
|
5228
|
+
onFilterChange,
|
|
5229
|
+
onResetFilters
|
|
5230
|
+
}) => {
|
|
5231
|
+
const [localFilters, setLocalFilters] = useState(filters);
|
|
5232
|
+
const [open, setOpen] = useState(false);
|
|
5233
|
+
useEffect(() => {
|
|
5234
|
+
setLocalFilters(filters);
|
|
5235
|
+
}, [filters]);
|
|
5236
|
+
const handleLocalFilterChange = (field, value) => {
|
|
5237
|
+
setLocalFilters((prev) => ({ ...prev, [field]: value }));
|
|
5238
|
+
};
|
|
5239
|
+
const handleApplyFilters = () => {
|
|
5240
|
+
Object.entries(localFilters).forEach(([key, value]) => {
|
|
5241
|
+
onFilterChange(key, value);
|
|
5242
|
+
});
|
|
5243
|
+
setOpen(false);
|
|
5244
|
+
};
|
|
5245
|
+
const handleResetFilters = () => {
|
|
5246
|
+
const resetFilters = {
|
|
5247
|
+
name: "",
|
|
5248
|
+
type: "",
|
|
5249
|
+
status: "",
|
|
5250
|
+
createdDateStart: void 0,
|
|
5251
|
+
createdDateEnd: void 0
|
|
5252
|
+
};
|
|
5253
|
+
setLocalFilters(resetFilters);
|
|
5254
|
+
onResetFilters();
|
|
5255
|
+
setOpen(false);
|
|
5256
|
+
};
|
|
5257
|
+
return /* @__PURE__ */ jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
5258
|
+
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "gap-2", children: [
|
|
5259
|
+
/* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
|
|
5260
|
+
"Filters"
|
|
5261
|
+
] }) }),
|
|
5262
|
+
/* @__PURE__ */ jsxs(SheetContent, { side: "right", className: "w-full sm:max-w-xl overflow-y-auto", children: [
|
|
5263
|
+
/* @__PURE__ */ jsx(SheetHeader, { children: /* @__PURE__ */ jsx(SheetTitle, { children: "Counterparty Filters" }) }),
|
|
5264
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-6 py-6", children: [
|
|
5265
|
+
/* @__PURE__ */ jsx(
|
|
5266
|
+
EnhancedInput,
|
|
5267
|
+
{
|
|
5268
|
+
label: "Name",
|
|
5269
|
+
value: localFilters.name,
|
|
5270
|
+
onChange: (e) => handleLocalFilterChange("name", e.target.value),
|
|
5271
|
+
placeholder: "Enter counterparty name"
|
|
5272
|
+
}
|
|
5273
|
+
),
|
|
5274
|
+
/* @__PURE__ */ jsx(
|
|
5275
|
+
EnhancedSelect,
|
|
5276
|
+
{
|
|
5277
|
+
label: "Type",
|
|
5278
|
+
value: localFilters.type,
|
|
5279
|
+
onValueChange: (value) => handleLocalFilterChange("type", value),
|
|
5280
|
+
placeholder: "Select type",
|
|
5281
|
+
options: [
|
|
5282
|
+
{ value: "BUSINESS", label: "Business" },
|
|
5283
|
+
{ value: "INDIVIDUAL", label: "Individual" }
|
|
5284
|
+
]
|
|
5285
|
+
}
|
|
5286
|
+
),
|
|
5287
|
+
/* @__PURE__ */ jsx(
|
|
5288
|
+
EnhancedSelect,
|
|
5289
|
+
{
|
|
5290
|
+
label: "Status",
|
|
5291
|
+
value: localFilters.status,
|
|
5292
|
+
onValueChange: (value) => handleLocalFilterChange("status", value),
|
|
5293
|
+
placeholder: "Select status",
|
|
5294
|
+
options: [
|
|
5295
|
+
{ value: "ACTIVE", label: "Active" },
|
|
5296
|
+
{ value: "INACTIVE", label: "Inactive" },
|
|
5297
|
+
{ value: "PENDING", label: "Pending" },
|
|
5298
|
+
{ value: "SUSPENDED", label: "Suspended" }
|
|
5299
|
+
]
|
|
5300
|
+
}
|
|
5301
|
+
),
|
|
5302
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
5303
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
5304
|
+
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: "Created Date Start" }),
|
|
5305
|
+
/* @__PURE__ */ jsx(
|
|
5306
|
+
DatePicker,
|
|
5307
|
+
{
|
|
5308
|
+
date: localFilters.createdDateStart,
|
|
5309
|
+
onDateChange: (date) => handleLocalFilterChange("createdDateStart", date),
|
|
5310
|
+
placeholder: "MM/DD/YYYY",
|
|
5311
|
+
buttonClassName: "w-full",
|
|
5312
|
+
className: "bg-background z-50"
|
|
5313
|
+
}
|
|
5314
|
+
)
|
|
5315
|
+
] }),
|
|
5316
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
5317
|
+
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: "Created Date End" }),
|
|
5318
|
+
/* @__PURE__ */ jsx(
|
|
5319
|
+
DatePicker,
|
|
5320
|
+
{
|
|
5321
|
+
date: localFilters.createdDateEnd,
|
|
5322
|
+
onDateChange: (date) => handleLocalFilterChange("createdDateEnd", date),
|
|
5323
|
+
placeholder: "MM/DD/YYYY",
|
|
5324
|
+
buttonClassName: "w-full",
|
|
5325
|
+
className: "bg-background z-50"
|
|
5326
|
+
}
|
|
5327
|
+
)
|
|
5328
|
+
] })
|
|
5329
|
+
] })
|
|
5330
|
+
] }),
|
|
5331
|
+
/* @__PURE__ */ jsxs(SheetFooter, { className: "flex gap-2", children: [
|
|
5332
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: handleResetFilters, className: "flex-1", children: "Reset Filters" }),
|
|
5333
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleApplyFilters, className: "flex-1", children: "Apply Filters" })
|
|
5334
|
+
] })
|
|
5335
|
+
] })
|
|
5336
|
+
] });
|
|
5337
|
+
};
|
|
5338
|
+
var CounterpartiesView = ({
|
|
5339
|
+
table,
|
|
5340
|
+
filters,
|
|
5341
|
+
onFilterChange,
|
|
5342
|
+
onResetFilters,
|
|
5343
|
+
onCreateCounterparty
|
|
5344
|
+
}) => {
|
|
5345
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-screen bg-gradient-subtle", children: [
|
|
5346
|
+
/* @__PURE__ */ jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-6 max-w-none", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
5347
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-foreground", children: "Counterparties" }) }),
|
|
5348
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5349
|
+
/* @__PURE__ */ jsx(
|
|
5350
|
+
CounterpartyFiltersSheet,
|
|
5351
|
+
{
|
|
5352
|
+
filters,
|
|
5353
|
+
onFilterChange,
|
|
5354
|
+
onResetFilters
|
|
5355
|
+
}
|
|
5356
|
+
),
|
|
5357
|
+
/* @__PURE__ */ jsx(Button, { onClick: onCreateCounterparty, children: "Create Counterparty" })
|
|
5358
|
+
] })
|
|
5359
|
+
] }) }) }),
|
|
5360
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 h-full max-w-none flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 mt-4 overflow-auto", children: table }) }) })
|
|
5361
|
+
] });
|
|
5362
|
+
};
|
|
5226
5363
|
|
|
5227
5364
|
// src/lib/mock-data/banking-data.ts
|
|
5228
5365
|
var defaultACHBankDetails = {
|
|
@@ -10631,104 +10768,6 @@ var mockCounterpartiesList = [
|
|
|
10631
10768
|
modified: "2023-12-28"
|
|
10632
10769
|
}
|
|
10633
10770
|
];
|
|
10634
|
-
var CounterpartiesView = ({
|
|
10635
|
-
table,
|
|
10636
|
-
filters,
|
|
10637
|
-
onFilterChange,
|
|
10638
|
-
onResetFilters,
|
|
10639
|
-
onApplyFilters,
|
|
10640
|
-
onCreateCounterparty
|
|
10641
|
-
}) => {
|
|
10642
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-screen bg-gradient-subtle", children: [
|
|
10643
|
-
/* @__PURE__ */ jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 py-6 max-w-none", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
10644
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-foreground mb-2", children: "Counterparties" }) }),
|
|
10645
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10646
|
-
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
10647
|
-
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "gap-2", children: [
|
|
10648
|
-
/* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
|
|
10649
|
-
"Filters"
|
|
10650
|
-
] }) }),
|
|
10651
|
-
/* @__PURE__ */ jsxs(SheetContent, { side: "right", className: "w-full sm:max-w-xl overflow-y-auto", children: [
|
|
10652
|
-
/* @__PURE__ */ jsx(SheetHeader, { children: /* @__PURE__ */ jsx(SheetTitle, { children: "Counterparty Filters" }) }),
|
|
10653
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-6 py-6", children: [
|
|
10654
|
-
/* @__PURE__ */ jsx(
|
|
10655
|
-
EnhancedInput,
|
|
10656
|
-
{
|
|
10657
|
-
label: "Name",
|
|
10658
|
-
value: filters.name,
|
|
10659
|
-
onChange: (e) => onFilterChange("name", e.target.value),
|
|
10660
|
-
placeholder: "Enter counterparty name"
|
|
10661
|
-
}
|
|
10662
|
-
),
|
|
10663
|
-
/* @__PURE__ */ jsx(
|
|
10664
|
-
EnhancedSelect,
|
|
10665
|
-
{
|
|
10666
|
-
label: "Type",
|
|
10667
|
-
value: filters.type,
|
|
10668
|
-
onValueChange: (value) => onFilterChange("type", value),
|
|
10669
|
-
placeholder: "Select type",
|
|
10670
|
-
options: [
|
|
10671
|
-
{ value: "BUSINESS", label: "Business" },
|
|
10672
|
-
{ value: "INDIVIDUAL", label: "Individual" }
|
|
10673
|
-
]
|
|
10674
|
-
}
|
|
10675
|
-
),
|
|
10676
|
-
/* @__PURE__ */ jsx(
|
|
10677
|
-
EnhancedSelect,
|
|
10678
|
-
{
|
|
10679
|
-
label: "Status",
|
|
10680
|
-
value: filters.status,
|
|
10681
|
-
onValueChange: (value) => onFilterChange("status", value),
|
|
10682
|
-
placeholder: "Select status",
|
|
10683
|
-
options: [
|
|
10684
|
-
{ value: "ACTIVE", label: "Active" },
|
|
10685
|
-
{ value: "INACTIVE", label: "Inactive" },
|
|
10686
|
-
{ value: "PENDING", label: "Pending" },
|
|
10687
|
-
{ value: "SUSPENDED", label: "Suspended" }
|
|
10688
|
-
]
|
|
10689
|
-
}
|
|
10690
|
-
),
|
|
10691
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
10692
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
10693
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: "Created Date Start" }),
|
|
10694
|
-
/* @__PURE__ */ jsx(
|
|
10695
|
-
DatePicker,
|
|
10696
|
-
{
|
|
10697
|
-
date: filters.createdDateStart,
|
|
10698
|
-
onDateChange: (date) => onFilterChange("createdDateStart", date),
|
|
10699
|
-
placeholder: "MM/DD/YYYY",
|
|
10700
|
-
buttonClassName: "w-full",
|
|
10701
|
-
className: "bg-background z-50"
|
|
10702
|
-
}
|
|
10703
|
-
)
|
|
10704
|
-
] }),
|
|
10705
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
10706
|
-
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", children: "Created Date End" }),
|
|
10707
|
-
/* @__PURE__ */ jsx(
|
|
10708
|
-
DatePicker,
|
|
10709
|
-
{
|
|
10710
|
-
date: filters.createdDateEnd,
|
|
10711
|
-
onDateChange: (date) => onFilterChange("createdDateEnd", date),
|
|
10712
|
-
placeholder: "MM/DD/YYYY",
|
|
10713
|
-
buttonClassName: "w-full",
|
|
10714
|
-
className: "bg-background z-50"
|
|
10715
|
-
}
|
|
10716
|
-
)
|
|
10717
|
-
] })
|
|
10718
|
-
] })
|
|
10719
|
-
] }),
|
|
10720
|
-
/* @__PURE__ */ jsxs(SheetFooter, { className: "gap-2", children: [
|
|
10721
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: onResetFilters, children: "Reset Filters" }),
|
|
10722
|
-
/* @__PURE__ */ jsx(Button, { onClick: onApplyFilters, children: "Apply Filters" })
|
|
10723
|
-
] })
|
|
10724
|
-
] })
|
|
10725
|
-
] }),
|
|
10726
|
-
/* @__PURE__ */ jsx(Button, { onClick: onCreateCounterparty, children: "Create Counterparty" })
|
|
10727
|
-
] })
|
|
10728
|
-
] }) }) }),
|
|
10729
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 h-full max-w-none flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 mt-4 overflow-auto", children: table }) }) })
|
|
10730
|
-
] });
|
|
10731
|
-
};
|
|
10732
10771
|
var mockProducts3 = {
|
|
10733
10772
|
"prod-001": "Business Banking Pro",
|
|
10734
10773
|
"prod-002": "Premium Banking",
|
|
@@ -10835,8 +10874,6 @@ var Counterparties = () => {
|
|
|
10835
10874
|
createdDateEnd: void 0
|
|
10836
10875
|
});
|
|
10837
10876
|
}, []);
|
|
10838
|
-
const handleApplyFilters = useCallback(() => {
|
|
10839
|
-
}, []);
|
|
10840
10877
|
const handleSort = useCallback((key) => {
|
|
10841
10878
|
if (sortBy === key) {
|
|
10842
10879
|
setSortDirection((prev) => prev === "asc" ? "desc" : "asc");
|
|
@@ -10921,7 +10958,6 @@ var Counterparties = () => {
|
|
|
10921
10958
|
filters,
|
|
10922
10959
|
onFilterChange: handleFilterChange,
|
|
10923
10960
|
onResetFilters: handleResetFilters,
|
|
10924
|
-
onApplyFilters: handleApplyFilters,
|
|
10925
10961
|
onCreateCounterparty: handleCreateCounterparty
|
|
10926
10962
|
}
|
|
10927
10963
|
);
|
|
@@ -13977,6 +14013,6 @@ function UIKit() {
|
|
|
13977
14013
|
] }) }) });
|
|
13978
14014
|
}
|
|
13979
14015
|
|
|
13980
|
-
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail_default as AccountDetail, Accounts_default as Accounts, 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, BusinessDetailView, BusinessFiltersSheet, 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, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
14016
|
+
export { ACHBankCard, ACHBasicInfoCard, ACHDetailsSection, ACHTransferSection, AccountCard, AccountDetail_default as AccountDetail, Accounts_default as Accounts, 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, BusinessDetailView, BusinessFiltersSheet, 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, CounterpartiesView, CounterpartyBasicInfo, CounterpartyDetail_default as CounterpartyDetail, CounterpartyProfileCard, CounterpartyRecordsCard, CounterpartyTypeBadge, Create_default as CreateBusiness, CreateBusinessView, 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, useCounterpartyEntity, useEditState, useFormWithEditState, useIsMobile, useSidebar, useToast };
|
|
13981
14017
|
//# sourceMappingURL=index.js.map
|
|
13982
14018
|
//# sourceMappingURL=index.js.map
|