@hi-ui/form 4.1.1 → 4.1.3
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/CHANGELOG.md +24 -0
- package/lib/cjs/Form.js +26 -54
- package/lib/cjs/FormField.js +0 -19
- package/lib/cjs/FormItem.js +16 -48
- package/lib/cjs/FormLabel.js +46 -79
- package/lib/cjs/FormList.js +16 -52
- package/lib/cjs/FormMessage.js +9 -38
- package/lib/cjs/FormReset.js +9 -39
- package/lib/cjs/FormSubmit.js +11 -43
- package/lib/cjs/context.js +0 -9
- package/lib/cjs/index.js +0 -7
- package/lib/cjs/styles/index.scss.js +2 -5
- package/lib/cjs/use-form-field.js +15 -44
- package/lib/cjs/use-form.js +71 -168
- package/lib/cjs/utils/index.js +1 -11
- package/lib/esm/Form.js +24 -32
- package/lib/esm/FormField.js +0 -11
- package/lib/esm/FormItem.js +13 -22
- package/lib/esm/FormLabel.js +40 -52
- package/lib/esm/FormList.js +9 -26
- package/lib/esm/FormMessage.js +8 -18
- package/lib/esm/FormReset.js +8 -16
- package/lib/esm/FormSubmit.js +10 -20
- package/lib/esm/context.js +0 -4
- package/lib/esm/index.js +2 -6
- package/lib/esm/styles/index.scss.js +2 -4
- package/lib/esm/use-form-field.js +14 -24
- package/lib/esm/use-form.js +64 -136
- package/lib/esm/utils/index.js +1 -6
- package/lib/types/Form.d.ts +1 -1
- package/lib/types/FormField.d.ts +0 -3
- package/lib/types/FormItem.d.ts +0 -3
- package/lib/types/FormLabel.d.ts +0 -3
- package/lib/types/FormList.d.ts +0 -3
- package/lib/types/FormMessage.d.ts +0 -3
- package/lib/types/FormReset.d.ts +0 -3
- package/lib/types/FormSubmit.d.ts +0 -3
- package/package.json +13 -14
package/lib/types/FormItem.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UseFormFieldProps } from './use-form-field';
|
|
3
3
|
import { FormLabelProps } from './FormLabel';
|
|
4
|
-
/**
|
|
5
|
-
* TODO: What is FormItem
|
|
6
|
-
*/
|
|
7
4
|
export declare const FormItem: React.FC<FormItemProps>;
|
|
8
5
|
export interface FormItemProps extends UseFormFieldProps, FormLabelProps {
|
|
9
6
|
/**
|
package/lib/types/FormLabel.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { HiBaseHTMLProps } from '@hi-ui/core';
|
|
3
|
-
/**
|
|
4
|
-
* TODO: What is FormLabel
|
|
5
|
-
*/
|
|
6
3
|
export declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
7
4
|
export interface FormLabelProps extends HiBaseHTMLProps<'div'> {
|
|
8
5
|
/**
|
package/lib/types/FormList.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HiBaseHTMLProps } from '@hi-ui/core';
|
|
3
3
|
import { FormFieldPath, FormListChildrenAction, FormListHelper } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* TODO: What is FormList
|
|
6
|
-
*/
|
|
7
4
|
export declare const FormList: React.ForwardRefExoticComponent<FormListProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
8
5
|
export interface FormListProps extends HiBaseHTMLProps<'div'> {
|
|
9
6
|
/**
|
package/lib/types/FormReset.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '@hi-ui/button';
|
|
3
|
-
/**
|
|
4
|
-
* TODO: What is FormReset
|
|
5
|
-
*/
|
|
6
3
|
export declare const FormReset: React.ForwardRefExoticComponent<FormResetProps & React.RefAttributes<HTMLButtonElement | null>>;
|
|
7
4
|
export interface FormResetProps extends ButtonProps {
|
|
8
5
|
/**
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '@hi-ui/button';
|
|
3
|
-
/**
|
|
4
|
-
* TODO: What is FormSubmit
|
|
5
|
-
*/
|
|
6
3
|
export declare const FormSubmit: React.ForwardRefExoticComponent<FormSubmitProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>;
|
|
7
4
|
export interface FormSubmitProps extends Omit<ButtonProps, 'onClick'> {
|
|
8
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/form",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -43,26 +43,25 @@
|
|
|
43
43
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@hi-ui/array-utils": "^4.0.
|
|
47
|
-
"@hi-ui/button": "^4.0.
|
|
48
|
-
"@hi-ui/classname": "^4.0.
|
|
49
|
-
"@hi-ui/dom-utils": "^4.0.
|
|
50
|
-
"@hi-ui/env": "^4.0.
|
|
51
|
-
"@hi-ui/func-utils": "^4.0.
|
|
52
|
-
"@hi-ui/object-utils": "^4.0.
|
|
53
|
-
"@hi-ui/type-assertion": "^4.0.
|
|
54
|
-
"@hi-ui/use-latest": "^4.0.
|
|
46
|
+
"@hi-ui/array-utils": "^4.0.2",
|
|
47
|
+
"@hi-ui/button": "^4.0.7",
|
|
48
|
+
"@hi-ui/classname": "^4.0.2",
|
|
49
|
+
"@hi-ui/dom-utils": "^4.0.5",
|
|
50
|
+
"@hi-ui/env": "^4.0.2",
|
|
51
|
+
"@hi-ui/func-utils": "^4.0.2",
|
|
52
|
+
"@hi-ui/object-utils": "^4.0.2",
|
|
53
|
+
"@hi-ui/type-assertion": "^4.0.2",
|
|
54
|
+
"@hi-ui/use-latest": "^4.0.2",
|
|
55
55
|
"async-validator": "^4.0.7"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@hi-ui/core": ">=4.0.
|
|
58
|
+
"@hi-ui/core": ">=4.0.6",
|
|
59
59
|
"react": ">=16.8.6",
|
|
60
60
|
"react-dom": ">=16.8.6"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@hi-ui/core": "^4.0.
|
|
64
|
-
"@hi-ui/core-css": "^4.
|
|
65
|
-
"@hi-ui/hi-build": "^4.0.1",
|
|
63
|
+
"@hi-ui/core": "^4.0.6",
|
|
64
|
+
"@hi-ui/core-css": "^4.1.3",
|
|
66
65
|
"react": "^17.0.1",
|
|
67
66
|
"react-dom": "^17.0.1"
|
|
68
67
|
}
|