@windrun-huaiin/third-ui 5.11.1 → 5.11.3
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/main/index.js
CHANGED
|
@@ -6292,10 +6292,10 @@ function AIPromptTextarea({
|
|
|
6292
6292
|
}
|
|
6293
6293
|
};
|
|
6294
6294
|
const renderTitle = () => {
|
|
6295
|
-
if (title == null ? void 0 : title.trim()) return null;
|
|
6295
|
+
if (!(title == null ? void 0 : title.trim())) return null;
|
|
6296
6296
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "space-y-1", children: [
|
|
6297
6297
|
title && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-xl font-semibold text-foreground", children: title }),
|
|
6298
|
-
(description == null ? void 0 : description.trim()) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm text-gray-400 ml-
|
|
6298
|
+
(description == null ? void 0 : description.trim()) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm text-gray-400 ml-2", children: description })
|
|
6299
6299
|
] });
|
|
6300
6300
|
};
|
|
6301
6301
|
const renderTextarea = (isEmbedded = false) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
@@ -6307,7 +6307,11 @@ function AIPromptTextarea({
|
|
|
6307
6307
|
onPaste: handlePaste,
|
|
6308
6308
|
placeholder,
|
|
6309
6309
|
disabled,
|
|
6310
|
-
className:
|
|
6310
|
+
className: cn(
|
|
6311
|
+
"w-full p-4 bg-transparent transition-colors text-foreground placeholder-muted-foreground placeholder:text-base disabled:bg-muted disabled:cursor-not-allowed resize-none",
|
|
6312
|
+
isEmbedded ? "border-0 hover:border-2 hover:border-purple-500 focus:border-2 focus:border-purple-500" : "border-2 border-border rounded-lg hover:border-purple-500 focus:border-purple-500",
|
|
6313
|
+
className
|
|
6314
|
+
),
|
|
6311
6315
|
style: { minHeight: `${minHeight}px` }
|
|
6312
6316
|
}
|
|
6313
6317
|
);
|