@arcblock/ux 2.1.14 → 2.1.15
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
CHANGED
|
@@ -90,7 +90,7 @@ Header.defaultProps = {
|
|
|
90
90
|
const Root = _styledComponents.default.div.withConfig({
|
|
91
91
|
displayName: "header__Root",
|
|
92
92
|
componentId: "sc-15qnwg1-0"
|
|
93
|
-
})(["position:relative;z-index:", ";font-size:14px;background:", ";.header-container{display:flex;align-items:center;height:64px;}.header-logo{display:inline-flex;
|
|
93
|
+
})(["position:relative;z-index:", ";font-size:14px;background:", ";.header-container{display:flex;align-items:center;height:64px;}.header-logo{display:inline-flex;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;flex-shrink:0;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;> *:last-child{padding-right:0;}}", "{.header-brand{margin-right:12px;.header-brand-title{h2{font-size:14px;}}}}", "{.header-container{height:56px;}.header-menu{display:inline-block;}.header-logo{height:32px;}.header-brand{display:none;}}"], props => props.$theme.zIndex.drawer + 1, props => props.$theme.palette.common.white, props => props.$theme.breakpoints.down('lg'), props => props.$theme.breakpoints.down('md'));
|
|
94
94
|
|
|
95
95
|
var _default = Header;
|
|
96
96
|
exports.default = _default;
|
package/lib/Wallet/Open.js
CHANGED
|
@@ -22,7 +22,7 @@ function OpenInWallet(_ref) {
|
|
|
22
22
|
locale,
|
|
23
23
|
link
|
|
24
24
|
} = _ref;
|
|
25
|
-
const buttonText = locale === 'zh' ? '在
|
|
25
|
+
const buttonText = locale === 'zh' ? '在 DID 钱包打开' : 'Open in DID Wallet';
|
|
26
26
|
const browser = (0, _useBrowser.default)();
|
|
27
27
|
|
|
28
28
|
if (browser.mobile.any && !browser.wallet && !browser.wechat) {
|
|
@@ -42,7 +42,7 @@ function WechatPrompt() {
|
|
|
42
42
|
className: "wechat-tip"
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
44
44
|
className: "wechat-tip-text"
|
|
45
|
-
}, "2. \u70B9\u51FB\u201C\u5728\u6D4F\u89C8\u5668\u6253\u5F00\u201D\uFF0C\u624D\u80FD\u8C03\u8D77
|
|
45
|
+
}, "2. \u70B9\u51FB\u201C\u5728\u6D4F\u89C8\u5668\u6253\u5F00\u201D\uFF0C\u624D\u80FD\u8C03\u8D77 DID \u94B1\u5305"), /*#__PURE__*/_react.default.createElement("img", {
|
|
46
46
|
className: "wechat-tip-img",
|
|
47
47
|
src: _android.default,
|
|
48
48
|
alt: "Open in Android Browser"
|
|
@@ -58,7 +58,7 @@ function WechatPrompt() {
|
|
|
58
58
|
className: "wechat-tip"
|
|
59
59
|
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
60
60
|
className: "wechat-tip-text"
|
|
61
|
-
}, "2. \u70B9\u51FB\u201C\u5728Safari\u4E2D\u6253\u5F00\u201D\uFF0C\u624D\u80FD\u8C03\u8D77
|
|
61
|
+
}, "2. \u70B9\u51FB\u201C\u5728Safari\u4E2D\u6253\u5F00\u201D\uFF0C\u624D\u80FD\u8C03\u8D77 DID \u94B1\u5305"), /*#__PURE__*/_react.default.createElement("img", {
|
|
62
62
|
className: "wechat-tip-img",
|
|
63
63
|
src: _ios.default,
|
|
64
64
|
alt: "Open in Safari"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
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": "7cf6582840eac13158ecc4e25ec6ec13cdb97799",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@arcblock/icons": "^2.1.
|
|
58
|
-
"@arcblock/react-hooks": "^2.1.
|
|
57
|
+
"@arcblock/icons": "^2.1.15",
|
|
58
|
+
"@arcblock/react-hooks": "^2.1.15",
|
|
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
|
@@ -68,7 +68,6 @@ const Root = styled.div`
|
|
|
68
68
|
}
|
|
69
69
|
.header-logo {
|
|
70
70
|
display: inline-flex;
|
|
71
|
-
justify-content: center;
|
|
72
71
|
position: relative;
|
|
73
72
|
height: 40px;
|
|
74
73
|
margin-right: 16px;
|
|
@@ -113,6 +112,9 @@ const Root = styled.div`
|
|
|
113
112
|
.header-addons {
|
|
114
113
|
display: flex;
|
|
115
114
|
align-items: center;
|
|
115
|
+
> *:last-child {
|
|
116
|
+
padding-right: 0;
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
119
|
${props => props.$theme.breakpoints.down('lg')} {
|
|
118
120
|
.header-brand {
|
package/src/Wallet/Open.js
CHANGED
|
@@ -5,7 +5,7 @@ import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
|
|
|
5
5
|
import Fab from '@mui/material/Fab';
|
|
6
6
|
|
|
7
7
|
export default function OpenInWallet({ locale, link }) {
|
|
8
|
-
const buttonText = locale === 'zh' ? '在
|
|
8
|
+
const buttonText = locale === 'zh' ? '在 DID 钱包打开' : 'Open in DID Wallet';
|
|
9
9
|
const browser = useBrowser();
|
|
10
10
|
|
|
11
11
|
if (browser.mobile.any && !browser.wallet && !browser.wechat) {
|
|
@@ -26,7 +26,7 @@ export default function WechatPrompt() {
|
|
|
26
26
|
<Typography className="wechat-title">1. 轻触右上方菜单</Typography>
|
|
27
27
|
<div className="wechat-tip">
|
|
28
28
|
<Typography className="wechat-tip-text">
|
|
29
|
-
2. 点击“在浏览器打开”,才能调起
|
|
29
|
+
2. 点击“在浏览器打开”,才能调起 DID 钱包
|
|
30
30
|
</Typography>
|
|
31
31
|
<img className="wechat-tip-img" src={AndroidImage} alt="Open in Android Browser" />
|
|
32
32
|
</div>
|
|
@@ -41,7 +41,7 @@ export default function WechatPrompt() {
|
|
|
41
41
|
<Typography className="wechat-title">1. 轻触右上方菜单</Typography>
|
|
42
42
|
<div className="wechat-tip">
|
|
43
43
|
<Typography className="wechat-tip-text">
|
|
44
|
-
2. 点击“在Safari中打开”,才能调起
|
|
44
|
+
2. 点击“在Safari中打开”,才能调起 DID 钱包
|
|
45
45
|
</Typography>
|
|
46
46
|
<img className="wechat-tip-img" src={IosImage} alt="Open in Safari" />
|
|
47
47
|
</div>
|