listpage-next 0.0.200 → 0.0.201

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,9 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState } from "react";
3
- import { Button, Divider, Dropdown } from "antd";
4
- import { PauseCircleTwoTone } from "@ant-design/icons";
3
+ import { Divider, Dropdown } from "antd";
5
4
  import { EditorContent } from "../EditorContent/index.js";
6
- import { ChatInputBottom, ChatInputContent, ChatInputPanel, ExtraContainer } from "./styles.js";
5
+ import { ChatInputBottom, ChatInputContent, ChatInputPanel, ExtraContainer, SendButton } from "./styles.js";
7
6
  import { useTrigger } from "./hooks/useTrigger.js";
8
7
  import { IconSend } from "../../icons/IconSend.js";
9
8
  const ChatInput = (props)=>{
@@ -53,21 +52,22 @@ const ChatInput = (props)=>{
53
52
  size: "large",
54
53
  type: "vertical"
55
54
  }),
56
- /*#__PURE__*/ jsx(Button, {
55
+ /*#__PURE__*/ jsx(SendButton, {
57
56
  type: "primary",
58
57
  shape: "circle",
59
58
  variant: "filled",
60
59
  onClick: handleClickSend,
61
60
  onKeyDown: handleKeyDown,
62
61
  disabled: !inputValue && !loading,
62
+ icon: /*#__PURE__*/ jsx(IconSend, {
63
+ size: 16
64
+ }),
65
+ loading: loading,
63
66
  style: {
64
67
  display: 'inline-flex',
65
68
  alignItems: 'center',
66
69
  justifyContent: 'center'
67
- },
68
- children: loading ? /*#__PURE__*/ jsx(PauseCircleTwoTone, {}) : /*#__PURE__*/ jsx(IconSend, {
69
- size: 16
70
- })
70
+ }
71
71
  })
72
72
  ]
73
73
  })
@@ -2,3 +2,6 @@ export declare const ChatInputPanel: import("styled-components/dist/types").ISty
2
2
  export declare const ChatInputContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  export declare const ChatInputBottom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  export declare const ExtraContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const SendButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
6
+ Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
7
+ }, keyof import("react").Component<any, {}, any>>;
@@ -1,3 +1,4 @@
1
+ import { Button } from "antd";
1
2
  import { styled } from "styled-components";
2
3
  const ChatInputPanel = styled.div`
3
4
  position: relative;
@@ -53,4 +54,11 @@ const ExtraContainer = styled.div`
53
54
  align-items: center;
54
55
  justify-content: center;
55
56
  `;
56
- export { ChatInputBottom, ChatInputContent, ChatInputPanel, ExtraContainer };
57
+ const SendButton = styled(Button)`
58
+ .ant-btn-icon {
59
+ display: inline-flex;
60
+ align-items: center;
61
+ justify-content: center;
62
+ }
63
+ `;
64
+ export { ChatInputBottom, ChatInputContent, ChatInputPanel, ExtraContainer, SendButton };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.200",
3
+ "version": "0.0.201",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",