@copilotkit/react-ui 0.15.0-alpha.0 → 0.15.0-alpha.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/.turbo/turbo-build.log +178 -95
- package/CHANGELOG.md +12 -1
- package/dist/chunk-47SYBLI2.mjs +110 -0
- package/dist/chunk-47SYBLI2.mjs.map +1 -0
- package/dist/chunk-6H3Y2XEI.mjs +56 -0
- package/dist/chunk-6H3Y2XEI.mjs.map +1 -0
- package/dist/chunk-7YXG7D47.mjs +191 -0
- package/dist/chunk-7YXG7D47.mjs.map +1 -0
- package/dist/{chunk-NMT7XT2R.mjs → chunk-C34L4AWW.mjs} +2 -2
- package/dist/chunk-C34L4AWW.mjs.map +1 -0
- package/dist/chunk-DN3OI5WF.mjs +72 -0
- package/dist/chunk-DN3OI5WF.mjs.map +1 -0
- package/dist/chunk-DPUPEOGG.mjs +14 -0
- package/dist/chunk-DPUPEOGG.mjs.map +1 -0
- package/dist/chunk-FZRTAML3.mjs +3 -0
- package/dist/chunk-GPEJCUWA.mjs +14 -0
- package/dist/chunk-GPEJCUWA.mjs.map +1 -0
- package/dist/chunk-NXWVWC33.mjs +117 -0
- package/dist/chunk-NXWVWC33.mjs.map +1 -0
- package/dist/chunk-P4GBO6MW.mjs +3 -0
- package/dist/chunk-P4GBO6MW.mjs.map +1 -0
- package/dist/chunk-QFASQEFJ.mjs +51 -0
- package/dist/chunk-QFASQEFJ.mjs.map +1 -0
- package/dist/chunk-UIRFLYXI.mjs +53 -0
- package/dist/chunk-UIRFLYXI.mjs.map +1 -0
- package/dist/chunk-WB3YULQ4.mjs +3 -0
- package/dist/chunk-WB3YULQ4.mjs.map +1 -0
- package/dist/chunk-WM6BS77F.mjs +53 -0
- package/dist/chunk-WM6BS77F.mjs.map +1 -0
- package/dist/chunk-X3Z2EVFV.mjs +26 -0
- package/dist/chunk-X3Z2EVFV.mjs.map +1 -0
- package/dist/chunk-X4T6ZUVM.mjs +14 -0
- package/dist/chunk-X4T6ZUVM.mjs.map +1 -0
- package/dist/{chunk-WLTEQ2FW.mjs → chunk-XGUBRIUV.mjs} +4 -12
- package/dist/chunk-XGUBRIUV.mjs.map +1 -0
- package/dist/chunk-Y2RUG4B3.mjs +21 -0
- package/dist/chunk-Y2RUG4B3.mjs.map +1 -0
- package/dist/chunk-ZVAH2Z2W.mjs +61 -0
- package/dist/chunk-ZVAH2Z2W.mjs.map +1 -0
- package/dist/components/chat/Button.d.ts +7 -0
- package/dist/components/chat/Button.mjs +6 -0
- package/dist/components/chat/Button.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +95 -0
- package/dist/components/chat/Chat.mjs +16 -0
- package/dist/components/chat/Chat.mjs.map +1 -0
- package/dist/components/chat/ChatContext.d.ts +105 -0
- package/dist/components/chat/ChatContext.mjs +5 -0
- package/dist/components/chat/ChatContext.mjs.map +1 -0
- package/dist/components/chat/CodeBlock.d.ts +14 -0
- package/dist/components/chat/CodeBlock.mjs +6 -0
- package/dist/components/chat/CodeBlock.mjs.map +1 -0
- package/dist/components/chat/Header.d.ts +7 -0
- package/dist/components/chat/Header.mjs +6 -0
- package/dist/components/chat/Header.mjs.map +1 -0
- package/dist/components/chat/Icons.d.ts +15 -0
- package/dist/components/chat/Icons.mjs +4 -0
- package/dist/components/chat/Icons.mjs.map +1 -0
- package/dist/components/chat/Input.d.ts +7 -0
- package/dist/components/chat/Input.mjs +7 -0
- package/dist/components/chat/Input.mjs.map +1 -0
- package/dist/components/chat/Markdown.d.ts +8 -0
- package/dist/components/chat/Markdown.mjs +7 -0
- package/dist/components/chat/Markdown.mjs.map +1 -0
- package/dist/components/chat/Messages.d.ts +7 -0
- package/dist/components/chat/Messages.mjs +9 -0
- package/dist/components/chat/Messages.mjs.map +1 -0
- package/dist/components/chat/Popup.d.ts +9 -0
- package/dist/components/chat/Popup.mjs +17 -0
- package/dist/components/chat/Popup.mjs.map +1 -0
- package/dist/components/chat/Response.d.ts +7 -0
- package/dist/components/chat/Response.mjs +6 -0
- package/dist/components/chat/Response.mjs.map +1 -0
- package/dist/components/chat/Sidebar.d.ts +12 -0
- package/dist/components/chat/Sidebar.mjs +17 -0
- package/dist/components/chat/Sidebar.mjs.map +1 -0
- package/dist/components/chat/Textarea.d.ts +13 -0
- package/dist/components/chat/Textarea.mjs +4 -0
- package/dist/components/chat/Textarea.mjs.map +1 -0
- package/dist/components/chat/Window.d.ts +6 -0
- package/dist/components/chat/Window.mjs +4 -0
- package/dist/components/chat/Window.mjs.map +1 -0
- package/dist/components/chat/index.d.ts +7 -0
- package/dist/components/chat/index.mjs +20 -0
- package/dist/components/chat/index.mjs.map +1 -0
- package/dist/components/chat/props.d.ts +33 -0
- package/dist/components/chat/props.mjs +3 -0
- package/dist/components/chat/props.mjs.map +1 -0
- package/dist/components/chat-components/copilot-chat.mjs +1 -1
- package/dist/components/chat-components/ui/badge.d.ts +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.mjs +20 -4
- package/dist/components/sidebar/copilot-sidebar-ui-provider.d.ts +1 -2
- package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs +3 -3
- package/dist/components/sidebar/copilot-sidebar.d.ts +0 -1
- package/dist/components/sidebar/copilot-sidebar.mjs +2 -2
- package/dist/index.css +452 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +20 -4
- package/package.json +5 -5
- package/src/components/chat/Button.tsx +24 -0
- package/src/components/chat/Chat.tsx +186 -0
- package/src/components/chat/ChatContext.tsx +176 -0
- package/src/components/chat/CodeBlock.tsx +149 -0
- package/src/components/chat/Header.tsx +16 -0
- package/src/components/chat/Icons.tsx +179 -0
- package/src/components/chat/Input.tsx +51 -0
- package/src/components/chat/Markdown.tsx +62 -0
- package/src/components/chat/Messages.tsx +113 -0
- package/src/components/chat/Popup.tsx +10 -0
- package/src/components/chat/Response.tsx +13 -0
- package/src/components/chat/Sidebar.tsx +28 -0
- package/src/components/chat/Textarea.tsx +61 -0
- package/src/components/chat/Window.tsx +141 -0
- package/src/components/chat/index.tsx +3 -0
- package/src/components/chat/props.ts +36 -0
- package/src/components/index.ts +2 -0
- package/src/components/sidebar/copilot-sidebar-ui-provider.tsx +2 -6
- package/src/components/sidebar/copilot-sidebar.tsx +1 -2
- package/src/css/animations.css +29 -0
- package/src/css/button.css +54 -0
- package/src/css/colors.css +61 -0
- package/src/css/header.css +43 -0
- package/src/css/input.css +79 -0
- package/src/css/messages.css +57 -0
- package/src/css/popup.css +22 -0
- package/src/css/response.css +29 -0
- package/src/css/sidebar.css +34 -0
- package/src/css/window.css +58 -0
- package/src/styles.css +11 -0
- package/dist/chunk-NMT7XT2R.mjs.map +0 -1
- package/dist/chunk-U6NJWGTV.mjs +0 -3
- package/dist/chunk-WLTEQ2FW.mjs.map +0 -1
- /package/dist/{chunk-U6NJWGTV.mjs.map → chunk-FZRTAML3.mjs.map} +0 -0
package/dist/index.css
CHANGED
|
@@ -1,3 +1,446 @@
|
|
|
1
|
+
/* src/css/colors.css */
|
|
2
|
+
:root {
|
|
3
|
+
--copilot-kit-primary-color: rgb(59 130 246);
|
|
4
|
+
--copilot-kit-contrast-color: rgb(255 255 255);
|
|
5
|
+
--copilot-kit-secondary-color: rgb(243 244 246);
|
|
6
|
+
--copilot-kit-secondary-contrast-color: rgb(0 0 0);
|
|
7
|
+
--copilot-kit-background-color: rgb(255 255 255);
|
|
8
|
+
--copilot-kit-muted-color: rgb(106 106 106);
|
|
9
|
+
--copilot-kit-separator-color: rgba(0, 0, 0, 0.08);
|
|
10
|
+
--copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
|
|
11
|
+
--copilot-kit-button-background-color: var(--copilot-kit-primary-color);
|
|
12
|
+
--copilot-kit-button-icon-color: var(--copilot-kit-contrast-color);
|
|
13
|
+
--copilot-kit-header-background-color: var(--copilot-kit-primary-color);
|
|
14
|
+
--copilot-kit-header-title-color: var(--copilot-kit-contrast-color);
|
|
15
|
+
--copilot-kit-header-close-button-color: var(--copilot-kit-contrast-color);
|
|
16
|
+
--copilot-kit-header-separator-color: var(--copilot-kit-separator-color);
|
|
17
|
+
--copilot-kit-input-background-color: var(--copilot-kit-background-color);
|
|
18
|
+
--copilot-kit-input-send-button-color: var(--copilot-kit-primary-color);
|
|
19
|
+
--copilot-kit-input-send-button-disabled-color: var(--copilot-kit-muted-color);
|
|
20
|
+
--copilot-kit-input-placeholder-color: var(--copilot-kit-muted-color);
|
|
21
|
+
--copilot-kit-input-color: var(--copilot-kit-secondary-contrast-color);
|
|
22
|
+
--copilot-kit-input-separator-color: var(--copilot-kit-separator-color);
|
|
23
|
+
--copilot-kit-messages-background-color: var(--copilot-kit-background-color);
|
|
24
|
+
--copilot-kit-message-user-background-color: var(--copilot-kit-primary-color);
|
|
25
|
+
--copilot-kit-message-user-color: var(--copilot-kit-contrast-color);
|
|
26
|
+
--copilot-kit-message-assistant-background-color: var(--copilot-kit-secondary-color);
|
|
27
|
+
--copilot-kit-message-assistant-color: var(--copilot-kit-secondary-contrast-color);
|
|
28
|
+
--copilot-kit-response-button-border-color: var(--copilot-kit-separator-color);
|
|
29
|
+
--copilot-kit-response-button-color: #333;
|
|
30
|
+
--copilot-kit-response-button-background-color: #fff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* src/css/popup.css */
|
|
34
|
+
.copilotKitPopup {
|
|
35
|
+
position: fixed;
|
|
36
|
+
bottom: 1rem;
|
|
37
|
+
right: 1rem;
|
|
38
|
+
z-index: 30;
|
|
39
|
+
line-height: 1.5;
|
|
40
|
+
-webkit-text-size-adjust: 100%;
|
|
41
|
+
-moz-tab-size: 4;
|
|
42
|
+
-o-tab-size: 4;
|
|
43
|
+
tab-size: 4;
|
|
44
|
+
font-family:
|
|
45
|
+
ui-sans-serif,
|
|
46
|
+
system-ui,
|
|
47
|
+
-apple-system,
|
|
48
|
+
BlinkMacSystemFont,
|
|
49
|
+
"Segoe UI",
|
|
50
|
+
Roboto,
|
|
51
|
+
"Helvetica Neue",
|
|
52
|
+
Arial,
|
|
53
|
+
"Noto Sans",
|
|
54
|
+
sans-serif,
|
|
55
|
+
"Apple Color Emoji",
|
|
56
|
+
"Segoe UI Emoji",
|
|
57
|
+
"Segoe UI Symbol",
|
|
58
|
+
"Noto Color Emoji";
|
|
59
|
+
font-feature-settings: normal;
|
|
60
|
+
font-variation-settings: normal;
|
|
61
|
+
touch-action: manipulation;
|
|
62
|
+
}
|
|
63
|
+
.copilotKitPopup svg {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* src/css/sidebar.css */
|
|
69
|
+
.copilotKitSidebar {
|
|
70
|
+
position: fixed;
|
|
71
|
+
bottom: 1rem;
|
|
72
|
+
right: 1rem;
|
|
73
|
+
z-index: 30;
|
|
74
|
+
line-height: 1.5;
|
|
75
|
+
-webkit-text-size-adjust: 100%;
|
|
76
|
+
-moz-tab-size: 4;
|
|
77
|
+
-o-tab-size: 4;
|
|
78
|
+
tab-size: 4;
|
|
79
|
+
font-family:
|
|
80
|
+
ui-sans-serif,
|
|
81
|
+
system-ui,
|
|
82
|
+
-apple-system,
|
|
83
|
+
BlinkMacSystemFont,
|
|
84
|
+
"Segoe UI",
|
|
85
|
+
Roboto,
|
|
86
|
+
"Helvetica Neue",
|
|
87
|
+
Arial,
|
|
88
|
+
"Noto Sans",
|
|
89
|
+
sans-serif,
|
|
90
|
+
"Apple Color Emoji",
|
|
91
|
+
"Segoe UI Emoji",
|
|
92
|
+
"Segoe UI Symbol",
|
|
93
|
+
"Noto Color Emoji";
|
|
94
|
+
font-feature-settings: normal;
|
|
95
|
+
font-variation-settings: normal;
|
|
96
|
+
touch-action: manipulation;
|
|
97
|
+
}
|
|
98
|
+
.copilotKitSidebar svg {
|
|
99
|
+
display: inline-block;
|
|
100
|
+
vertical-align: middle;
|
|
101
|
+
}
|
|
102
|
+
.copilotKitSidebarContentWrapper {
|
|
103
|
+
overflow: visible;
|
|
104
|
+
margin-right: 0px;
|
|
105
|
+
transition: margin-right 0.3s ease;
|
|
106
|
+
}
|
|
107
|
+
@media (min-width: 640px) {
|
|
108
|
+
.copilotKitSidebarContentWrapper.sidebarExpanded {
|
|
109
|
+
margin-right: 24rem;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* src/css/button.css */
|
|
114
|
+
.copilotKitButton {
|
|
115
|
+
width: 3.5rem;
|
|
116
|
+
height: 3.5rem;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
border-radius: 50%;
|
|
121
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
122
|
+
outline: none;
|
|
123
|
+
position: relative;
|
|
124
|
+
transform: scale(1);
|
|
125
|
+
transition: transform 200ms;
|
|
126
|
+
background-color: var(--copilot-kit-button-background-color);
|
|
127
|
+
color: var(--copilot-kit-button-icon-color);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
.copilotKitButton:hover {
|
|
131
|
+
transform: scale(1.1);
|
|
132
|
+
}
|
|
133
|
+
.copilotKitButton:active {
|
|
134
|
+
transform: scale(0.75);
|
|
135
|
+
}
|
|
136
|
+
.copilotKitButtonIcon {
|
|
137
|
+
transition: opacity 100ms, transform 300ms;
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 50%;
|
|
140
|
+
left: 50%;
|
|
141
|
+
transform: translate(-50%, -50%);
|
|
142
|
+
}
|
|
143
|
+
.copilotKitButton.open .copilotKitButtonIconOpen {
|
|
144
|
+
transform: translate(-50%, -50%) scale(0) rotate(90deg);
|
|
145
|
+
opacity: 0;
|
|
146
|
+
}
|
|
147
|
+
.copilotKitButton.open .copilotKitButtonIconClose {
|
|
148
|
+
transform: translate(-50%, -50%) scale(1) rotate(0deg);
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
.copilotKitButton:not(.open) .copilotKitButtonIconOpen {
|
|
152
|
+
transform: translate(-50%, -50%) scale(1) rotate(0deg);
|
|
153
|
+
opacity: 1;
|
|
154
|
+
}
|
|
155
|
+
.copilotKitButton:not(.open) .copilotKitButtonIconClose {
|
|
156
|
+
transform: translate(-50%, -50%) scale(0) rotate(-90deg);
|
|
157
|
+
opacity: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* src/css/header.css */
|
|
161
|
+
.copilotKitHeader {
|
|
162
|
+
height: 56px;
|
|
163
|
+
font-weight: 500;
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
align-items: center;
|
|
167
|
+
position: relative;
|
|
168
|
+
background-color: var(--copilot-kit-header-background-color);
|
|
169
|
+
color: var(--copilot-kit-header-title-color);
|
|
170
|
+
border-top-left-radius: 0;
|
|
171
|
+
border-top-right-radius: 0;
|
|
172
|
+
border-bottom: 1px solid var(--copilot-kit-header-separator-color);
|
|
173
|
+
}
|
|
174
|
+
.copilotKitSidebar .copilotKitHeader {
|
|
175
|
+
border-radius: 0;
|
|
176
|
+
}
|
|
177
|
+
@media (min-width: 640px) {
|
|
178
|
+
.copilotKitHeader {
|
|
179
|
+
padding-left: 24px;
|
|
180
|
+
padding-right: 24px;
|
|
181
|
+
border-top-left-radius: 8px;
|
|
182
|
+
border-top-right-radius: 8px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
.copilotKitHeader > button {
|
|
186
|
+
border: 0;
|
|
187
|
+
padding: 0px;
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: 50%;
|
|
190
|
+
right: 16px;
|
|
191
|
+
transform: translateY(-50%);
|
|
192
|
+
outline: none;
|
|
193
|
+
color: var(--copilot-kit-header-close-button-color);
|
|
194
|
+
background-color: transparent;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
}
|
|
197
|
+
.copilotKitHeader > button:focus {
|
|
198
|
+
outline: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* src/css/input.css */
|
|
202
|
+
.copilotKitInput {
|
|
203
|
+
border-top: 1px solid var(--copilot-kit-input-separator-color);
|
|
204
|
+
padding-left: 2rem;
|
|
205
|
+
padding-right: 2.5rem;
|
|
206
|
+
padding-top: 1rem;
|
|
207
|
+
padding-bottom: 1rem;
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
cursor: text;
|
|
211
|
+
position: relative;
|
|
212
|
+
border-bottom-left-radius: 0.75rem;
|
|
213
|
+
border-bottom-right-radius: 0.75rem;
|
|
214
|
+
background-color: var(--copilot-kit-input-background-color);
|
|
215
|
+
}
|
|
216
|
+
.copilotKitInput > button {
|
|
217
|
+
position: absolute;
|
|
218
|
+
right: 0.5rem;
|
|
219
|
+
padding: 0.25rem;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
transition-property: transform;
|
|
222
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
223
|
+
transition-duration: 200ms;
|
|
224
|
+
transform: scale(1);
|
|
225
|
+
color: rgba(0, 0, 0, 0.25);
|
|
226
|
+
-webkit-appearance: button;
|
|
227
|
+
-moz-appearance: button;
|
|
228
|
+
appearance: button;
|
|
229
|
+
background-color: transparent;
|
|
230
|
+
background-image: none;
|
|
231
|
+
text-transform: none;
|
|
232
|
+
font-family: inherit;
|
|
233
|
+
font-size: 100%;
|
|
234
|
+
font-weight: inherit;
|
|
235
|
+
line-height: inherit;
|
|
236
|
+
border: 0;
|
|
237
|
+
margin: 0;
|
|
238
|
+
text-indent: 0px;
|
|
239
|
+
text-shadow: none;
|
|
240
|
+
display: inline-block;
|
|
241
|
+
text-align: center;
|
|
242
|
+
}
|
|
243
|
+
.copilotKitInput > button:not([disabled]) {
|
|
244
|
+
color: var(--copilot-kit-input-send-button-color);
|
|
245
|
+
}
|
|
246
|
+
.copilotKitInput > button:not([disabled]):hover {
|
|
247
|
+
transform: scale(1.1);
|
|
248
|
+
}
|
|
249
|
+
.copilotKitInput > button[disabled] {
|
|
250
|
+
color: var(--copilot-kit-input-send-button-disabled-color);
|
|
251
|
+
}
|
|
252
|
+
.copilotKitInput > textarea {
|
|
253
|
+
width: 100%;
|
|
254
|
+
outline: 2px solid transparent;
|
|
255
|
+
outline-offset: 2px;
|
|
256
|
+
resize: none;
|
|
257
|
+
white-space: pre-wrap;
|
|
258
|
+
overflow-wrap: break-word;
|
|
259
|
+
-webkit-font-smoothing: antialiased;
|
|
260
|
+
-moz-osx-font-smoothing: grayscale;
|
|
261
|
+
cursor: text;
|
|
262
|
+
font-size: 0.875rem;
|
|
263
|
+
line-height: 1.25rem;
|
|
264
|
+
margin: 0;
|
|
265
|
+
padding: 0;
|
|
266
|
+
font-family: inherit;
|
|
267
|
+
font-weight: inherit;
|
|
268
|
+
color: var(--copilot-kit-input-color);
|
|
269
|
+
border: 0px;
|
|
270
|
+
background-color: var(--copilot-kit-input-background-color);
|
|
271
|
+
}
|
|
272
|
+
.copilotKitInput > textarea::-moz-placeholder {
|
|
273
|
+
color: var(--copilot-kit-input-placeholder-color);
|
|
274
|
+
opacity: 1;
|
|
275
|
+
}
|
|
276
|
+
.copilotKitInput > textarea::placeholder {
|
|
277
|
+
color: var(--copilot-kit-input-placeholder-color);
|
|
278
|
+
opacity: 1;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* src/css/messages.css */
|
|
282
|
+
.copilotKitMessages {
|
|
283
|
+
overflow-y: scroll;
|
|
284
|
+
flex: 1;
|
|
285
|
+
padding: 1rem 2rem;
|
|
286
|
+
padding-bottom: 3rem;
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
background-color: var(--copilot-kit-messages-background-color);
|
|
290
|
+
}
|
|
291
|
+
.copilotKitMessages::-webkit-scrollbar {
|
|
292
|
+
width: 9px;
|
|
293
|
+
}
|
|
294
|
+
.copilotKitMessages::-webkit-scrollbar-thumb {
|
|
295
|
+
background-color: var(--copilot-kit-scrollbar-color);
|
|
296
|
+
border-radius: 10rem;
|
|
297
|
+
border: 2px solid var(--copilot-kit-messages-background-color);
|
|
298
|
+
}
|
|
299
|
+
.copilotKitMessages::-webkit-scrollbar-track-piece:start {
|
|
300
|
+
background: transparent;
|
|
301
|
+
}
|
|
302
|
+
.copilotKitMessages::-webkit-scrollbar-track-piece:end {
|
|
303
|
+
background: transparent;
|
|
304
|
+
}
|
|
305
|
+
.copilotKitMessage {
|
|
306
|
+
border-radius: 0.5rem;
|
|
307
|
+
padding: 1rem;
|
|
308
|
+
font-size: 0.875rem;
|
|
309
|
+
line-height: 1.25rem;
|
|
310
|
+
overflow-wrap: break-word;
|
|
311
|
+
max-width: 80%;
|
|
312
|
+
margin-bottom: 0.5rem;
|
|
313
|
+
}
|
|
314
|
+
.copilotKitMessage.copilotKitUserMessage {
|
|
315
|
+
background: var(--copilot-kit-message-user-background-color);
|
|
316
|
+
color: var(--copilot-kit-message-user-color);
|
|
317
|
+
margin-left: auto;
|
|
318
|
+
}
|
|
319
|
+
.copilotKitMessage.copilotKitAssistantMessage {
|
|
320
|
+
background: var(--copilot-kit-message-assistant-background-color);
|
|
321
|
+
color: var(--copilot-kit-message-assistant-color);
|
|
322
|
+
margin-right: auto;
|
|
323
|
+
}
|
|
324
|
+
.copilotKitMessage.copilotKitUserMessage + .copilotKitMessage.copilotKitAssistantMessage {
|
|
325
|
+
margin-top: 1.5rem;
|
|
326
|
+
}
|
|
327
|
+
.copilotKitMessage.copilotKitAssistantMessage + .copilotKitMessage.copilotKitUserMessage {
|
|
328
|
+
margin-top: 1.5rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* src/css/window.css */
|
|
332
|
+
.copilotKitWindow {
|
|
333
|
+
position: fixed;
|
|
334
|
+
inset: 0px;
|
|
335
|
+
transform-origin: bottom;
|
|
336
|
+
border-color: rgb(229 231 235);
|
|
337
|
+
background-color: rgb(255 255 255);
|
|
338
|
+
border-radius: 0.75rem;
|
|
339
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
340
|
+
flex-direction: column;
|
|
341
|
+
transition: opacity 100ms ease-out, transform 200ms ease-out;
|
|
342
|
+
opacity: 0;
|
|
343
|
+
transform: scale(0.95) translateY(20px);
|
|
344
|
+
display: flex;
|
|
345
|
+
pointer-events: none;
|
|
346
|
+
}
|
|
347
|
+
.copilotKitSidebar .copilotKitWindow {
|
|
348
|
+
border-radius: 0;
|
|
349
|
+
opacity: 1;
|
|
350
|
+
transform: translateX(100%);
|
|
351
|
+
}
|
|
352
|
+
.copilotKitWindow.open {
|
|
353
|
+
opacity: 1;
|
|
354
|
+
transform: scale(1) translateY(0);
|
|
355
|
+
pointer-events: auto;
|
|
356
|
+
}
|
|
357
|
+
.copilotKitSidebar .copilotKitWindow.open {
|
|
358
|
+
transform: translateX(0);
|
|
359
|
+
}
|
|
360
|
+
@media (min-width: 640px) {
|
|
361
|
+
.copilotKitWindow {
|
|
362
|
+
transform-origin: bottom right;
|
|
363
|
+
bottom: 5rem;
|
|
364
|
+
right: 1rem;
|
|
365
|
+
top: auto;
|
|
366
|
+
left: auto;
|
|
367
|
+
border-width: 0px;
|
|
368
|
+
margin-bottom: 1rem;
|
|
369
|
+
width: 24rem;
|
|
370
|
+
height: 600px;
|
|
371
|
+
min-height: 200px;
|
|
372
|
+
max-height: calc(100% - 6rem);
|
|
373
|
+
}
|
|
374
|
+
.copilotKitSidebar .copilotKitWindow {
|
|
375
|
+
bottom: 0;
|
|
376
|
+
right: 0;
|
|
377
|
+
top: auto;
|
|
378
|
+
left: auto;
|
|
379
|
+
width: 28rem;
|
|
380
|
+
min-height: 100%;
|
|
381
|
+
margin-bottom: 0;
|
|
382
|
+
max-height: none;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* src/css/animations.css */
|
|
387
|
+
.copilotKitActivityDot1 {
|
|
388
|
+
animation: copilotKitActivityDotsAnimation 1.05s infinite;
|
|
389
|
+
}
|
|
390
|
+
.copilotKitActivityDot2 {
|
|
391
|
+
animation-delay: 0.1s;
|
|
392
|
+
}
|
|
393
|
+
.copilotKitActivityDot3 {
|
|
394
|
+
animation-delay: 0.2s;
|
|
395
|
+
}
|
|
396
|
+
@keyframes copilotKitActivityDotsAnimation {
|
|
397
|
+
0%, 57.14% {
|
|
398
|
+
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
|
399
|
+
transform: translate(0);
|
|
400
|
+
}
|
|
401
|
+
28.57% {
|
|
402
|
+
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
|
403
|
+
transform: translateY(-6px);
|
|
404
|
+
}
|
|
405
|
+
100% {
|
|
406
|
+
transform: translate(0);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
@keyframes copilotKitSpinAnimation {
|
|
410
|
+
to {
|
|
411
|
+
transform: rotate(360deg);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* src/css/response.css */
|
|
416
|
+
.copilotKitResponseButton {
|
|
417
|
+
background-color: var(--copilot-kit-response-button-background-color);
|
|
418
|
+
border: 1px solid var(--copilot-kit-response-button-border-color);
|
|
419
|
+
border-radius: 4px;
|
|
420
|
+
color: var(--copilot-kit-response-button-color);
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
font-size: 14px;
|
|
423
|
+
font-weight: 500;
|
|
424
|
+
height: 32px;
|
|
425
|
+
line-height: 30px;
|
|
426
|
+
margin: 0;
|
|
427
|
+
padding: 0 16px;
|
|
428
|
+
text-align: center;
|
|
429
|
+
text-decoration: none;
|
|
430
|
+
text-transform: none;
|
|
431
|
+
white-space: nowrap;
|
|
432
|
+
position: absolute;
|
|
433
|
+
left: 50%;
|
|
434
|
+
transform: translateX(-50%);
|
|
435
|
+
top: -44px;
|
|
436
|
+
}
|
|
437
|
+
.copilotKitResponseButton:hover {
|
|
438
|
+
filter: brightness(95%);
|
|
439
|
+
}
|
|
440
|
+
.copilotKitResponseButton > span {
|
|
441
|
+
margin-right: 0.5rem;
|
|
442
|
+
}
|
|
443
|
+
|
|
1
444
|
/* src/styles.css */
|
|
2
445
|
*,
|
|
3
446
|
::before,
|
|
@@ -418,6 +861,9 @@ video {
|
|
|
418
861
|
.block {
|
|
419
862
|
display: block;
|
|
420
863
|
}
|
|
864
|
+
.inline-block {
|
|
865
|
+
display: inline-block;
|
|
866
|
+
}
|
|
421
867
|
.inline {
|
|
422
868
|
display: inline;
|
|
423
869
|
}
|
|
@@ -490,6 +936,9 @@ video {
|
|
|
490
936
|
.min-h-\[80px\] {
|
|
491
937
|
min-height: 80px;
|
|
492
938
|
}
|
|
939
|
+
.w-10 {
|
|
940
|
+
width: 2.5rem;
|
|
941
|
+
}
|
|
493
942
|
.w-3 {
|
|
494
943
|
width: 0.75rem;
|
|
495
944
|
}
|
|
@@ -586,6 +1035,9 @@ video {
|
|
|
586
1035
|
.resize-none {
|
|
587
1036
|
resize: none;
|
|
588
1037
|
}
|
|
1038
|
+
.resize {
|
|
1039
|
+
resize: both;
|
|
1040
|
+
}
|
|
589
1041
|
.flex-col {
|
|
590
1042
|
flex-direction: column;
|
|
591
1043
|
}
|