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.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
@@ -17573,7 +17573,10 @@ function formatTemplateLabel2(templateId) {
17573
17573
  if (!templateId) return null;
17574
17574
  return templateId.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
17575
17575
  }
17576
- var FullscreenPreviewModal = ({ url, title, onClose }) => {
17576
+ function withPdfViewerParams(url) {
17577
+ return `${url}#toolbar=0&navpanes=0&scrollbar=0`;
17578
+ }
17579
+ var FullscreenPreviewModal = ({ url, title, onClose, isPdf }) => {
17577
17580
  (0, import_react80.useEffect)(() => {
17578
17581
  const onKey = (e) => {
17579
17582
  if (e.key === "Escape") onClose();
@@ -17611,7 +17614,7 @@ var FullscreenPreviewModal = ({ url, title, onClose }) => {
17611
17614
  src: url,
17612
17615
  title,
17613
17616
  className: "absolute inset-0 w-full h-full border-0",
17614
- sandbox: "allow-same-origin"
17617
+ ...isPdf ? {} : { sandbox: "allow-same-origin" }
17615
17618
  }
17616
17619
  ) })
17617
17620
  ] });
@@ -18689,7 +18692,7 @@ var ResearchReportJobCard = (props) => {
18689
18692
  /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
18690
18693
  "iframe",
18691
18694
  {
18692
- src: pdfUrl,
18695
+ src: withPdfViewerParams(pdfUrl),
18693
18696
  title,
18694
18697
  className: "h-full w-full border-0",
18695
18698
  style: { pointerEvents: "none" }
@@ -18708,7 +18711,8 @@ var ResearchReportJobCard = (props) => {
18708
18711
  showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
18709
18712
  FullscreenPreviewModal,
18710
18713
  {
18711
- url: hasHTML ? htmlUrl : pdfUrl,
18714
+ url: hasHTML ? htmlUrl : withPdfViewerParams(pdfUrl),
18715
+ isPdf: !hasHTML,
18712
18716
  title,
18713
18717
  onClose: () => setShowPreview(false)
18714
18718
  }