@hi-ui/form 5.0.0-canary.0 → 5.0.0-canary.2
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 +14 -0
- package/lib/cjs/FormReset.js +3 -3
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/esm/FormReset.js +3 -3
- package/lib/esm/styles/index.scss.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @hi-ui/form
|
|
2
2
|
|
|
3
|
+
## 5.0.0-canary.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0c5923439: style: 修改样式问题 (5.0)
|
|
8
|
+
|
|
9
|
+
## 5.0.0-canary.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 3903bd4ff: fix: 修复 5.0 UI 问题 (5.0)
|
|
14
|
+
- Updated dependencies [3903bd4ff]
|
|
15
|
+
- @hi-ui/button@5.0.0-canary.1
|
|
16
|
+
|
|
3
17
|
## 5.0.0-canary.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
package/lib/cjs/FormReset.js
CHANGED
|
@@ -32,8 +32,7 @@ var FormReset = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
32
32
|
prefixCls = _a$prefixCls === void 0 ? FORM_RESET_PREFIX : _a$prefixCls,
|
|
33
33
|
className = _a.className,
|
|
34
34
|
children = _a.children,
|
|
35
|
-
|
|
36
|
-
type = _a$type === void 0 ? 'secondary' : _a$type,
|
|
35
|
+
type = _a.type,
|
|
37
36
|
_onClick = _a.onClick,
|
|
38
37
|
rest = tslib.__rest(_a, ["prefixCls", "className", "children", "type", "onClick"]);
|
|
39
38
|
var _useFormContext = context.useFormContext(),
|
|
@@ -42,7 +41,8 @@ var FormReset = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
42
41
|
return /*#__PURE__*/React__default["default"].createElement(Button__default["default"], Object.assign({
|
|
43
42
|
ref: ref,
|
|
44
43
|
className: cls,
|
|
45
|
-
type: type
|
|
44
|
+
type: type,
|
|
45
|
+
appearance: "line"
|
|
46
46
|
}, rest, {
|
|
47
47
|
onClick: function onClick() {
|
|
48
48
|
resetForm();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
|
13
13
|
value: true
|
|
14
14
|
});
|
|
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-
|
|
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 {-webkit-box-sizing: content-box;box-sizing: content-box;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-bottom: var(--hi-v5-spacing-2, 4px);-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/FormReset.js
CHANGED
|
@@ -19,8 +19,7 @@ var FormReset = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19
19
|
prefixCls = _a$prefixCls === void 0 ? FORM_RESET_PREFIX : _a$prefixCls,
|
|
20
20
|
className = _a.className,
|
|
21
21
|
children = _a.children,
|
|
22
|
-
|
|
23
|
-
type = _a$type === void 0 ? 'secondary' : _a$type,
|
|
22
|
+
type = _a.type,
|
|
24
23
|
_onClick = _a.onClick,
|
|
25
24
|
rest = __rest(_a, ["prefixCls", "className", "children", "type", "onClick"]);
|
|
26
25
|
var _useFormContext = useFormContext(),
|
|
@@ -29,7 +28,8 @@ var FormReset = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29
28
|
return /*#__PURE__*/React.createElement(Button, Object.assign({
|
|
30
29
|
ref: ref,
|
|
31
30
|
className: cls,
|
|
32
|
-
type: type
|
|
31
|
+
type: type,
|
|
32
|
+
appearance: "line"
|
|
33
33
|
}, rest, {
|
|
34
34
|
onClick: function onClick() {
|
|
35
35
|
resetForm();
|
|
@@ -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-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-
|
|
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 {-webkit-box-sizing: content-box;box-sizing: content-box;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-bottom: var(--hi-v5-spacing-2, 4px);-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": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@hi-ui/array-utils": "^5.0.0-canary.0",
|
|
48
|
-
"@hi-ui/button": "^5.0.0-canary.
|
|
48
|
+
"@hi-ui/button": "^5.0.0-canary.1",
|
|
49
49
|
"@hi-ui/classname": "^5.0.0-canary.0",
|
|
50
50
|
"@hi-ui/dom-utils": "^5.0.0-canary.0",
|
|
51
51
|
"@hi-ui/env": "^5.0.0-canary.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@hi-ui/core": "^5.0.0-canary.0",
|
|
66
|
-
"@hi-ui/core-css": "^5.0.0-canary.
|
|
66
|
+
"@hi-ui/core-css": "^5.0.0-canary.1",
|
|
67
67
|
"react": "^17.0.1",
|
|
68
68
|
"react-dom": "^17.0.1"
|
|
69
69
|
}
|