@jswork/react-ant-form-schema 1.0.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/README.md +7 -0
- package/dist/main.cjs.js +157 -0
- package/dist/main.cjs.js.map +1 -0
- package/dist/main.d.mts +34 -0
- package/dist/main.d.ts +34 -0
- package/dist/main.esm.js +155 -0
- package/dist/main.esm.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/style.css.map +1 -0
- package/dist/style.scss +3 -0
- package/package.json +51 -0
- package/src/index.tsx +67 -0
- package/src/main.tsx +3 -0
- package/src/setup.ts +4 -0
- package/src/style.scss +3 -0
- package/src/utils.ts +19 -0
package/dist/main.d.mts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { FormProps } from 'antd';
|
|
3
|
+
import { NiceFormMeta } from '@ebay/nice-form-react';
|
|
4
|
+
|
|
5
|
+
type ReactAntdFormSchemaProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The extended className for component.
|
|
8
|
+
* @default ''
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The form schema meta data.
|
|
13
|
+
*/
|
|
14
|
+
meta: NiceFormMeta;
|
|
15
|
+
/**
|
|
16
|
+
* The header content.
|
|
17
|
+
*/
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The footer content.
|
|
21
|
+
*/
|
|
22
|
+
footer?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The form content.
|
|
25
|
+
*/
|
|
26
|
+
footerClassName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Form loading status.
|
|
29
|
+
*/
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
} & FormProps;
|
|
32
|
+
declare const ReactAntdFormSchema: FC<ReactAntdFormSchemaProps>;
|
|
33
|
+
|
|
34
|
+
export { ReactAntdFormSchema as default };
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { FormProps } from 'antd';
|
|
3
|
+
import { NiceFormMeta } from '@ebay/nice-form-react';
|
|
4
|
+
|
|
5
|
+
type ReactAntdFormSchemaProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The extended className for component.
|
|
8
|
+
* @default ''
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The form schema meta data.
|
|
13
|
+
*/
|
|
14
|
+
meta: NiceFormMeta;
|
|
15
|
+
/**
|
|
16
|
+
* The header content.
|
|
17
|
+
*/
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The footer content.
|
|
21
|
+
*/
|
|
22
|
+
footer?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The form content.
|
|
25
|
+
*/
|
|
26
|
+
footerClassName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Form loading status.
|
|
29
|
+
*/
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
} & FormProps;
|
|
32
|
+
declare const ReactAntdFormSchema: FC<ReactAntdFormSchemaProps>;
|
|
33
|
+
|
|
34
|
+
export = ReactAntdFormSchema;
|