@apteva/apteva-kit 0.1.100 → 0.1.102
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 +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2061,7 +2061,6 @@ var DefaultIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { cl
|
|
|
2061
2061
|
d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
2062
2062
|
}
|
|
2063
2063
|
) });
|
|
2064
|
-
var TerminalIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-4xl sm:text-5xl font-mono font-semibold text-neutral-400 dark:text-neutral-500 mb-2", children: ">_" });
|
|
2065
2064
|
var ArrowIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 7l5 5m0 0l-5 5m5-5H6" }) });
|
|
2066
2065
|
function WelcomeScreen({
|
|
2067
2066
|
title,
|
|
@@ -2072,7 +2071,6 @@ function WelcomeScreen({
|
|
|
2072
2071
|
chatVariant = "default",
|
|
2073
2072
|
onPromptClick
|
|
2074
2073
|
}) {
|
|
2075
|
-
const WelcomeIcon = chatVariant === "terminal" ? TerminalIcon : DefaultIcon;
|
|
2076
2074
|
const normalizedPrompts = (prompts || []).map(
|
|
2077
2075
|
(p) => typeof p === "string" ? { text: p } : p
|
|
2078
2076
|
);
|
|
@@ -2080,7 +2078,7 @@ function WelcomeScreen({
|
|
|
2080
2078
|
const hasHeader = title || subtitle || icon;
|
|
2081
2079
|
if (!hasHeader && !hasPrompts) {
|
|
2082
2080
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center space-y-2", children: [
|
|
2083
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2081
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DefaultIcon, {}) }),
|
|
2084
2082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: "No messages yet. Start a conversation!" })
|
|
2085
2083
|
] }) });
|
|
2086
2084
|
}
|
|
@@ -2117,7 +2115,7 @@ function WelcomeScreen({
|
|
|
2117
2115
|
}
|
|
2118
2116
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8", children: [
|
|
2119
2117
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center mb-6 sm:mb-8 max-w-md", children: [
|
|
2120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center", children: icon || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center", children: icon || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DefaultIcon, {}) }),
|
|
2121
2119
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2", children: title }),
|
|
2122
2120
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400", children: subtitle })
|
|
2123
2121
|
] }),
|