@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.
@@ -98,7 +98,7 @@ Header.propTypes = {
98
98
  // brand 右侧的内容区域, 可显示一个 badge 或 tag
99
99
  brandAddon: _propTypes.default.node,
100
100
  // brand 下方的描述
101
- description: _propTypes.default.string,
101
+ description: _propTypes.default.node,
102
102
  children: _propTypes.default.node,
103
103
  // 右侧区域, 可以放置 icons/actions/login 等
104
104
  addons: _propTypes.default.node,
@@ -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:14px;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);
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.41",
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": "25763a7a35fdb64d13e9871c3f2590868939a43f",
55
+ "gitHead": "077fc503a95b41c9fe5d8dab0bc8d50300105e46",
56
56
  "dependencies": {
57
- "@arcblock/icons": "^2.1.41",
58
- "@arcblock/react-hooks": "^2.1.41",
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",
@@ -41,7 +41,7 @@ Header.propTypes = {
41
41
  // brand 右侧的内容区域, 可显示一个 badge 或 tag
42
42
  brandAddon: PropTypes.node,
43
43
  // brand 下方的描述
44
- description: PropTypes.string,
44
+ description: PropTypes.node,
45
45
  children: PropTypes.node,
46
46
  // 右侧区域, 可以放置 icons/actions/login 等
47
47
  addons: PropTypes.node,
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
 
3
3
  const NavMenuBase = styled.nav`
4
4
  background-color: ${(props) => props.$bgColor};
5
- font-size: 14px;
5
+ font-size: 16px;
6
6
  ul {
7
7
  list-style: none;
8
8
  margin: 0;