listpage-next 0.0.281 → 0.0.283

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.
@@ -0,0 +1 @@
1
+ export declare const ErrorComponent: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import styled_components from "styled-components";
3
+ const ErrorComponent = (props)=>{
4
+ const { className, children } = props;
5
+ return /*#__PURE__*/ jsx(ErrorContainer, {
6
+ className: className,
7
+ children: children
8
+ });
9
+ };
10
+ const ErrorContainer = styled_components.div`
11
+ background-color: #ffccc7;
12
+ border: 1px solid #ffccc7;
13
+ border-radius: 8px;
14
+ padding: 8px 12px;
15
+ color: #cf1322;
16
+ font-size: 14px;
17
+ margin: 8px 0;
18
+ display: flex;
19
+ align-items: center;
20
+ gap: 8px;
21
+ line-height: 1.5;
22
+ `;
23
+ export { ErrorComponent };
@@ -5,6 +5,7 @@ import "@ant-design/x-markdown/themes/light.css";
5
5
  import { Placeholder } from "./components/PlaceholderComponent.js";
6
6
  import { Think } from "./components/ThinkConponent.js";
7
7
  import { Code } from "./components/CodeComponent.js";
8
+ import { ErrorComponent } from "./components/ErrorComponent.js";
8
9
  import { Reasoning } from "./base/Reasoning.js";
9
10
  const Markdown = ({ hasNextChunk, ...props })=>/*#__PURE__*/ jsx(MarkdownBody, {
10
11
  ...props,
@@ -12,6 +13,7 @@ const Markdown = ({ hasNextChunk, ...props })=>/*#__PURE__*/ jsx(MarkdownBody, {
12
13
  placeholder: Placeholder,
13
14
  think: Think,
14
15
  code: Code,
16
+ error: ErrorComponent,
15
17
  ...props.components
16
18
  },
17
19
  streaming: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.281",
3
+ "version": "0.0.283",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",