@arcblock/ux 2.2.3 → 2.4.0
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/ActivityIndicator/index.js +7 -9
- package/lib/Alert/index.js +6 -5
- package/lib/AnimationWaiter/index.js +6 -5
- package/lib/Badge/index.js +6 -5
- package/lib/Blocklet/blocklet.js +6 -5
- package/lib/Blocklet/utils.js +6 -5
- package/lib/BlockletNFT/index.js +6 -5
- package/lib/Center/index.js +6 -5
- package/lib/ClickToCopy/index.js +6 -5
- package/lib/CodeBlock/index.js +6 -5
- package/lib/ContactForm/index.js +6 -5
- package/lib/CookieConsent/index.js +6 -5
- package/lib/CountDown/index.js +6 -5
- package/lib/Datatable/CustomToolbar.js +7 -9
- package/lib/Datatable/DatatableContext.js +2 -2
- package/lib/Datatable/TableSearch.js +6 -5
- package/lib/Datatable/index.js +12 -15
- package/lib/Dialog/dialog.js +8 -10
- package/lib/Earth/index.js +7 -9
- package/lib/Empty/index.js +6 -5
- package/lib/ErrorBoundary/fallback.js +6 -5
- package/lib/Footer/index.js +6 -6
- package/lib/Header/auto-hidden.js +6 -5
- package/lib/Header/header.js +6 -5
- package/lib/Header/responsive-header.js +7 -9
- package/lib/Icon/image.js +6 -5
- package/lib/Icon/index.js +6 -5
- package/lib/InfoRow/index.js +6 -5
- package/lib/Layout/dashboard/index.js +56 -32
- package/lib/Layout/dashboard/sidebar.js +75 -37
- package/lib/Layout/dashboard/with-external-link.js +56 -0
- package/lib/Layout/dashboard-legacy/header.js +6 -5
- package/lib/Layout/dashboard-legacy/index.js +6 -5
- package/lib/Layout/dashboard-legacy/sidebar.js +10 -17
- package/lib/Layout/index.js +7 -9
- package/lib/Locale/selector.js +6 -5
- package/lib/Logo/index.js +6 -5
- package/lib/Metric/index.js +6 -6
- package/lib/NFTDisplay/aspect-ratio-container.js +6 -5
- package/lib/NFTDisplay/broken.js +6 -5
- package/lib/NFTDisplay/index.js +6 -5
- package/lib/NFTDisplay/loading.js +6 -5
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +9 -11
- package/lib/NavMenu/style.js +8 -13
- package/lib/PricingTable/PricingPlan.js +6 -5
- package/lib/PricingTable/index.js +6 -5
- package/lib/Result/result.js +6 -5
- package/lib/Screenshot/index.js +6 -5
- package/lib/SplitButton/index.js +7 -9
- package/lib/Tag/index.js +6 -5
- package/lib/TextCollapse/index.js +6 -5
- package/lib/Theme/theme-provider.js +2 -3
- package/lib/Video/index.js +6 -5
- package/lib/Wallet/Action.js +6 -5
- package/lib/Wallet/Download.js +6 -5
- package/lib/Wallet/Open.js +6 -5
- package/lib/WechatPrompt/index.js +6 -5
- package/lib/withTheme/index.js +9 -5
- package/lib/withTracker/index.js +19 -34
- package/package.json +6 -8
- package/src/ActivityIndicator/index.js +1 -1
- package/src/Alert/index.js +1 -1
- package/src/AnimationWaiter/index.js +1 -1
- package/src/Badge/index.js +1 -1
- package/src/Blocklet/blocklet.js +1 -1
- package/src/Blocklet/utils.js +1 -1
- package/src/BlockletNFT/index.js +1 -1
- package/src/Center/index.js +1 -1
- package/src/ClickToCopy/index.js +1 -1
- package/src/CodeBlock/index.js +1 -1
- package/src/ContactForm/index.js +1 -1
- package/src/CookieConsent/index.js +1 -1
- package/src/CountDown/index.js +1 -1
- package/src/Datatable/CustomToolbar.js +1 -1
- package/src/Datatable/DatatableContext.js +2 -2
- package/src/Datatable/TableSearch.js +1 -1
- package/src/Datatable/index.js +5 -4
- package/src/Dialog/dialog.js +1 -1
- package/src/Earth/index.js +1 -1
- package/src/Empty/index.js +1 -1
- package/src/ErrorBoundary/fallback.js +1 -1
- package/src/Footer/index.js +1 -1
- package/src/Header/auto-hidden.js +1 -1
- package/src/Header/header.js +1 -1
- package/src/Header/responsive-header.js +1 -1
- package/src/Icon/image.js +1 -1
- package/src/Icon/index.js +1 -1
- package/src/InfoRow/index.js +1 -1
- package/src/Layout/dashboard/index.js +56 -27
- package/src/Layout/dashboard/sidebar.js +100 -18
- package/src/Layout/dashboard/with-external-link.js +20 -0
- package/src/Layout/dashboard-legacy/header.js +1 -1
- package/src/Layout/dashboard-legacy/index.js +1 -1
- package/src/Layout/dashboard-legacy/sidebar.js +4 -6
- package/src/Layout/index.js +1 -1
- package/src/Locale/selector.js +1 -1
- package/src/Logo/index.js +1 -1
- package/src/Metric/index.js +1 -1
- package/src/NFTDisplay/aspect-ratio-container.js +1 -1
- package/src/NFTDisplay/broken.js +1 -1
- package/src/NFTDisplay/index.js +1 -1
- package/src/NFTDisplay/loading.js +1 -1
- package/src/NFTDisplay/svg-embedder/inline-svg.js +2 -2
- package/src/NavMenu/style.js +1 -1
- package/src/PricingTable/PricingPlan.js +1 -1
- package/src/PricingTable/index.js +1 -1
- package/src/Result/result.js +1 -1
- package/src/Screenshot/index.js +1 -1
- package/src/SplitButton/index.js +1 -1
- package/src/Tag/index.js +1 -1
- package/src/TextCollapse/index.js +1 -1
- package/src/Theme/theme-provider.js +3 -4
- package/src/Video/index.js +1 -1
- package/src/Wallet/Action.js +1 -1
- package/src/Wallet/Download.js +1 -1
- package/src/Wallet/Open.js +1 -1
- package/src/WechatPrompt/index.js +1 -1
- package/src/withTheme/index.js +6 -4
- package/src/withTracker/index.js +20 -33
package/lib/Wallet/Download.js
CHANGED
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
13
13
|
|
|
14
14
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
15
15
|
|
|
@@ -21,10 +21,14 @@ var _Util = require("../Util");
|
|
|
21
21
|
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
|
|
24
|
+
var _templateObject;
|
|
25
|
+
|
|
24
26
|
const _excluded = ["title", "children", "iosLink", "androidLink", "androidDownLoadUrl", "locale"];
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
30
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
31
|
+
|
|
28
32
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
33
|
|
|
30
34
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -333,7 +337,4 @@ WalletDownload.defaultProps = {
|
|
|
333
337
|
locale: 'zh'
|
|
334
338
|
};
|
|
335
339
|
|
|
336
|
-
const Container =
|
|
337
|
-
displayName: "Download__Container",
|
|
338
|
-
componentId: "sc-dufrvq-0"
|
|
339
|
-
})(["display:flex;flex-direction:", ";align-items:center;.download-title{margin-right:", ";margin-bottom:", ";}.download-store-list{display:flex;flex-direction:", ";justify-content:space-between;align-items:center;.download-link{padding:0;margin:0;margin-right:", ";margin-bottom:", ";&:last-of-type{margin-right:0;margin-bottom:0;}}}"], props => props.layout === 'vertical' ? 'column' : 'row', props => props.layout === 'vertical' ? '0' : '16px', props => props.layout === 'vertical' ? '16px' : '0', props => props.storeLayout === 'vertical' ? 'column' : 'row', props => props.storeLayout === 'vertical' ? '0' : '16px', props => props.storeLayout === 'vertical' ? '16px' : '0');
|
|
340
|
+
const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n align-items: center;\n\n .download-title {\n margin-right: ", ";\n margin-bottom: ", ";\n }\n\n .download-store-list {\n display: flex;\n flex-direction: ", ";\n justify-content: space-between;\n align-items: center;\n\n .download-link {\n padding: 0;\n margin: 0;\n\n margin-right: ", ";\n margin-bottom: ", ";\n\n &:last-of-type {\n margin-right: 0;\n margin-bottom: 0;\n }\n }\n }\n"])), props => props.layout === 'vertical' ? 'column' : 'row', props => props.layout === 'vertical' ? '0' : '16px', props => props.layout === 'vertical' ? '16px' : '0', props => props.storeLayout === 'vertical' ? 'column' : 'row', props => props.storeLayout === 'vertical' ? '0' : '16px', props => props.storeLayout === 'vertical' ? '16px' : '0');
|
package/lib/Wallet/Open.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = OpenInWallet;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
11
11
|
|
|
12
12
|
var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useBrowser"));
|
|
13
13
|
|
|
@@ -15,8 +15,12 @@ var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
+
var _templateObject;
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
22
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
23
|
+
|
|
20
24
|
function OpenInWallet(_ref) {
|
|
21
25
|
let {
|
|
22
26
|
locale,
|
|
@@ -49,7 +53,4 @@ OpenInWallet.propTypes = {
|
|
|
49
53
|
OpenInWallet.defaultProps = {
|
|
50
54
|
locale: 'zh'
|
|
51
55
|
};
|
|
52
|
-
const Button = (0,
|
|
53
|
-
displayName: "Open__Button",
|
|
54
|
-
componentId: "sc-4xnnrp-0"
|
|
55
|
-
})(["&&{font-size:12px;position:fixed;bottom:24px;left:50%;transform-origin:50% 50%;transform:translateX(-50%);min-width:120px;z-index:", ";}"], props => props.theme.zIndex.tooltip);
|
|
56
|
+
const Button = (0, _styled.default)(_Fab.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && {\n font-size: 12px;\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform-origin: 50% 50%;\n transform: translateX(-50%);\n min-width: 120px;\n z-index: ", ";\n }\n"])), props => props.theme.zIndex.tooltip);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = WechatPrompt;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
|
|
10
10
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
11
11
|
|
|
@@ -19,8 +19,12 @@ var _android = _interopRequireDefault(require("./images/android.png"));
|
|
|
19
19
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
|
+
var _templateObject;
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
26
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
27
|
+
|
|
24
28
|
function WechatPrompt() {
|
|
25
29
|
const browser = (0, _useBrowser.default)();
|
|
26
30
|
|
|
@@ -77,7 +81,4 @@ function WechatPrompt() {
|
|
|
77
81
|
});
|
|
78
82
|
}
|
|
79
83
|
|
|
80
|
-
const Container =
|
|
81
|
-
displayName: "WechatPrompt__Container",
|
|
82
|
-
componentId: "sc-3wi7rq-0"
|
|
83
|
-
})([".wechat-title{height:80px;line-height:80px;text-align:center;font-size:20px;color:#fff;background-color:#9cdbd8;}.wechat-tip{display:flex;flex-direction:column;align-items:center;.wechat-tip-text{font-size:20px;padding:10px 10px;overflow:auto;word-break:break-word;text-align:center;}.wechat-tip-img{width:90%;object-fit:cover;}}"]);
|
|
84
|
+
const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .wechat-title {\n height: 80px;\n line-height: 80px;\n text-align: center;\n font-size: 20px;\n color: #fff;\n background-color: #9cdbd8;\n }\n\n .wechat-tip {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n .wechat-tip-text {\n font-size: 20px;\n padding: 10px 10px;\n overflow: auto;\n word-break: break-word;\n text-align: center;\n }\n\n .wechat-tip-img {\n width: 90%;\n object-fit: cover;\n }\n }\n"])));
|
package/lib/withTheme/index.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
12
|
var _styles = require("@mui/material/styles");
|
|
13
13
|
|
|
@@ -17,6 +17,8 @@ var _Theme = require("../Theme");
|
|
|
17
17
|
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
|
|
20
|
+
var _templateObject;
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -29,7 +31,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
29
31
|
|
|
30
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
35
|
+
|
|
36
|
+
const globalStyles = (0, _react2.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n color: ", ";\n\n a,\n a:hover,\n a:active {\n text-decoration: none;\n color: ", ";\n }\n\n a:hover {\n color: ", ";\n }\n\n .section--latest-post {\n p:last-of-type {\n margin: 0;\n }\n }\n\n .has-scrolled {\n .section--footnotes {\n position: static !important;\n transition-property: background-color;\n transition-duration: 600ms;\n transition-timing-function: ease;\n .footnote__title {\n color: #fff;\n }\n }\n }\n"])), props => props.theme.typography.fontFamily, props => props.theme.typography.color.main, props => props.theme.palette.primary.dark, props => props.theme.palette.primary.main);
|
|
33
37
|
|
|
34
38
|
function withTheme(Component) {
|
|
35
39
|
let {
|
|
@@ -62,9 +66,9 @@ function withTheme(Component) {
|
|
|
62
66
|
render() {
|
|
63
67
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ThemeProvider, {
|
|
64
68
|
theme: this.theme,
|
|
65
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CssBaseline.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
66
|
-
|
|
67
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
69
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CssBaseline.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.Global, {
|
|
70
|
+
styles: globalStyles
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.ThemeProvider, {
|
|
68
72
|
theme: this.theme,
|
|
69
73
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread({}, this.props))
|
|
70
74
|
})]
|
package/lib/withTracker/index.js
CHANGED
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
8
|
var _reactGa = _interopRequireDefault(require("react-ga"));
|
|
13
9
|
|
|
14
10
|
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
15
11
|
|
|
12
|
+
var _useDeepCompareEffect = _interopRequireDefault(require("react-use/lib/useDeepCompareEffect"));
|
|
13
|
+
|
|
14
|
+
var _useMount = _interopRequireDefault(require("react-use/lib/useMount"));
|
|
15
|
+
|
|
16
16
|
var _reactRouterDom = require("react-router-dom");
|
|
17
17
|
|
|
18
18
|
var _error_boundary = _interopRequireDefault(require("./error_boundary"));
|
|
@@ -65,38 +65,23 @@ var _default = function _default(WrappedComponent) {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
trackPage(
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
render() {
|
|
84
|
-
if (process.env.NODE_ENV === 'production') {
|
|
85
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_error_boundary.default, {
|
|
86
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(WrappedComponent, _objectSpread({}, this.props))
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(WrappedComponent, _objectSpread({}, this.props));
|
|
68
|
+
return function TrackedComponent(props) {
|
|
69
|
+
const location = (0, _reactRouterDom.useLocation)();
|
|
70
|
+
(0, _useMount.default)(() => {
|
|
71
|
+
trackPage(location.pathname);
|
|
72
|
+
});
|
|
73
|
+
(0, _useDeepCompareEffect.default)(() => {
|
|
74
|
+
trackPage(location.pathname);
|
|
75
|
+
}, [location.pathname]);
|
|
76
|
+
|
|
77
|
+
if (process.env.NODE_ENV === 'production') {
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_error_boundary.default, {
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(WrappedComponent, _objectSpread({}, props))
|
|
80
|
+
});
|
|
91
81
|
}
|
|
92
82
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
_defineProperty(TrackedComponent, "propTypes", {
|
|
96
|
-
location: _propTypes.default.object.isRequired
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
return (0, _reactRouterDom.withRouter)(TrackedComponent);
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(WrappedComponent, _objectSpread({}, props));
|
|
84
|
+
};
|
|
100
85
|
};
|
|
101
86
|
|
|
102
87
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"@babel/preset-env": "^7.18.10",
|
|
39
39
|
"@babel/preset-react": "^7.18.6",
|
|
40
40
|
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
41
|
-
"babel-plugin-styled-components": "^1.13.3",
|
|
42
41
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
43
42
|
"jest": "^24.9.0",
|
|
44
43
|
"moment-timezone": "^0.5.34"
|
|
@@ -48,16 +47,16 @@
|
|
|
48
47
|
"react": ">=18.1.0",
|
|
49
48
|
"react-ga": "^2.7.0"
|
|
50
49
|
},
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "202771a046cab27fc550d31e73588075a90c75fd",
|
|
52
51
|
"dependencies": {
|
|
53
|
-
"@arcblock/icons": "^2.
|
|
54
|
-
"@arcblock/react-hooks": "^2.
|
|
52
|
+
"@arcblock/icons": "^2.4.0",
|
|
53
|
+
"@arcblock/react-hooks": "^2.4.0",
|
|
55
54
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
56
55
|
"@emotion/react": "^11.10.0",
|
|
57
56
|
"@emotion/styled": "^11.10.0",
|
|
58
57
|
"@fontsource/lato": "^4.5.9",
|
|
59
58
|
"@mui/icons-material": "^5.8.4",
|
|
60
|
-
"@mui/material": "^5.
|
|
59
|
+
"@mui/material": "^5.10.0",
|
|
61
60
|
"@solana/qr-code-styling": "^1.6.0-beta.0",
|
|
62
61
|
"axios": "^0.21.4",
|
|
63
62
|
"base64-url": "^2.3.3",
|
|
@@ -79,11 +78,10 @@
|
|
|
79
78
|
"react-intersection-observer": "^8.34.0",
|
|
80
79
|
"react-lottie-player": "^1.4.3",
|
|
81
80
|
"react-player": "^1.15.3",
|
|
82
|
-
"react-router-dom": "^
|
|
81
|
+
"react-router-dom": "^6.3.0",
|
|
83
82
|
"react-shadow": "^19.0.3",
|
|
84
83
|
"react-use": "^17.4.0",
|
|
85
84
|
"rebound": "^0.1.0",
|
|
86
|
-
"styled-components": "^5.3.5",
|
|
87
85
|
"topojson-client": "^3.1.0",
|
|
88
86
|
"versor": "^0.0.4"
|
|
89
87
|
}
|
package/src/Alert/index.js
CHANGED
package/src/Badge/index.js
CHANGED
package/src/Blocklet/blocklet.js
CHANGED
package/src/Blocklet/utils.js
CHANGED
package/src/BlockletNFT/index.js
CHANGED
package/src/Center/index.js
CHANGED
package/src/ClickToCopy/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import useWindowSize from 'react-use/lib/useWindowSize';
|
|
3
3
|
import Tooltip from '@mui/material/Tooltip';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
|
-
import styled from 'styled
|
|
5
|
+
import styled from '@emotion/styled';
|
|
6
6
|
import useCopy from './hook';
|
|
7
7
|
import Toast, { ToastProvider } from '../Toast';
|
|
8
8
|
import { mergeProps } from '../Util';
|
package/src/CodeBlock/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/no-danger */
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import styled from 'styled
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import Copy from 'copy-to-clipboard';
|
|
6
6
|
import Button from '@mui/material/IconButton';
|
|
7
7
|
import useMountedState from 'react-use/lib/useMountedState';
|
package/src/ContactForm/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable react/static-property-placement */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import styled from 'styled
|
|
5
|
+
import styled from '@emotion/styled';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
|
|
8
8
|
import Typography from '@mui/material/Typography';
|
package/src/CountDown/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, isValidElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { TableFilter, TableViewCol } from 'mui-datatables';
|
|
4
|
-
import styled from 'styled
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import ReactToPrint, { PrintContextConsumer } from 'react-to-print';
|
|
6
6
|
import IconButton from '@mui/material/IconButton';
|
|
7
7
|
import Tooltip from '@mui/material/Tooltip';
|
|
@@ -5,7 +5,7 @@ const DatatableContext = createContext({});
|
|
|
5
5
|
const { Provider } = DatatableContext;
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line react/prop-types
|
|
8
|
-
function
|
|
8
|
+
function DatatableProvider({ children }) {
|
|
9
9
|
const [customButtons, setCustomButtons] = useState([]);
|
|
10
10
|
const [loading, setLoading] = useState(false);
|
|
11
11
|
const [disabled, setDisabled] = useState(false);
|
|
@@ -29,4 +29,4 @@ function useDatatableContext() {
|
|
|
29
29
|
return useContext(DatatableContext);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { DatatableProvider, useDatatableContext };
|
|
@@ -5,7 +5,7 @@ import Tooltip from '@mui/material/Tooltip';
|
|
|
5
5
|
import SearchIcon from '@mui/icons-material/Search';
|
|
6
6
|
import TextField from '@mui/material/TextField';
|
|
7
7
|
import ClearIcon from '@mui/icons-material/Clear';
|
|
8
|
-
import styled from 'styled
|
|
8
|
+
import styled from '@emotion/styled';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import { useDatatableContext } from './DatatableContext';
|
|
11
11
|
|
package/src/Datatable/index.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { useEffect, useRef, isValidElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import MUIDataTable, { TableFilterList, TableFooter } from 'mui-datatables';
|
|
5
|
-
import styled
|
|
5
|
+
import styled from '@emotion/styled';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
6
7
|
import isObject from 'lodash/isObject';
|
|
7
8
|
import cloneDeep from 'lodash/cloneDeep';
|
|
8
9
|
import get from 'lodash/get';
|
|
@@ -10,13 +11,13 @@ import clsx from 'clsx';
|
|
|
10
11
|
import Empty from '../Empty';
|
|
11
12
|
import Spinner from '../Spinner';
|
|
12
13
|
import CustomToolbar from './CustomToolbar';
|
|
13
|
-
import {
|
|
14
|
+
import { DatatableProvider, useDatatableContext } from './DatatableContext';
|
|
14
15
|
|
|
15
16
|
export default function Datatable({ ...props }) {
|
|
16
17
|
return (
|
|
17
|
-
<
|
|
18
|
+
<DatatableProvider>
|
|
18
19
|
<ReDatatable {...props} />
|
|
19
|
-
</
|
|
20
|
+
</DatatableProvider>
|
|
20
21
|
);
|
|
21
22
|
}
|
|
22
23
|
|
package/src/Dialog/dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import styled from 'styled
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
3
|
import MuiDialog from '@mui/material/Dialog';
|
|
4
4
|
import MuiDialogContent from '@mui/material/DialogContent';
|
|
5
5
|
import DialogActions from '@mui/material/DialogActions';
|
package/src/Earth/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useReducer, useRef, useEffect } from 'react';
|
|
3
3
|
import useSpring from 'react-use/lib/useSpring';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import styled from 'styled
|
|
5
|
+
import styled from '@emotion/styled';
|
|
6
6
|
import * as d3 from 'd3-geo';
|
|
7
7
|
import * as topojson from 'topojson-client';
|
|
8
8
|
import versor from 'versor';
|
package/src/Empty/index.js
CHANGED
package/src/Footer/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react/no-unused-prop-types */
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
5
|
import MuiContainer from '@mui/material/Container';
|
|
6
6
|
|
package/src/Header/header.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
4
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
5
5
|
import CloseIcon from '@mui/icons-material/Close';
|
|
6
6
|
import Button from '@mui/material/IconButton';
|
package/src/Icon/image.js
CHANGED
package/src/Icon/index.js
CHANGED
package/src/InfoRow/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import camelCase from 'lodash/camelCase';
|
|
3
3
|
import upperFirst from 'lodash/upperFirst';
|
|
4
|
-
import styled from 'styled
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import Typography from '@mui/material/Typography';
|
|
6
6
|
|
|
7
7
|
function InfoRow({ name, nameFormatter, layout, children, valueComponent, nameWidth, ...rest }) {
|