@faasjs/ant-design 0.0.3-beta.25 → 0.0.3-beta.26

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
@@ -5,6 +5,8 @@ import { DescriptionsProps, DrawerProps as DrawerProps$1, FormItemProps as FormI
5
5
  export { Drawer, Modal } from 'antd';
6
6
  import { FaasDataWrapperProps } from '@faasjs/react';
7
7
  export { FaasDataInjection, FaasDataWrapperProps } from '@faasjs/react';
8
+ import * as rc_field_form_es_useWatch from 'rc-field-form/es/useWatch';
9
+ import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormInstance';
8
10
  import * as antd_es_form_Form from 'antd/es/form/Form';
9
11
  import { RuleObject } from 'rc-field-form/lib/interface';
10
12
  import { RouteProps } from 'react-router-dom';
@@ -221,6 +223,11 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
221
223
  * ```
222
224
  */
223
225
  declare function FormItem<T = any>(props: FormItemProps<T>): JSX.Element;
226
+ declare namespace FormItem {
227
+ var useStatus: () => {
228
+ status?: "" | "error" | "warning" | "success" | "validating";
229
+ };
230
+ }
224
231
 
225
232
  interface FormProps<Values extends Record<string, any> = any, ExtendItemProps = any> extends Omit<FormProps$1<Values>, 'onFinish' | 'children' | 'initialValues'> {
226
233
  items?: (FormItemProps | ExtendItemProps | JSX.Element)[];
@@ -274,6 +281,8 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps =
274
281
  declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
275
282
  declare namespace Form {
276
283
  var useForm: typeof antd_es_form_Form.useForm;
284
+ var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
285
+ var useWatch: typeof rc_field_form_es_useWatch.default;
277
286
  }
278
287
 
279
288
  interface LinkProps {
package/dist/index.js CHANGED
@@ -755,6 +755,7 @@ function FormItem(props) {
755
755
  return null;
756
756
  }
757
757
  }
758
+ FormItem.useStatus = import_antd6.Form.Item.useStatus;
758
759
 
759
760
  // src/Form.tsx
760
761
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -864,6 +865,8 @@ function Form(props) {
864
865
  });
865
866
  }
866
867
  Form.useForm = import_antd7.Form.useForm;
868
+ Form.useFormInstance = import_antd7.Form.useFormInstance;
869
+ Form.useWatch = import_antd7.Form.useWatch;
867
870
 
868
871
  // src/Link.tsx
869
872
  var import_react_router_dom = require("react-router-dom");
package/dist/index.mjs CHANGED
@@ -741,6 +741,7 @@ function FormItem(props) {
741
741
  return null;
742
742
  }
743
743
  }
744
+ FormItem.useStatus = AntdForm.Item.useStatus;
744
745
 
745
746
  // src/Form.tsx
746
747
  import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -850,6 +851,8 @@ function Form(props) {
850
851
  });
851
852
  }
852
853
  Form.useForm = AntdForm2.useForm;
854
+ Form.useFormInstance = AntdForm2.useFormInstance;
855
+ Form.useWatch = AntdForm2.useWatch;
853
856
 
854
857
  // src/Link.tsx
855
858
  import { Link as RouterLink } from "react-router-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.25",
3
+ "version": "0.0.3-beta.26",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  "lodash-es": "*",
29
29
  "react": "*",
30
30
  "react-dom": "*",
31
- "@faasjs/react": "^0.0.3-beta.25",
31
+ "@faasjs/react": "^0.0.3-beta.26",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },