braid-ui 1.0.36 → 1.0.37

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 CHANGED
@@ -5255,6 +5255,104 @@ var CreateBusinessView = ({
5255
5255
  }
5256
5256
  );
5257
5257
  };
5258
+ var CounterpartiesView = ({
5259
+ table,
5260
+ filters,
5261
+ onFilterChange,
5262
+ onResetFilters,
5263
+ onApplyFilters,
5264
+ onCreateCounterparty
5265
+ }) => {
5266
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-screen bg-gradient-subtle", children: [
5267
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-6 max-w-none", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
5268
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground mb-2", children: "Counterparties" }) }),
5269
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
5270
+ /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { children: [
5271
+ /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", className: "gap-2", children: [
5272
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "h-4 w-4" }),
5273
+ "Filters"
5274
+ ] }) }),
5275
+ /* @__PURE__ */ jsxRuntime.jsxs(SheetContent, { side: "right", className: "w-full sm:max-w-xl overflow-y-auto", children: [
5276
+ /* @__PURE__ */ jsxRuntime.jsx(SheetHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SheetTitle, { children: "Counterparty Filters" }) }),
5277
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6 py-6", children: [
5278
+ /* @__PURE__ */ jsxRuntime.jsx(
5279
+ EnhancedInput,
5280
+ {
5281
+ label: "Name",
5282
+ value: filters.name,
5283
+ onChange: (e) => onFilterChange("name", e.target.value),
5284
+ placeholder: "Enter counterparty name"
5285
+ }
5286
+ ),
5287
+ /* @__PURE__ */ jsxRuntime.jsx(
5288
+ EnhancedSelect,
5289
+ {
5290
+ label: "Type",
5291
+ value: filters.type,
5292
+ onValueChange: (value) => onFilterChange("type", value),
5293
+ placeholder: "Select type",
5294
+ options: [
5295
+ { value: "BUSINESS", label: "Business" },
5296
+ { value: "INDIVIDUAL", label: "Individual" }
5297
+ ]
5298
+ }
5299
+ ),
5300
+ /* @__PURE__ */ jsxRuntime.jsx(
5301
+ EnhancedSelect,
5302
+ {
5303
+ label: "Status",
5304
+ value: filters.status,
5305
+ onValueChange: (value) => onFilterChange("status", value),
5306
+ placeholder: "Select status",
5307
+ options: [
5308
+ { value: "ACTIVE", label: "Active" },
5309
+ { value: "INACTIVE", label: "Inactive" },
5310
+ { value: "PENDING", label: "Pending" },
5311
+ { value: "SUSPENDED", label: "Suspended" }
5312
+ ]
5313
+ }
5314
+ ),
5315
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
5316
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
5317
+ /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: "Created Date Start" }),
5318
+ /* @__PURE__ */ jsxRuntime.jsx(
5319
+ DatePicker,
5320
+ {
5321
+ date: filters.createdDateStart,
5322
+ onDateChange: (date) => onFilterChange("createdDateStart", date),
5323
+ placeholder: "MM/DD/YYYY",
5324
+ buttonClassName: "w-full",
5325
+ className: "bg-background z-50"
5326
+ }
5327
+ )
5328
+ ] }),
5329
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
5330
+ /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: "Created Date End" }),
5331
+ /* @__PURE__ */ jsxRuntime.jsx(
5332
+ DatePicker,
5333
+ {
5334
+ date: filters.createdDateEnd,
5335
+ onDateChange: (date) => onFilterChange("createdDateEnd", date),
5336
+ placeholder: "MM/DD/YYYY",
5337
+ buttonClassName: "w-full",
5338
+ className: "bg-background z-50"
5339
+ }
5340
+ )
5341
+ ] })
5342
+ ] })
5343
+ ] }),
5344
+ /* @__PURE__ */ jsxRuntime.jsxs(SheetFooter, { className: "gap-2", children: [
5345
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", onClick: onResetFilters, children: "Reset Filters" }),
5346
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onApplyFilters, children: "Apply Filters" })
5347
+ ] })
5348
+ ] })
5349
+ ] }),
5350
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onCreateCounterparty, children: "Create Counterparty" })
5351
+ ] })
5352
+ ] }) }) }),
5353
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 h-full max-w-none flex flex-col", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 mt-4 overflow-auto", children: table }) }) })
5354
+ ] });
5355
+ };
5258
5356
 
5259
5357
  // src/lib/mock-data/banking-data.ts
5260
5358
  var defaultACHBankDetails = {
@@ -10663,104 +10761,6 @@ var mockCounterpartiesList = [
10663
10761
  modified: "2023-12-28"
10664
10762
  }
10665
10763
  ];
