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.
@@ -3,4 +3,5 @@ import { MenuProps as AntdMenuProps } from 'antd';
3
3
  export type MenuItem = ItemType;
4
4
  export interface MenuProps extends Omit<AntdMenuProps, 'onSelect'> {
5
5
  onSelect?: (path: string) => void;
6
+ defaultActiveKey?: string;
6
7
  }
@@ -11,5 +11,6 @@ export interface ChatInputProps {
11
11
  placeholder?: string;
12
12
  extra?: ReactNode;
13
13
  actions?: ReactNode;
14
+ disabled?: boolean;
14
15
  }
15
16
  export declare const ChatInput: (props: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.227",
3
+ "version": "0.0.229",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",