pxengine 0.1.126 → 0.1.127
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12197,7 +12197,7 @@ var DataGrid = ({
|
|
|
12197
12197
|
Badge,
|
|
12198
12198
|
{
|
|
12199
12199
|
variant: "secondary",
|
|
12200
|
-
className: "bg-
|
|
12200
|
+
className: "bg-gold/10 text-gold border-gold/20",
|
|
12201
12201
|
children: typeof value === "object" ? JSON.stringify(value) : String(value ?? "")
|
|
12202
12202
|
}
|
|
12203
12203
|
);
|
|
@@ -12210,7 +12210,7 @@ var DataGrid = ({
|
|
|
12210
12210
|
item.name && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "font-medium", children: item.name })
|
|
12211
12211
|
] });
|
|
12212
12212
|
case "date":
|
|
12213
|
-
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-
|
|
12213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-cardText/60", children: new Date(value).toLocaleDateString() });
|
|
12214
12214
|
case "number":
|
|
12215
12215
|
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "font-mono font-medium", children: Number(value ?? 0).toLocaleString() });
|
|
12216
12216
|
default:
|
|
@@ -12221,14 +12221,14 @@ var DataGrid = ({
|
|
|
12221
12221
|
"div",
|
|
12222
12222
|
{
|
|
12223
12223
|
className: cn(
|
|
12224
|
-
"rounded-3xl border border-
|
|
12224
|
+
"rounded-3xl border border-gray400 bg-cardSurface text-cardText overflow-hidden shadow-sm",
|
|
12225
12225
|
className
|
|
12226
12226
|
),
|
|
12227
12227
|
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(Table2, { children: [
|
|
12228
|
-
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableHeader, { className: "bg-
|
|
12228
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableHeader, { className: "bg-black/20", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableRow, { children: safeColumns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
12229
12229
|
TableHead,
|
|
12230
12230
|
{
|
|
12231
|
-
className: "font-bold text-
|
|
12231
|
+
className: "font-bold text-cardText h-12",
|
|
12232
12232
|
children: col.header
|
|
12233
12233
|
},
|
|
12234
12234
|
col.accessorKey
|
|
@@ -12236,7 +12236,7 @@ var DataGrid = ({
|
|
|
12236
12236
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableBody, { children: safeData.slice(0, pageSize).map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
12237
12237
|
TableRow,
|
|
12238
12238
|
{
|
|
12239
|
-
className: "hover:bg-
|
|
12239
|
+
className: "hover:bg-white/[0.02] transition-colors border-gray400/40",
|
|
12240
12240
|
children: safeColumns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableCell, { className: "py-4", children: renderCell(item, col) }, col.accessorKey))
|
|
12241
12241
|
},
|
|
12242
12242
|
idx
|