listpage-next 0.0.228 → 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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.228",
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",