ghostykit 0.11.1 → 0.11.2

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.
@@ -823,6 +823,19 @@ function AgentBody({ turn, live, onRetry, onOption, showUsage, showCopy, showDur
823
823
  // src/react/Delivery.tsx
824
824
  import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
825
825
  var kb = (n) => !n ? null : n < 1024 * 1024 ? `${Math.max(1, Math.round(n / 1024))} KB` : `${(n / 1024 / 1024).toFixed(1)} MB`;
826
+ var KIND_COLORS = {
827
+ PDF: "#E5252A",
828
+ XLSX: "#1D6F42",
829
+ XLS: "#1D6F42",
830
+ CSV: "#1D6F42",
831
+ DOCX: "#2B579A",
832
+ DOC: "#2B579A",
833
+ PPTX: "#C43E1C",
834
+ HTML: "#E8710A",
835
+ PNG: "#7C3AED",
836
+ JPG: "#7C3AED",
837
+ ZIP: "#6B7280"
838
+ };
826
839
  var kind = (mime, name) => {
827
840
  const ext = name?.split(".").pop()?.toUpperCase();
828
841
  if (mime === "application/pdf") return "PDF";
@@ -833,12 +846,21 @@ function DeliveryCard({ entry, locale = "es" }) {
833
846
  if (!d.url) return null;
834
847
  const name = d.nombre || d.titulo || "archivo";
835
848
  const download = d.url + (d.url.includes("?") ? "&" : "?") + "download=1";
836
- const meta = [kind(d.mime, name), kb(d.size)].filter(Boolean).join(" \xB7 ");
849
+ const type = kind(d.mime, name);
850
+ const meta = [type, kb(d.size)].filter(Boolean).join(" \xB7 ");
837
851
  const openLabel = locale === "en" ? "Open" : "Abrir";
838
852
  const downloadLabel = locale === "en" ? `Download ${name}` : `Descargar ${name}`;
839
853
  return /* @__PURE__ */ jsxs5("div", { className: "piloto-delivery mt-3 flex max-w-md items-center gap-1 rounded-xl border border-irongray/20 bg-irongray/5 pr-2 transition-colors hover:border-brand-500/40 hover:bg-brand-500/5", children: [
840
854
  /* @__PURE__ */ jsxs5("a", { href: download, download: name, className: "flex min-w-0 flex-1 items-center gap-3 p-3", title: downloadLabel, "aria-label": downloadLabel, children: [
841
- /* @__PURE__ */ jsx7("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-brand-500/10 text-brand-500", children: /* @__PURE__ */ jsx7(FileText, { size: 20, strokeWidth: 1.8 }) }),
855
+ /* @__PURE__ */ jsx7(
856
+ "span",
857
+ {
858
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg text-[10px] font-bold tracking-wide text-white",
859
+ style: { background: KIND_COLORS[type] ?? "#6B7280" },
860
+ "aria-hidden": true,
861
+ children: type === "Archivo" ? /* @__PURE__ */ jsx7(FileText, { size: 20, strokeWidth: 1.8 }) : type
862
+ }
863
+ ),
842
864
  /* @__PURE__ */ jsxs5("span", { className: "min-w-0 flex-1", children: [
843
865
  /* @__PURE__ */ jsx7("span", { className: "block truncate text-sm font-medium text-dark", children: d.titulo || name }),
844
866
  /* @__PURE__ */ jsx7("span", { className: "block truncate text-xs text-metal", children: meta })
package/dist/styles.css CHANGED
@@ -32,8 +32,10 @@
32
32
  --text-3xl--line-height: calc(2.25 / 1.875);
33
33
  --font-weight-medium: 500;
34
34
  --font-weight-semibold: 600;
35
+ --font-weight-bold: 700;
35
36
  --font-weight-extrabold: 800;
36
37
  --tracking-tight: -0.025em;
38
+ --tracking-wide: 0.025em;
37
39
  --radius-md: calc(0.375 * var(--piloto-rem));
38
40
  --radius-lg: calc(0.5 * var(--piloto-rem));
39
41
  --radius-xl: calc(0.75 * var(--piloto-rem));
@@ -1089,6 +1091,10 @@
1089
1091
  --tw-leading: 1;
1090
1092
  line-height: 1;
1091
1093
  }
1094
+ .piloto .font-bold:not([data-piloto-isolate] *) {
1095
+ --tw-font-weight: var(--font-weight-bold);
1096
+ font-weight: var(--font-weight-bold);
1097
+ }
1092
1098
  .piloto .font-extrabold:not([data-piloto-isolate] *) {
1093
1099
  --tw-font-weight: var(--font-weight-extrabold);
1094
1100
  font-weight: var(--font-weight-extrabold);
@@ -1105,6 +1111,10 @@
1105
1111
  --tw-tracking: var(--tracking-tight);
1106
1112
  letter-spacing: var(--tracking-tight);
1107
1113
  }
1114
+ .piloto .tracking-wide:not([data-piloto-isolate] *) {
1115
+ --tw-tracking: var(--tracking-wide);
1116
+ letter-spacing: var(--tracking-wide);
1117
+ }
1108
1118
  .piloto .break-words:not([data-piloto-isolate] *) {
1109
1119
  overflow-wrap: break-word;
1110
1120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghostykit",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Ghosty Autopilot — the autopilot chat for your React app, on AG-UI: works with LangGraph, Mastra, CrewAI or any AG-UI agent. Streaming text, agent steps, human approval cards (interrupt/resume), attachments and voice.",
5
5
  "type": "module",
6
6
  "main": "./dist/core/index.js",