@arcblock/ux 2.1.41 → 2.1.42
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/lib/Header/header.js +1 -1
- package/lib/NavMenu/style.js +1 -1
- package/package.json +4 -4
- package/src/Header/header.js +1 -1
- package/src/NavMenu/style.js +1 -1
package/lib/Header/header.js
CHANGED
|
@@ -98,7 +98,7 @@ Header.propTypes = {
|
|
|
98
98
|
// brand 右侧的内容区域, 可显示一个 badge 或 tag
|
|
99
99
|
brandAddon: _propTypes.default.node,
|
|
100
100
|
// brand 下方的描述
|
|
101
|
-
description: _propTypes.default.
|
|
101
|
+
description: _propTypes.default.node,
|
|
102
102
|
children: _propTypes.default.node,
|
|
103
103
|
// 右侧区域, 可以放置 icons/actions/login 等
|
|
104
104
|
addons: _propTypes.default.node,
|
package/lib/NavMenu/style.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
const NavMenuBase = _styledComponents.default.nav.withConfig({
|
|
13
13
|
displayName: "style__NavMenuBase",
|
|
14
14
|
componentId: "sc-2g7isz-0"
|
|
15
|
-
})(["background-color:", ";font-size:
|
|
15
|
+
})(["background-color:", ";font-size:16px;ul{list-style:none;margin:0;padding:0;}.navmenu-item,.navmenu-sub{display:flex;align-items:center;}a{color:inherit;}.navmenu-item,.navmenu-sub{color:", ";}.navmenu-item--active,.navmenu-item:hover,.navmenu-sub--opened{color:", ";}.navmenu-item{position:relative;cursor:pointer;transition:color 0.2s ease-in-out;a{text-decoration:none;white-space:nowrap;}a::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:'';}}.navmenu-sub{position:relative;cursor:pointer;}.navmenu-item-icon,.navmenu-sub-icon,.navmenu-sub-expand-icon{display:flex;line-height:1;}.navmenu-item-icon,.navmenu-sub-icon{margin-right:4px;}.navmenu-item-icon > *,.navmenu-sub-icon > *{width:auto;height:22px;max-height:22px;font-size:1.5em;}.navmenu-sub-expand-icon{margin-left:8px;> *{width:0.8em;height:0.8em;transition:transform 0.2s ease-in-out;}}"], props => props.$bgColor, props => props.$textColor, props => props.$activeTextColor);
|
|
16
16
|
|
|
17
17
|
const HorizontalStyle = (0, _styledComponents.default)(NavMenuBase).withConfig({
|
|
18
18
|
displayName: "style__HorizontalStyle",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.42",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"react": ">=18.1.0",
|
|
53
53
|
"react-ga": "^2.7.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "077fc503a95b41c9fe5d8dab0bc8d50300105e46",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@arcblock/icons": "^2.1.
|
|
58
|
-
"@arcblock/react-hooks": "^2.1.
|
|
57
|
+
"@arcblock/icons": "^2.1.42",
|
|
58
|
+
"@arcblock/react-hooks": "^2.1.42",
|
|
59
59
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
60
60
|
"@emotion/react": "^11.9.0",
|
|
61
61
|
"@emotion/styled": "^11.8.1",
|
package/src/Header/header.js
CHANGED
|
@@ -41,7 +41,7 @@ Header.propTypes = {
|
|
|
41
41
|
// brand 右侧的内容区域, 可显示一个 badge 或 tag
|
|
42
42
|
brandAddon: PropTypes.node,
|
|
43
43
|
// brand 下方的描述
|
|
44
|
-
description: PropTypes.
|
|
44
|
+
description: PropTypes.node,
|
|
45
45
|
children: PropTypes.node,
|
|
46
46
|
// 右侧区域, 可以放置 icons/actions/login 等
|
|
47
47
|
addons: PropTypes.node,
|