listpage-next 0.0.124 → 0.0.126

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.
@@ -32,14 +32,12 @@ const FilterForm = ({ options, initialValues, onSubmit, onReset })=>{
32
32
  onSubmit?.(cleanUpFormValues(values));
33
33
  onReset?.();
34
34
  };
35
- return /*#__PURE__*/ jsxs(Form, {
35
+ return /*#__PURE__*/ jsx(Form, {
36
36
  ref: formRef,
37
37
  initialValues: initialValues ?? {},
38
- children: [
39
- /*#__PURE__*/ jsx(FilterGridLayout, {
40
- items: items
41
- }),
42
- /*#__PURE__*/ jsxs(Space, {
38
+ children: /*#__PURE__*/ jsx(FilterGridLayout, {
39
+ items: items,
40
+ extra: /*#__PURE__*/ jsxs(Space, {
43
41
  children: [
44
42
  /*#__PURE__*/ jsx(Button, {
45
43
  onClick: handleSubmit,
@@ -56,7 +54,7 @@ const FilterForm = ({ options, initialValues, onSubmit, onReset })=>{
56
54
  })
57
55
  ]
58
56
  })
59
- ]
57
+ })
60
58
  });
61
59
  };
62
60
  export { FilterForm };
@@ -5,5 +5,6 @@ export interface FilterGridLayoutProps {
5
5
  key: string;
6
6
  colSpan?: number;
7
7
  }[];
8
+ extra?: React.ReactNode;
8
9
  }
9
10
  export declare const FilterGridLayout: (props: FilterGridLayoutProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,28 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import styled_components from "styled-components";
4
4
  const GridContainer = styled_components.div`
5
5
  display: grid;
6
6
  grid-template-columns: repeat(12, 1fr);
7
- row-gap: 0;
8
7
  column-gap: 1rem;
8
+ row-gap: 1rem;
9
9
  `;
10
10
  const GridItem = styled_components.div`
11
11
  grid-column: span ${(props)=>props.$colSpan};
12
12
  `;
13
13
  const FilterGridLayout = (props)=>{
14
- const { items } = props;
15
- return /*#__PURE__*/ jsx(GridContainer, {
16
- children: items.map((item, i)=>/*#__PURE__*/ jsx(GridItem, {
17
- $colSpan: item.colSpan || 12,
18
- children: item.node
19
- }, item.key))
14
+ const { items, extra } = props;
15
+ return /*#__PURE__*/ jsxs(GridContainer, {
16
+ children: [
17
+ items.map((item, i)=>/*#__PURE__*/ jsx(GridItem, {
18
+ $colSpan: item.colSpan || 12,
19
+ children: item.node
20
+ }, item.key)),
21
+ /*#__PURE__*/ jsx(GridItem, {
22
+ $colSpan: 2,
23
+ children: extra
24
+ })
25
+ ]
20
26
  });
21
27
  };
22
28
  export { FilterGridLayout };
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled_components from "styled-components";
3
3
  const WrapperContainer = styled_components.div`
4
4
  position: relative;
5
- margin-bottom: 1.5rem;
5
+ // margin-bottom: 1.5rem;
6
6
  `;
7
7
  const ChildrenContainer = styled_components.div`
8
8
  & > div {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",