@apteva/apteva-kit 0.1.116 → 0.1.117

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.js CHANGED
@@ -4380,6 +4380,7 @@ var Chat = _react.forwardRef.call(void 0, function Chat2({
4380
4380
  onToolResult,
4381
4381
  // UI
4382
4382
  variant = "default",
4383
+ theme,
4383
4384
  placeholder,
4384
4385
  showHeader = true,
4385
4386
  headerTitle = "Chat",
@@ -5008,7 +5009,7 @@ ${planToExecute}`;
5008
5009
  setCurrentRequestId(null);
5009
5010
  };
5010
5011
  const isCompact = commandVariant === "compact";
5011
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("apteva-chat flex flex-col h-full", variant !== "default" && `apteva-chat-${variant}`, className), children: [
5012
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cn("apteva-chat flex flex-col h-full", variant !== "default" && `apteva-chat-${variant}`, theme === "dark" && "dark", className), children: [
5012
5013
  showHeader && mode === "chat" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "apteva-chat-header px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
5013
5014
  onHeaderBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { onClick: onHeaderBack, className: "apteva-chat-back", style: { flexShrink: 0 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 12L6 8l4-4" }) }) }),
5014
5015
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [