@faasjs/ant-design 2.3.0 → 2.3.1

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.
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
9
9
  import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
10
10
  import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
11
11
  import * as react from 'react';
12
- import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
12
+ import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
13
13
  export { lazy } from 'react';
14
14
  import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
15
15
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
@@ -32,7 +32,7 @@ declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticF
32
32
  interface ModalProps extends ModalProps$1 {
33
33
  children?: JSX.Element | JSX.Element[] | string;
34
34
  }
35
- type setModalProps = (changes: Partial<ModalProps> | ((prev: Partial<ModalProps>) => Partial<ModalProps>)) => void;
35
+ type setModalProps = Dispatch<SetStateAction<ModalProps>>;
36
36
  /**
37
37
  * Hook style modal
38
38
  *
@@ -59,7 +59,7 @@ declare const Drawer: react.FC<DrawerProps> & {
59
59
  interface DrawerProps extends DrawerProps$1 {
60
60
  children?: JSX.Element | JSX.Element[];
61
61
  }
62
- type setDrawerProps = (changes: Partial<DrawerProps> | ((prev: Partial<DrawerProps>) => Partial<DrawerProps>)) => void;
62
+ type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
63
63
  /**
64
64
  * Hook style drawer
65
65
  *
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
9
9
  import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
10
10
  import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
11
11
  import * as react from 'react';
12
- import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
12
+ import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
13
13
  export { lazy } from 'react';
14
14
  import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
15
15
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
@@ -32,7 +32,7 @@ declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticF
32
32
  interface ModalProps extends ModalProps$1 {
33
33
  children?: JSX.Element | JSX.Element[] | string;
34
34
  }
35
- type setModalProps = (changes: Partial<ModalProps> | ((prev: Partial<ModalProps>) => Partial<ModalProps>)) => void;
35
+ type setModalProps = Dispatch<SetStateAction<ModalProps>>;
36
36
  /**
37
37
  * Hook style modal
38
38
  *
@@ -59,7 +59,7 @@ declare const Drawer: react.FC<DrawerProps> & {
59
59
  interface DrawerProps extends DrawerProps$1 {
60
60
  children?: JSX.Element | JSX.Element[];
61
61
  }
62
- type setDrawerProps = (changes: Partial<DrawerProps> | ((prev: Partial<DrawerProps>) => Partial<DrawerProps>)) => void;
62
+ type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
63
63
  /**
64
64
  * Hook style drawer
65
65
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,7 +26,7 @@
26
26
  "lodash-es": "*"
27
27
  },
28
28
  "peerDependencies": {
29
- "@faasjs/react": "2.3.0",
29
+ "@faasjs/react": "2.3.1",
30
30
  "antd": "*",
31
31
  "react": "*",
32
32
  "react-dom": "*",
@@ -38,7 +38,7 @@
38
38
  "@testing-library/react": "*",
39
39
  "@testing-library/user-event": "*",
40
40
  "@welldone-software/why-did-you-render": "*",
41
- "@faasjs/react": "2.3.0",
41
+ "@faasjs/react": "2.3.1",
42
42
  "antd": "*",
43
43
  "react": "*",
44
44
  "react-dom": "*",