@arcblock/ux 2.10.33 → 2.10.34
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Badge/index.js +1 -1
- package/lib/Datatable/CustomToolbar.js +3 -3
- package/lib/Datatable/index.js +1 -1
- package/lib/Icon/index.js +1 -1
- package/lib/NFTDisplay/index.js +1 -1
- package/lib/PageScroller/index.js +1 -1
- package/lib/PageScroller/story/FullPage.js +1 -1
- package/lib/PageScroller/story/PageContain.js +1 -1
- package/lib/withTracker/index.js +2 -2
- package/package.json +5 -5
package/lib/Badge/index.js
CHANGED
@@ -79,7 +79,7 @@ Badge.defaultProps = {
|
|
79
79
|
className: '',
|
80
80
|
style: '{}'
|
81
81
|
};
|
82
|
-
export default withDeprecated(
|
82
|
+
export default withDeprecated(/*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(Badge, {
|
83
83
|
...props,
|
84
84
|
forwardedRef: ref
|
85
85
|
})), {
|
@@ -135,7 +135,7 @@ export default function CustomToolbar(props) {
|
|
135
135
|
// Large screens show the toolbar buttons directly, small screens show the drop-down menu style buttons
|
136
136
|
// The right-hand button of the form toolbar in desktop mode
|
137
137
|
const toolbarButtons = [...defaultButtons, ...customButtons].map((e, index) => {
|
138
|
-
if (
|
138
|
+
if (/*#__PURE__*/isValidElement(e)) {
|
139
139
|
return e;
|
140
140
|
}
|
141
141
|
const popId = getPopId(index);
|
@@ -146,7 +146,7 @@ export default function CustomToolbar(props) {
|
|
146
146
|
} = e;
|
147
147
|
// When popRender is present, clicking the button will bubble up the content returned by the popRender
|
148
148
|
if (popRender) {
|
149
|
-
allPops.push(
|
149
|
+
allPops.push(/*#__PURE__*/_jsx(Popover, {
|
150
150
|
open: !!allPopsEl[popId],
|
151
151
|
anchorEl: () => allPopsEl[popId],
|
152
152
|
onClose: () => {
|
@@ -192,7 +192,7 @@ export default function CustomToolbar(props) {
|
|
192
192
|
const menuItems = [...defaultButtons, ...customButtons].map((e, index) => {
|
193
193
|
const popId = getPopId(index);
|
194
194
|
let content;
|
195
|
-
if (
|
195
|
+
if (/*#__PURE__*/isValidElement(e)) {
|
196
196
|
content = e;
|
197
197
|
} else if (e.icon) {
|
198
198
|
const {
|
package/lib/Datatable/index.js
CHANGED
@@ -278,7 +278,7 @@ function ReDataTable({
|
|
278
278
|
emptyEl = /*#__PURE__*/_jsx(CircularProgress, {
|
279
279
|
color: "primary"
|
280
280
|
});
|
281
|
-
} else if (
|
281
|
+
} else if (/*#__PURE__*/isValidElement(emptyNode)) {
|
282
282
|
emptyEl = emptyNode;
|
283
283
|
} else if (locale === 'zh') {
|
284
284
|
emptyEl = /*#__PURE__*/_jsx(Empty, {
|
package/lib/Icon/index.js
CHANGED
@@ -75,7 +75,7 @@ const Span = styled('span')`
|
|
75
75
|
line-height: ${props => props.size}px;
|
76
76
|
}
|
77
77
|
`;
|
78
|
-
export default withDeprecated(
|
78
|
+
export default withDeprecated(/*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(Icon, {
|
79
79
|
...props,
|
80
80
|
forwardedRef: ref
|
81
81
|
})), {
|
package/lib/NFTDisplay/index.js
CHANGED
@@ -306,7 +306,7 @@ function NFTDisplay({
|
|
306
306
|
}
|
307
307
|
throw new Error(`unsupported display protocol: ${display.type}`);
|
308
308
|
};
|
309
|
-
return wrapRoot(
|
309
|
+
return wrapRoot(/*#__PURE__*/_jsxs(_Fragment, {
|
310
310
|
children: [(state.loading || !minimumLoadingReady) && (renderLoading ? renderLoading() : /*#__PURE__*/_jsx(DefaultLoading, {})), renderNFT()]
|
311
311
|
}));
|
312
312
|
} catch (e) {
|
@@ -88,7 +88,7 @@ function PageScroller({
|
|
88
88
|
let i = 0;
|
89
89
|
while (i < componentsToRenderLength && !isNil(children[i])) {
|
90
90
|
containers[i] = true;
|
91
|
-
newComponentsToRender.push(
|
91
|
+
newComponentsToRender.push(/*#__PURE__*/_jsx("div", {
|
92
92
|
style: {
|
93
93
|
height: '100%',
|
94
94
|
width: '100%'
|
@@ -13,7 +13,7 @@ export default function FullPage() {
|
|
13
13
|
const [current, setCurrent] = useState(0);
|
14
14
|
const pageNumbers = [];
|
15
15
|
for (let i = 0; i < 5; i++) {
|
16
|
-
pageNumbers.push(
|
16
|
+
pageNumbers.push(/*#__PURE__*/_jsx(Button, {
|
17
17
|
variant: i === current ? 'contained' : 'outlined',
|
18
18
|
size: "small",
|
19
19
|
onClick: () => setCurrent(i),
|
@@ -13,7 +13,7 @@ export default function FullPage() {
|
|
13
13
|
const [current, setCurrent] = useState(0);
|
14
14
|
const pageNumbers = [];
|
15
15
|
for (let i = 0; i < 5; i++) {
|
16
|
-
pageNumbers.push(
|
16
|
+
pageNumbers.push(/*#__PURE__*/_jsx(Button, {
|
17
17
|
variant: i === current ? 'contained' : 'outlined',
|
18
18
|
size: "small",
|
19
19
|
onClick: () => setCurrent(i),
|
package/lib/withTracker/index.js
CHANGED
@@ -5,7 +5,7 @@ import * as Sentry from '@sentry/browser';
|
|
5
5
|
import { useMount, useDeepCompareEffect } from 'ahooks';
|
6
6
|
import { useLocation } from 'react-router-dom';
|
7
7
|
import ErrorBoundary from './error_boundary';
|
8
|
-
export default (
|
8
|
+
export default (WrappedComponent, options = {}) => {
|
9
9
|
const {
|
10
10
|
appVersion,
|
11
11
|
gaAccount,
|
@@ -52,4 +52,4 @@ export default ((WrappedComponent, options = {}) => {
|
|
52
52
|
...props
|
53
53
|
});
|
54
54
|
};
|
55
|
-
}
|
55
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.34",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -61,12 +61,12 @@
|
|
61
61
|
"react": ">=18.2.0",
|
62
62
|
"react-router-dom": ">=6.22.3"
|
63
63
|
},
|
64
|
-
"gitHead": "
|
64
|
+
"gitHead": "5de9c1542fd4b69ebe65efef3a7745cef72d6695",
|
65
65
|
"dependencies": {
|
66
66
|
"@arcblock/did-motif": "^1.1.13",
|
67
|
-
"@arcblock/icons": "^2.10.
|
68
|
-
"@arcblock/nft-display": "^2.10.
|
69
|
-
"@arcblock/react-hooks": "^2.10.
|
67
|
+
"@arcblock/icons": "^2.10.34",
|
68
|
+
"@arcblock/nft-display": "^2.10.34",
|
69
|
+
"@arcblock/react-hooks": "^2.10.34",
|
70
70
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
71
71
|
"@fontsource/inter": "^5.0.16",
|
72
72
|
"@fontsource/ubuntu-mono": "^5.0.18",
|