listpage-next 0.0.233 → 0.0.234

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,14 +1,8 @@
1
1
  import { ModalProps } from 'antd';
2
2
  import { ReactNode } from 'react';
3
- export interface PageModalProps extends Omit<ModalProps, 'visible' | 'open' | 'onOk' | 'onCancel' | 'footer' | 'title' | 'children' | 'okText' | 'cancelText' | 'closeIcon' | 'closeable'> {
4
- visible: boolean;
5
- onOk?: () => void;
6
- onCancel?: () => void;
7
- okText?: string;
8
- cancelText?: string;
3
+ export interface PageModalProps extends Omit<ModalProps, 'footer' | 'title'> {
9
4
  icon?: ReactNode;
10
5
  title: string;
11
- children?: ReactNode;
12
6
  actionPosition?: 'top' | 'bottom' | 'none';
13
7
  extraActions?: ReactNode;
14
8
  }
@@ -3,15 +3,13 @@ import { Modal } from "antd";
3
3
  import styled_components from "styled-components";
4
4
  import { useActions } from "./useActions.js";
5
5
  const PageModal = (props)=>{
6
- const { icon, visible, children, extraActions, actionPosition = 'bottom', ...modalProps } = props;
6
+ const { icon, children, extraActions, actionPosition = 'bottom', ...modalProps } = props;
7
7
  const { footer, header } = useActions(props);
8
8
  return /*#__PURE__*/ jsx(ModalStyled, {
9
9
  ...modalProps,
10
- open: visible,
11
10
  title: header,
12
- closeIcon: null,
13
11
  footer: footer,
14
- closable: 'top' !== actionPosition,
12
+ closable: false,
15
13
  children: children
16
14
  });
17
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",