@smart-cloud/ai-kit-ui 1.5.22 → 1.5.24
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/ai-chatbot/AiChatbot.d.ts +2 -0
- package/dist/ai-chatbot/welcome.d.ts +4 -0
- package/dist/ai-kit-ui.css +38 -0
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/package.json +2 -2
|
@@ -4,6 +4,8 @@ export declare const DEFAULT_CHATBOT_LABELS: Required<AiChatbotLabels>;
|
|
|
4
4
|
export declare const AiChatbot: React.FC<import("@smart-cloud/ai-kit-core").AiWorkerProps & {
|
|
5
5
|
context?: import("@smart-cloud/ai-kit-core").ContextKind;
|
|
6
6
|
placeholder?: string;
|
|
7
|
+
greeting?: string;
|
|
8
|
+
starterQuestions?: string[];
|
|
7
9
|
maxImages?: number;
|
|
8
10
|
maxImageBytes?: number;
|
|
9
11
|
maxTokens?: number;
|
package/dist/ai-kit-ui.css
CHANGED
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
--ai-kit-text-color: var(--ai-kit-color-text);
|
|
87
87
|
--ai-kit-background-color: var(--ai-kit-color-surface);
|
|
88
88
|
--ai-kit-options-background-color: var(--ai-kit-color-surface-2);
|
|
89
|
+
--ai-kit-options-toggle-color: var(--ai-kit-color-text);
|
|
90
|
+
--ai-kit-options-toggle-bg-hover: rgba(0, 0, 0, 0.07);
|
|
91
|
+
--ai-kit-options-toggle-border-hover: rgba(0, 0, 0, 0.24);
|
|
89
92
|
|
|
90
93
|
--ai-kit-color-text-light: var(--ai-kit-color-text-muted);
|
|
91
94
|
--ai-kit-color-border-light: rgba(0, 0, 0, 0.1);
|
|
@@ -187,6 +190,17 @@
|
|
|
187
190
|
font-family: var(--ai-kit-font-family);
|
|
188
191
|
}
|
|
189
192
|
|
|
193
|
+
/* Keep muted copy legible on dark surfaces, including the expanded chat trace.
|
|
194
|
+
The light-theme value above remains the default. */
|
|
195
|
+
:host([data-mantine-color-scheme="dark"]),
|
|
196
|
+
#ai-kit-inline-root[data-mantine-color-scheme="dark"],
|
|
197
|
+
#ai-kit-portal-root[data-mantine-color-scheme="dark"],
|
|
198
|
+
[data-ai-kit-theme="dark"] {
|
|
199
|
+
--ai-kit-color-text-muted: rgba(235, 240, 248, 0.72);
|
|
200
|
+
--ai-kit-options-toggle-bg-hover: rgba(255, 255, 255, 0.1);
|
|
201
|
+
--ai-kit-options-toggle-border-hover: rgba(255, 255, 255, 0.28);
|
|
202
|
+
}
|
|
203
|
+
|
|
190
204
|
/* Variation defaults */
|
|
191
205
|
:host[data-ai-kit-variation="default"] {
|
|
192
206
|
--ai-kit-background-color: transparent;
|
|
@@ -263,6 +277,30 @@
|
|
|
263
277
|
--group-wrap: nowrap !important;
|
|
264
278
|
}
|
|
265
279
|
|
|
280
|
+
.ai-feature-options-summary .ai-feature-options-toggle {
|
|
281
|
+
--button-bg: transparent;
|
|
282
|
+
--button-hover: var(--ai-kit-options-toggle-bg-hover);
|
|
283
|
+
--button-color: var(--ai-kit-options-toggle-color);
|
|
284
|
+
color: var(--ai-kit-options-toggle-color);
|
|
285
|
+
background-color: transparent;
|
|
286
|
+
border: 1px solid var(--ai-kit-color-border);
|
|
287
|
+
border-radius: var(--ai-kit-radius-pill);
|
|
288
|
+
min-height: 32px;
|
|
289
|
+
padding-inline: var(--ai-kit-space-3);
|
|
290
|
+
transition: var(--ai-kit-action-transition);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ai-feature-options-summary .ai-feature-options-toggle:hover {
|
|
294
|
+
color: var(--ai-kit-options-toggle-color);
|
|
295
|
+
background-color: var(--ai-kit-options-toggle-bg-hover);
|
|
296
|
+
border-color: var(--ai-kit-options-toggle-border-hover);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ai-feature-options-summary .ai-feature-options-toggle:focus-visible {
|
|
300
|
+
outline: 2px solid var(--ai-kit-action-focus-ring);
|
|
301
|
+
outline-offset: 2px;
|
|
302
|
+
}
|
|
303
|
+
|
|
266
304
|
.ai-feature-status-text {
|
|
267
305
|
font-size: var(--ai-kit-font-size-xs);
|
|
268
306
|
opacity: 0.85;
|