@faasjs/ant-design 0.0.3-beta.25 → 0.0.3-beta.27
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 +16 -0
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ 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 antd_es_form_context from 'antd/es/form/context';
|
|
9
|
+
import * as antd_es_form_ErrorList from 'antd/es/form/ErrorList';
|
|
10
|
+
import * as antd_es_form from 'antd/es/form';
|
|
11
|
+
import * as rc_field_form_es_useWatch from 'rc-field-form/es/useWatch';
|
|
12
|
+
import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormInstance';
|
|
8
13
|
import * as antd_es_form_Form from 'antd/es/form/Form';
|
|
9
14
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
10
15
|
import { RouteProps } from 'react-router-dom';
|
|
@@ -221,6 +226,11 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
|
|
|
221
226
|
* ```
|
|
222
227
|
*/
|
|
223
228
|
declare function FormItem<T = any>(props: FormItemProps<T>): JSX.Element;
|
|
229
|
+
declare namespace FormItem {
|
|
230
|
+
var useStatus: () => {
|
|
231
|
+
status?: "" | "error" | "warning" | "success" | "validating";
|
|
232
|
+
};
|
|
233
|
+
}
|
|
224
234
|
|
|
225
235
|
interface FormProps<Values extends Record<string, any> = any, ExtendItemProps = any> extends Omit<FormProps$1<Values>, 'onFinish' | 'children' | 'initialValues'> {
|
|
226
236
|
items?: (FormItemProps | ExtendItemProps | JSX.Element)[];
|
|
@@ -274,6 +284,12 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps =
|
|
|
274
284
|
declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
|
|
275
285
|
declare namespace Form {
|
|
276
286
|
var useForm: typeof antd_es_form_Form.useForm;
|
|
287
|
+
var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
|
|
288
|
+
var useWatch: typeof rc_field_form_es_useWatch.default;
|
|
289
|
+
var Item: typeof FormItem;
|
|
290
|
+
var List: react.FC<antd_es_form.FormListProps>;
|
|
291
|
+
var ErrorList: typeof antd_es_form_ErrorList.default;
|
|
292
|
+
var Provider: react.FC<antd_es_form_context.FormProviderProps>;
|
|
277
293
|
}
|
|
278
294
|
|
|
279
295
|
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,12 @@ 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;
|
|
870
|
+
Form.Item = FormItem;
|
|
871
|
+
Form.List = import_antd7.Form.List;
|
|
872
|
+
Form.ErrorList = import_antd7.Form.ErrorList;
|
|
873
|
+
Form.Provider = import_antd7.Form.Provider;
|
|
867
874
|
|
|
868
875
|
// src/Link.tsx
|
|
869
876
|
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,12 @@ function Form(props) {
|
|
|
850
851
|
});
|
|
851
852
|
}
|
|
852
853
|
Form.useForm = AntdForm2.useForm;
|
|
854
|
+
Form.useFormInstance = AntdForm2.useFormInstance;
|
|
855
|
+
Form.useWatch = AntdForm2.useWatch;
|
|
856
|
+
Form.Item = FormItem;
|
|
857
|
+
Form.List = AntdForm2.List;
|
|
858
|
+
Form.ErrorList = AntdForm2.ErrorList;
|
|
859
|
+
Form.Provider = AntdForm2.Provider;
|
|
853
860
|
|
|
854
861
|
// src/Link.tsx
|
|
855
862
|
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.
|
|
3
|
+
"version": "0.0.3-beta.27",
|
|
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.
|
|
31
|
+
"@faasjs/react": "^0.0.3-beta.27",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|