@hi-ui/form 4.3.1 → 5.0.0-canary.0
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 +28 -0
- package/lib/cjs/Form.js +1 -2
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/esm/Form.js +1 -2
- package/lib/esm/styles/index.scss.js +1 -1
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @hi-ui/form
|
|
2
2
|
|
|
3
|
+
## 5.0.0-canary.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 225ebaa51: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 1bdd9a991: <br>
|
|
12
|
+
- fix(form): 错误提示字号改为 12px (5.0)
|
|
13
|
+
- fix(form): 必填星号调整为显示在右侧 (5.0)
|
|
14
|
+
- fix(form): 标题和控件间距改为 6px (5.0)
|
|
15
|
+
- fix(form): 包裹控件容器设置最小高度 32px (5.0)
|
|
16
|
+
- fix(form): 默认不显示标题冒号 (5.0)
|
|
17
|
+
- Updated dependencies [f70601635]
|
|
18
|
+
- Updated dependencies [225ebaa51]
|
|
19
|
+
- Updated dependencies [428716024]
|
|
20
|
+
- @hi-ui/button@5.0.0-canary.0
|
|
21
|
+
- @hi-ui/core@5.0.0-canary.0
|
|
22
|
+
- @hi-ui/use-latest@5.0.0-canary.0
|
|
23
|
+
- @hi-ui/array-utils@5.0.0-canary.0
|
|
24
|
+
- @hi-ui/classname@5.0.0-canary.0
|
|
25
|
+
- @hi-ui/dom-utils@5.0.0-canary.0
|
|
26
|
+
- @hi-ui/env@5.0.0-canary.0
|
|
27
|
+
- @hi-ui/func-utils@5.0.0-canary.0
|
|
28
|
+
- @hi-ui/object-utils@5.0.0-canary.0
|
|
29
|
+
- @hi-ui/type-assertion@5.0.0-canary.0
|
|
30
|
+
|
|
3
31
|
## 4.3.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/lib/cjs/Form.js
CHANGED
|
@@ -49,8 +49,7 @@ var Form = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
49
49
|
contentPosition = _a$contentPosition === void 0 ? 'center' : _a$contentPosition,
|
|
50
50
|
_a$showRequiredOnVali = _a.showRequiredOnValidateRequired,
|
|
51
51
|
showRequiredOnValidateRequired = _a$showRequiredOnVali === void 0 ? false : _a$showRequiredOnVali,
|
|
52
|
-
|
|
53
|
-
showColon = _a$showColon === void 0 ? true : _a$showColon,
|
|
52
|
+
showColon = _a.showColon,
|
|
54
53
|
_a$showValidateMessag = _a.showValidateMessage,
|
|
55
54
|
showValidateMessage = _a$showValidateMessag === void 0 ? true : _a$showValidateMessag,
|
|
56
55
|
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "innerRef", "labelWidth", "labelPlacement", "placement", "contentPosition", "showRequiredOnValidateRequired", "showColon", "showValidateMessage"]);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
|
13
13
|
value: true
|
|
14
14
|
});
|
|
15
|
-
var css_248z = ".hi-
|
|
15
|
+
var css_248z = ".hi-v5-form {max-width: 100%;position: relative;}.hi-v5-form fieldset {margin: 0;padding: 0;border: 0;}.hi-v5-form fieldset + fieldset {margin-top: 16px;}.hi-v5-form legend {margin: 0 0 16px;color: var(--hi-v5-color-gray-800, #1f2937);}.hi-v5-form--placement-horizontal {display: -webkit-box;display: -ms-flexbox;display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;-webkit-column-gap: var(--hi-v5-spacing-10, 20px);-moz-column-gap: var(--hi-v5-spacing-10, 20px);column-gap: var(--hi-v5-spacing-10, 20px);}.hi-v5-form--placement-horizontal .hi-v5-form-label__indent {min-height: var(--hi-v5-height-8, 32px);}.hi-v5-form-label {font-size: var(--hi-v5-text-size-md, 0.875rem);-webkit-box-sizing: border-box;box-sizing: border-box;margin-right: 0;}.hi-v5-form-label__content {display: -webkit-box;display: -ms-flexbox;display: flex;}.hi-v5-form-label--placement-top > .hi-v5-form-label__content {text-align: left;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding-right: 0;}.hi-v5-form-label__content__text, .hi-v5-form-label__content__indent {-ms-flex-negative: 0;flex-shrink: 0;-webkit-box-sizing: border-box;box-sizing: border-box;vertical-align: top;color: var(--hi-v5-color-gray-800, #1f2937);overflow-wrap: break-word;}.hi-v5-form-label__content__text {padding-right: var(--hi-v5-spacing-6, 12px);min-height: var(--hi-v5-height-8, 32px);line-height: var(--hi-v5-height-8, 32px);}.hi-v5-form-label--placement-left > .hi-v5-form-label__content > .hi-v5-form-label__content__text {text-align: left;}.hi-v5-form-label--placement-right > .hi-v5-form-label__content > .hi-v5-form-label__content__text {text-align: right;}.hi-v5-form-label--placement-top > .hi-v5-form-label__content > .hi-v5-form-label__content__text {min-height: 22px;line-height: 22px;padding-right: 0;margin-bottom: var(--hi-v5-spacing-3, 6px);}.hi-v5-form-label--required > .hi-v5-form-label__content > .hi-v5-form-label__content__text::after {margin-left: var(--hi-v5-spacing-2, 4px);content: \"*\";color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-form-label__content__control {min-width: 1px;min-height: var(--hi-v5-height-8, 32px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-form-message {display: block;font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);min-height: var(--hi-v5-height-5, 20px);padding: var(--hi-v5-spacing-1, 2px) 0;-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-transform: translateY(-10%);transform: translateY(-10%);opacity: 0;color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-form-message--show {opacity: 1;-webkit-transform: translateY(0);transform: translateY(0);}.hi-v5-form-item {position: relative;}";
|
|
16
16
|
var __styleInject__ = require('@hi-ui/style-inject')["default"];
|
|
17
17
|
__styleInject__(css_248z);
|
|
18
18
|
exports["default"] = css_248z;
|
package/lib/esm/Form.js
CHANGED
|
@@ -37,8 +37,7 @@ var Form = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
37
37
|
contentPosition = _a$contentPosition === void 0 ? 'center' : _a$contentPosition,
|
|
38
38
|
_a$showRequiredOnVali = _a.showRequiredOnValidateRequired,
|
|
39
39
|
showRequiredOnValidateRequired = _a$showRequiredOnVali === void 0 ? false : _a$showRequiredOnVali,
|
|
40
|
-
|
|
41
|
-
showColon = _a$showColon === void 0 ? true : _a$showColon,
|
|
40
|
+
showColon = _a.showColon,
|
|
42
41
|
_a$showValidateMessag = _a.showValidateMessage,
|
|
43
42
|
showValidateMessage = _a$showValidateMessag === void 0 ? true : _a$showValidateMessag,
|
|
44
43
|
rest = __rest(_a, ["prefixCls", "role", "className", "children", "innerRef", "labelWidth", "labelPlacement", "placement", "contentPosition", "showRequiredOnValidateRequired", "showColon", "showValidateMessage"]);
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
import __styleInject__ from '@hi-ui/style-inject';
|
|
11
|
-
var css_248z = ".hi-
|
|
11
|
+
var css_248z = ".hi-v5-form {max-width: 100%;position: relative;}.hi-v5-form fieldset {margin: 0;padding: 0;border: 0;}.hi-v5-form fieldset + fieldset {margin-top: 16px;}.hi-v5-form legend {margin: 0 0 16px;color: var(--hi-v5-color-gray-800, #1f2937);}.hi-v5-form--placement-horizontal {display: -webkit-box;display: -ms-flexbox;display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;-webkit-column-gap: var(--hi-v5-spacing-10, 20px);-moz-column-gap: var(--hi-v5-spacing-10, 20px);column-gap: var(--hi-v5-spacing-10, 20px);}.hi-v5-form--placement-horizontal .hi-v5-form-label__indent {min-height: var(--hi-v5-height-8, 32px);}.hi-v5-form-label {font-size: var(--hi-v5-text-size-md, 0.875rem);-webkit-box-sizing: border-box;box-sizing: border-box;margin-right: 0;}.hi-v5-form-label__content {display: -webkit-box;display: -ms-flexbox;display: flex;}.hi-v5-form-label--placement-top > .hi-v5-form-label__content {text-align: left;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;padding-right: 0;}.hi-v5-form-label__content__text, .hi-v5-form-label__content__indent {-ms-flex-negative: 0;flex-shrink: 0;-webkit-box-sizing: border-box;box-sizing: border-box;vertical-align: top;color: var(--hi-v5-color-gray-800, #1f2937);overflow-wrap: break-word;}.hi-v5-form-label__content__text {padding-right: var(--hi-v5-spacing-6, 12px);min-height: var(--hi-v5-height-8, 32px);line-height: var(--hi-v5-height-8, 32px);}.hi-v5-form-label--placement-left > .hi-v5-form-label__content > .hi-v5-form-label__content__text {text-align: left;}.hi-v5-form-label--placement-right > .hi-v5-form-label__content > .hi-v5-form-label__content__text {text-align: right;}.hi-v5-form-label--placement-top > .hi-v5-form-label__content > .hi-v5-form-label__content__text {min-height: 22px;line-height: 22px;padding-right: 0;margin-bottom: var(--hi-v5-spacing-3, 6px);}.hi-v5-form-label--required > .hi-v5-form-label__content > .hi-v5-form-label__content__text::after {margin-left: var(--hi-v5-spacing-2, 4px);content: \"*\";color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));}.hi-v5-form-label__content__control {min-width: 1px;min-height: var(--hi-v5-height-8, 32px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-form-message {display: block;font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);min-height: var(--hi-v5-height-5, 20px);padding: var(--hi-v5-spacing-1, 2px) 0;-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-transform: translateY(-10%);transform: translateY(-10%);opacity: 0;color: var(--hi-v5-color-danger-500, var(--hi-v5-color-red-500, #fa4646));-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-form-message--show {opacity: 1;-webkit-transform: translateY(0);transform: translateY(0);}.hi-v5-form-item {position: relative;}";
|
|
12
12
|
__styleInject__(css_248z);
|
|
13
13
|
export { css_248z as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-canary.0",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"require": "./lib/cjs/index.js",
|
|
23
|
-
"default": "./lib/esm/index.js"
|
|
23
|
+
"default": "./lib/esm/index.js",
|
|
24
|
+
"types": "./lib/types/index.d.ts"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"publishConfig": {
|
|
@@ -43,26 +44,26 @@
|
|
|
43
44
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@hi-ui/array-utils": "^
|
|
47
|
-
"@hi-ui/button": "^
|
|
48
|
-
"@hi-ui/classname": "^
|
|
49
|
-
"@hi-ui/dom-utils": "^
|
|
50
|
-
"@hi-ui/env": "^
|
|
51
|
-
"@hi-ui/func-utils": "^
|
|
52
|
-
"@hi-ui/object-utils": "^
|
|
53
|
-
"@hi-ui/type-assertion": "^
|
|
54
|
-
"@hi-ui/use-latest": "^
|
|
47
|
+
"@hi-ui/array-utils": "^5.0.0-canary.0",
|
|
48
|
+
"@hi-ui/button": "^5.0.0-canary.0",
|
|
49
|
+
"@hi-ui/classname": "^5.0.0-canary.0",
|
|
50
|
+
"@hi-ui/dom-utils": "^5.0.0-canary.0",
|
|
51
|
+
"@hi-ui/env": "^5.0.0-canary.0",
|
|
52
|
+
"@hi-ui/func-utils": "^5.0.0-canary.0",
|
|
53
|
+
"@hi-ui/object-utils": "^5.0.0-canary.0",
|
|
54
|
+
"@hi-ui/type-assertion": "^5.0.0-canary.0",
|
|
55
|
+
"@hi-ui/use-latest": "^5.0.0-canary.0",
|
|
55
56
|
"async-validator": "^4.0.7",
|
|
56
57
|
"scroll-into-view-if-needed": "^3.1.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"@hi-ui/core": ">=
|
|
60
|
+
"@hi-ui/core": ">=5.0.0-canary.0",
|
|
60
61
|
"react": ">=16.8.6",
|
|
61
62
|
"react-dom": ">=16.8.6"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
|
-
"@hi-ui/core": "^
|
|
65
|
-
"@hi-ui/core-css": "^
|
|
65
|
+
"@hi-ui/core": "^5.0.0-canary.0",
|
|
66
|
+
"@hi-ui/core-css": "^5.0.0-canary.0",
|
|
66
67
|
"react": "^17.0.1",
|
|
67
68
|
"react-dom": "^17.0.1"
|
|
68
69
|
}
|