listpage-next 0.0.64 → 0.0.65

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.
@@ -1,7 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { ChatGuidance } from "../features/ChatClient/index.js";
3
3
  const Demo8 = ()=>/*#__PURE__*/ jsx(ChatGuidance, {
4
- skill: "深入研究",
5
4
  greetingText: "搜索海量信息,生成研究报告"
6
5
  });
7
6
  export { Demo8 };
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
2
  export interface ChatGuidanceProps {
3
3
  greetingText?: string;
4
- skill?: string;
5
4
  extra?: React.ReactNode;
6
5
  value?: string;
7
6
  onChange?: (value: string) => void;
7
+ onSubmit?: (value: string) => void;
8
+ style?: React.CSSProperties;
9
+ className?: string;
8
10
  }
9
11
  export declare const ChatGuidance: (props: ChatGuidanceProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,10 +4,12 @@ import { Button, Divider, Input } from "antd";
4
4
  import { useControllableValue } from "ahooks";
5
5
  import { ChatInputBottom, ChatInputContent, ChatInputPanel, GreetingText } from "./styles.js";
6
6
  const ChatGuidance = (props)=>{
7
- const { greetingText, extra } = props;
7
+ const { greetingText, extra, style, onSubmit, className } = props;
8
8
  const [value, onChange] = useControllableValue(props);
9
9
  const disabled = !value;
10
10
  return /*#__PURE__*/ jsxs("div", {
11
+ style: style,
12
+ className: className,
11
13
  children: [
12
14
  /*#__PURE__*/ jsx(GreetingText, {
13
15
  children: greetingText
@@ -31,6 +33,7 @@ const ChatGuidance = (props)=>{
31
33
  }),
32
34
  /*#__PURE__*/ jsx(Button, {
33
35
  type: "primary",
36
+ onClick: ()=>onSubmit?.(value),
34
37
  disabled: disabled,
35
38
  children: "发送"
36
39
  })
@@ -50,6 +50,8 @@ const ChatInputContent = styled_components.div`
50
50
  min-height: 100px;
51
51
  max-height: 220px;
52
52
  resize: none;
53
+
54
+ background-color: transparent;
53
55
  }
54
56
  `;
55
57
  const SkillTag = styled_components(Tag)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",