@hi-ui/grid 4.0.6 → 4.0.8
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 +22 -0
- package/lib/cjs/Grid.js +13 -3
- package/lib/cjs/context.js +3 -0
- package/lib/esm/index.js +2 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @hi-ui/grid
|
|
2
2
|
|
|
3
|
+
## 4.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- build: rollup2 构建
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @hi-ui/core@4.0.8
|
|
10
|
+
- @hi-ui/classname@4.0.4
|
|
11
|
+
- @hi-ui/env@4.0.4
|
|
12
|
+
- @hi-ui/type-assertion@4.0.4
|
|
13
|
+
|
|
14
|
+
## 4.0.7
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- fix: 修复 rollup3 打包 cjs 模块问题
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @hi-ui/env@4.0.3
|
|
21
|
+
- @hi-ui/core@4.0.7
|
|
22
|
+
- @hi-ui/classname@4.0.3
|
|
23
|
+
- @hi-ui/type-assertion@4.0.3
|
|
24
|
+
|
|
3
25
|
## 4.0.6
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/lib/cjs/Grid.js
CHANGED
|
@@ -9,12 +9,22 @@
|
|
|
9
9
|
*/
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
13
|
+
Object.defineProperty(exports, '__esModule', {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
12
16
|
var tslib = require('tslib');
|
|
13
17
|
var React = require('react');
|
|
14
18
|
var classname = require('@hi-ui/classname');
|
|
15
19
|
var env = require('@hi-ui/env');
|
|
16
20
|
var context = require('./context.js');
|
|
17
21
|
var typeAssertion = require('@hi-ui/type-assertion');
|
|
22
|
+
function _interopDefaultLegacy(e) {
|
|
23
|
+
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
24
|
+
'default': e
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
28
|
var rowPrefix = classname.getPrefixCls('grid-row');
|
|
19
29
|
var gutterNameVar = classname.getPrefixStyleVar('grid-row-gutter');
|
|
20
30
|
var columnsNameVar = classname.getPrefixStyleVar('grid-row-columns');
|
|
@@ -73,9 +83,9 @@ var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
73
83
|
columns: columns
|
|
74
84
|
};
|
|
75
85
|
}, [columns]);
|
|
76
|
-
return /*#__PURE__*/
|
|
86
|
+
return /*#__PURE__*/React__default["default"].createElement(context.GridProvider, {
|
|
77
87
|
value: providedContext
|
|
78
|
-
}, /*#__PURE__*/
|
|
88
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
|
79
89
|
ref: ref,
|
|
80
90
|
className: cls,
|
|
81
91
|
style: style
|
|
@@ -157,7 +167,7 @@ var Col = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
157
167
|
);
|
|
158
168
|
|
|
159
169
|
var cls = classname.cx(prefixCls, className);
|
|
160
|
-
return /*#__PURE__*/
|
|
170
|
+
return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
|
161
171
|
ref: ref,
|
|
162
172
|
className: cls,
|
|
163
173
|
style: style
|
package/lib/cjs/context.js
CHANGED
package/lib/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/grid",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@hi-ui/classname": "^4.0.
|
|
47
|
-
"@hi-ui/env": "^4.0.
|
|
48
|
-
"@hi-ui/type-assertion": "^4.0.
|
|
46
|
+
"@hi-ui/classname": "^4.0.4",
|
|
47
|
+
"@hi-ui/env": "^4.0.4",
|
|
48
|
+
"@hi-ui/type-assertion": "^4.0.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@hi-ui/core": ">=4.0.
|
|
51
|
+
"@hi-ui/core": ">=4.0.8",
|
|
52
52
|
"react": ">=16.8.6",
|
|
53
53
|
"react-dom": ">=16.8.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@hi-ui/core": "^4.0.
|
|
57
|
-
"@hi-ui/core-css": "^4.1.
|
|
56
|
+
"@hi-ui/core": "^4.0.8",
|
|
57
|
+
"@hi-ui/core-css": "^4.1.5",
|
|
58
58
|
"react": "^17.0.1",
|
|
59
59
|
"react-dom": "^17.0.1"
|
|
60
60
|
}
|