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 CHANGED
@@ -300,6 +300,11 @@ var badgeVariants = classVarianceAuthority.cva(
300
300
  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",
301
301
  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",
302
302
  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",
303
+ // CIP Status outlined variants
304
+ "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",
305
+ "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",
306
+ "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",
307
+ "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",
303
308
  // Alert type subtle variants
304
309
  "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",
305
310
  "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",
@@ -3807,6 +3812,16 @@ var statusConfig = {
3807
3812
  label: "Suspended",
3808
3813
  icon: lucideReact.AlertTriangle
3809
3814
  },
3815
+ BLOCKED: {
3816
+ variant: "suspended",
3817
+ label: "Blocked",
3818
+ icon: lucideReact.Ban
3819
+ },
3820
+ PENDING_APPROVAL: {
3821
+ variant: "pending",
3822
+ label: "Pending Approval",
3823
+ icon: lucideReact.Clock
3824
+ },
3810
3825
  POSTED: {
3811
3826
  variant: "active",
3812
3827
  label: "Posted",
@@ -6815,6 +6830,63 @@ var Toaster = ({ ...props }) => {
6815
6830
  }
6816
6831
  );
6817
6832
  };
6833
+ var statusConfig2 = {
6834
+ NOT_START: {
6835
+ variant: "cip-secondary",
6836
+ label: "Not Start",
6837
+ icon: lucideReact.Circle
6838
+ },
6839
+ PASS: {
6840
+ variant: "cip-active",
6841
+ label: "Pass",
6842
+ icon: lucideReact.CheckCircle
6843
+ },
6844
+ FAIL: {
6845
+ variant: "cip-inactive",
6846
+ label: "Fail",
6847
+ icon: lucideReact.XCircle
6848
+ },
6849
+ IN_REVIEW: {
6850
+ variant: "cip-pending",
6851
+ label: "In Review",
6852
+ icon: lucideReact.Clock
6853
+ },
6854
+ // Backward compatibility
6855
+ verified: {
6856
+ variant: "cip-active",
6857
+ label: "Verified",
6858
+ icon: lucideReact.CheckCircle
6859
+ },
6860
+ not_start: {
6861
+ variant: "cip-secondary",
6862
+ label: "Not Start",
6863
+ icon: lucideReact.Circle
6864
+ },
6865
+ pending: {
6866
+ variant: "cip-pending",
6867
+ label: "Pending",
6868
+ icon: lucideReact.Clock
6869
+ },
6870
+ rejected: {
6871
+ variant: "cip-inactive",
6872
+ label: "Rejected",
6873
+ icon: lucideReact.XCircle
6874
+ }
6875
+ };
6876
+ var CIPStatusBadge = ({ status, className }) => {
6877
+ const config = statusConfig2[status];
6878
+ if (!config) {
6879
+ return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: "secondary", className, children: [
6880
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "w-3 h-3 mr-1" }),
6881
+ status || "Unknown"
6882
+ ] });
6883
+ }
6884
+ const Icon2 = config.icon;
6885
+ return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: config.variant, className, children: [
6886
+ /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "w-3 h-3 mr-1" }),
6887
+ config.label
6888
+ ] });
6889
+ };
6818
6890
  var Tabs = TabsPrimitive__namespace.Root;
6819
6891
  var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6820
6892
  TabsPrimitive__namespace.List,
