@alquimia-ai/ui 1.9.0 → 1.9.1
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/components/organisms/index.js +30 -32
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +30 -32
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/index.js +30 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2953,44 +2953,42 @@ var AssistantInput = React34.forwardRef(
|
|
|
2953
2953
|
...props,
|
|
2954
2954
|
children: [
|
|
2955
2955
|
attachmentsSlot,
|
|
2956
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.
|
|
2956
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2957
|
+
"textarea",
|
|
2958
|
+
{
|
|
2959
|
+
disabled: isButtonDisabled,
|
|
2960
|
+
value: input,
|
|
2961
|
+
onChange: handleInputChange,
|
|
2962
|
+
placeholder,
|
|
2963
|
+
className: cn(
|
|
2964
|
+
"flex-1 min-w-0 text-sm p-3 focus:outline-none w-full resize-none",
|
|
2965
|
+
"bg-transparent text-foreground",
|
|
2966
|
+
"placeholder:text-muted-foreground",
|
|
2967
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
2968
|
+
),
|
|
2969
|
+
onKeyDown: (e) => {
|
|
2970
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
2971
|
+
e.preventDefault();
|
|
2972
|
+
sendMessageFunc(e);
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
),
|
|
2977
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center relative alq--assistant-actions", children: [
|
|
2978
|
+
userToolboxComponent,
|
|
2979
|
+
speechToTextComponent,
|
|
2957
2980
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2958
|
-
"
|
|
2981
|
+
"button",
|
|
2959
2982
|
{
|
|
2983
|
+
type: "submit",
|
|
2960
2984
|
disabled: isButtonDisabled,
|
|
2961
|
-
value: input,
|
|
2962
|
-
onChange: handleInputChange,
|
|
2963
|
-
placeholder,
|
|
2964
2985
|
className: cn(
|
|
2965
|
-
"
|
|
2966
|
-
"bg-
|
|
2967
|
-
"placeholder:text-muted-foreground",
|
|
2968
|
-
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
2986
|
+
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
2987
|
+
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
2969
2988
|
),
|
|
2970
|
-
|
|
2971
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
2972
|
-
e.preventDefault();
|
|
2973
|
-
sendMessageFunc(e);
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
2989
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react15.Send, { className: "w-5 h-5" })
|
|
2976
2990
|
}
|
|
2977
|
-
)
|
|
2978
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative alq--assistant-actions", children: [
|
|
2979
|
-
userToolboxComponent && userToolboxComponent,
|
|
2980
|
-
speechToTextComponent && speechToTextComponent,
|
|
2981
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2982
|
-
"button",
|
|
2983
|
-
{
|
|
2984
|
-
type: "submit",
|
|
2985
|
-
disabled: isButtonDisabled,
|
|
2986
|
-
className: cn(
|
|
2987
|
-
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
2988
|
-
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
2989
|
-
),
|
|
2990
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react15.Send, { className: "w-5 h-5" })
|
|
2991
|
-
}
|
|
2992
|
-
)
|
|
2993
|
-
] })
|
|
2991
|
+
)
|
|
2994
2992
|
] })
|
|
2995
2993
|
]
|
|
2996
2994
|
}
|