pxengine 0.1.126 → 0.1.128

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
@@ -17241,7 +17241,10 @@ function formatTemplateLabel2(templateId) {
17241
17241
  if (!templateId) return null;
17242
17242
  return templateId.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
17243
17243
  }
17244
- var FullscreenPreviewModal = ({ url, title, onClose }) => {
17244
+ function withPdfViewerParams(url) {
17245
+ return `${url}#toolbar=0&navpanes=0&scrollbar=0`;
17246
+ }
17247
+ var FullscreenPreviewModal = ({ url, title, onClose, isPdf }) => {
17245
17248
  useEffect8(() => {
17246
17249
  const onKey = (e) => {
17247
17250
  if (e.key === "Escape") onClose();
@@ -17279,7 +17282,7 @@ var FullscreenPreviewModal = ({ url, title, onClose }) => {
17279
17282
  src: url,
17280
17283
  title,
17281
17284
  className: "absolute inset-0 w-full h-full border-0",
17282
- sandbox: "allow-same-origin"
17285
+ ...isPdf ? {} : { sandbox: "allow-same-origin" }
17283
17286
  }
17284
17287
  ) })
17285
17288
  ] });
@@ -18357,7 +18360,7 @@ var ResearchReportJobCard = (props) => {
18357
18360
  /* @__PURE__ */ jsx152(
18358
18361
  "iframe",
18359
18362
  {
18360
- src: pdfUrl,
18363
+ src: withPdfViewerParams(pdfUrl),
18361
18364
  title,
18362
18365
  className: "h-full w-full border-0",
18363
18366
  style: { pointerEvents: "none" }
@@ -18376,7 +18379,8 @@ var ResearchReportJobCard = (props) => {
18376
18379
  showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ jsx152(
18377
18380
  FullscreenPreviewModal,
18378
18381
  {
18379
- url: hasHTML ? htmlUrl : pdfUrl,
18382
+ url: hasHTML ? htmlUrl : withPdfViewerParams(pdfUrl),
18383
+ isPdf: !hasHTML,
18380
18384
  title,
18381
18385
  onClose: () => setShowPreview(false)
18382
18386
  }