@apteva/apteva-kit 0.1.11 → 0.1.12

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
@@ -668,14 +668,14 @@ function MarkdownContent({ content, className = "" }) {
668
668
  // src/components/Chat/ToolCall.tsx
669
669
  import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
670
670
  function ToolCall({ name, status }) {
671
- return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2 py-2 px-3 my-2 rounded-lg bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-sm", children: [
672
- status === "running" && /* @__PURE__ */ jsx7("div", { className: "w-2 h-2 rounded-full bg-blue-500 animate-pulse" }),
673
- status === "completed" && /* @__PURE__ */ jsx7("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
674
- status === "error" && /* @__PURE__ */ jsx7("div", { className: "w-2 h-2 rounded-full bg-red-500" }),
675
- /* @__PURE__ */ jsx7("span", { className: "text-gray-700 dark:text-gray-300 font-mono", children: name }),
676
- status === "running" && /* @__PURE__ */ jsx7("span", { className: "text-gray-500 dark:text-gray-400 ml-auto", children: "Running..." }),
677
- status === "completed" && /* @__PURE__ */ jsx7("span", { className: "text-green-600 dark:text-green-400 ml-auto", children: "Completed" }),
678
- status === "error" && /* @__PURE__ */ jsx7("span", { className: "text-red-600 dark:text-red-400 ml-auto", children: "Error" })
671
+ return /* @__PURE__ */ jsxs5("div", { className: "apteva-tool-call", children: [
672
+ status === "running" && /* @__PURE__ */ jsx7("div", { className: "apteva-tool-call-dot apteva-tool-call-dot-running" }),
673
+ status === "completed" && /* @__PURE__ */ jsx7("div", { className: "apteva-tool-call-dot apteva-tool-call-dot-completed" }),
674
+ status === "error" && /* @__PURE__ */ jsx7("div", { className: "apteva-tool-call-dot apteva-tool-call-dot-error" }),
675
+ /* @__PURE__ */ jsx7("span", { className: "apteva-tool-call-name", children: name }),
676
+ status === "running" && /* @__PURE__ */ jsx7("span", { className: "apteva-tool-call-status", children: "Running..." }),
677
+ status === "completed" && /* @__PURE__ */ jsx7("span", { className: "apteva-tool-call-status apteva-tool-call-status-completed", children: "Completed" }),
678
+ status === "error" && /* @__PURE__ */ jsx7("span", { className: "apteva-tool-call-status apteva-tool-call-status-error", children: "Error" })
679
679
  ] });
680
680
  }
681
681