@danxbot/ui 17.0.0 → 18.0.0
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.js
CHANGED
|
@@ -49556,38 +49556,37 @@ function N8({
|
|
|
49556
49556
|
}
|
|
49557
49557
|
);
|
|
49558
49558
|
}
|
|
49559
|
-
function R8(e, t
|
|
49560
|
-
const r = (o) => e.find((s) => s.id === o)?.label ?? o;
|
|
49559
|
+
function R8(e, t) {
|
|
49561
49560
|
return [
|
|
49562
49561
|
{
|
|
49563
49562
|
id: "key",
|
|
49564
49563
|
header: "Key",
|
|
49565
|
-
accessorFn: (
|
|
49566
|
-
cell: ({ row:
|
|
49564
|
+
accessorFn: (n) => n.name,
|
|
49565
|
+
cell: ({ row: n }) => /* @__PURE__ */ d(Hd, { primary: n.original.name, secondary: `Created ${ms(n.original.createdAt)}` })
|
|
49567
49566
|
},
|
|
49568
49567
|
{
|
|
49569
49568
|
id: "role",
|
|
49570
49569
|
header: "Role",
|
|
49571
|
-
accessorFn: (
|
|
49572
|
-
cell: ({ row:
|
|
49570
|
+
accessorFn: (n) => n.roleLabel,
|
|
49571
|
+
cell: ({ row: n }) => /* @__PURE__ */ d(ut, { tone: "neutral", children: n.original.roleLabel })
|
|
49573
49572
|
},
|
|
49574
49573
|
{
|
|
49575
49574
|
id: "lastUsed",
|
|
49576
49575
|
header: "Last used",
|
|
49577
|
-
accessorFn: (
|
|
49578
|
-
cell: ({ row:
|
|
49576
|
+
accessorFn: (n) => n.lastUsedAt ?? "",
|
|
49577
|
+
cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: n.original.lastUsedAt ? ms(n.original.lastUsedAt) : "Never" })
|
|
49579
49578
|
},
|
|
49580
49579
|
{
|
|
49581
49580
|
id: "expires",
|
|
49582
49581
|
header: "Expires",
|
|
49583
|
-
accessorFn: (
|
|
49584
|
-
cell: ({ row:
|
|
49582
|
+
accessorFn: (n) => n.expiresAt ?? "",
|
|
49583
|
+
cell: ({ row: n }) => /* @__PURE__ */ d("span", { className: "text-secondary", children: n.original.expiresAt ? MM(n.original.expiresAt) : "Never" })
|
|
49585
49584
|
},
|
|
49586
49585
|
{
|
|
49587
49586
|
id: "actions",
|
|
49588
49587
|
header: "",
|
|
49589
49588
|
enableSorting: !1,
|
|
49590
|
-
cell: ({ row:
|
|
49589
|
+
cell: ({ row: n }) => /* @__PURE__ */ d("div", { className: "flex justify-end", children: /* @__PURE__ */ d(N8, { apiKey: n.original, busy: e === n.original.id, onRevoke: t }) })
|
|
49591
49590
|
}
|
|
49592
49591
|
];
|
|
49593
49592
|
}
|
|
@@ -49631,7 +49630,7 @@ function uZ({
|
|
|
49631
49630
|
} catch {
|
|
49632
49631
|
}
|
|
49633
49632
|
}
|
|
49634
|
-
const A = R8(
|
|
49633
|
+
const A = R8(a, i);
|
|
49635
49634
|
return /* @__PURE__ */ I("div", { className: l, children: [
|
|
49636
49635
|
/* @__PURE__ */ I("div", { className: "flex flex-col gap-3", children: [
|
|
49637
49636
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-3", children: [
|