@flatbiz/antd 2.3.39 → 2.3.42

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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { TextAreaProps } from 'antd/lib/input';
10
10
  import { ColumnsType } from 'antd/lib/table';
11
11
  import { UploadChangeParam } from 'antd/lib/upload';
12
12
  import { UploadFile } from 'antd/lib/upload/interface';
13
- import { CSSProperties, DependencyList, EffectCallback, FC, ReactElement, ReactNode, VFC } from 'react';
13
+ import { CSSProperties, DependencyList, Dispatch, EffectCallback, FC, ReactElement, ReactNode, SetStateAction, VFC } from 'react';
14
14
 
15
15
  export declare const styles: () => void;
16
16
  export interface ButtonOperateItem extends ButtonProps {
@@ -605,13 +605,18 @@ export declare const Gap: VFC<GapProps>;
605
605
  export declare const useEffectCustom: (fn: EffectCallback, deps: DependencyList) => void;
606
606
  export declare const useEffectCustomAsync: (fn: () => Promise<void>, deps: DependencyList) => void;
607
607
  export declare type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
608
+ export declare const useSafeState: <S extends unknown>(initialState?: S | (() => S) | undefined) => [
609
+ S,
610
+ Dispatch<SetStateAction<S>>
611
+ ];
608
612
  export declare type IconWrapperProps = {
609
- hoverTips?: string;
613
+ hoverTips?: string | React.ReactElement;
610
614
  icon?: React.ReactNode;
611
615
  style?: CSSProperties;
612
616
  text?: string | React.ReactElement;
613
617
  className?: string;
614
618
  size?: "small" | "middle" | "large";
619
+ onClick?: () => void;
615
620
  };
616
621
  export declare const IconWrapper: VFC<IconWrapperProps>;
617
622
  export interface ModalStateType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "2.3.39",
3
+ "version": "2.3.42",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "@dimjs/model": "^1.1.3",
41
41
  "@dimjs/model-react": "^1.1.4",
42
42
  "@dimjs/utils": "^1.2.9",
43
- "@flatbiz/utils": "^2.3.39",
43
+ "@flatbiz/utils": "^2.3.42",
44
44
  "@wove/react": "^1.2.10",
45
45
  "antd": "^4.20.0",
46
46
  "moment": "^2.29.3",
@@ -49,5 +49,5 @@
49
49
  "react-router": "^6.3.0",
50
50
  "react-router-dom": "^6.3.0"
51
51
  },
52
- "gitHead": "48fb4ec8bd41a636008d94c338dbd13bbe25df77"
52
+ "gitHead": "259d42f41f6cb6f86e4d79f7b8f5cf8c8821bb71"
53
53
  }