@arcblock/did-playground 2.4.2 → 2.4.3
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/Action/index.js +3 -6
- package/package.json +5 -5
- package/src/Action/index.js +2 -3
package/lib/Action/index.js
CHANGED
|
@@ -9,13 +9,11 @@ var _react = require("react");
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _styles = require("@mui/material/styles");
|
|
13
|
-
|
|
14
12
|
var _useWindowSize = _interopRequireDefault(require("react-use/lib/useWindowSize"));
|
|
15
13
|
|
|
16
14
|
var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useBrowser"));
|
|
17
15
|
|
|
18
|
-
var
|
|
16
|
+
var _Theme = require("@arcblock/ux/lib/Theme");
|
|
19
17
|
|
|
20
18
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
21
19
|
|
|
@@ -66,8 +64,7 @@ function Close(_ref) {
|
|
|
66
64
|
Close.propTypes = {
|
|
67
65
|
onClose: _propTypes.default.func.isRequired
|
|
68
66
|
};
|
|
69
|
-
|
|
70
|
-
const CloseContainer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: ", ";\n position: absolute;\n top: 1rem;\n right: 1rem;\n color: #999999;\n font-size: 2rem;\n line-height: 1rem;\n cursor: pointer;\n user-select: none;\n"])), props => props.disableClose ? 'none' : 'block');
|
|
67
|
+
const CloseContainer = (0, _Theme.styled)('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: ", ";\n position: absolute;\n top: 1rem;\n right: 1rem;\n color: #999999;\n font-size: 2rem;\n line-height: 1rem;\n cursor: pointer;\n user-select: none;\n"])), props => props.disableClose ? 'none' : 'block');
|
|
71
68
|
|
|
72
69
|
function PlaygroundAction(props) {
|
|
73
70
|
const newProps = (0, _Util.mergeProps)(props, PlaygroundAction, ['buttonRounded', 'extraParams', 'timeout']);
|
|
@@ -95,7 +92,7 @@ function PlaygroundAction(props) {
|
|
|
95
92
|
} = newProps,
|
|
96
93
|
rest = _objectWithoutProperties(newProps, _excluded);
|
|
97
94
|
|
|
98
|
-
const theme = (0,
|
|
95
|
+
const theme = (0, _Theme.useTheme)();
|
|
99
96
|
const browser = (0, _useBrowser.default)();
|
|
100
97
|
const {
|
|
101
98
|
api,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-playground",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "React components that works with wallet-playground",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"url": "https://github.com/ArcBlock/wallet-playground/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcblock/did-connect": "^2.4.
|
|
33
|
-
"@arcblock/react-hooks": "^2.4.
|
|
34
|
-
"@arcblock/ux": "^2.4.
|
|
32
|
+
"@arcblock/did-connect": "^2.4.3",
|
|
33
|
+
"@arcblock/react-hooks": "^2.4.3",
|
|
34
|
+
"@arcblock/ux": "^2.4.3",
|
|
35
35
|
"@emotion/react": "^11.10.0",
|
|
36
36
|
"@emotion/styled": "^11.10.0",
|
|
37
37
|
"@mui/material": "^5.10.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a3c4e62917f630b62edccc064cfbb88e72b8407d"
|
|
57
57
|
}
|
package/src/Action/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { useContext, useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useTheme } from '@mui/material/styles';
|
|
4
3
|
import useWindowSize from 'react-use/lib/useWindowSize';
|
|
5
4
|
import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
|
|
6
|
-
import styled from '@
|
|
5
|
+
import { styled, useTheme } from '@arcblock/ux/lib/Theme';
|
|
7
6
|
|
|
8
7
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
9
8
|
import Dialog from '@mui/material/Dialog';
|
|
@@ -21,7 +20,7 @@ function Close({ onClose }) {
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
Close.propTypes = { onClose: PropTypes.func.isRequired };
|
|
24
|
-
const CloseContainer = styled
|
|
23
|
+
const CloseContainer = styled('div')`
|
|
25
24
|
display: ${(props) => (props.disableClose ? 'none' : 'block')};
|
|
26
25
|
position: absolute;
|
|
27
26
|
top: 1rem;
|