@antscorp/ama-ui 0.0.20 → 0.0.21

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.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { ActionSheet } from 'antd-mobile';
1
+ import { Action } from 'antd-mobile/es/components/action-sheet';
2
+ import { ActionSheet as ActionSheet_2 } from 'antd-mobile';
2
3
  import { ActionSheetProps as ActionSheetProps_2 } from 'antd-mobile';
4
+ import { ActionSheetShowHandler } from 'antd-mobile/es/components/action-sheet';
3
5
  import { AutoCenter } from 'antd-mobile';
4
6
  import { AutoCenterProps } from 'antd-mobile';
5
7
  import { AvatarProps as AvatarProps_2 } from 'antd-mobile';
@@ -52,13 +54,21 @@ import { Toast } from 'antd-mobile';
52
54
  import { ToastHandler } from 'antd-mobile/es/components/toast';
53
55
  import { ToastShowProps } from 'antd-mobile';
54
56
 
55
- export { ActionSheet }
57
+ export { Action }
58
+
59
+ export declare const ActionSheet: ActionSheetType;
56
60
 
57
61
  export declare interface ActionSheetProps extends ActionSheetProps_2 {
58
62
  /** An optional prop */
59
63
  optional?: string;
60
64
  }
61
65
 
66
+ export { ActionSheetShowHandler }
67
+
68
+ declare type ActionSheetType = React.FC<ActionSheetProps> & {
69
+ show: typeof ActionSheet_2.show;
70
+ };
71
+
62
72
  export { AutoCenter }
63
73
 
64
74
  export { AutoCenterProps }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/ama-ui",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "main": "dist/ama-ui.es.js",
5
5
  "module": "dist/ama-ui.es.js",
6
6
  "types": "dist/index.d.ts",