@arcblock/ux 1.17.8 → 1.17.9

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.
@@ -78,7 +78,9 @@ function Header(_ref) {
78
78
  className: "header-brand-desc"
79
79
  }, description)), children, /*#__PURE__*/_react.default.createElement(_Box.default, {
80
80
  flexGrow: 1
81
- }), /*#__PURE__*/_react.default.createElement("div", null, addons));
81
+ }), /*#__PURE__*/_react.default.createElement("div", {
82
+ className: "header-addons"
83
+ }, addons));
82
84
  }
83
85
 
84
86
  Header.propTypes = {
@@ -116,7 +118,7 @@ Header.defaultProps = {
116
118
  const Root = _styledComponents.default.div.withConfig({
117
119
  displayName: "Header__Root",
118
120
  componentId: "sc-ea5eli-0"
119
- })(["display:flex;align-items:center;position:relative;z-index:", ";height:64px;padding:12px 24px;font-size:14px;background:#fff;.header-menu{display:none;}.header-logo{display:inline-flex;justify-content:center;position:relative;height:40px;margin-right:16px;img,svg{width:auto;height:100%;}> a{height:100%;line-height:1;}> a::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:'';}}.header-brand{display:flex;flex-direction:column;margin-right:16px;.header-brand-title{display:flex;align-items:center;h2{font-size:16px;}.header-brand-addon{margin-left:8px;}}.header-brand-desc{color:#9397a1;}}", "{height:56px;padding:8px 16px;.header-menu{display:inline-block;}.header-logo{height:32px;}.header-brand{display:none;}}"], props => props.$theme.zIndex.drawer + 1, props => props.$theme.breakpoints.down('sm'));
121
+ })(["display:flex;align-items:center;position:relative;z-index:", ";height:64px;padding:12px 24px;font-size:14px;background:#fff;.header-menu{display:none;}.header-logo{display:inline-flex;justify-content:center;position:relative;height:40px;margin-right:16px;img,svg{width:auto;height:100%;}> a{height:100%;line-height:1;}> a::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:'';}}.header-brand{display:flex;flex-direction:column;margin-right:16px;.header-brand-title{display:flex;align-items:center;h2{font-size:16px;}.header-brand-addon{margin-left:8px;}}.header-brand-desc{color:#9397a1;}}.header-addons{display:flex;align-items:center;}", "{height:56px;padding:8px 16px;.header-menu{display:inline-block;}.header-logo{height:32px;}.header-brand{display:none;}}"], props => props.$theme.zIndex.drawer + 1, props => props.$theme.breakpoints.down('sm'));
120
122
 
121
123
  var _default = Header;
122
124
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "1.17.8",
3
+ "version": "1.17.9",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -53,10 +53,10 @@
53
53
  "react": ">=16.12.0",
54
54
  "react-ga": "^2.7.0"
55
55
  },
56
- "gitHead": "965f821c535a2bec1dfa835b1057df373da02c88",
56
+ "gitHead": "47de35363afd2c0ca6399bafa9341d0a33c72ff7",
57
57
  "dependencies": {
58
- "@arcblock/icons": "^1.17.8",
59
- "@arcblock/react-hooks": "^1.17.8",
58
+ "@arcblock/icons": "^1.17.9",
59
+ "@arcblock/react-hooks": "^1.17.9",
60
60
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
61
61
  "@fontsource/lato": "^4.5.3",
62
62
  "@material-ui/core": "^4.12.3",
@@ -44,7 +44,7 @@ function Header({
44
44
  </div>
45
45
  {children}
46
46
  <Box flexGrow={1} />
47
- <div>{addons}</div>
47
+ <div className="header-addons">{addons}</div>
48
48
  </Root>
49
49
  );
50
50
  }
@@ -134,6 +134,10 @@ const Root = styled.div`
134
134
  color: #9397a1;
135
135
  }
136
136
  }
137
+ .header-addons {
138
+ display: flex;
139
+ align-items: center;
140
+ }
137
141
  ${props => props.$theme.breakpoints.down('sm')} {
138
142
  height: 56px;
139
143
  padding: 8px 16px;