@arcblock/ux 2.9.78 → 2.9.80
Sign up to get free protection for your applications and to get access to all the features.
- package/es/DID/index.js +12 -10
- package/lib/DID/index.js +12 -10
- package/package.json +7 -7
- package/src/DID/index.jsx +15 -12
package/es/DID/index.js
CHANGED
@@ -171,16 +171,18 @@ const DID = /*#__PURE__*/forwardRef(({
|
|
171
171
|
content: `${DID_PREFIX}${did}`,
|
172
172
|
...rest,
|
173
173
|
prepend: prepend,
|
174
|
-
append:
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
174
|
+
append: /*#__PURE__*/_jsxs(_Fragment, {
|
175
|
+
children: [showQrcode ? /*#__PURE__*/_jsx(Box, {
|
176
|
+
component: Icon,
|
177
|
+
icon: IconQrCode,
|
178
|
+
onClick: openQrCode,
|
179
|
+
sx: {
|
180
|
+
cursor: 'pointer',
|
181
|
+
ml: rest.copyable ? 0.5 : 0,
|
182
|
+
color: 'grey.500'
|
183
|
+
}
|
184
|
+
}) : null, rest.append]
|
185
|
+
}),
|
184
186
|
children: did
|
185
187
|
}), /*#__PURE__*/_jsxs(Dialog, {
|
186
188
|
open: open,
|
package/lib/DID/index.js
CHANGED
@@ -187,16 +187,18 @@ const DID = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
187
187
|
content: "".concat(_constant.DID_PREFIX).concat(did)
|
188
188
|
}, rest), {}, {
|
189
189
|
prepend: prepend,
|
190
|
-
append:
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
190
|
+
append: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
191
|
+
children: [showQrcode ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
192
|
+
component: _react2.Icon,
|
193
|
+
icon: _qrCodeRounded.default,
|
194
|
+
onClick: openQrCode,
|
195
|
+
sx: {
|
196
|
+
cursor: 'pointer',
|
197
|
+
ml: rest.copyable ? 0.5 : 0,
|
198
|
+
color: 'grey.500'
|
199
|
+
}
|
200
|
+
}) : null, rest.append]
|
201
|
+
}),
|
200
202
|
children: did
|
201
203
|
})), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Dialog, {
|
202
204
|
open: open,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.9.
|
3
|
+
"version": "2.9.80",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -354,20 +354,20 @@
|
|
354
354
|
"moment-timezone": "^0.5.37"
|
355
355
|
},
|
356
356
|
"peerDependencies": {
|
357
|
+
"@emotion/react": "^11.10.4",
|
358
|
+
"@emotion/styled": "^11.10.4",
|
357
359
|
"@mui/icons-material": ">=5.15.0",
|
358
360
|
"@mui/material": ">=5.15.0",
|
359
361
|
"react": ">=18.2.0",
|
360
362
|
"react-router-dom": ">=6.22.3"
|
361
363
|
},
|
362
|
-
"gitHead": "
|
364
|
+
"gitHead": "42a44e1df8e44d948124a2f9a9b7713dfbe6219a",
|
363
365
|
"dependencies": {
|
364
366
|
"@arcblock/did-motif": "^1.1.13",
|
365
|
-
"@arcblock/icons": "^2.9.
|
366
|
-
"@arcblock/nft-display": "^2.9.
|
367
|
-
"@arcblock/react-hooks": "^2.9.
|
367
|
+
"@arcblock/icons": "^2.9.80",
|
368
|
+
"@arcblock/nft-display": "^2.9.80",
|
369
|
+
"@arcblock/react-hooks": "^2.9.80",
|
368
370
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
369
|
-
"@emotion/react": "^11.10.4",
|
370
|
-
"@emotion/styled": "^11.10.4",
|
371
371
|
"@fontsource/inter": "^5.0.16",
|
372
372
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
373
373
|
"@iconify-icons/logos": "^1.2.36",
|
package/src/DID/index.jsx
CHANGED
@@ -171,18 +171,21 @@ const DID = forwardRef(({ did, showAvatar, showQrcode, chainId, locale, ...rest
|
|
171
171
|
{...rest}
|
172
172
|
prepend={prepend}
|
173
173
|
append={
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
174
|
+
<>
|
175
|
+
{showQrcode ? (
|
176
|
+
<Box
|
177
|
+
component={Icon}
|
178
|
+
icon={IconQrCode}
|
179
|
+
onClick={openQrCode}
|
180
|
+
sx={{
|
181
|
+
cursor: 'pointer',
|
182
|
+
ml: rest.copyable ? 0.5 : 0,
|
183
|
+
color: 'grey.500',
|
184
|
+
}}
|
185
|
+
/>
|
186
|
+
) : null}
|
187
|
+
{rest.append}
|
188
|
+
</>
|
186
189
|
}>
|
187
190
|
{did}
|
188
191
|
</Address>
|