@@ -8114,8 +8186,8 @@ var mockBusinessesList = [
8114
8186
  id: "8112488",
8115
8187
  businessName: "RAPIDZ PAY INC",
8116
8188
  productName: "Fiat Republic Canada Inc. FBO Rapidz Pay",
8117
- cipStatus: "verified",
8118
- status: "active",
8189
+ cipStatus: "PASS",
8190
+ status: "ACTIVE",
8119
8191
  type: "Business",
8120
8192
  subType: "Customer",
8121
8193
  isDeveloperInitiated: true,
@@ -8128,8 +8200,8 @@ var mockBusinessesList = [
8128
8200
  id: "8111609",
8129
8201
  businessName: "Fern Hyper Growth Llc",
8130
8202
  productName: "Atomic Brokerage FBO Atomic Brokerage Clients",
8131
- cipStatus: "verified",
8132
- status: "active",
8203
+ cipStatus: "PASS",
8204
+ status: "ACTIVE",
8133
8205
  type: "Business",
8134
8206
  subType: "UBO",
8135
8207
  isDeveloperInitiated: false,
@@ -8142,8 +8214,8 @@ var mockBusinessesList = [
8142
8214
  id: "8111026",
8143
8215
  businessName: "ACEROSGALVANISADOS & PREPINTADOS",
8144
8216
  productName: "SendFriend Inc FBO Conduit Pay Agent",
8145
- cipStatus: "not_start",
8146
- status: "active",
8217
+ cipStatus: "NOT_START",
8218
+ status: "ACTIVE",
8147
8219
  type: "Individual",
8148
8220
  subType: "Customer",
8149
8221
  isDeveloperInitiated: true,
@@ -8156,8 +8228,8 @@ var mockBusinessesList = [
8156
8228
  id: "8110892",
8157
8229
  businessName: "Tech Solutions Corp",
8158
8230
  productName: "Digital Finance Inc FBO Tech Solutions",
8159
- cipStatus: "pending",
8160
- status: "active",
8231
+ cipStatus: "IN_REVIEW",
8232
+ status: "PENDING_APPROVAL",
8161
8233
  type: "Business",
8162
8234
  subType: "Customer",
8163
8235
  isDeveloperInitiated: false,
@@ -8170,8 +8242,8 @@ var mockBusinessesList = [
8170
8242
  id: "8110654",
8171
8243
  businessName: "Global Trade Partners LLC",
8172
8244
  productName: "Swift Transfer FBO Global Trade",
8173
- cipStatus: "verified",
8174
- status: "active",
8245
+ cipStatus: "PASS",
8246
+ status: "ACTIVE",
8175
8247
  type: "Individual",
8176
8248
  subType: "UBO",
8177
8249
  isDeveloperInitiated: true,
@@ -8266,23 +8338,13 @@ var Businesses = () => {
8266
8338
  key: "cipStatus",
8267
8339
  title: "CIP status",
8268
8340
  sortable: true,
8269
- render: (value) => {
8270
- const status = value;
8271
- const variant = status === "verified" ? "success" : status === "pending" ? "warning" : "default";
8272
- const label = status === "verified" ? "Verified" : status === "pending" ? "Pending" : "Not Start";
8273
- return /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant, children: label });
8274
- }
8341
+ render: (value) => /* @__PURE__ */ jsxRuntime.jsx(CIPStatusBadge, { status: value })
8275
8342
  },
8276
8343
  {
8277
8344
  key: "status",
8278
8345
  title: "Status",
8279
8346
  sortable: true,
8280
- render: (value) => {
8281
- const status = value;
8282
- const variant = status === "active" ? "success" : "default";
8283
- const label = status.charAt(0).toUpperCase() + status.slice(1);
8284
- return /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant, children: label });
8285
- }
8347
+ render: (value) => /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status: value?.toUpperCase() })
8286
8348
  },
8287
8349
  {
8288
8350
  key: "created",
@@ -8398,37 +8460,6 @@ var Businesses = () => {
8398
8460
  ] });
8399
8461
  };
8400
8462
  var Businesses_default = Businesses;
