pxengine 0.1.125 → 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 CHANGED
@@ -12197,7 +12197,7 @@ var DataGrid = ({
12197
12197
  Badge,
12198
12198
  {
12199
12199
  variant: "secondary",
12200
- className: "bg-purple-50 text-purple-700 border-purple-100",
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-muted-foreground", children: new Date(value).toLocaleDateString() });
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-purple-50 bg-white overflow-hidden shadow-sm",
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-gray-50/50", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(TableRow, { children: safeColumns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
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-gray-900 h-12",
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-purple-50/30 transition-colors border-gray-50",
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
@@ -18589,7 +18589,7 @@ var ResearchReportJobCard = (props) => {
18589
18589
  icon: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(ExpandIcon, {}),
18590
18590
  label: "Preview report",
18591
18591
  onClick: () => setShowPreview(true),
18592
- disabled: !hasHTML
18592
+ disabled: !hasHTML && !pdfUrl
18593
18593
  }
18594
18594
  ),
18595
18595
  canRegenerate && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
@@ -18678,13 +18678,37 @@ var ResearchReportJobCard = (props) => {
18678
18678
  ]
18679
18679
  }
18680
18680
  ) }),
18681
- !hasHTML && !compact && summary && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18681
+ !hasHTML && pdfUrl && !compact && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
18682
+ "div",
18683
+ {
18684
+ onClick: () => setShowPreview(true),
18685
+ className: "group relative overflow-hidden rounded-xl bg-white border border-zinc-800/50 cursor-pointer",
18686
+ style: { height: 420 },
18687
+ title: "Click to open fullscreen",
18688
+ children: [
18689
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
18690
+ "iframe",
18691
+ {
18692
+ src: pdfUrl,
18693
+ title,
18694
+ className: "h-full w-full border-0",
18695
+ style: { pointerEvents: "none" }
18696
+ }
18697
+ ),
18698
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/0 group-hover:bg-black/30 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { className: "opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-2 bg-zinc-900/80 backdrop-blur-sm border border-zinc-700 rounded-lg px-3 py-1.5 text-xs text-zinc-200 font-medium", children: [
18699
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(ExpandIcon, {}),
18700
+ "Open fullscreen"
18701
+ ] }) })
18702
+ ]
18703
+ }
18704
+ ) }),
18705
+ !hasHTML && !pdfUrl && !compact && summary && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18682
18706
  ] })
18683
18707
  ] }) }),
18684
- showPreview && hasHTML && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
18708
+ showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
18685
18709
  FullscreenPreviewModal,
18686
18710
  {
18687
- url: htmlUrl,
18711
+ url: hasHTML ? htmlUrl : pdfUrl,
18688
18712
  title,
18689
18713
  onClose: () => setShowPreview(false)
18690
18714
  }