@axos-web-dev/shared-components 1.0.100-dev.2 → 1.0.100-dev.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/Chatbot/Bubble.css.d.ts +1 -0
- package/dist/Chatbot/Bubble.css.js +3 -1
- package/dist/Chatbot/Bubble.js +68 -16
- package/dist/Chatbot/ChatWindow.css.d.ts +3 -0
- package/dist/Chatbot/ChatWindow.css.js +12 -6
- package/dist/Chatbot/ChatWindow.js +29 -23
- package/dist/Chatbot/Chatbot.css.d.ts +2 -1
- package/dist/Chatbot/Chatbot.css.js +4 -2
- package/dist/Chatbot/Chatbot.d.ts +5 -1
- package/dist/Chatbot/Chatbot.js +5 -5
- package/dist/Chatbot/index.js +9 -4
- package/dist/assets/Chatbot/Bubble.css +11 -0
- package/dist/assets/Chatbot/ChatWindow.css +62 -12
- package/dist/main.js +9 -4
- package/package.json +1 -1
package/dist/Chatbot/Bubble.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { bubbleWrapper } from "./Bubble.css.js";
|
|
3
|
+
import { bubbleWrapper, svgFill } from "./Bubble.css.js";
|
|
4
4
|
import { useOpenChat } from "./store/chat.js";
|
|
5
5
|
import { AnimatePresence, motion } from "framer-motion";
|
|
6
6
|
const Bubble = ({ children }) => {
|
|
7
7
|
const isOpen = useOpenChat((state) => state.isOpen);
|
|
8
8
|
const toggle = useOpenChat((state) => state.toggle);
|
|
9
9
|
return /* @__PURE__ */ jsxs("div", { className: bubbleWrapper, onClick: toggle, children: [
|
|
10
|
-
/* @__PURE__ */ jsx("div", { className: "bubble-circle", children: /* @__PURE__ */ jsx(AnimatePresence, { children: !isOpen ? /* @__PURE__ */
|
|
11
|
-
motion.
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: "bubble-circle flex", children: /* @__PURE__ */ jsx(AnimatePresence, { children: !isOpen ? /* @__PURE__ */ jsxs(
|
|
11
|
+
motion.svg,
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
height:
|
|
16
|
-
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
width: "39",
|
|
15
|
+
height: "39",
|
|
16
|
+
viewBox: "0 0 39 39",
|
|
17
|
+
fill: "none",
|
|
17
18
|
initial: { scale: 0.1, opacity: 0 },
|
|
18
19
|
animate: {
|
|
19
20
|
scale: 1,
|
|
@@ -22,22 +23,73 @@ const Bubble = ({ children }) => {
|
|
|
22
23
|
default: { type: "spring" },
|
|
23
24
|
opacity: { ease: [0, 0.71, 0.2, 1.01] }
|
|
24
25
|
}
|
|
25
|
-
}
|
|
26
|
+
},
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
className: svgFill,
|
|
32
|
+
d: "M3 7.5C3 5.01472 5.01472 3 7.5 3H22.5V0H7.5C3.35786 0 0 3.35786 0 7.5V16.5H3V7.5Z",
|
|
33
|
+
fill: "#98DDFF"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
className: svgFill,
|
|
40
|
+
"fill-rule": "evenodd",
|
|
41
|
+
"clip-rule": "evenodd",
|
|
42
|
+
d: "M13.5 30H12C8.68629 30 6 27.3137 6 24V12C6 8.68629 8.68629 6 12 6H33C36.3137 6 39 8.68629 39 12V24C39 27.3137 36.3137 30 33 30H26.25L18.6213 37.6287C16.7314 39.5186 13.5 38.1801 13.5 35.5074V30ZM16.5 35.5074V27H12C10.3431 27 9 25.6569 9 24V12C9 10.3431 10.3431 9 12 9H33C34.6569 9 36 10.3431 36 12V24C36 25.6569 34.6569 27 33 27H25.0074L16.5 35.5074Z",
|
|
43
|
+
fill: "#98DDFF"
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
]
|
|
26
47
|
}
|
|
27
|
-
) : /* @__PURE__ */ jsx("span", { className: "close-icon", children: /* @__PURE__ */
|
|
28
|
-
motion.
|
|
48
|
+
) : /* @__PURE__ */ jsx("span", { className: "close-icon", children: /* @__PURE__ */ jsxs(
|
|
49
|
+
motion.svg,
|
|
29
50
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
+
width: "24",
|
|
53
|
+
height: "24",
|
|
54
|
+
viewBox: "0 0 24 24",
|
|
55
|
+
fill: "none",
|
|
56
|
+
initial: { opacity: 0, rotate: 0, scale: 0.1 },
|
|
33
57
|
animate: {
|
|
34
58
|
opacity: 1,
|
|
35
|
-
rotate: -
|
|
59
|
+
rotate: -360,
|
|
60
|
+
scale: 1,
|
|
36
61
|
transition: {
|
|
37
62
|
default: { type: "spring" },
|
|
38
|
-
opacity: { ease: "linear" }
|
|
63
|
+
opacity: { ease: "linear" },
|
|
64
|
+
scale: { ease: "linear" }
|
|
39
65
|
}
|
|
40
|
-
}
|
|
66
|
+
},
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
className: svgFill,
|
|
72
|
+
d: "M23.7096 0.892655L23.1073 0.290383C22.7202 -0.0967942 22.0749 -0.0967942 21.6447 0.290383L13.6 8.33506L15.6649 10.4L23.7096 2.35533C24.0968 1.92513 24.0968 1.27983 23.7096 0.892655Z",
|
|
73
|
+
fill: "#98DDFF"
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
"path",
|
|
78
|
+
{
|
|
79
|
+
className: svgFill,
|
|
80
|
+
d: "M2.44278 0.293744C2.04123 -0.0979148 1.37197 -0.0979148 0.925804 0.293744L0.301162 0.902989C-0.100387 1.29465 -0.100387 1.94742 0.301162 2.38259L10.1168 12L0.301162 21.6174C-0.100387 22.0091 -0.100387 22.6618 0.301162 23.097L0.925804 23.7063C1.32735 24.0979 1.99661 24.0979 2.44278 23.7063L14.4 12.0435L2.44278 0.293744Z",
|
|
81
|
+
fill: "#98DDFF"
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ jsx(
|
|
85
|
+
"path",
|
|
86
|
+
{
|
|
87
|
+
className: svgFill,
|
|
88
|
+
d: "M23.7096 23.1073L23.1073 23.7096C22.7202 24.0968 22.0749 24.0968 21.6447 23.7096L13.6 15.6649L15.6649 13.6L23.7096 21.6446C24.0968 22.0748 24.0968 22.7201 23.7096 23.1073Z",
|
|
89
|
+
fill: "#98DDFF"
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
]
|
|
41
93
|
}
|
|
42
94
|
) }) }) }),
|
|
43
95
|
children
|
|
@@ -3,9 +3,12 @@ export declare const windowOpenStyle: string;
|
|
|
3
3
|
export declare const windowBarStyle: string;
|
|
4
4
|
export declare const chat_title: string;
|
|
5
5
|
export declare const button_reset: string;
|
|
6
|
+
export declare const arrowFill: string;
|
|
6
7
|
export declare const inputStyle: string;
|
|
7
8
|
export declare const sendButtonStyle: string;
|
|
8
9
|
export declare const messagesContainerStyle: string;
|
|
9
10
|
export declare const notificationStyle: string;
|
|
10
11
|
export declare const messageStyle: string;
|
|
11
12
|
export declare const inline_button_wrapper: string;
|
|
13
|
+
export declare const inline_button: string;
|
|
14
|
+
export declare const endChatButtonStyle: string;
|
|
@@ -4,15 +4,21 @@ var windowOpenStyle = "_13n1jqk1";
|
|
|
4
4
|
var windowBarStyle = "_13n1jqk2";
|
|
5
5
|
var chat_title = "_13n1jqk3";
|
|
6
6
|
var button_reset = "_13n1jqk4";
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
7
|
+
var arrowFill = "_13n1jqk5";
|
|
8
|
+
var inputStyle = "_13n1jqk6";
|
|
9
|
+
var sendButtonStyle = "_13n1jqk7";
|
|
10
|
+
var messagesContainerStyle = "_13n1jqk8";
|
|
11
|
+
var notificationStyle = "_13n1jqk9";
|
|
12
|
+
var messageStyle = "_13n1jqka";
|
|
13
|
+
var inline_button_wrapper = "_13n1jqkb";
|
|
14
|
+
var inline_button = "_13n1jqkc";
|
|
15
|
+
var endChatButtonStyle = "_13n1jqkd";
|
|
13
16
|
export {
|
|
17
|
+
arrowFill,
|
|
14
18
|
button_reset,
|
|
15
19
|
chat_title,
|
|
20
|
+
endChatButtonStyle,
|
|
21
|
+
inline_button,
|
|
16
22
|
inline_button_wrapper,
|
|
17
23
|
inputStyle,
|
|
18
24
|
messageStyle,
|
|
@@ -5,7 +5,7 @@ import React, { useRef, useEffect, Fragment } from "react";
|
|
|
5
5
|
import ReactMarkdown from "react-markdown";
|
|
6
6
|
import remarkGfm from "remark-gfm";
|
|
7
7
|
import { useOpenChat } from "./store/chat.js";
|
|
8
|
-
import { windowBarStyle, chat_title, button_reset, notificationStyle, messageStyle, inline_button_wrapper, messagesContainerStyle, inputStyle, sendButtonStyle, windowStyle, windowOpenStyle } from "./ChatWindow.css.js";
|
|
8
|
+
import { windowBarStyle, chat_title, button_reset, arrowFill, notificationStyle, messageStyle, inline_button_wrapper, inline_button, endChatButtonStyle, messagesContainerStyle, inputStyle, sendButtonStyle, windowStyle, windowOpenStyle } from "./ChatWindow.css.js";
|
|
9
9
|
const ChatWindow = ({
|
|
10
10
|
messages,
|
|
11
11
|
status = "connected",
|
|
@@ -29,6 +29,10 @@ const ChatWindow = ({
|
|
|
29
29
|
setInput("");
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
const project = process.env.CCAI_PROJECT_ID;
|
|
33
|
+
const isAxos = project === "axos";
|
|
34
|
+
const endUserBg = isAxos ? "#14263d" : "#323339";
|
|
35
|
+
const chatbotBg = isAxos ? "#E9F8FF" : "#EAE8E8";
|
|
32
36
|
return /* @__PURE__ */ jsxs("div", { className: clsx(windowStyle, isOpen && windowOpenStyle), children: [
|
|
33
37
|
/* @__PURE__ */ jsxs("div", { className: windowBarStyle, children: [
|
|
34
38
|
/* @__PURE__ */ jsxs("div", { className: "flex middle", style: { paddingBlock: "6px" }, children: [
|
|
@@ -51,12 +55,21 @@ const ChatWindow = ({
|
|
|
51
55
|
"aria-label": "Close chat",
|
|
52
56
|
title: "Close",
|
|
53
57
|
children: /* @__PURE__ */ jsx(
|
|
54
|
-
"
|
|
58
|
+
"svg",
|
|
55
59
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61
|
+
width: "24",
|
|
62
|
+
height: "24",
|
|
63
|
+
viewBox: "0 0 24 24",
|
|
64
|
+
fill: "none",
|
|
65
|
+
children: /* @__PURE__ */ jsx(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
className: arrowFill,
|
|
69
|
+
d: "M2.46875 7.76574L11.9991 17.2961L21.5294 7.76574L20.4687 6.70508L11.9991 15.1749L3.52941 6.70508L2.46875 7.76574Z",
|
|
70
|
+
fill: "#98DDFF"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
60
73
|
}
|
|
61
74
|
)
|
|
62
75
|
}
|
|
@@ -81,7 +94,7 @@ const ChatWindow = ({
|
|
|
81
94
|
style: {
|
|
82
95
|
textAlign: msg.$userType == "end_user" ? "right" : "left",
|
|
83
96
|
alignSelf: msg.$userType == "end_user" ? "flex-end" : "flex-start",
|
|
84
|
-
background: msg.$userType == "end_user" ?
|
|
97
|
+
background: msg.$userType == "end_user" ? endUserBg : chatbotBg,
|
|
85
98
|
color: msg.$userType == "end_user" ? "#fff" : "#1F1F1F",
|
|
86
99
|
boxShadow: msg.$userType == "end_user" ? "0 1px 4px #b3e0ff55" : void 0
|
|
87
100
|
},
|
|
@@ -100,7 +113,13 @@ const ChatWindow = ({
|
|
|
100
113
|
{
|
|
101
114
|
remarkPlugins: [[remarkGfm, { singleTilde: false }]],
|
|
102
115
|
components: {
|
|
103
|
-
p: ({ ...props }) => /* @__PURE__ */ jsx(
|
|
116
|
+
p: ({ ...props }) => /* @__PURE__ */ jsx(
|
|
117
|
+
"p",
|
|
118
|
+
{
|
|
119
|
+
style: { margin: 0, fontSize: "inherit" },
|
|
120
|
+
...props
|
|
121
|
+
}
|
|
122
|
+
)
|
|
104
123
|
},
|
|
105
124
|
children: msg.content
|
|
106
125
|
}
|
|
@@ -117,11 +136,8 @@ const ChatWindow = ({
|
|
|
117
136
|
return /* @__PURE__ */ jsx(
|
|
118
137
|
"button",
|
|
119
138
|
{
|
|
139
|
+
className: inline_button,
|
|
120
140
|
style: {
|
|
121
|
-
fontSize: 12,
|
|
122
|
-
textAlign: "left",
|
|
123
|
-
background: "#fff",
|
|
124
|
-
color: "#1e3860",
|
|
125
141
|
borderRadius: "0px",
|
|
126
142
|
borderTopLeftRadius: [0].includes(index) ? 8 : 0,
|
|
127
143
|
borderTopRightRadius: [0].includes(index) ? 8 : 0,
|
|
@@ -136,17 +152,7 @@ const ChatWindow = ({
|
|
|
136
152
|
index
|
|
137
153
|
);
|
|
138
154
|
}) }),
|
|
139
|
-
msg.event == "chatEnded" && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
140
|
-
"button",
|
|
141
|
-
{
|
|
142
|
-
style: {
|
|
143
|
-
fontSize: 12,
|
|
144
|
-
textAlign: "center"
|
|
145
|
-
},
|
|
146
|
-
onClick: endChat,
|
|
147
|
-
children: "End Chat"
|
|
148
|
-
}
|
|
149
|
-
) })
|
|
155
|
+
msg.event == "chatEnded" && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: endChat, children: "End Chat" }) })
|
|
150
156
|
] }, msg.$index)),
|
|
151
157
|
/* @__PURE__ */ jsx("div", { ref: messagesEndRef })
|
|
152
158
|
] }),
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const chatbotAXB: string;
|
|
2
|
+
export declare const chatbotUFB: string;
|
package/dist/Chatbot/Chatbot.js
CHANGED
|
@@ -6,7 +6,8 @@ import { ChatWindow } from "./ChatWindow.js";
|
|
|
6
6
|
import { useOpenChat } from "./store/chat.js";
|
|
7
7
|
import { useMessages } from "./store/messages.js";
|
|
8
8
|
import { useHeadlessChat } from "./useHeadlessChat.js";
|
|
9
|
-
|
|
9
|
+
import { chatbotUFB, chatbotAXB } from "./Chatbot.css.js";
|
|
10
|
+
const Chatbot = (props) => {
|
|
10
11
|
const messages = useMessages((state) => state.messages);
|
|
11
12
|
const close = useOpenChat((state) => state.close);
|
|
12
13
|
const { status, sendMessage } = useHeadlessChat({
|
|
@@ -14,12 +15,11 @@ const Chatbot = () => {
|
|
|
14
15
|
tenant: process.env.CCAI_TENANT_NAME || "",
|
|
15
16
|
host: process.env.CCAI_HOST || "",
|
|
16
17
|
// or your region
|
|
17
|
-
projectId: process.env.CCAI_PROJECT_ID || "axos",
|
|
18
|
-
// replace with your project id
|
|
18
|
+
projectId: process.env.CCAI_PROJECT_ID || props.project || "axos",
|
|
19
19
|
getToken: authenticate,
|
|
20
|
-
debug: process.env.NODE_ENV === "development"
|
|
20
|
+
debug: props.debug || process.env.NODE_ENV === "development"
|
|
21
21
|
});
|
|
22
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", { className: props.project === "ufb" ? chatbotUFB : chatbotAXB, children: [
|
|
23
23
|
/* @__PURE__ */ jsx(Bubble, {}),
|
|
24
24
|
/* @__PURE__ */ jsx(
|
|
25
25
|
ChatWindow,
|
package/dist/Chatbot/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Bubble } from "./Bubble.js";
|
|
3
|
-
import { bubbleWrapper } from "./Bubble.css.js";
|
|
3
|
+
import { bubbleWrapper, svgFill } from "./Bubble.css.js";
|
|
4
4
|
import { Chatbot } from "./Chatbot.js";
|
|
5
|
-
import {
|
|
5
|
+
import { chatbotAXB, chatbotUFB } from "./Chatbot.css.js";
|
|
6
6
|
import { ChatWindow } from "./ChatWindow.js";
|
|
7
|
-
import { button_reset, chat_title, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
|
|
7
|
+
import { arrowFill, button_reset, chat_title, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
|
|
8
8
|
import { useOpenChat } from "./store/chat.js";
|
|
9
9
|
import { useMessages } from "./store/messages.js";
|
|
10
10
|
import { useHeadlessChat } from "./useHeadlessChat.js";
|
|
@@ -12,16 +12,21 @@ export {
|
|
|
12
12
|
Bubble,
|
|
13
13
|
ChatWindow,
|
|
14
14
|
Chatbot,
|
|
15
|
+
arrowFill,
|
|
15
16
|
bubbleWrapper,
|
|
16
17
|
button_reset,
|
|
17
18
|
chat_title,
|
|
18
|
-
|
|
19
|
+
chatbotAXB,
|
|
20
|
+
chatbotUFB,
|
|
21
|
+
endChatButtonStyle,
|
|
22
|
+
inline_button,
|
|
19
23
|
inline_button_wrapper,
|
|
20
24
|
inputStyle,
|
|
21
25
|
messageStyle,
|
|
22
26
|
messagesContainerStyle,
|
|
23
27
|
notificationStyle,
|
|
24
28
|
sendButtonStyle,
|
|
29
|
+
svgFill,
|
|
25
30
|
useHeadlessChat,
|
|
26
31
|
useMessages,
|
|
27
32
|
useOpenChat,
|
|
@@ -37,4 +37,15 @@
|
|
|
37
37
|
right: 16px;
|
|
38
38
|
width: 68px;
|
|
39
39
|
z-index: 9999;
|
|
40
|
+
}
|
|
41
|
+
._1hpv6vm1 ._7u9pv30 {
|
|
42
|
+
animation: fade-in-bounce 2s cubic-bezier(0.65, 0.25, 0.14, 0.93) forwards;
|
|
43
|
+
background-color: #60707A;
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
._7u9pv31 {
|
|
47
|
+
fill: #98DDFF;
|
|
48
|
+
}
|
|
49
|
+
._1hpv6vm1 ._7u9pv31 {
|
|
50
|
+
fill: #FFFFFF;
|
|
40
51
|
}
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
min-height: 50px;
|
|
31
31
|
padding-inline: 18px;
|
|
32
32
|
}
|
|
33
|
+
._1hpv6vm1 ._13n1jqk2 {
|
|
34
|
+
background-color: #60707A;
|
|
35
|
+
}
|
|
33
36
|
._13n1jqk3 {
|
|
34
37
|
color: #FFF;
|
|
35
38
|
font: 700 18px/1.5 var(--header-font-family);
|
|
@@ -44,6 +47,12 @@
|
|
|
44
47
|
padding: 0;
|
|
45
48
|
}
|
|
46
49
|
._13n1jqk5 {
|
|
50
|
+
fill: #98DDFF;
|
|
51
|
+
}
|
|
52
|
+
._1hpv6vm1 ._13n1jqk5 {
|
|
53
|
+
fill: #FFFFFF;
|
|
54
|
+
}
|
|
55
|
+
._13n1jqk6 {
|
|
47
56
|
border: none;
|
|
48
57
|
color: #1F1F1F;
|
|
49
58
|
flex: 1;
|
|
@@ -53,25 +62,37 @@
|
|
|
53
62
|
outline: none;
|
|
54
63
|
padding: 20px 0 20px 20px;
|
|
55
64
|
}
|
|
56
|
-
.
|
|
65
|
+
._13n1jqk6::placeholder {
|
|
57
66
|
color: rgba(31,31,31,.38);
|
|
58
67
|
}
|
|
59
|
-
._13n1jqk6 {
|
|
68
|
+
._1hpv6vm1 ._13n1jqk6 {
|
|
69
|
+
font-family: var(--main-font-family);
|
|
70
|
+
}
|
|
71
|
+
._1hpv6vm1 ._13n1jqk6::placeholder {
|
|
72
|
+
color: rgba(31,31,31,.58);
|
|
73
|
+
}
|
|
74
|
+
._13n1jqk7 {
|
|
60
75
|
padding-inline: 20px;
|
|
61
76
|
background: #fafafa;
|
|
62
77
|
border: none;
|
|
63
78
|
}
|
|
64
|
-
.
|
|
79
|
+
._13n1jqk7:hover {
|
|
65
80
|
background: #E9F8FF;
|
|
66
81
|
cursor: pointer;
|
|
67
82
|
}
|
|
68
|
-
.
|
|
83
|
+
._1hpv6vm1 ._13n1jqk7:hover {
|
|
84
|
+
background: #eae8e8;
|
|
85
|
+
}
|
|
86
|
+
._13n1jqk7 svg {
|
|
69
87
|
fill: rgba(31,31,31,.38);
|
|
70
88
|
}
|
|
71
|
-
.
|
|
89
|
+
._13n1jqk7.active svg {
|
|
72
90
|
fill: #1e3860;
|
|
73
91
|
}
|
|
74
|
-
._13n1jqk7 {
|
|
92
|
+
._1hpv6vm1 ._13n1jqk7.active svg {
|
|
93
|
+
fill: #e18357;
|
|
94
|
+
}
|
|
95
|
+
._13n1jqk8 {
|
|
75
96
|
background: #f9f9f9;
|
|
76
97
|
display: flex;
|
|
77
98
|
flex: 1;
|
|
@@ -81,27 +102,56 @@
|
|
|
81
102
|
padding: 1rem;
|
|
82
103
|
scrollbar-color: #ccc transparent;
|
|
83
104
|
}
|
|
84
|
-
.
|
|
105
|
+
._13n1jqk9 {
|
|
85
106
|
color: #888;
|
|
86
107
|
font-size: 10px;
|
|
87
108
|
margin-bottom: 4px;
|
|
88
109
|
text-align: center;
|
|
89
110
|
}
|
|
90
|
-
.
|
|
111
|
+
._13n1jqka {
|
|
91
112
|
border-radius: 8px;
|
|
92
113
|
margin-bottom: 8px;
|
|
93
114
|
max-width: 93%;
|
|
94
115
|
padding: 8px 12px;
|
|
95
116
|
}
|
|
96
|
-
.
|
|
117
|
+
._13n1jqka ul {
|
|
97
118
|
padding-left: 24px;
|
|
98
119
|
}
|
|
99
|
-
.
|
|
120
|
+
._13n1jqkb {
|
|
100
121
|
border: 1px solid #ddd;
|
|
101
|
-
border-radius:
|
|
122
|
+
border-radius: 8px;
|
|
102
123
|
box-shadow: 0 1px 4px #b3e0ff55;
|
|
103
124
|
display: flex;
|
|
104
125
|
flex-direction: column;
|
|
105
126
|
margin-bottom: 8px;
|
|
106
|
-
|
|
127
|
+
}
|
|
128
|
+
._13n1jqkc {
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
text-align: left;
|
|
131
|
+
background: #fff;
|
|
132
|
+
color: #1e3860;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
}
|
|
135
|
+
._13n1jqkc:hover {
|
|
136
|
+
background: #f0f0f0;
|
|
137
|
+
}
|
|
138
|
+
._1hpv6vm1 ._13n1jqkc {
|
|
139
|
+
color: #323339;
|
|
140
|
+
}
|
|
141
|
+
._13n1jqkd {
|
|
142
|
+
background: #1e629a;
|
|
143
|
+
border: none;
|
|
144
|
+
color: #fff;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
padding: 6px 12px;
|
|
148
|
+
border-radius: 4px;
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
._13n1jqkd:hover {
|
|
152
|
+
opacity: 0.8;
|
|
153
|
+
}
|
|
154
|
+
._1hpv6vm1 ._13n1jqkd {
|
|
155
|
+
background: #e18357;
|
|
156
|
+
color: #323339;
|
|
107
157
|
}
|
package/dist/main.js
CHANGED
|
@@ -38,11 +38,11 @@ import { SummitApyCalculator } from "./Calculators/SummitApyCalculator/index.js"
|
|
|
38
38
|
import { CallToActionBar } from "./CallToActionBar/index.js";
|
|
39
39
|
import { Carousel, CarouselSlide } from "./Carousel/index.js";
|
|
40
40
|
import { Bubble } from "./Chatbot/Bubble.js";
|
|
41
|
-
import { bubbleWrapper } from "./Chatbot/Bubble.css.js";
|
|
41
|
+
import { bubbleWrapper, svgFill } from "./Chatbot/Bubble.css.js";
|
|
42
42
|
import { Chatbot } from "./Chatbot/Chatbot.js";
|
|
43
|
-
import {
|
|
43
|
+
import { chatbotAXB, chatbotUFB } from "./Chatbot/Chatbot.css.js";
|
|
44
44
|
import { ChatWindow } from "./Chatbot/ChatWindow.js";
|
|
45
|
-
import { button_reset, chat_title, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
|
|
45
|
+
import { arrowFill, button_reset, chat_title, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
|
|
46
46
|
import { useOpenChat } from "./Chatbot/store/chat.js";
|
|
47
47
|
import { useMessages } from "./Chatbot/store/messages.js";
|
|
48
48
|
import { useHeadlessChat } from "./Chatbot/useHeadlessChat.js";
|
|
@@ -411,6 +411,7 @@ export {
|
|
|
411
411
|
apply_now_form,
|
|
412
412
|
apy_billboard,
|
|
413
413
|
apy_table,
|
|
414
|
+
arrowFill,
|
|
414
415
|
associatedEmail,
|
|
415
416
|
award_company,
|
|
416
417
|
award_item,
|
|
@@ -457,7 +458,8 @@ export {
|
|
|
457
458
|
center_left,
|
|
458
459
|
center_right,
|
|
459
460
|
chat_title,
|
|
460
|
-
|
|
461
|
+
chatbotAXB,
|
|
462
|
+
chatbotUFB,
|
|
461
463
|
checkbox_group,
|
|
462
464
|
columnValues,
|
|
463
465
|
comparison,
|
|
@@ -484,6 +486,7 @@ export {
|
|
|
484
486
|
dp_input,
|
|
485
487
|
dropdown,
|
|
486
488
|
dynPH,
|
|
489
|
+
endChatButtonStyle,
|
|
487
490
|
error_alert,
|
|
488
491
|
error_alert_content,
|
|
489
492
|
error_close_button,
|
|
@@ -585,6 +588,7 @@ export {
|
|
|
585
588
|
image_inner_wrapper,
|
|
586
589
|
img_area,
|
|
587
590
|
img_contents,
|
|
591
|
+
inline_button,
|
|
588
592
|
inline_button_wrapper,
|
|
589
593
|
inline_container,
|
|
590
594
|
input,
|
|
@@ -706,6 +710,7 @@ export {
|
|
|
706
710
|
success_icon,
|
|
707
711
|
success_wrap,
|
|
708
712
|
supertag,
|
|
713
|
+
svgFill,
|
|
709
714
|
svg_fill,
|
|
710
715
|
svg_icon,
|
|
711
716
|
svg_logo,
|
package/package.json
CHANGED