reifyui 0.16.0 → 0.16.1

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.
@@ -2579,7 +2579,7 @@ function bytesLabel(n) {
2579
2579
  if (n < 1048576) return `${Math.round(n / 1024)} KB`;
2580
2580
  return `${(n / 1048576).toFixed(1)} MB`;
2581
2581
  }
2582
- function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCopy, active = false, className = "" }) {
2582
+ function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCopy, active = false, thumb, className = "" }) {
2583
2583
  const [copied, setCopied] = (0, import_react8.useState)("");
2584
2584
  (0, import_react8.useEffect)(() => {
2585
2585
  if (!copied) return void 0;
@@ -2606,7 +2606,7 @@ function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCop
2606
2606
  } : void 0,
2607
2607
  title: name,
2608
2608
  children: [
2609
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "uic-filecard-ic", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FileTypeIcon, { name, size: 32 }) }),
2609
+ thumb ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "uic-filecard-thumb", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("img", { src: thumb, alt: "" }) }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "uic-filecard-ic", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FileTypeIcon, { name, size: 32 }) }),
2610
2610
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "uic-filecard-meta", children: [
2611
2611
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "uic-filecard-name", children: name }),
2612
2612
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "uic-filecard-sub", children: subtitle(name, origin, bytes) })