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.mjs CHANGED
@@ -11865,7 +11865,7 @@ var DataGrid = ({
11865
11865
  Badge,
11866
11866
  {
11867
11867
  variant: "secondary",
11868
- className: "bg-purple-50 text-purple-700 border-purple-100",
11868
+ className: "bg-gold/10 text-gold border-gold/20",
11869
11869
  children: typeof value === "object" ? JSON.stringify(value) : String(value ?? "")
11870
11870
  }
11871
11871
  );
@@ -11878,7 +11878,7 @@ var DataGrid = ({
11878
11878
  item.name && /* @__PURE__ */ jsx104("span", { className: "font-medium", children: item.name })
11879
11879
  ] });
11880
11880
  case "date":
11881
- return /* @__PURE__ */ jsx104("span", { className: "text-muted-foreground", children: new Date(value).toLocaleDateString() });
11881
+ return /* @__PURE__ */ jsx104("span", { className: "text-cardText/60", children: new Date(value).toLocaleDateString() });
11882
11882
  case "number":
11883
11883
  return /* @__PURE__ */ jsx104("span", { className: "font-mono font-medium", children: Number(value ?? 0).toLocaleString() });
11884
11884
  default:
@@ -11889,14 +11889,14 @@ var DataGrid = ({
11889
11889
  "div",
11890
11890
  {
11891
11891
  className: cn(
11892
- "rounded-3xl border border-purple-50 bg-white overflow-hidden shadow-sm",
11892
+ "rounded-3xl border border-gray400 bg-cardSurface text-cardText overflow-hidden shadow-sm",
11893
11893
  className
11894
11894
  ),
11895
11895
  children: /* @__PURE__ */ jsxs65(Table2, { children: [
11896
- /* @__PURE__ */ jsx104(TableHeader, { className: "bg-gray-50/50", children: /* @__PURE__ */ jsx104(TableRow, { children: safeColumns.map((col) => /* @__PURE__ */ jsx104(
11896
+ /* @__PURE__ */ jsx104(TableHeader, { className: "bg-black/20", children: /* @__PURE__ */ jsx104(TableRow, { children: safeColumns.map((col) => /* @__PURE__ */ jsx104(
11897
11897
  TableHead,
11898
11898
  {
11899
- className: "font-bold text-gray-900 h-12",
11899
+ className: "font-bold text-cardText h-12",
11900
11900
  children: col.header
11901
11901
  },
11902
11902
  col.accessorKey
@@ -11904,7 +11904,7 @@ var DataGrid = ({
11904
11904
  /* @__PURE__ */ jsx104(TableBody, { children: safeData.slice(0, pageSize).map((item, idx) => /* @__PURE__ */ jsx104(
11905
11905
  TableRow,
11906
11906
  {
11907
- className: "hover:bg-purple-50/30 transition-colors border-gray-50",
11907
+ className: "hover:bg-white/[0.02] transition-colors border-gray400/40",
11908
11908
  children: safeColumns.map((col) => /* @__PURE__ */ jsx104(TableCell, { className: "py-4", children: renderCell(item, col) }, col.accessorKey))
11909
11909
  },
11910
11910
  idx
@@ -18257,7 +18257,7 @@ var ResearchReportJobCard = (props) => {
18257
18257
  icon: /* @__PURE__ */ jsx152(ExpandIcon, {}),
18258
18258
  label: "Preview report",
18259
18259
  onClick: () => setShowPreview(true),
18260
- disabled: !hasHTML
18260
+ disabled: !hasHTML && !pdfUrl
18261
18261
  }
18262
18262
  ),
18263
18263
  canRegenerate && /* @__PURE__ */ jsx152(
@@ -18346,13 +18346,37 @@ var ResearchReportJobCard = (props) => {
18346
18346
  ]
18347
18347
  }
18348
18348
  ) }),
18349
- !hasHTML && !compact && summary && /* @__PURE__ */ jsx152("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ jsx152("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18349
+ !hasHTML && pdfUrl && !compact && /* @__PURE__ */ jsx152("div", { className: "mt-4", children: /* @__PURE__ */ jsxs110(
18350
+ "div",
18351
+ {
18352
+ onClick: () => setShowPreview(true),
18353
+ className: "group relative overflow-hidden rounded-xl bg-white border border-zinc-800/50 cursor-pointer",
18354
+ style: { height: 420 },
18355
+ title: "Click to open fullscreen",
18356
+ children: [
18357
+ /* @__PURE__ */ jsx152(
18358
+ "iframe",
18359
+ {
18360
+ src: pdfUrl,
18361
+ title,
18362
+ className: "h-full w-full border-0",
18363
+ style: { pointerEvents: "none" }
18364
+ }
18365
+ ),
18366
+ /* @__PURE__ */ jsx152("div", { className: "absolute inset-0 flex items-center justify-center bg-black/0 group-hover:bg-black/30 transition-colors", children: /* @__PURE__ */ jsxs110("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: [
18367
+ /* @__PURE__ */ jsx152(ExpandIcon, {}),
18368
+ "Open fullscreen"
18369
+ ] }) })
18370
+ ]
18371
+ }
18372
+ ) }),
18373
+ !hasHTML && !pdfUrl && !compact && summary && /* @__PURE__ */ jsx152("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ jsx152("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18350
18374
  ] })
18351
18375
  ] }) }),
18352
- showPreview && hasHTML && /* @__PURE__ */ jsx152(
18376
+ showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ jsx152(
18353
18377
  FullscreenPreviewModal,
18354
18378
  {
18355
- url: htmlUrl,
18379
+ url: hasHTML ? htmlUrl : pdfUrl,
18356
18380
  title,
18357
18381
  onClose: () => setShowPreview(false)
18358
18382
  }