10666
- var CounterpartiesView = ({
10667
- table,
10668
- filters,
10669
- onFilterChange,
10670
- onResetFilters,
10671
- onApplyFilters,
10672
- onCreateCounterparty
10673
- }) => {
10674
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-screen bg-gradient-subtle", children: [
10675
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-6 max-w-none", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
10676
- /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground mb-2", children: "Counterparties" }) }),
10677
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
10678
- /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { children: [
10679
- /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", className: "gap-2", children: [
10680
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "h-4 w-4" }),
10681
- "Filters"
10682
- ] }) }),
10683
- /* @__PURE__ */ jsxRuntime.jsxs(SheetContent, { side: "right", className: "w-full sm:max-w-xl overflow-y-auto", children: [
10684
- /* @__PURE__ */ jsxRuntime.jsx(SheetHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SheetTitle, { children: "Counterparty Filters" }) }),
10685
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6 py-6", children: [
10686
- /* @__PURE__ */ jsxRuntime.jsx(
10687
- EnhancedInput,
10688
- {
10689
- label: "Name",
10690
- value: filters.name,
10691
- onChange: (e) => onFilterChange("name", e.target.value),
10692
- placeholder: "Enter counterparty name"
10693
- }
10694
- ),
10695
- /* @__PURE__ */ jsxRuntime.jsx(
10696
- EnhancedSelect,
10697
- {
10698
- label: "Type",
10699
- value: filters.type,
10700
- onValueChange: (value) => onFilterChange("type", value),
10701
- placeholder: "Select type",
10702
- options: [
10703
- { value: "BUSINESS", label: "Business" },
10704
- { value: "INDIVIDUAL", label: "Individual" }
10705
- ]
10706
- }
10707
- ),
10708
- /* @__PURE__ */ jsxRuntime.jsx(
10709
- EnhancedSelect,
10710
- {
10711
- label: "Status",
10712
- value: filters.status,
10713
- onValueChange: (value) => onFilterChange("status", value),
10714
- placeholder: "Select status",
10715
- options: [
10716
- { value: "ACTIVE", label: "Active" },
10717
- { value: "INACTIVE", label: "Inactive" },
10718
- { value: "PENDING", label: "Pending" },
10719
- { value: "SUSPENDED", label: "Suspended" }
10720
- ]
10721
- }
10722
- ),
10723
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
10724
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
10725
- /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: "Created Date Start" }),
10726
- /* @__PURE__ */ jsxRuntime.jsx(
10727
- DatePicker,
10728
- {
10729
- date: filters.createdDateStart,
10730
- onDateChange: (date) => onFilterChange("createdDateStart", date),
10731
- placeholder: "MM/DD/YYYY",
10732
- buttonClassName: "w-full",
10733
- className: "bg-background z-50"
10734
- }
10735
- )
10736
- ] }),
10737
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
10738
- /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium", children: "Created Date End" }),
10739
- /* @__PURE__ */ jsxRuntime.jsx(
10740
- DatePicker,
10741
- {
10742
- date: filters.createdDateEnd,
10743
- onDateChange: (date) => onFilterChange("createdDateEnd", date),
10744
- placeholder: "MM/DD/YYYY",
10745
- buttonClassName: "w-full",
10746
- className: "bg-background z-50"
10747
- }
10748
- )
10749
- ] })
10750
- ] })
10751
- ] }),
10752
- /* @__PURE__ */ jsxRuntime.jsxs(SheetFooter, { className: "gap-2", children: [
10753
- /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", onClick: onResetFilters, children: "Reset Filters" }),
10754
- /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onApplyFilters, children: "Apply Filters" })
10755
- ] })
10756
- ] })
10757
- ] }),
10758
- /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onCreateCounterparty, children: "Create Counterparty" })
10759
- ] })
10760
- ] }) }) }),
10761
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 h-full max-w-none flex flex-col", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 mt-4 overflow-auto", children: table }) }) })
10762
- ] });
10763
- };
10764
10764
  var mockProducts3 = {
10765
10765
  "prod-001": "Business Banking Pro",
10766
10766
  "prod-002": "Premium Banking",
@@ -14056,6 +14056,7 @@ exports.ContactInfoCard = ContactInfoCard;
14056
14056
  exports.Container = Container;
14057
14057
  exports.ContextSection = ContextSection;
14058
14058
  exports.Counterparties = Counterparties_default;
14059
+ exports.CounterpartiesView = CounterpartiesView;
14059
14060
  exports.CounterpartyBasicInfo = CounterpartyBasicInfo;
14060
14061
  exports.CounterpartyDetail = CounterpartyDetail_default;
14061
14062
  exports.CounterpartyProfileCard = CounterpartyProfileCard;