ai-chatbot-widget 0.0.7 → 0.0.9
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/chatbot-widget.es.js +8 -8
- package/dist/chatbot-widget.iife.js +37 -37
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -10397,13 +10397,13 @@ const zg = [
|
|
|
10397
10397
|
headerLogoIcon: "text-white",
|
|
10398
10398
|
messageBot: "bg-gradient-to-r from-purple-500 to-pink-500 text-white",
|
|
10399
10399
|
messageUser: "bg-black/80 text-white",
|
|
10400
|
-
input: "
|
|
10400
|
+
input: "placeholder-slate-400",
|
|
10401
10401
|
sendButton: "text-purple-500",
|
|
10402
10402
|
prompt: "bg-gradient-to-br from-black/80 to-black/90 text-white"
|
|
10403
10403
|
}
|
|
10404
10404
|
}, cl = (c, u) => wg[c][u] ?? "";
|
|
10405
10405
|
function Dg({ setIsOpen: c, theme: u }) {
|
|
10406
|
-
return /* @__PURE__ */ J.jsxs("div", { className: `bg-gradient-to-r ${cl(u, "header")} p-4 flex items-center justify-between`, children: [
|
|
10406
|
+
return /* @__PURE__ */ J.jsxs("div", { className: `widget-header bg-gradient-to-r ${cl(u, "header")} p-4 flex items-center justify-between`, children: [
|
|
10407
10407
|
/* @__PURE__ */ J.jsxs("div", { className: "flex items-center space-x-3", children: [
|
|
10408
10408
|
/* @__PURE__ */ J.jsx("div", { className: `w-10 h-10 ${cl(u, "headerLogoBg")} rounded-full flex items-center justify-center`, children: /* @__PURE__ */ J.jsx(dr, { className: `w-6 h-6 ${cl(u, "headerLogoIcon")}` }) }),
|
|
10409
10409
|
/* @__PURE__ */ J.jsxs("div", { children: [
|
|
@@ -12034,7 +12034,7 @@ function my() {
|
|
|
12034
12034
|
return /* @__PURE__ */ J.jsx("div", { className: "absolute -top-2 -left-2 w-6 h-6 bg-gradient-to-r from-pink-500 to-red-500 rounded-full flex items-center justify-center animate-pulse", children: /* @__PURE__ */ J.jsx("span", { className: "text-white text-xs font-bold", children: "1" }) });
|
|
12035
12035
|
}
|
|
12036
12036
|
function gy({ inputValue: c, setInputValue: u, handleSendMessage: s, handleKeyPress: r, theme: f }) {
|
|
12037
|
-
return /* @__PURE__ */ J.jsx("div", { className: "p-4 border-t border-purple-500/20", children: /* @__PURE__ */ J.jsxs("div", { className: "flex space-x-2", children: [
|
|
12037
|
+
return /* @__PURE__ */ J.jsx("div", { className: "p-4 border-t border-purple-500/20 chatbot-input", children: /* @__PURE__ */ J.jsxs("div", { className: "flex space-x-2", children: [
|
|
12038
12038
|
/* @__PURE__ */ J.jsx(
|
|
12039
12039
|
"textarea",
|
|
12040
12040
|
{
|
|
@@ -12042,7 +12042,7 @@ function gy({ inputValue: c, setInputValue: u, handleSendMessage: s, handleKeyPr
|
|
|
12042
12042
|
onChange: (h) => u(h.target.value),
|
|
12043
12043
|
onKeyPress: r,
|
|
12044
12044
|
placeholder: "Type your message...",
|
|
12045
|
-
className: `flex-1
|
|
12045
|
+
className: `flex-1 ${cl(f, "input")} rounded-xl px-4 py-2 transition-all`
|
|
12046
12046
|
}
|
|
12047
12047
|
),
|
|
12048
12048
|
/* @__PURE__ */ J.jsx(
|
|
@@ -12060,10 +12060,10 @@ function yy({ setIsOpen: c, isOpen: u }) {
|
|
|
12060
12060
|
"button",
|
|
12061
12061
|
{
|
|
12062
12062
|
onClick: () => c(!u),
|
|
12063
|
-
className: `
|
|
12064
|
-
w-14 h-14
|
|
12065
|
-
rounded-full shadow-2xl
|
|
12066
|
-
transition-all duration-300 transform
|
|
12063
|
+
className: `chatbot-open-btn
|
|
12064
|
+
w-14 h-14
|
|
12065
|
+
rounded-full shadow-2xl items-center justify-center text-white
|
|
12066
|
+
transition-all duration-300 transform active:scale-90 cursor-pointer
|
|
12067
12067
|
${u ? "rotate-180" : "rotate-0"}
|
|
12068
12068
|
`,
|
|
12069
12069
|
style: {
|