@usecrow/ui 0.1.73 → 0.1.74
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/index.cjs +283 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +283 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2358,6 +2358,13 @@ function useCopilotStyles2() {
|
|
|
2358
2358
|
const context = useContext(CopilotStyleContext);
|
|
2359
2359
|
return context?.styles ?? DEFAULT_COPILOT_STYLES;
|
|
2360
2360
|
}
|
|
2361
|
+
function useActiveStyles() {
|
|
2362
|
+
const copilotContext = useContext(CopilotStyleContext);
|
|
2363
|
+
const widgetContext = useContext(WidgetStyleContext);
|
|
2364
|
+
if (copilotContext) return copilotContext.styles;
|
|
2365
|
+
if (widgetContext) return widgetContext.styles;
|
|
2366
|
+
return DEFAULT_COPILOT_STYLES;
|
|
2367
|
+
}
|
|
2361
2368
|
var PASSTHROUGH_KEYS = /* @__PURE__ */ new Set(["Escape", "Tab"]);
|
|
2362
2369
|
function ShadowContainer({
|
|
2363
2370
|
children,
|
|
@@ -2895,6 +2902,7 @@ function ReasoningTrace({
|
|
|
2895
2902
|
] }) });
|
|
2896
2903
|
}
|
|
2897
2904
|
function WaitingIndicator() {
|
|
2905
|
+
const mutedColor = useActiveStyles().colors.text + "80";
|
|
2898
2906
|
const [messageIndex, setMessageIndex] = useState(
|
|
2899
2907
|
() => Math.floor(Math.random() * THINKING_MESSAGES.length)
|
|
2900
2908
|
);
|
|
@@ -2905,7 +2913,7 @@ function WaitingIndicator() {
|
|
|
2905
2913
|
return () => clearInterval(interval);
|
|
2906
2914
|
}, []);
|
|
2907
2915
|
const message = THINKING_MESSAGES[messageIndex] + "...";
|
|
2908
|
-
return /* @__PURE__ */ jsxs("div", { className: "crow-flex crow-items-center crow-gap-1.5 crow-text-xs
|
|
2916
|
+
return /* @__PURE__ */ jsxs("div", { className: "crow-flex crow-items-center crow-gap-1.5 crow-text-xs", style: { color: mutedColor }, children: [
|
|
2909
2917
|
/* @__PURE__ */ jsx("div", { className: "crow-flex crow-items-center crow-justify-center crow-w-4 crow-h-4", children: /* @__PURE__ */ jsx(ShimmeringContent, { children: /* @__PURE__ */ jsx(Brain, { className: "crow-w-3.5 crow-h-3.5" }) }) }),
|
|
2910
2918
|
/* @__PURE__ */ jsx("span", { className: "crow-font-medium", children: /* @__PURE__ */ jsx(ShimmeringContent, { children: message }) })
|
|
2911
2919
|
] });
|
|
@@ -2914,6 +2922,8 @@ function ThinkingBlock({
|
|
|
2914
2922
|
thinking,
|
|
2915
2923
|
isComplete
|
|
2916
2924
|
}) {
|
|
2925
|
+
const themeColors = useActiveStyles().colors;
|
|
2926
|
+
const mutedColor = themeColors.text + "80";
|
|
2917
2927
|
const [isExpanded, setIsExpanded] = useState(!isComplete);
|
|
2918
2928
|
const [messageIndex, setMessageIndex] = useState(
|
|
2919
2929
|
() => Math.floor(Math.random() * THINKING_MESSAGES.length)
|
|
@@ -2935,7 +2945,8 @@ function ThinkingBlock({
|
|
|
2935
2945
|
"button",
|
|
2936
2946
|
{
|
|
2937
2947
|
onClick: () => setIsExpanded(!isExpanded),
|
|
2938
|
-
className:
|
|
2948
|
+
className: "crow-flex crow-items-center crow-gap-1.5 crow-select-none crow-transition-colors crow-cursor-pointer",
|
|
2949
|
+
style: { color: mutedColor },
|
|
2939
2950
|
children: [
|
|
2940
2951
|
/* @__PURE__ */ jsx("div", { className: "crow-flex crow-items-center crow-justify-center crow-w-4 crow-h-4", children: isInProgress ? /* @__PURE__ */ jsx(ShimmeringContent, { children: /* @__PURE__ */ jsx(Brain, { className: "crow-w-3.5 crow-h-3.5" }) }) : /* @__PURE__ */ jsx(Brain, { className: "crow-w-3.5 crow-h-3.5" }) }),
|
|
2941
2952
|
/* @__PURE__ */ jsx("span", { className: "crow-font-medium", children: isInProgress ? /* @__PURE__ */ jsx(ShimmeringContent, { children: message }) : "Thought" }),
|
|
@@ -2960,10 +2971,11 @@ function ThinkingBlock({
|
|
|
2960
2971
|
exit: { height: 0, opacity: 0 },
|
|
2961
2972
|
transition: { duration: 0.15 },
|
|
2962
2973
|
className: "crow-overflow-hidden",
|
|
2963
|
-
children: /* @__PURE__ */ jsx("div", { className: "crow-border-l-2 crow-
|
|
2974
|
+
children: /* @__PURE__ */ jsx("div", { className: "crow-border-l-2 crow-pl-3 crow-ml-2", style: { borderColor: themeColors.border }, children: /* @__PURE__ */ jsx(
|
|
2964
2975
|
"div",
|
|
2965
2976
|
{
|
|
2966
|
-
className:
|
|
2977
|
+
className: "crow-text-xs crow-leading-relaxed crow-whitespace-pre-wrap",
|
|
2978
|
+
style: { color: mutedColor },
|
|
2967
2979
|
children: thinking
|
|
2968
2980
|
}
|
|
2969
2981
|
) })
|
|
@@ -2993,6 +3005,8 @@ function ToolCallBlock({
|
|
|
2993
3005
|
toolRenderers,
|
|
2994
3006
|
onToolConsent
|
|
2995
3007
|
}) {
|
|
3008
|
+
const themeColors = useActiveStyles().colors;
|
|
3009
|
+
const mutedColor = themeColors.text + "80";
|
|
2996
3010
|
const [expanded, setExpanded] = useState(false);
|
|
2997
3011
|
const hasArgs = Object.keys(toolCall.arguments || {}).length > 0;
|
|
2998
3012
|
const isExecuting = toolCall.status === "executing";
|
|
@@ -3006,13 +3020,15 @@ function ToolCallBlock({
|
|
|
3006
3020
|
/* @__PURE__ */ jsxs(
|
|
3007
3021
|
"div",
|
|
3008
3022
|
{
|
|
3009
|
-
className:
|
|
3023
|
+
className: "crow-flex crow-items-center crow-gap-1.5 crow-select-none crow-transition-colors",
|
|
3024
|
+
style: { color: mutedColor },
|
|
3010
3025
|
children: [
|
|
3011
3026
|
hasArgs && !isAwaitingConsent && /* @__PURE__ */ jsx(
|
|
3012
3027
|
"button",
|
|
3013
3028
|
{
|
|
3014
3029
|
onClick: () => setExpanded(!expanded),
|
|
3015
|
-
className: "crow-cursor-pointer
|
|
3030
|
+
className: "crow-cursor-pointer",
|
|
3031
|
+
style: { color: mutedColor },
|
|
3016
3032
|
children: /* @__PURE__ */ jsx(
|
|
3017
3033
|
motion.div,
|
|
3018
3034
|
{
|
|
@@ -3027,7 +3043,7 @@ function ToolCallBlock({
|
|
|
3027
3043
|
isExecuting && /* @__PURE__ */ jsx(Loader2, { className: "crow-w-3 crow-h-3 crow-animate-spin crow-text-blue-500" }),
|
|
3028
3044
|
isComplete && /* @__PURE__ */ jsx(Check, { className: "crow-w-3 crow-h-3 crow-text-green-500" }),
|
|
3029
3045
|
isError && /* @__PURE__ */ jsx("span", { className: "crow-w-3 crow-h-3 crow-text-red-500", children: "\u2715" }),
|
|
3030
|
-
isDenied && /* @__PURE__ */ jsx("span", { className: "crow-w-3 crow-h-3
|
|
3046
|
+
isDenied && /* @__PURE__ */ jsx("span", { className: "crow-w-3 crow-h-3", style: { color: mutedColor }, children: "\u2715" }),
|
|
3031
3047
|
/* @__PURE__ */ jsx("span", { className: "crow-font-medium", children: toolCall.displayName || toolCall.name }),
|
|
3032
3048
|
isAwaitingConsent && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3033
3049
|
/* @__PURE__ */ jsx("span", { className: "crow-text-amber-500", children: "needs permission" }),
|
|
@@ -3044,16 +3060,16 @@ function ToolCallBlock({
|
|
|
3044
3060
|
"button",
|
|
3045
3061
|
{
|
|
3046
3062
|
onClick: () => onToolConsent?.(toolCall.id, false),
|
|
3047
|
-
className: "crow-px-2 crow-py-0.5 crow-rounded crow-border crow-text-xs crow-font-medium crow-
|
|
3048
|
-
style: { borderColor:
|
|
3063
|
+
className: "crow-px-2 crow-py-0.5 crow-rounded crow-border crow-text-xs crow-font-medium crow-cursor-pointer",
|
|
3064
|
+
style: { borderColor: themeColors.border, backgroundColor: "transparent", color: mutedColor },
|
|
3049
3065
|
children: "Deny"
|
|
3050
3066
|
}
|
|
3051
3067
|
)
|
|
3052
3068
|
] }),
|
|
3053
|
-
isExecuting && /* @__PURE__ */ jsx("span", {
|
|
3054
|
-
isComplete && /* @__PURE__ */ jsx("span", {
|
|
3055
|
-
isError && /* @__PURE__ */ jsx("span", {
|
|
3056
|
-
isDenied && /* @__PURE__ */ jsx("span", {
|
|
3069
|
+
isExecuting && /* @__PURE__ */ jsx("span", { style: { color: mutedColor }, children: "running..." }),
|
|
3070
|
+
isComplete && /* @__PURE__ */ jsx("span", { style: { color: mutedColor }, children: "done" }),
|
|
3071
|
+
isError && /* @__PURE__ */ jsx("span", { style: { color: mutedColor }, children: "failed" }),
|
|
3072
|
+
isDenied && /* @__PURE__ */ jsx("span", { style: { color: mutedColor }, children: "denied" })
|
|
3057
3073
|
]
|
|
3058
3074
|
}
|
|
3059
3075
|
),
|
|
@@ -3154,7 +3170,7 @@ function MessageBubble({
|
|
|
3154
3170
|
toolRenderers,
|
|
3155
3171
|
onToolConsent
|
|
3156
3172
|
}) {
|
|
3157
|
-
const styles =
|
|
3173
|
+
const styles = useActiveStyles();
|
|
3158
3174
|
const showThinkingSetting = useShowThinking();
|
|
3159
3175
|
const isWaiting = message.content === "Thinking..." || message.isBot && isLoading && !message.content;
|
|
3160
3176
|
const hasThinking = message.isBot && message.thinking;
|
|
@@ -3273,7 +3289,7 @@ function MessageList({
|
|
|
3273
3289
|
}) });
|
|
3274
3290
|
}
|
|
3275
3291
|
var MessagesContainer = forwardRef(({ children }, ref) => {
|
|
3276
|
-
const styles =
|
|
3292
|
+
const styles = useActiveStyles();
|
|
3277
3293
|
const internalRef = useRef(null);
|
|
3278
3294
|
const lastScrollHeightRef = useRef(0);
|
|
3279
3295
|
const isUserScrollingRef = useRef(false);
|
|
@@ -3335,26 +3351,92 @@ function ConversationList({
|
|
|
3335
3351
|
onSelect,
|
|
3336
3352
|
onClose
|
|
3337
3353
|
}) {
|
|
3354
|
+
const styles = useActiveStyles();
|
|
3338
3355
|
return /* @__PURE__ */ jsxs(
|
|
3339
3356
|
motion.div,
|
|
3340
3357
|
{
|
|
3341
3358
|
initial: { opacity: 0, height: 0 },
|
|
3342
3359
|
animate: { opacity: 1, height: "auto" },
|
|
3343
3360
|
exit: { opacity: 0, height: 0 },
|
|
3344
|
-
className: "crow-mb-3 crow-rounded-xl crow-
|
|
3361
|
+
className: "crow-mb-3 crow-rounded-xl crow-border",
|
|
3362
|
+
style: {
|
|
3363
|
+
background: styles.colors.text + "08",
|
|
3364
|
+
borderColor: styles.colors.border
|
|
3365
|
+
},
|
|
3345
3366
|
children: [
|
|
3346
|
-
/* @__PURE__ */ jsxs(
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3367
|
+
/* @__PURE__ */ jsxs(
|
|
3368
|
+
"div",
|
|
3369
|
+
{
|
|
3370
|
+
className: "crow-p-2 crow-border-b crow-flex crow-justify-between crow-items-center",
|
|
3371
|
+
style: { borderColor: styles.colors.border },
|
|
3372
|
+
children: [
|
|
3373
|
+
/* @__PURE__ */ jsx(
|
|
3374
|
+
"span",
|
|
3375
|
+
{
|
|
3376
|
+
className: "crow-text-sm crow-font-medium",
|
|
3377
|
+
style: { color: styles.colors.text + "cc" },
|
|
3378
|
+
children: "Recent Conversations"
|
|
3379
|
+
}
|
|
3380
|
+
),
|
|
3381
|
+
/* @__PURE__ */ jsx(
|
|
3382
|
+
"button",
|
|
3383
|
+
{
|
|
3384
|
+
onClick: onClose,
|
|
3385
|
+
className: "crow-p-1 crow-rounded",
|
|
3386
|
+
style: { color: styles.colors.text + "80" },
|
|
3387
|
+
onMouseEnter: (e) => {
|
|
3388
|
+
e.currentTarget.style.background = styles.colors.text + "10";
|
|
3389
|
+
},
|
|
3390
|
+
onMouseLeave: (e) => {
|
|
3391
|
+
e.currentTarget.style.background = "transparent";
|
|
3392
|
+
},
|
|
3393
|
+
children: /* @__PURE__ */ jsx(X, { size: 14 })
|
|
3394
|
+
}
|
|
3395
|
+
)
|
|
3396
|
+
]
|
|
3397
|
+
}
|
|
3398
|
+
),
|
|
3399
|
+
/* @__PURE__ */ jsx("div", { className: "crow-max-h-[200px] crow-overflow-y-auto", children: conversations.length === 0 ? /* @__PURE__ */ jsx(
|
|
3400
|
+
"div",
|
|
3401
|
+
{
|
|
3402
|
+
className: "crow-p-4 crow-text-center crow-text-sm",
|
|
3403
|
+
style: { color: styles.colors.text + "80" },
|
|
3404
|
+
children: "No conversations yet"
|
|
3405
|
+
}
|
|
3406
|
+
) : conversations.map((conv) => /* @__PURE__ */ jsxs(
|
|
3351
3407
|
"button",
|
|
3352
3408
|
{
|
|
3353
3409
|
onClick: () => onSelect(conv.id),
|
|
3354
|
-
className:
|
|
3410
|
+
className: "crow-w-full crow-p-3 crow-text-left crow-transition-colors crow-border-b last:crow-border-0",
|
|
3411
|
+
style: {
|
|
3412
|
+
borderColor: styles.colors.border,
|
|
3413
|
+
background: currentConversationId === conv.id ? styles.colors.primary + "18" : "transparent"
|
|
3414
|
+
},
|
|
3415
|
+
onMouseEnter: (e) => {
|
|
3416
|
+
if (currentConversationId !== conv.id) {
|
|
3417
|
+
e.currentTarget.style.background = styles.colors.text + "08";
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3420
|
+
onMouseLeave: (e) => {
|
|
3421
|
+
e.currentTarget.style.background = currentConversationId === conv.id ? styles.colors.primary + "18" : "transparent";
|
|
3422
|
+
},
|
|
3355
3423
|
children: [
|
|
3356
|
-
/* @__PURE__ */ jsx(
|
|
3357
|
-
|
|
3424
|
+
/* @__PURE__ */ jsx(
|
|
3425
|
+
"div",
|
|
3426
|
+
{
|
|
3427
|
+
className: "crow-text-sm crow-font-medium crow-truncate",
|
|
3428
|
+
style: { color: styles.colors.text },
|
|
3429
|
+
children: conv.name || "Untitled conversation"
|
|
3430
|
+
}
|
|
3431
|
+
),
|
|
3432
|
+
/* @__PURE__ */ jsx(
|
|
3433
|
+
"div",
|
|
3434
|
+
{
|
|
3435
|
+
className: "crow-text-xs crow-mt-0.5",
|
|
3436
|
+
style: { color: styles.colors.text + "80" },
|
|
3437
|
+
children: formatConversationDate(conv.updated_at)
|
|
3438
|
+
}
|
|
3439
|
+
)
|
|
3358
3440
|
]
|
|
3359
3441
|
},
|
|
3360
3442
|
conv.id
|
|
@@ -3371,14 +3453,26 @@ function WorkflowPanel({ workflow, onExit }) {
|
|
|
3371
3453
|
animate: { opacity: 1, y: 0 },
|
|
3372
3454
|
exit: { opacity: 0, y: -10 },
|
|
3373
3455
|
transition: { duration: 0.3 },
|
|
3374
|
-
className: "crow-mb-3 crow-p-3 crow-rounded-xl crow-
|
|
3456
|
+
className: "crow-mb-3 crow-p-3 crow-rounded-xl crow-border",
|
|
3457
|
+
style: {
|
|
3458
|
+
background: "var(--crow-bg-hover, rgba(0,0,0,0.04))",
|
|
3459
|
+
borderColor: "var(--crow-border, #e5e7eb)"
|
|
3460
|
+
},
|
|
3375
3461
|
children: /* @__PURE__ */ jsxs("div", { className: "crow-flex crow-items-center crow-justify-between", children: [
|
|
3376
|
-
/* @__PURE__ */ jsx(
|
|
3462
|
+
/* @__PURE__ */ jsx(
|
|
3463
|
+
"span",
|
|
3464
|
+
{
|
|
3465
|
+
className: "crow-text-sm crow-font-medium crow-flex crow-items-center crow-gap-1",
|
|
3466
|
+
style: { color: "var(--crow-text, #111827)" },
|
|
3467
|
+
children: workflow.name
|
|
3468
|
+
}
|
|
3469
|
+
),
|
|
3377
3470
|
/* @__PURE__ */ jsx(
|
|
3378
3471
|
"button",
|
|
3379
3472
|
{
|
|
3380
3473
|
onClick: onExit,
|
|
3381
|
-
className: "crow-text-xs crow-
|
|
3474
|
+
className: "crow-text-xs crow-underline",
|
|
3475
|
+
style: { color: "var(--crow-text-muted, #6b7280)" },
|
|
3382
3476
|
children: "Exit"
|
|
3383
3477
|
}
|
|
3384
3478
|
)
|
|
@@ -3387,12 +3481,14 @@ function WorkflowPanel({ workflow, onExit }) {
|
|
|
3387
3481
|
);
|
|
3388
3482
|
}
|
|
3389
3483
|
function PoweredByBadge({ apiUrl = "" }) {
|
|
3390
|
-
const styles =
|
|
3484
|
+
const styles = useActiveStyles();
|
|
3391
3485
|
const branding = styles.branding;
|
|
3392
3486
|
if (!branding.showPoweredBy) return null;
|
|
3393
|
-
const
|
|
3394
|
-
|
|
3395
|
-
|
|
3487
|
+
const showLogo = "showLogo" in branding ? branding.showLogo : false;
|
|
3488
|
+
const rawLogoUrl = "logoUrl" in branding ? branding.logoUrl : void 0;
|
|
3489
|
+
const logoUrl = rawLogoUrl?.startsWith("http") ? rawLogoUrl : rawLogoUrl ? `${apiUrl}${rawLogoUrl}` : void 0;
|
|
3490
|
+
return /* @__PURE__ */ jsxs("div", { className: "crow-flex crow-items-center crow-justify-center crow-gap-1.5 crow-mb-3 crow-text-xs", style: { color: "var(--crow-text-muted, #9ca3af)" }, children: [
|
|
3491
|
+
showLogo && logoUrl && /* @__PURE__ */ jsx(
|
|
3396
3492
|
"img",
|
|
3397
3493
|
{
|
|
3398
3494
|
src: logoUrl,
|
|
@@ -3439,10 +3535,10 @@ var ModelSelector = ({
|
|
|
3439
3535
|
disabled,
|
|
3440
3536
|
className: cn(
|
|
3441
3537
|
"crow-flex crow-items-center crow-gap-1 crow-px-2 crow-py-1 crow-rounded-md crow-text-xs",
|
|
3442
|
-
"crow-bg-transparent crow-
|
|
3443
|
-
"hover:crow-text-gray-700 crow-transition-colors",
|
|
3538
|
+
"crow-bg-transparent crow-transition-colors",
|
|
3444
3539
|
disabled ? "crow-opacity-50 crow-cursor-not-allowed" : "crow-cursor-pointer"
|
|
3445
3540
|
),
|
|
3541
|
+
style: { color: "var(--crow-text-muted, #9ca3af)" },
|
|
3446
3542
|
children: [
|
|
3447
3543
|
/* @__PURE__ */ jsx("span", { children: selectedModelData?.name || "Select Model" }),
|
|
3448
3544
|
/* @__PURE__ */ jsx(
|
|
@@ -3457,28 +3553,48 @@ var ModelSelector = ({
|
|
|
3457
3553
|
]
|
|
3458
3554
|
}
|
|
3459
3555
|
),
|
|
3460
|
-
isOpen && /* @__PURE__ */ jsx(
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
"
|
|
3464
|
-
{
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3556
|
+
isOpen && /* @__PURE__ */ jsx(
|
|
3557
|
+
"div",
|
|
3558
|
+
{
|
|
3559
|
+
className: "crow-absolute crow-bottom-full crow-mb-2 crow-left-0 crow-min-w-[180px] crow-rounded-xl crow-shadow-lg crow-z-50 crow-overflow-hidden crow-border",
|
|
3560
|
+
style: { background: "var(--crow-bg, #ffffff)", borderColor: "var(--crow-border, #e5e7eb)" },
|
|
3561
|
+
children: Object.entries(groupedModels).map(([provider, providerModels]) => /* @__PURE__ */ jsxs("div", { children: [
|
|
3562
|
+
/* @__PURE__ */ jsx(
|
|
3563
|
+
"div",
|
|
3564
|
+
{
|
|
3565
|
+
className: "crow-px-3 crow-py-1.5 crow-text-xs crow-font-medium crow-uppercase crow-tracking-wide",
|
|
3566
|
+
style: {
|
|
3567
|
+
color: "var(--crow-text-muted, #9ca3af)",
|
|
3568
|
+
background: "var(--crow-bg-hover, rgba(0,0,0,0.04))"
|
|
3569
|
+
},
|
|
3570
|
+
children: provider
|
|
3571
|
+
}
|
|
3473
3572
|
),
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3573
|
+
providerModels.map((model) => /* @__PURE__ */ jsxs(
|
|
3574
|
+
"button",
|
|
3575
|
+
{
|
|
3576
|
+
onClick: () => {
|
|
3577
|
+
onModelChange(model.id);
|
|
3578
|
+
setIsOpen(false);
|
|
3579
|
+
},
|
|
3580
|
+
className: "crow-w-full crow-flex crow-items-center crow-justify-between crow-px-3 crow-py-1.5 crow-text-sm crow-transition-colors",
|
|
3581
|
+
style: { color: model.id === selectedModel ? "var(--crow-text, #111827)" : "var(--crow-text-muted, #4b5563)" },
|
|
3582
|
+
onMouseEnter: (e) => {
|
|
3583
|
+
e.currentTarget.style.background = "var(--crow-bg-hover, rgba(0,0,0,0.04))";
|
|
3584
|
+
},
|
|
3585
|
+
onMouseLeave: (e) => {
|
|
3586
|
+
e.currentTarget.style.background = "transparent";
|
|
3587
|
+
},
|
|
3588
|
+
children: [
|
|
3589
|
+
/* @__PURE__ */ jsx("span", { children: model.name }),
|
|
3590
|
+
model.id === selectedModel && /* @__PURE__ */ jsx(Check, { className: "crow-w-4 crow-h-4 crow-text-green-500" })
|
|
3591
|
+
]
|
|
3592
|
+
},
|
|
3593
|
+
model.id
|
|
3594
|
+
))
|
|
3595
|
+
] }, provider))
|
|
3596
|
+
}
|
|
3597
|
+
)
|
|
3482
3598
|
] });
|
|
3483
3599
|
};
|
|
3484
3600
|
var isMediaRecorderSupported = () => {
|
|
@@ -3679,9 +3795,12 @@ var Textarea = React3.forwardRef(
|
|
|
3679
3795
|
"textarea",
|
|
3680
3796
|
{
|
|
3681
3797
|
className: cn(
|
|
3682
|
-
"crow-flex crow-w-full crow-rounded-md crow-border-none crow-bg-transparent crow-px-3 crow-py-1.5 crow-text-base
|
|
3798
|
+
"crow-flex crow-w-full crow-rounded-md crow-border-none crow-bg-transparent crow-px-3 crow-py-1.5 crow-text-base focus-visible:crow-outline-none focus-visible:crow-ring-0 disabled:crow-cursor-not-allowed disabled:crow-opacity-50 crow-min-h-[32px] crow-resize-none",
|
|
3683
3799
|
className
|
|
3684
3800
|
),
|
|
3801
|
+
style: {
|
|
3802
|
+
color: "inherit"
|
|
3803
|
+
},
|
|
3685
3804
|
ref,
|
|
3686
3805
|
rows: 1,
|
|
3687
3806
|
...props
|
|
@@ -3698,9 +3817,10 @@ var TooltipContent = React3.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
3698
3817
|
ref,
|
|
3699
3818
|
sideOffset,
|
|
3700
3819
|
className: cn(
|
|
3701
|
-
"crow-z-50 crow-overflow-hidden crow-rounded-md crow-border crow-
|
|
3820
|
+
"crow-z-50 crow-overflow-hidden crow-rounded-md crow-border crow-px-3 crow-py-1.5 crow-text-sm crow-shadow-md",
|
|
3702
3821
|
className
|
|
3703
3822
|
),
|
|
3823
|
+
style: { background: "var(--crow-bg, #ffffff)", borderColor: "var(--crow-border, #d1d5db)", color: "var(--crow-text, #111827)" },
|
|
3704
3824
|
...props
|
|
3705
3825
|
}
|
|
3706
3826
|
));
|
|
@@ -3708,9 +3828,9 @@ TooltipContent.displayName = "TooltipContent";
|
|
|
3708
3828
|
var Button = React3.forwardRef(
|
|
3709
3829
|
({ className, variant = "default", size = "default", ...props }, ref) => {
|
|
3710
3830
|
const variantClasses = {
|
|
3711
|
-
default: "crow-
|
|
3712
|
-
outline: "crow-border crow-bg-transparent
|
|
3713
|
-
ghost: "crow-bg-transparent
|
|
3831
|
+
default: "crow-text-white",
|
|
3832
|
+
outline: "crow-border crow-bg-transparent",
|
|
3833
|
+
ghost: "crow-bg-transparent"
|
|
3714
3834
|
};
|
|
3715
3835
|
const sizeClasses = {
|
|
3716
3836
|
default: "crow-h-10 crow-px-4 crow-py-2",
|
|
@@ -3783,11 +3903,16 @@ var PromptInput = React3.forwardRef(
|
|
|
3783
3903
|
{
|
|
3784
3904
|
ref,
|
|
3785
3905
|
className: cn(
|
|
3786
|
-
"crow-rounded-3xl crow-border crow-
|
|
3906
|
+
"crow-rounded-3xl crow-border crow-p-1.5 crow-shadow-lg crow-transition-all crow-duration-300",
|
|
3787
3907
|
isLoading && "crow-border-red-500",
|
|
3788
3908
|
className
|
|
3789
3909
|
),
|
|
3790
|
-
style
|
|
3910
|
+
style: {
|
|
3911
|
+
background: "var(--crow-bg, #ffffff)",
|
|
3912
|
+
color: "var(--crow-text, #111827)",
|
|
3913
|
+
borderColor: isLoading ? void 0 : "var(--crow-border, #d1d5db)",
|
|
3914
|
+
...style
|
|
3915
|
+
},
|
|
3791
3916
|
children
|
|
3792
3917
|
}
|
|
3793
3918
|
)
|
|
@@ -3870,6 +3995,7 @@ var PromptInputBox = React3.forwardRef(
|
|
|
3870
3995
|
backendUrl = "",
|
|
3871
3996
|
triggerVoiceRecording = 0
|
|
3872
3997
|
}, ref) => {
|
|
3998
|
+
const themeStyles = useActiveStyles();
|
|
3873
3999
|
const [input, setInput] = React3.useState("");
|
|
3874
4000
|
const promptBoxRef = React3.useRef(null);
|
|
3875
4001
|
const voice = useVoiceInput({ backendUrl, silenceTimeoutMs: 1500 });
|
|
@@ -3923,10 +4049,15 @@ var PromptInputBox = React3.forwardRef(
|
|
|
3923
4049
|
highlighted && "crow-ring-4 crow-ring-offset-2 crow-animate-pulse crow-shadow-[0_0_20px_rgba(0,0,0,0.25)]",
|
|
3924
4050
|
className
|
|
3925
4051
|
),
|
|
3926
|
-
style:
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
4052
|
+
style: {
|
|
4053
|
+
background: themeStyles.colors.background,
|
|
4054
|
+
color: themeStyles.colors.text,
|
|
4055
|
+
borderColor: themeStyles.colors.border,
|
|
4056
|
+
...highlighted ? {
|
|
4057
|
+
"--tw-ring-color": themeStyles.colors.userBubble,
|
|
4058
|
+
"--tw-ring-offset-color": themeStyles.colors.background
|
|
4059
|
+
} : {}
|
|
4060
|
+
},
|
|
3930
4061
|
disabled: isLoading,
|
|
3931
4062
|
ref: ref || promptBoxRef,
|
|
3932
4063
|
children: [
|
|
@@ -3966,10 +4097,8 @@ var PromptInputBox = React3.forwardRef(
|
|
|
3966
4097
|
/* @__PURE__ */ jsx(
|
|
3967
4098
|
Mic,
|
|
3968
4099
|
{
|
|
3969
|
-
className:
|
|
3970
|
-
|
|
3971
|
-
voice.isRecording ? "crow-text-red-500" : "crow-text-gray-400"
|
|
3972
|
-
)
|
|
4100
|
+
className: "crow-h-3.5 crow-w-3.5 crow-transition-colors",
|
|
4101
|
+
style: { color: voice.isRecording ? "#ef4444" : "var(--crow-text-muted, #9ca3af)" }
|
|
3973
4102
|
}
|
|
3974
4103
|
),
|
|
3975
4104
|
voice.isRecording && /* @__PURE__ */ jsx("span", { className: "crow-absolute crow-top-0 crow-right-0 crow-h-2 crow-w-2 crow-rounded-full crow-bg-red-500 crow-animate-pulse" })
|
|
@@ -3987,12 +4116,10 @@ var PromptInputBox = React3.forwardRef(
|
|
|
3987
4116
|
{
|
|
3988
4117
|
variant: "default",
|
|
3989
4118
|
size: "icon",
|
|
3990
|
-
className:
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
!hasContent && !isLoading && !showStopButton && "crow-bg-transparent"
|
|
3995
|
-
),
|
|
4119
|
+
className: "crow-h-7 crow-w-7 crow-rounded-full crow-transition-all crow-duration-200",
|
|
4120
|
+
style: {
|
|
4121
|
+
background: isLoading || showStopButton ? "#ef4444" : hasContent ? "var(--crow-primary, #000000)" : "transparent"
|
|
4122
|
+
},
|
|
3996
4123
|
onClick: () => {
|
|
3997
4124
|
if ((isLoading || showStopButton) && onStop) {
|
|
3998
4125
|
onStop();
|
|
@@ -4009,10 +4136,8 @@ var PromptInputBox = React3.forwardRef(
|
|
|
4009
4136
|
) : /* @__PURE__ */ jsx(
|
|
4010
4137
|
ArrowUp,
|
|
4011
4138
|
{
|
|
4012
|
-
className:
|
|
4013
|
-
|
|
4014
|
-
hasContent ? "crow-text-white" : "crow-text-gray-400"
|
|
4015
|
-
)
|
|
4139
|
+
className: "crow-h-3.5 crow-w-3.5",
|
|
4140
|
+
style: { color: hasContent ? "white" : "var(--crow-text-muted, #9ca3af)" }
|
|
4016
4141
|
}
|
|
4017
4142
|
)
|
|
4018
4143
|
}
|
|
@@ -4032,7 +4157,7 @@ function BrowserUseConfirmation({
|
|
|
4032
4157
|
onAllow,
|
|
4033
4158
|
onDeny
|
|
4034
4159
|
}) {
|
|
4035
|
-
const styles =
|
|
4160
|
+
const styles = useActiveStyles();
|
|
4036
4161
|
return /* @__PURE__ */ jsx(
|
|
4037
4162
|
"div",
|
|
4038
4163
|
{
|
|
@@ -4114,7 +4239,7 @@ function BrowserUseQuestion({
|
|
|
4114
4239
|
question,
|
|
4115
4240
|
onSubmit
|
|
4116
4241
|
}) {
|
|
4117
|
-
const styles =
|
|
4242
|
+
const styles = useActiveStyles();
|
|
4118
4243
|
const [answer, setAnswer] = useState("");
|
|
4119
4244
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
4120
4245
|
const handleSubmit = useCallback(() => {
|
|
@@ -4201,15 +4326,15 @@ function SuggestedActions({
|
|
|
4201
4326
|
actions,
|
|
4202
4327
|
onActionClick
|
|
4203
4328
|
}) {
|
|
4204
|
-
const styles =
|
|
4329
|
+
const styles = useActiveStyles();
|
|
4205
4330
|
return /* @__PURE__ */ jsx("div", { className: "crow-flex crow-flex-wrap crow-gap-2 crow-px-1 crow-pb-2", children: actions.map((action, idx) => /* @__PURE__ */ jsx(
|
|
4206
4331
|
"button",
|
|
4207
4332
|
{
|
|
4208
4333
|
onClick: () => onActionClick(action),
|
|
4209
4334
|
className: "crow-rounded-full crow-border crow-px-3 crow-py-1.5 crow-text-sm crow-font-medium crow-transition-colors hover:crow-opacity-80 crow-cursor-pointer",
|
|
4210
4335
|
style: {
|
|
4211
|
-
borderColor: styles.colors.
|
|
4212
|
-
color: styles.colors.
|
|
4336
|
+
borderColor: styles.colors.border,
|
|
4337
|
+
color: styles.colors.text,
|
|
4213
4338
|
background: "transparent"
|
|
4214
4339
|
},
|
|
4215
4340
|
children: action.label
|
|
@@ -6068,7 +6193,20 @@ function CrowCopilot({
|
|
|
6068
6193
|
lineHeight: styles.typography.lineHeight,
|
|
6069
6194
|
letterSpacing: styles.typography.letterSpacing,
|
|
6070
6195
|
background: styles.colors.background,
|
|
6071
|
-
borderColor: styles.colors.border
|
|
6196
|
+
borderColor: styles.colors.border,
|
|
6197
|
+
// CSS variables for dark mode / theme propagation
|
|
6198
|
+
"--crow-primary": styles.colors.primary,
|
|
6199
|
+
"--crow-bg": styles.colors.background,
|
|
6200
|
+
"--crow-text": styles.colors.text,
|
|
6201
|
+
"--crow-border": styles.colors.border,
|
|
6202
|
+
"--crow-bot-bubble": styles.colors.botBubble,
|
|
6203
|
+
"--crow-bot-text": styles.colors.botText,
|
|
6204
|
+
"--crow-user-bubble": styles.colors.userBubble,
|
|
6205
|
+
"--crow-user-text": styles.colors.userText,
|
|
6206
|
+
"--crow-messages-bg": styles.colors.messagesBackground,
|
|
6207
|
+
"--crow-text-muted": styles.colors.text + "80",
|
|
6208
|
+
"--crow-bg-hover": styles.colors.text + "10",
|
|
6209
|
+
"--crow-bg-active": styles.colors.text + "18"
|
|
6072
6210
|
},
|
|
6073
6211
|
children: [
|
|
6074
6212
|
/* @__PURE__ */ jsxs(
|
|
@@ -6094,8 +6232,10 @@ function CrowCopilot({
|
|
|
6094
6232
|
return /* @__PURE__ */ jsxs(
|
|
6095
6233
|
"div",
|
|
6096
6234
|
{
|
|
6097
|
-
className:
|
|
6235
|
+
className: "crow-relative crow-flex-shrink-0 crow-flex crow-items-center crow-text-[13px] crow-leading-tight crow-py-2.5 crow-transition-colors crow-select-none crow-cursor-pointer",
|
|
6098
6236
|
style: {
|
|
6237
|
+
color: isActive ? styles.colors.text : styles.colors.text + "80",
|
|
6238
|
+
fontWeight: isActive ? 500 : void 0,
|
|
6099
6239
|
maxWidth: "180px",
|
|
6100
6240
|
borderRight: idx < tabs.length - 1 ? `1px solid ${styles.colors.border}` : "none",
|
|
6101
6241
|
paddingLeft: "16px",
|
|
@@ -6127,7 +6267,7 @@ function CrowCopilot({
|
|
|
6127
6267
|
isCloseable && /* @__PURE__ */ jsx(
|
|
6128
6268
|
"span",
|
|
6129
6269
|
{
|
|
6130
|
-
className: "crow-rounded crow-p-0.5 crow-flex-shrink-0 crow-inline-flex crow-items-center crow-justify-center crow-transition-opacity
|
|
6270
|
+
className: "crow-rounded crow-p-0.5 crow-flex-shrink-0 crow-inline-flex crow-items-center crow-justify-center crow-transition-opacity",
|
|
6131
6271
|
style: {
|
|
6132
6272
|
marginLeft: "6px",
|
|
6133
6273
|
opacity: isHovered ? 1 : 0,
|
|
@@ -6139,7 +6279,7 @@ function CrowCopilot({
|
|
|
6139
6279
|
},
|
|
6140
6280
|
role: "button",
|
|
6141
6281
|
"aria-label": `Close ${tab.name}`,
|
|
6142
|
-
children: /* @__PURE__ */ jsx(TabCloseIcon, { className: "crow-w-3 crow-h-3
|
|
6282
|
+
children: /* @__PURE__ */ jsx(TabCloseIcon, { className: "crow-w-3 crow-h-3", style: { color: styles.colors.text + "80" } })
|
|
6143
6283
|
}
|
|
6144
6284
|
),
|
|
6145
6285
|
isActive && /* @__PURE__ */ jsx(
|
|
@@ -6169,10 +6309,17 @@ function CrowCopilot({
|
|
|
6169
6309
|
"button",
|
|
6170
6310
|
{
|
|
6171
6311
|
onClick: handleNewChat,
|
|
6172
|
-
className: "crow-p-2
|
|
6312
|
+
className: "crow-p-2 crow-transition-colors crow-rounded",
|
|
6313
|
+
style: { color: styles.colors.text + "80" },
|
|
6314
|
+
onMouseEnter: (e) => {
|
|
6315
|
+
e.currentTarget.style.background = styles.colors.text + "10";
|
|
6316
|
+
},
|
|
6317
|
+
onMouseLeave: (e) => {
|
|
6318
|
+
e.currentTarget.style.background = "transparent";
|
|
6319
|
+
},
|
|
6173
6320
|
"aria-label": "New Chat",
|
|
6174
6321
|
title: "New Chat",
|
|
6175
|
-
children: /* @__PURE__ */ jsx(PlusIcon, { className: "crow-w-4 crow-h-4
|
|
6322
|
+
children: /* @__PURE__ */ jsx(PlusIcon, { className: "crow-w-4 crow-h-4" })
|
|
6176
6323
|
}
|
|
6177
6324
|
),
|
|
6178
6325
|
/* @__PURE__ */ jsx(
|
|
@@ -6181,29 +6328,53 @@ function CrowCopilot({
|
|
|
6181
6328
|
onClick: handleToggleHistory,
|
|
6182
6329
|
disabled: !isVerifiedUser,
|
|
6183
6330
|
"aria-disabled": !isVerifiedUser,
|
|
6184
|
-
className: `crow-p-2 crow-transition-colors
|
|
6331
|
+
className: `crow-p-2 crow-transition-colors crow-rounded ${!isVerifiedUser ? "crow-opacity-40 crow-cursor-not-allowed" : ""}`,
|
|
6332
|
+
style: {
|
|
6333
|
+
color: styles.colors.text + "80",
|
|
6334
|
+
background: showConversationList ? styles.colors.text + "10" : "transparent"
|
|
6335
|
+
},
|
|
6336
|
+
onMouseEnter: (e) => {
|
|
6337
|
+
if (isVerifiedUser) e.currentTarget.style.background = styles.colors.text + "10";
|
|
6338
|
+
},
|
|
6339
|
+
onMouseLeave: (e) => {
|
|
6340
|
+
if (!showConversationList) e.currentTarget.style.background = "transparent";
|
|
6341
|
+
},
|
|
6185
6342
|
"aria-label": "Conversation History",
|
|
6186
6343
|
title: isVerifiedUser ? "Conversation History" : "Sign in to view history",
|
|
6187
|
-
children: /* @__PURE__ */ jsx(HistoryIcon, { className: "crow-w-4 crow-h-4
|
|
6344
|
+
children: /* @__PURE__ */ jsx(HistoryIcon, { className: "crow-w-4 crow-h-4" })
|
|
6188
6345
|
}
|
|
6189
6346
|
),
|
|
6190
6347
|
canScrollRight && /* @__PURE__ */ jsx(
|
|
6191
6348
|
"button",
|
|
6192
6349
|
{
|
|
6193
6350
|
onClick: handleScrollRight,
|
|
6194
|
-
className: "crow-p-2
|
|
6351
|
+
className: "crow-p-2 crow-transition-colors crow-rounded",
|
|
6352
|
+
style: { color: styles.colors.text + "80" },
|
|
6353
|
+
onMouseEnter: (e) => {
|
|
6354
|
+
e.currentTarget.style.background = styles.colors.text + "10";
|
|
6355
|
+
},
|
|
6356
|
+
onMouseLeave: (e) => {
|
|
6357
|
+
e.currentTarget.style.background = "transparent";
|
|
6358
|
+
},
|
|
6195
6359
|
"aria-label": "Scroll tabs",
|
|
6196
6360
|
title: "Scroll tabs",
|
|
6197
|
-
children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "crow-w-4 crow-h-4
|
|
6361
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "crow-w-4 crow-h-4" })
|
|
6198
6362
|
}
|
|
6199
6363
|
),
|
|
6200
6364
|
(forceShowClose ?? showClose) && (overrideOnClose ?? onClose) && /* @__PURE__ */ jsx(
|
|
6201
6365
|
"button",
|
|
6202
6366
|
{
|
|
6203
6367
|
onClick: overrideOnClose ?? onClose,
|
|
6204
|
-
className: "crow-p-2
|
|
6368
|
+
className: "crow-p-2 crow-transition-colors crow-rounded",
|
|
6369
|
+
style: { color: styles.colors.text + "80" },
|
|
6370
|
+
onMouseEnter: (e) => {
|
|
6371
|
+
e.currentTarget.style.background = styles.colors.text + "10";
|
|
6372
|
+
},
|
|
6373
|
+
onMouseLeave: (e) => {
|
|
6374
|
+
e.currentTarget.style.background = "transparent";
|
|
6375
|
+
},
|
|
6205
6376
|
"aria-label": "Close",
|
|
6206
|
-
children: /* @__PURE__ */ jsx(CloseIcon, { className: "crow-w-4 crow-h-4
|
|
6377
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "crow-w-4 crow-h-4" })
|
|
6207
6378
|
}
|
|
6208
6379
|
)
|
|
6209
6380
|
]
|
|
@@ -6217,7 +6388,7 @@ function CrowCopilot({
|
|
|
6217
6388
|
{
|
|
6218
6389
|
className: "crow-flex crow-items-center crow-gap-1.5 crow-px-3 crow-py-1.5 crow-border-b crow-text-xs",
|
|
6219
6390
|
style: {
|
|
6220
|
-
color: "
|
|
6391
|
+
color: styles.colors.text + "80",
|
|
6221
6392
|
borderColor: styles.colors.border
|
|
6222
6393
|
},
|
|
6223
6394
|
children: [
|
|
@@ -6254,7 +6425,14 @@ function CrowCopilot({
|
|
|
6254
6425
|
onClose: handleCloseConversationList
|
|
6255
6426
|
}
|
|
6256
6427
|
),
|
|
6257
|
-
showConversationList && !isVerifiedUser && /* @__PURE__ */ jsx(
|
|
6428
|
+
showConversationList && !isVerifiedUser && /* @__PURE__ */ jsx(
|
|
6429
|
+
"div",
|
|
6430
|
+
{
|
|
6431
|
+
className: "crow-mb-3 crow-rounded-xl crow-border crow-p-4",
|
|
6432
|
+
style: { background: styles.colors.text + "08", borderColor: styles.colors.border },
|
|
6433
|
+
children: /* @__PURE__ */ jsx("div", { className: "crow-text-sm", style: { color: styles.colors.text + "99" }, children: "Sign in to view conversation history." })
|
|
6434
|
+
}
|
|
6435
|
+
)
|
|
6258
6436
|
] }),
|
|
6259
6437
|
/* @__PURE__ */ jsx(AnimatePresence, { children: activeWorkflow && /* @__PURE__ */ jsx(
|
|
6260
6438
|
WorkflowPanel,
|
|
@@ -6307,7 +6485,7 @@ function CrowCopilot({
|
|
|
6307
6485
|
className: "crow-p-3 crow-border-t",
|
|
6308
6486
|
style: { borderColor: styles.colors.border },
|
|
6309
6487
|
children: [
|
|
6310
|
-
toolStatus && /* @__PURE__ */ jsxs("div", { className: "crow-mb-1 crow-flex crow-items-center crow-gap-2 crow-rounded-lg crow-border crow-
|
|
6488
|
+
toolStatus && /* @__PURE__ */ jsxs("div", { className: "crow-mb-1 crow-flex crow-items-center crow-gap-2 crow-rounded-lg crow-border crow-px-3 crow-py-2 crow-text-sm", style: { borderColor: styles.colors.border, background: styles.colors.border + "30" }, children: [
|
|
6311
6489
|
/* @__PURE__ */ jsxs("svg", { className: "crow-animate-spin crow-h-4 crow-w-4 crow-shrink-0 crow-text-[var(--crow-primary,#7c3aed)]", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [
|
|
6312
6490
|
/* @__PURE__ */ jsx("circle", { className: "crow-opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
6313
6491
|
/* @__PURE__ */ jsx("path", { className: "crow-opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" })
|
|
@@ -6356,7 +6534,8 @@ function CrowCopilot({
|
|
|
6356
6534
|
}
|
|
6357
6535
|
const isRight = position === "right";
|
|
6358
6536
|
const edgeSide = isRight ? "left" : "right";
|
|
6359
|
-
const
|
|
6537
|
+
const toggleIconColor = styles.colors.text + "80";
|
|
6538
|
+
const toggleIcon = isCollapsed ? /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: toggleIconColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z" }) }) : /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: toggleIconColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: isRight ? /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) : /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" }) });
|
|
6360
6539
|
return /* @__PURE__ */ jsxs("div", { style: { position: "relative", flexShrink: 0, height: "100%" }, children: [
|
|
6361
6540
|
/* @__PURE__ */ jsx(
|
|
6362
6541
|
"button",
|
|
@@ -6375,8 +6554,8 @@ function CrowCopilot({
|
|
|
6375
6554
|
display: "flex",
|
|
6376
6555
|
alignItems: "center",
|
|
6377
6556
|
justifyContent: "center",
|
|
6378
|
-
background:
|
|
6379
|
-
border:
|
|
6557
|
+
background: styles.colors.background,
|
|
6558
|
+
border: `1px solid ${styles.colors.border}`,
|
|
6380
6559
|
[isRight ? "borderRight" : "borderLeft"]: "none",
|
|
6381
6560
|
borderRadius: isRight ? "8px 0 0 8px" : "0 8px 8px 0",
|
|
6382
6561
|
cursor: isCollapsed ? "pointer" : "col-resize",
|
|
@@ -6446,7 +6625,7 @@ function HistoryIcon({ className }) {
|
|
|
6446
6625
|
}
|
|
6447
6626
|
);
|
|
6448
6627
|
}
|
|
6449
|
-
function TabCloseIcon({ className }) {
|
|
6628
|
+
function TabCloseIcon({ className, style }) {
|
|
6450
6629
|
return /* @__PURE__ */ jsxs(
|
|
6451
6630
|
"svg",
|
|
6452
6631
|
{
|
|
@@ -6460,6 +6639,7 @@ function TabCloseIcon({ className }) {
|
|
|
6460
6639
|
strokeLinecap: "round",
|
|
6461
6640
|
strokeLinejoin: "round",
|
|
6462
6641
|
className,
|
|
6642
|
+
style,
|
|
6463
6643
|
children: [
|
|
6464
6644
|
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
6465
6645
|
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|