@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 CHANGED
@@ -171,16 +171,18 @@ const DID = /*#__PURE__*/forwardRef(({
171
171
  content: `${DID_PREFIX}${did}`,
172
172
  ...rest,
173
173
  prepend: prepend,
174
- append: showQrcode ? /*#__PURE__*/_jsx(Box, {
175
- component: Icon,
176
- icon: IconQrCode,
177
- onClick: openQrCode,
178
- sx: {
179
- cursor: 'pointer',
180
- ml: rest.copyable ? 0.5 : 0,
181
- color: 'grey.500'
182
- }
183
- }) : null,
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: showQrcode ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
191
- component: _react2.Icon,
192
- icon: _qrCodeRounded.default,
193
- onClick: openQrCode,
194
- sx: {
195
- cursor: 'pointer',
196
- ml: rest.copyable ? 0.5 : 0,
197
- color: 'grey.500'
198
- }
199
- }) : null,
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.78",
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": "db9dafbc8bc35be7884e7152d4aff169cbcbfa90",
364
+ "gitHead": "42a44e1df8e44d948124a2f9a9b7713dfbe6219a",
363
365
  "dependencies": {
364
366
  "@arcblock/did-motif": "^1.1.13",
365
- "@arcblock/icons": "^2.9.78",
366
- "@arcblock/nft-display": "^2.9.78",
367
- "@arcblock/react-hooks": "^2.9.78",
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
- showQrcode ? (
175
- <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
- />
185
- ) : null
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>