@apteva/apteva-kit 0.1.101 → 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 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2061,15 +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, "svg", { className: "w-12 h-12 sm:w-16 sm:h-16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2065
|
-
"path",
|
|
2066
|
-
{
|
|
2067
|
-
strokeLinecap: "round",
|
|
2068
|
-
strokeLinejoin: "round",
|
|
2069
|
-
strokeWidth: 1.5,
|
|
2070
|
-
d: "M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
2071
|
-
}
|
|
2072
|
-
) });
|
|
2073
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" }) });
|
|
2074
2065
|
function WelcomeScreen({
|
|
2075
2066
|
title,
|
|
@@ -2080,7 +2071,6 @@ function WelcomeScreen({
|
|
|
2080
2071
|
chatVariant = "default",
|
|
2081
2072
|
onPromptClick
|
|
2082
2073
|
}) {
|
|
2083
|
-
const WelcomeIcon = chatVariant === "terminal" ? TerminalIcon : DefaultIcon;
|
|
2084
2074
|
const normalizedPrompts = (prompts || []).map(
|
|
2085
2075
|
(p) => typeof p === "string" ? { text: p } : p
|
|
2086
2076
|
);
|
|
@@ -2088,7 +2078,7 @@ function WelcomeScreen({
|
|
|
2088
2078
|
const hasHeader = title || subtitle || icon;
|
|
2089
2079
|
if (!hasHeader && !hasPrompts) {
|
|
2090
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: [
|
|
2091
|
-
/* @__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, {}) }),
|
|
2092
2082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: "No messages yet. Start a conversation!" })
|
|
2093
2083
|
] }) });
|
|
2094
2084
|
}
|
|
@@ -2125,7 +2115,7 @@ function WelcomeScreen({
|
|
|
2125
2115
|
}
|
|
2126
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: [
|
|
2127
2117
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-center mb-6 sm:mb-8 max-w-md", children: [
|
|
2128
|
-
/* @__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, {}) }),
|
|
2129
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 }),
|
|
2130
2120
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400", children: subtitle })
|
|
2131
2121
|
] }),
|