listpage-next 0.0.227 → 0.0.229
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.
|
@@ -6,7 +6,7 @@ import { ChatInputBottom, ChatInputContent, ChatInputPanel, ExtraContainer, Send
|
|
|
6
6
|
import { useTrigger } from "./hooks/useTrigger.js";
|
|
7
7
|
import { IconSend } from "../../icons/IconSend.js";
|
|
8
8
|
const ChatInput = (props)=>{
|
|
9
|
-
const { style, className, placeholder, extra, actions, loading, onSubmit, skills = [] } = props;
|
|
9
|
+
const { style, className, placeholder, extra, actions, loading, onSubmit, disabled, skills = [] } = props;
|
|
10
10
|
const ref = useRef(null);
|
|
11
11
|
const [inputValue, setInputValue] = useState('');
|
|
12
12
|
const { interceptKeyDown, ...triggerProps } = useTrigger({
|
|
@@ -58,7 +58,7 @@ const ChatInput = (props)=>{
|
|
|
58
58
|
variant: "filled",
|
|
59
59
|
onClick: handleClickSend,
|
|
60
60
|
onKeyDown: handleKeyDown,
|
|
61
|
-
disabled: !inputValue && !loading,
|
|
61
|
+
disabled: disabled || !inputValue && !loading,
|
|
62
62
|
icon: /*#__PURE__*/ jsx(IconSend, {
|
|
63
63
|
size: 16
|
|
64
64
|
}),
|
|
@@ -55,9 +55,12 @@ const ConversationDropdownMenu = (props)=>{
|
|
|
55
55
|
const DefaultPanelContainer = styled_components.div`
|
|
56
56
|
padding: 12px 24px;
|
|
57
57
|
background: #fff;
|
|
58
|
-
color: rgba(0,0,0,0.88);
|
|
58
|
+
color: rgba(0, 0, 0, 0.88);
|
|
59
59
|
border-radius: 8px;
|
|
60
60
|
min-height: 100px;
|
|
61
61
|
min-width: 200px;
|
|
62
|
+
box-shadow:
|
|
63
|
+
0px 0px 4px 0px rgba(0, 0, 0, 0.02),
|
|
64
|
+
0px 6px 12px 0px rgba(47, 53, 64, 0.12);
|
|
62
65
|
`;
|
|
63
66
|
export { ConversationDropdownMenu };
|