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.
package/dist/index.cjs CHANGED
@@ -6029,7 +6029,7 @@ function bytesLabel2(n) {
6029
6029
  if (n < 1048576) return `${Math.round(n / 1024)} KB`;
6030
6030
  return `${(n / 1048576).toFixed(1)} MB`;
6031
6031
  }
6032
- function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCopy, active = false, className = "" }) {
6032
+ function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCopy, active = false, thumb, className = "" }) {
6033
6033
  const [copied, setCopied] = (0, import_react22.useState)("");
6034
6034
  (0, import_react22.useEffect)(() => {
6035
6035
  if (!copied) return void 0;
@@ -6056,7 +6056,7 @@ function FileCard({ name, origin = "output", bytes, onPreview, onDownload, onCop
6056
6056
  } : void 0,
6057
6057
  title: name,
6058
6058
  children: [
6059
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "uic-filecard-ic", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FileTypeIcon, { name, size: 32 }) }),
6059
+ thumb ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "uic-filecard-thumb", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("img", { src: thumb, alt: "" }) }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "uic-filecard-ic", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FileTypeIcon, { name, size: 32 }) }),
6060
6060
  /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "uic-filecard-meta", children: [
6061
6061
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "uic-filecard-name", children: name }),
6062
6062
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "uic-filecard-sub", children: subtitle(name, origin, bytes) })