@arcblock/ux 3.0.1 → 3.0.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/LoadingMask/index.js +15 -15
- package/package.json +7 -7
- package/src/LoadingMask/index.tsx +7 -7
package/lib/LoadingMask/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
2
2
|
import { Box as n } from "@mui/material";
|
3
3
|
function b({
|
4
4
|
size: s = 64,
|
@@ -8,8 +8,8 @@ function b({
|
|
8
8
|
duration: c,
|
9
9
|
children: g
|
10
10
|
}) {
|
11
|
-
const t = s,
|
12
|
-
return /* @__PURE__ */
|
11
|
+
const t = s, i = f ?? t / 8, e = l ?? t / 32, o = d ?? t * 0.25 - e, p = c ?? 2.5;
|
12
|
+
return /* @__PURE__ */ h(
|
13
13
|
n,
|
14
14
|
{
|
15
15
|
sx: {
|
@@ -37,15 +37,11 @@ function b({
|
|
37
37
|
width: t,
|
38
38
|
height: t,
|
39
39
|
overflow: "hidden",
|
40
|
-
borderRadius: `${
|
40
|
+
borderRadius: `${i}px`,
|
41
41
|
backgroundColor: "grey.200",
|
42
42
|
"&::before,&::after": {
|
43
43
|
content: '""',
|
44
44
|
position: "absolute",
|
45
|
-
top: 0,
|
46
|
-
bottom: 0,
|
47
|
-
left: 0,
|
48
|
-
right: 0,
|
49
45
|
pointerEvents: "none"
|
50
46
|
},
|
51
47
|
"&::after": {
|
@@ -54,18 +50,22 @@ function b({
|
|
54
50
|
top: e,
|
55
51
|
bottom: e,
|
56
52
|
backgroundColor: "background.default",
|
57
|
-
borderRadius: `${
|
53
|
+
borderRadius: `${i - e}px`
|
58
54
|
},
|
59
55
|
"&::before": {
|
56
|
+
width: t * 5,
|
57
|
+
height: t * 5,
|
58
|
+
top: "50%",
|
59
|
+
left: "50%",
|
60
|
+
transform: "translate(-50%, -50%)",
|
60
61
|
background: ({ palette: r }) => `conic-gradient(from 45deg, transparent 0%, transparent 50%, ${r.secondary.main} 90%, ${r.secondary.main} 100%)`,
|
61
|
-
|
62
|
-
animation: `rotate ${m}s linear infinite`,
|
62
|
+
animation: `rotate ${p}s linear infinite`,
|
63
63
|
"@keyframes rotate": {
|
64
64
|
"0%": {
|
65
|
-
transform: "
|
65
|
+
transform: "translate(-50%, -50%) rotate(0deg)"
|
66
66
|
},
|
67
67
|
"100%": {
|
68
|
-
transform: "
|
68
|
+
transform: "translate(-50%, -50%) rotate(360deg)"
|
69
69
|
}
|
70
70
|
}
|
71
71
|
}
|
@@ -80,8 +80,8 @@ function b({
|
|
80
80
|
display: "flex",
|
81
81
|
justifyContent: "center",
|
82
82
|
alignItems: "center",
|
83
|
-
width: t -
|
84
|
-
height: t -
|
83
|
+
width: t - o - e,
|
84
|
+
height: t - o - e
|
85
85
|
},
|
86
86
|
children: g
|
87
87
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.3",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -60,16 +60,16 @@
|
|
60
60
|
"react": ">=19.0.0",
|
61
61
|
"react-router-dom": ">=6.22.3"
|
62
62
|
},
|
63
|
-
"gitHead": "
|
63
|
+
"gitHead": "2eebd00eee1be90587baa3847167f25d92643fa9",
|
64
64
|
"dependencies": {
|
65
|
-
"@arcblock/bridge": "3.0.
|
65
|
+
"@arcblock/bridge": "3.0.3",
|
66
66
|
"@arcblock/did": "^1.20.14",
|
67
67
|
"@arcblock/did-motif": "^1.1.13",
|
68
|
-
"@arcblock/icons": "3.0.
|
69
|
-
"@arcblock/nft-display": "3.0.
|
70
|
-
"@arcblock/react-hooks": "3.0.
|
68
|
+
"@arcblock/icons": "3.0.3",
|
69
|
+
"@arcblock/nft-display": "3.0.3",
|
70
|
+
"@arcblock/react-hooks": "3.0.3",
|
71
71
|
"@blocklet/js-sdk": "^1.16.44",
|
72
|
-
"@blocklet/theme": "3.0.
|
72
|
+
"@blocklet/theme": "3.0.3",
|
73
73
|
"@fontsource/roboto": "~5.1.1",
|
74
74
|
"@fontsource/ubuntu-mono": "^5.2.6",
|
75
75
|
"@iconify-icons/logos": "^1.2.36",
|
@@ -51,10 +51,6 @@ export default function LoadingMask({
|
|
51
51
|
'&::before,&::after': {
|
52
52
|
content: '""',
|
53
53
|
position: 'absolute',
|
54
|
-
top: 0,
|
55
|
-
bottom: 0,
|
56
|
-
left: 0,
|
57
|
-
right: 0,
|
58
54
|
pointerEvents: 'none',
|
59
55
|
},
|
60
56
|
'&::after': {
|
@@ -66,16 +62,20 @@ export default function LoadingMask({
|
|
66
62
|
borderRadius: `${finialRadius - finialBorderWidth}px`,
|
67
63
|
},
|
68
64
|
'&::before': {
|
65
|
+
width: finialSize * 5,
|
66
|
+
height: finialSize * 5,
|
67
|
+
top: '50%',
|
68
|
+
left: '50%',
|
69
|
+
transform: 'translate(-50%, -50%)',
|
69
70
|
background: ({ palette }) =>
|
70
71
|
`conic-gradient(from 45deg, transparent 0%, transparent 50%, ${palette.secondary.main} 90%, ${palette.secondary.main} 100%)`,
|
71
|
-
transform: 'scale(100)',
|
72
72
|
animation: `rotate ${finialDuration}s linear infinite`,
|
73
73
|
'@keyframes rotate': {
|
74
74
|
'0%': {
|
75
|
-
transform: '
|
75
|
+
transform: 'translate(-50%, -50%) rotate(0deg)',
|
76
76
|
},
|
77
77
|
'100%': {
|
78
|
-
transform: '
|
78
|
+
transform: 'translate(-50%, -50%) rotate(360deg)',
|
79
79
|
},
|
80
80
|
},
|
81
81
|
},
|