sync update from LAN repo (source dhk-1 @ fc974e93)

This commit is contained in:
gozeros committed 2026-11-17 11:28:44 +08:00
1 parent a1fa13a238
commit e2fea6a801
432 files changed
+68707 -2270

No files matched your search

@@ -78,7 +78,7 @@ import {
useRef,
useState,
} from "react";
import { toast } from "sonner";
import { toast } from "@/core/ui/feedback";
// ============================================================================
// Provider Context & Types
@@ -1225,7 +1225,7 @@ export const PromptInputButton = ({
}: PromptInputButtonProps) => {
return (
<InputGroupButton
className={cn(className)}
className={cn("agent-composer-tool", className)}
size="sm"
type="button"
variant={variant}
@@ -1287,28 +1287,29 @@ export const PromptInputSubmit = ({
status,
children,
...props
}: PromptInputSubmitProps) => {
let Icon = <ArrowUpIcon className="size-4" />;
let ariaLabel = "发送消息";
if (status === "submitted") {
Icon = <Loader2Icon className="size-4 animate-spin" />;
ariaLabel = "正在发送";
} else if (status === "streaming") {
Icon = <SquareIcon className="size-4" />;
ariaLabel = "停止生成";
} else if (status === "error") {
Icon = <XIcon className="size-4" />;
ariaLabel = "重新发送";
}
return (
<InputGroupButton
aria-label={ariaLabel}
}: PromptInputSubmitProps) => {
let Icon = <ArrowUpIcon className="size-4" />;
let ariaLabel = "发送消息";
if (status === "submitted") {
Icon = <Loader2Icon className="size-4 animate-spin" />;
ariaLabel = "正在发送";
} else if (status === "streaming") {
Icon = <SquareIcon className="size-4" />;
ariaLabel = "停止生成";
} else if (status === "error") {
Icon = <XIcon className="size-4" />;
ariaLabel = "重新发送";
}
return (
<InputGroupButton
aria-label={ariaLabel}
className={cn(
"transition-all duration-300",
status === "streaming" &&
"animate-breathe-stop bg-primary/10 text-primary border-primary/25 shadow-[0_0_0_0_rgba(217,33,33,0.25)] hover:bg-primary/14",
// 皮肤本体在 globals.css 的 .agent-composer-send(主题色扁平渐变
// 圆钮);流式态切 .agent-composer-send--stop 低对比停止钮。
"agent-composer-send transition-all duration-300",
status === "streaming" && "agent-composer-send--stop",
className,
)}
size={size}