8401
- var statusConfig2 = {
8402
- verified: {
8403
- variant: "active",
8404
- label: "Verified",
8405
- icon: lucideReact.CheckCircle
8406
- },
8407
- not_start: {
8408
- variant: "secondary",
8409
- label: "Not Start",
8410
- icon: lucideReact.Circle
8411
- },
8412
- pending: {
8413
- variant: "pending",
8414
- label: "Pending",
8415
- icon: lucideReact.Clock
8416
- }
8417
- };
8418
- var CIPStatusBadge = ({ status, className }) => {
8419
- const config = statusConfig2[status];
8420
- if (!config) {
8421
- return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: "secondary", className, children: [
8422
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "w-3 h-3 mr-1" }),
8423
- status || "Unknown"
8424
- ] });
8425
- }
8426
- const Icon2 = config.icon;
8427
- return /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: config.variant, className, children: [
8428
- /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "w-3 h-3 mr-1" }),
8429
- config.label
8430
- ] });
8431
- };
8432
8463
  var typeConfig3 = {
8433
8464
  Individual: {
8434
8465
  variant: "individual",
@@ -10080,8 +10111,8 @@ var mockIndividualsListData = [
10080
10111
  lastName: "Smith",
10081
10112
  fullName: "John Smith",
10082
10113
  productName: "Personal Checking",
10083
- cipStatus: "verified",
10084
- status: "active",
10114
+ cipStatus: "PASS",
10115
+ status: "ACTIVE",
10085
10116
  createdAt: "2024-01-15T10:30:00Z",
10086
10117
  modifiedAt: "2024-01-20T14:45:00Z"
10087
10118
  },
@@ -10091,8 +10122,8 @@ var mockIndividualsListData = [
10091
10122
  lastName: "Johnson",
10092
10123
  fullName: "Sarah Johnson",
10093
10124
  productName: "Premium Savings",
10094
- cipStatus: "verified",
10095
- status: "active",
10125
+ cipStatus: "PASS",
10126
+ status: "ACTIVE",
10096
10127
  createdAt: "2024-01-18T09:15:00Z",
10097
10128
  modifiedAt: "2024-01-22T11:30:00Z"
10098
10129
  },
@@ -10102,8 +10133,8 @@ var mockIndividualsListData = [
10102
10133
  lastName: "Chen",
10103
10134
  fullName: "Michael Chen",
10104
10135
  productName: "Personal Checking",
10105
- cipStatus: "pending",
10106
- status: "pending",
10136
+ cipStatus: "IN_REVIEW",
10137
+ status: "PENDING_APPROVAL",
10107
10138
  createdAt: "2024-01-20T13:45:00Z",
10108
10139
  modifiedAt: "2024-01-20T13:45:00Z"
10109
10140
  },
@@ -10113,8 +10144,8 @@ var mockIndividualsListData = [
10113
10144
  lastName: "Rodriguez",
10114
10145
  fullName: "Emily Rodriguez",
10115
10146
  productName: "Student Checking",
10116
- cipStatus: "verified",
10117
- status: "active",
10147
+ cipStatus: "PASS",
10148
+ status: "ACTIVE",
10118
10149
  createdAt: "2024-01-22T16:20:00Z",
10119
10150
  modifiedAt: "2024-01-25T10:15:00Z"
10120
10151
  },
@@ -10124,8 +10155,8 @@ var mockIndividualsListData = [
10124
10155
  lastName: "Williams",
10125
10156
  fullName: "David Williams",
10126
10157
  productName: "Business Checking",
10127
- cipStatus: "rejected",
10128
- status: "rejected",
10158
+ cipStatus: "FAIL",
10159
+ status: "BLOCKED",
10129
10160
  createdAt: "2024-01-25T08:30:00Z",
10130
10161
  modifiedAt: "2024-01-26T14:00:00Z"
10131
10162
  }
@@ -12791,6 +12822,7 @@ exports.BusinessStatusCard = BusinessStatusCard;
12791
12822
  exports.BusinessTypeBadge = BusinessTypeBadge;
12792
12823
  exports.Businesses = Businesses_default;
12793
12824
  exports.Button = Button;
12825
+ exports.CIPStatusBadge = CIPStatusBadge;
12794
12826
  exports.Calendar = Calendar;
12795
12827
  exports.Card = Card;
12796
12828
  exports.CardContent = CardContent;
@@ -12946,6 +12978,8 @@ exports.WireTransferSection = WireTransferSection;
12946
12978
  exports.badgeVariants = badgeVariants;
12947
12979
  exports.buttonVariants = buttonVariants;
12948
12980
  exports.cardVariants = cardVariants;
12981
+ exports.downloadCSV = downloadCSV;
12982
+ exports.generateStatementCSV = generateStatementCSV;
12949
12983
  exports.inputVariants = inputVariants;
12950
12984
  exports.reducer = reducer;
12951
12985
  exports.textareaVariants = textareaVariants;