@blocklet/ui-react 3.0.11 → 3.0.12
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/Footer/brand.js +8 -8
- package/lib/Footer/layout/plain.js +9 -9
- package/lib/Footer/layout/standard.js +2 -2
- package/lib/Footer/links.js +18 -17
- package/lib/Footer/social-media.js +14 -13
- package/lib/UserCenter/components/notification.js +1 -0
- package/lib/UserCenter/components/user-center.js +3 -4
- package/lib/UserCenter/components/user-info/user-info-item.js +12 -11
- package/lib/UserCenter/components/user-info/user-status.js +27 -27
- package/package.json +5 -5
- package/src/Footer/brand.jsx +1 -1
- package/src/Footer/layout/plain.jsx +2 -2
- package/src/Footer/layout/standard.jsx +1 -1
- package/src/Footer/links.jsx +2 -1
- package/src/Footer/social-media.jsx +3 -1
- package/src/UserCenter/components/notification.tsx +1 -0
- package/src/UserCenter/components/user-center.tsx +1 -2
- package/src/UserCenter/components/user-info/user-info-item.tsx +1 -0
- package/src/UserCenter/components/user-info/user-status.tsx +1 -1
package/lib/Footer/brand.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { isValidElement as
|
|
2
|
+
import { isValidElement as s } from "react";
|
|
3
3
|
import i from "prop-types";
|
|
4
|
-
import { styled as
|
|
5
|
-
import { Box as
|
|
6
|
-
function p({ name: e = "", logo: t = "", description: r = "", ...
|
|
4
|
+
import { styled as m } from "@arcblock/ux/lib/Theme";
|
|
5
|
+
import { Box as a } from "@mui/material";
|
|
6
|
+
function p({ name: e = "", logo: t = "", description: r = "", ...d }) {
|
|
7
7
|
if (!e && !t && !r)
|
|
8
8
|
return null;
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */ n(h, { ...
|
|
9
|
+
const l = s(t) ? t : /* @__PURE__ */ o("img", { src: t, alt: e });
|
|
10
|
+
return /* @__PURE__ */ n(h, { ...d, children: [
|
|
11
11
|
/* @__PURE__ */ n("div", { children: [
|
|
12
|
-
t && /* @__PURE__ */ o(
|
|
12
|
+
t && /* @__PURE__ */ o(a, { component: "a", href: "/", className: "footer-brand-logo", children: l }),
|
|
13
13
|
e && /* @__PURE__ */ o("div", { className: "footer-brand-name", children: e })
|
|
14
14
|
] }),
|
|
15
15
|
r && /* @__PURE__ */ o("div", { className: "footer-brand-desc", children: r })
|
|
@@ -20,7 +20,7 @@ p.propTypes = {
|
|
|
20
20
|
logo: i.node,
|
|
21
21
|
description: i.string
|
|
22
22
|
};
|
|
23
|
-
const h =
|
|
23
|
+
const h = m(a)`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
font-size: 14px;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { cloneElement as l } from "react";
|
|
3
3
|
import e from "prop-types";
|
|
4
|
-
import { Container as r } from "@mui/material";
|
|
5
|
-
import { styled as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
i.links && /* @__PURE__ */ n(
|
|
4
|
+
import { Box as p, Container as r } from "@mui/material";
|
|
5
|
+
import { styled as d } from "@arcblock/ux/lib/Theme";
|
|
6
|
+
import s from "./row.js";
|
|
7
|
+
function c({ elements: i, data: u, ...o }) {
|
|
8
|
+
return /* @__PURE__ */ t(m, { ...o, children: /* @__PURE__ */ t(r, { style: { padding: 0 }, children: /* @__PURE__ */ n(r, { className: "plain-layout-container", children: [
|
|
9
|
+
i.links && /* @__PURE__ */ n(s, { sx: { width: 1 }, autoCenter: !0, children: [
|
|
10
10
|
i.copyright,
|
|
11
11
|
i.links
|
|
12
12
|
] }),
|
|
@@ -16,7 +16,7 @@ function s({ elements: i, data: m, ...o }) {
|
|
|
16
16
|
] })
|
|
17
17
|
] }) }) });
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
c.propTypes = {
|
|
20
20
|
elements: e.shape({
|
|
21
21
|
brand: e.element,
|
|
22
22
|
navigation: e.element,
|
|
@@ -26,7 +26,7 @@ s.propTypes = {
|
|
|
26
26
|
}).isRequired,
|
|
27
27
|
data: e.object.isRequired
|
|
28
28
|
};
|
|
29
|
-
const
|
|
29
|
+
const m = d(p)`
|
|
30
30
|
padding: 24px 0;
|
|
31
31
|
.plain-layout-container {
|
|
32
32
|
display: flex;
|
|
@@ -37,5 +37,5 @@ const c = p("div")`
|
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
c as default
|
|
41
41
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import o from "prop-types";
|
|
3
3
|
import m from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { Box as r, Container as t } from "@mui/material";
|
|
5
5
|
import { styled as x } from "@arcblock/ux/lib/Theme";
|
|
6
6
|
import f from "./row.js";
|
|
7
7
|
function h({ elements: e, data: l, className: s = "", ...p }) {
|
|
@@ -79,7 +79,7 @@ h.propTypes = {
|
|
|
79
79
|
data: o.object.isRequired,
|
|
80
80
|
className: o.string
|
|
81
81
|
};
|
|
82
|
-
const g = x(
|
|
82
|
+
const g = x(r)`
|
|
83
83
|
padding: 32px 0 24px 0;
|
|
84
84
|
.footer-brand-name,
|
|
85
85
|
.footer-brand-desc {
|
package/lib/Footer/links.js
CHANGED
|
@@ -5,13 +5,14 @@ import { useCreation as $ } from "ahooks";
|
|
|
5
5
|
import j from "lodash/isInteger";
|
|
6
6
|
import I from "lodash/isString";
|
|
7
7
|
import { styled as z } from "@arcblock/ux/lib/Theme";
|
|
8
|
+
import { Box as M } from "@mui/material";
|
|
8
9
|
import c from "clsx";
|
|
9
|
-
import { ExpandMore as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { splitNavColumns as
|
|
13
|
-
function
|
|
14
|
-
const [g, b] = N(-1), y =
|
|
10
|
+
import { ExpandMore as C } from "@mui/icons-material";
|
|
11
|
+
import A from "../Icon/index.js";
|
|
12
|
+
import E from "../hooks/use-mobile.js";
|
|
13
|
+
import { splitNavColumns as F } from "../utils.js";
|
|
14
|
+
function R({ links: e = [], flowLayout: d = !1, columns: u, ...k }) {
|
|
15
|
+
const [g, b] = N(-1), y = E({ key: "md" }), h = e.some((t) => t.items?.length), x = !y && h && j(u) && u > 1, p = ({ label: t, link: o, icon: i, render: a, props: n }) => {
|
|
15
16
|
let s = t;
|
|
16
17
|
if (a)
|
|
17
18
|
s = a({ label: t, link: o, props: n });
|
|
@@ -30,10 +31,10 @@ function F({ links: e = [], flowLayout: d = !1, columns: u, ...x }) {
|
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
33
|
return /* @__PURE__ */ m(v, { children: [
|
|
33
|
-
i && /* @__PURE__ */ r(
|
|
34
|
+
i && /* @__PURE__ */ r(A, { icon: i, size: 20, sx: { mr: 0.5 } }),
|
|
34
35
|
s
|
|
35
36
|
] });
|
|
36
|
-
}, w = $(() => e?.length ? d ? e.map((t, o) => /* @__PURE__ */ r("span", { className: "footer-links-item", children: p(t) }, o)) :
|
|
37
|
+
}, w = $(() => e?.length ? d ? e.map((t, o) => /* @__PURE__ */ r("span", { className: "footer-links-item", children: p(t) }, o)) : x ? F(e, { columns: u }).map((t, o) => /* @__PURE__ */ r("div", { className: "footer-links-column", children: t.filter((i) => i.group).map((i, a) => {
|
|
37
38
|
const { items: n } = i;
|
|
38
39
|
return /* @__PURE__ */ m("div", { className: "footer-links-group", children: [
|
|
39
40
|
/* @__PURE__ */ r("span", { className: "footer-links-item", children: p(i) }),
|
|
@@ -59,7 +60,7 @@ function F({ links: e = [], flowLayout: d = !1, columns: u, ...x }) {
|
|
|
59
60
|
/* @__PURE__ */ m("span", { className: "footer-links-item", children: [
|
|
60
61
|
p(t),
|
|
61
62
|
!!i?.length && /* @__PURE__ */ r("span", { className: "footer-links-group-expand-icon", children: /* @__PURE__ */ r(
|
|
62
|
-
|
|
63
|
+
C,
|
|
63
64
|
{
|
|
64
65
|
style: {
|
|
65
66
|
transform: `rotate(${a ? 180 : 0}deg)`
|
|
@@ -72,21 +73,21 @@ function F({ links: e = [], flowLayout: d = !1, columns: u, ...x }) {
|
|
|
72
73
|
},
|
|
73
74
|
o
|
|
74
75
|
);
|
|
75
|
-
}) : null, [e, d,
|
|
76
|
+
}) : null, [e, d, x, g]);
|
|
76
77
|
return e?.length ? /* @__PURE__ */ r(
|
|
77
|
-
|
|
78
|
+
S,
|
|
78
79
|
{
|
|
79
|
-
...
|
|
80
|
-
className: c(
|
|
80
|
+
...k,
|
|
81
|
+
className: c(k.className, {
|
|
81
82
|
"footer-links--grouped": h,
|
|
82
83
|
"footer-links--flow": d,
|
|
83
|
-
"footer-links--columns":
|
|
84
|
+
"footer-links--columns": x
|
|
84
85
|
}),
|
|
85
86
|
children: /* @__PURE__ */ r("div", { className: "footer-links-inner", children: w })
|
|
86
87
|
}
|
|
87
88
|
) : null;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
R.propTypes = {
|
|
90
91
|
links: l.arrayOf(
|
|
91
92
|
l.shape({
|
|
92
93
|
label: l.string,
|
|
@@ -100,7 +101,7 @@ F.propTypes = {
|
|
|
100
101
|
// 列布局
|
|
101
102
|
columns: l.number.isRequired
|
|
102
103
|
};
|
|
103
|
-
const
|
|
104
|
+
const S = z(M)`
|
|
104
105
|
overflow: hidden;
|
|
105
106
|
color: ${({ theme: e }) => e.palette.text.secondary};
|
|
106
107
|
.footer-links-inner {
|
|
@@ -250,5 +251,5 @@ const R = z("div")`
|
|
|
250
251
|
}
|
|
251
252
|
`;
|
|
252
253
|
export {
|
|
253
|
-
|
|
254
|
+
R as default
|
|
254
255
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "prop-types";
|
|
3
3
|
import { styled as a } from "@arcblock/ux/lib/Theme";
|
|
4
|
-
import l from "
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { Box as l } from "@mui/material";
|
|
5
|
+
import p from "../Icon/index.js";
|
|
6
|
+
function c({ items: e = null, ...n }) {
|
|
7
|
+
return e?.length ? /* @__PURE__ */ t(s, { ...n, children: e.map((r, i) => /* @__PURE__ */ t(
|
|
7
8
|
"a",
|
|
8
9
|
{
|
|
9
10
|
href: r.link,
|
|
10
11
|
target: "_blank",
|
|
11
12
|
"aria-label": `Social media icon${r.title ? ` for ${r.title}` : ""}`,
|
|
12
13
|
rel: "noreferrer",
|
|
13
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ t(p, { icon: r.icon || r.title, size: 24, component: "span" })
|
|
14
15
|
},
|
|
15
16
|
i
|
|
16
17
|
)) }) : null;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
items:
|
|
20
|
-
|
|
19
|
+
c.propTypes = {
|
|
20
|
+
items: o.arrayOf(
|
|
21
|
+
o.shape({
|
|
21
22
|
// icon 对应 Icon#icon prop, 支持 iconify name 和 url 2 种形式:
|
|
22
|
-
icon:
|
|
23
|
-
link:
|
|
23
|
+
icon: o.string,
|
|
24
|
+
link: o.string
|
|
24
25
|
})
|
|
25
26
|
)
|
|
26
27
|
};
|
|
27
|
-
const
|
|
28
|
+
const s = a(l)`
|
|
28
29
|
display: inline-flex;
|
|
29
30
|
flex-wrap: wrap;
|
|
30
31
|
align-items: center;
|
|
@@ -43,5 +44,5 @@ const c = a("div")`
|
|
|
43
44
|
}
|
|
44
45
|
`;
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
c as default
|
|
47
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f, Fragment as D } from "react/jsx-runtime";
|
|
2
2
|
import { use as fe } from "react";
|
|
3
|
-
import { Box as a, Typography as pe, CircularProgress as me, Divider as he } from "@mui/material";
|
|
3
|
+
import { styled as oe, Box as a, Typography as pe, CircularProgress as me, Divider as he } from "@mui/material";
|
|
4
4
|
import { useMemoizedFn as y, useCreation as d, useRequest as Y } from "ahooks";
|
|
5
5
|
import xe from "p-wait-for";
|
|
6
6
|
import { SessionContext as ge } from "@arcblock/did-connect/lib/Session";
|
|
@@ -12,7 +12,6 @@ import { useConfirm as ye } from "@arcblock/ux/lib/Dialog";
|
|
|
12
12
|
import { translate as Ce } from "@arcblock/ux/lib/Locale/util";
|
|
13
13
|
import { useLocaleContext as ke } from "@arcblock/ux/lib/Locale/context";
|
|
14
14
|
import { ErrorFallback as Pe } from "@arcblock/ux/lib/ErrorBoundary";
|
|
15
|
-
import { styled as oe } from "@arcblock/ux/lib/Theme";
|
|
16
15
|
import Se from "lodash/cloneDeep";
|
|
17
16
|
import { joinURL as C, getQuery as De, withoutTrailingSlash as Z, withQuery as $ } from "ufo";
|
|
18
17
|
import { PROFILE_URL as k } from "@arcblock/ux/lib/Util/constant";
|
|
@@ -64,7 +63,7 @@ const W = C(k, "/nfts"), z = C(k, "/settings"), A = C(k, "/did-spaces"), ie = oe
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
}));
|
|
67
|
-
function
|
|
66
|
+
function Pr({
|
|
68
67
|
children: v,
|
|
69
68
|
notLoginContent: L = null,
|
|
70
69
|
currentTab: h,
|
|
@@ -440,5 +439,5 @@ function Sr({
|
|
|
440
439
|
);
|
|
441
440
|
}
|
|
442
441
|
export {
|
|
443
|
-
|
|
442
|
+
Pr as default
|
|
444
443
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { Box as
|
|
1
|
+
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Box as o, Typography as r } from "@mui/material";
|
|
3
3
|
import { Verified as l } from "@mui/icons-material";
|
|
4
|
-
function x({ data: e, verified: s = !1, ...
|
|
4
|
+
function x({ data: e, verified: s = !1, ...i }) {
|
|
5
5
|
return /* @__PURE__ */ t(
|
|
6
|
-
|
|
6
|
+
o,
|
|
7
7
|
{
|
|
8
|
-
...
|
|
8
|
+
...i,
|
|
9
9
|
sx: {
|
|
10
10
|
display: "flex",
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
justifyContent: "space-between",
|
|
13
|
-
...
|
|
13
|
+
...i.sx
|
|
14
14
|
},
|
|
15
15
|
children: [
|
|
16
16
|
/* @__PURE__ */ t(
|
|
17
|
-
|
|
17
|
+
r,
|
|
18
18
|
{
|
|
19
19
|
sx: {
|
|
20
20
|
display: "flex",
|
|
@@ -31,7 +31,7 @@ function x({ data: e, verified: s = !1, ...r }) {
|
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
33
|
/* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
o,
|
|
35
35
|
{
|
|
36
36
|
sx: {
|
|
37
37
|
display: "flex",
|
|
@@ -39,9 +39,10 @@ function x({ data: e, verified: s = !1, ...r }) {
|
|
|
39
39
|
alignItems: "center"
|
|
40
40
|
},
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
42
|
+
/* @__PURE__ */ n(
|
|
43
|
+
r,
|
|
44
44
|
{
|
|
45
|
+
component: "div",
|
|
45
46
|
sx: {
|
|
46
47
|
color: "text.secondary",
|
|
47
48
|
whiteSpace: "pre-wrap",
|
|
@@ -50,7 +51,7 @@ function x({ data: e, verified: s = !1, ...r }) {
|
|
|
50
51
|
children: e.content
|
|
51
52
|
}
|
|
52
53
|
),
|
|
53
|
-
s && /* @__PURE__ */
|
|
54
|
+
s && /* @__PURE__ */ n(l, { color: "success", style: { fontSize: 16, marginLeft: 4 } })
|
|
54
55
|
]
|
|
55
56
|
}
|
|
56
57
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as E, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { Box as I, Tooltip as H, Badge as z } from "@mui/material";
|
|
3
3
|
import B from "@emotion/styled";
|
|
4
|
-
import { lazy as c, useState as
|
|
4
|
+
import { lazy as c, useState as v, useEffect as U, useCallback as q, useMemo as A, Suspense as F } from "react";
|
|
5
5
|
import { useMemoizedFn as C, useInterval as L, useUnmount as Q, useCreation as G } from "ahooks";
|
|
6
6
|
import { useLocaleContext as J } from "@arcblock/ux/lib/Locale/context";
|
|
7
7
|
import { translate as K } from "@arcblock/ux/lib/Locale/util";
|
|
@@ -38,21 +38,21 @@ const _ = c(() => import("@arcblock/icons/lib/Meeting")), tt = c(() => import("@
|
|
|
38
38
|
durationName: "userStatus.duration.ThisWeek"
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
function
|
|
41
|
+
function yt({
|
|
42
42
|
isMobile: t = void 0,
|
|
43
|
-
size:
|
|
43
|
+
size: R,
|
|
44
44
|
isMyself: h,
|
|
45
45
|
status: i,
|
|
46
46
|
onChange: d,
|
|
47
|
-
timezone:
|
|
47
|
+
timezone: W = void 0
|
|
48
48
|
}) {
|
|
49
|
-
const { locale: l } = J(), u = C((n, e = {}) => K(X, n, l, "en", e)), [
|
|
49
|
+
const { locale: l } = J(), u = C((n, e = {}) => K(X, n, l, "en", e)), [b, m] = v(void 0), p = C(() => {
|
|
50
50
|
m(void 0);
|
|
51
51
|
});
|
|
52
52
|
U(() => {
|
|
53
53
|
m(1e3);
|
|
54
54
|
}, [i]);
|
|
55
|
-
const
|
|
55
|
+
const N = L(() => {
|
|
56
56
|
if (i?.value && i?.dateRange?.length === 2) {
|
|
57
57
|
if (T(i))
|
|
58
58
|
return;
|
|
@@ -64,11 +64,11 @@ function vt({
|
|
|
64
64
|
}
|
|
65
65
|
} else
|
|
66
66
|
p();
|
|
67
|
-
},
|
|
67
|
+
}, b);
|
|
68
68
|
Q(() => {
|
|
69
|
-
|
|
69
|
+
N();
|
|
70
70
|
});
|
|
71
|
-
const [
|
|
71
|
+
const [O, g] = v(null), S = q(() => Object.keys(a).map((e) => ({
|
|
72
72
|
id: a[e],
|
|
73
73
|
name: u(`userStatus.duration.${e}`)
|
|
74
74
|
})), [u]), f = G(() => {
|
|
@@ -83,49 +83,49 @@ function vt({
|
|
|
83
83
|
children: n
|
|
84
84
|
};
|
|
85
85
|
});
|
|
86
|
-
}, [u, S, l]),
|
|
86
|
+
}, [u, S, l]), D = (n) => {
|
|
87
87
|
h && g(n.currentTarget);
|
|
88
88
|
}, x = () => {
|
|
89
89
|
g(null);
|
|
90
|
-
},
|
|
90
|
+
}, j = (n) => {
|
|
91
91
|
h && (d(n), x());
|
|
92
|
-
},
|
|
92
|
+
}, y = $[i?.value], M = A(() => {
|
|
93
93
|
const n = f.find((e) => e.id === i?.value);
|
|
94
94
|
if (n) {
|
|
95
95
|
const e = l === "zh" ? "zh-cn" : "en-us";
|
|
96
96
|
let r;
|
|
97
|
-
return T(i) || (r = i?.dateRange?.map((
|
|
97
|
+
return T(i) || (r = i?.dateRange?.map((w) => P(w, { locale: e }))), r && r.length > 0 ? `${n.name}: ${r.join("~")}` : n.name;
|
|
98
98
|
}
|
|
99
99
|
return null;
|
|
100
|
-
}, [i, f, l]),
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */ s(
|
|
103
|
-
|
|
100
|
+
}, [i, f, l]), k = !!O;
|
|
101
|
+
return /* @__PURE__ */ E(rt, { size: R, isMobile: t, children: [
|
|
102
|
+
/* @__PURE__ */ s(H, { title: M, children: /* @__PURE__ */ s(
|
|
103
|
+
I,
|
|
104
104
|
{
|
|
105
105
|
className: "status-icon",
|
|
106
|
-
onClick:
|
|
106
|
+
onClick: D,
|
|
107
107
|
sx: {
|
|
108
108
|
display: "flex",
|
|
109
109
|
alignItems: "center",
|
|
110
110
|
justifyContent: "center"
|
|
111
111
|
},
|
|
112
|
-
children:
|
|
112
|
+
children: y ? /* @__PURE__ */ s(F, { fallback: null, children: /* @__PURE__ */ s(y, { style: { width: 16, height: 16 } }) }) : /* @__PURE__ */ s(z, { color: "success", variant: "dot" })
|
|
113
113
|
}
|
|
114
114
|
) }),
|
|
115
|
-
|
|
115
|
+
k && /* @__PURE__ */ s(
|
|
116
116
|
V,
|
|
117
117
|
{
|
|
118
118
|
selected: i,
|
|
119
119
|
data: f,
|
|
120
|
-
open:
|
|
121
|
-
onSelect:
|
|
120
|
+
open: k,
|
|
121
|
+
onSelect: j,
|
|
122
122
|
onClose: x,
|
|
123
|
-
timezone:
|
|
123
|
+
timezone: W
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] });
|
|
127
127
|
}
|
|
128
|
-
const rt = B(
|
|
128
|
+
const rt = B(I)`
|
|
129
129
|
position: absolute;
|
|
130
130
|
left: ${({ size: t }) => `${t * 3 / 4}px`};
|
|
131
131
|
top: ${({ size: t }) => `${t * 0.65}px`};
|
|
@@ -149,5 +149,5 @@ const rt = B("div")`
|
|
|
149
149
|
}
|
|
150
150
|
`;
|
|
151
151
|
export {
|
|
152
|
-
|
|
152
|
+
yt as default
|
|
153
153
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@abtnode/constant": "^1.16.45",
|
|
37
37
|
"@abtnode/util": "^1.16.45",
|
|
38
|
-
"@arcblock/bridge": "3.0.
|
|
39
|
-
"@arcblock/icons": "3.0.
|
|
40
|
-
"@arcblock/react-hooks": "3.0.
|
|
38
|
+
"@arcblock/bridge": "3.0.12",
|
|
39
|
+
"@arcblock/icons": "3.0.12",
|
|
40
|
+
"@arcblock/react-hooks": "3.0.12",
|
|
41
41
|
"@arcblock/ws": "^1.20.15",
|
|
42
42
|
"@blocklet/constant": "^1.16.45",
|
|
43
43
|
"@blocklet/did-space-react": "^1.1.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"jest": "^29.7.0",
|
|
91
91
|
"unbuild": "^2.0.0"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "ebe824e4b0ddfc1cbdd9ffecc22283e57a58c042"
|
|
94
94
|
}
|
package/src/Footer/brand.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Container } from '@mui/material';
|
|
3
|
+
import { Box, Container } from '@mui/material';
|
|
4
4
|
import { styled } from '@arcblock/ux/lib/Theme';
|
|
5
5
|
import Row from './row';
|
|
6
6
|
|
|
@@ -41,7 +41,7 @@ PlainLayout.propTypes = {
|
|
|
41
41
|
data: PropTypes.object.isRequired,
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
const Root = styled(
|
|
44
|
+
const Root = styled(Box)`
|
|
45
45
|
padding: 24px 0;
|
|
46
46
|
.plain-layout-container {
|
|
47
47
|
display: flex;
|
package/src/Footer/links.jsx
CHANGED
|
@@ -5,6 +5,7 @@ import { useCreation } from 'ahooks';
|
|
|
5
5
|
import isInteger from 'lodash/isInteger';
|
|
6
6
|
import isString from 'lodash/isString';
|
|
7
7
|
import { styled } from '@arcblock/ux/lib/Theme';
|
|
8
|
+
import { Box } from '@mui/material';
|
|
8
9
|
import clsx from 'clsx';
|
|
9
10
|
import { ExpandMore as ExpandMoreIcon } from '@mui/icons-material';
|
|
10
11
|
import Icon from '../Icon';
|
|
@@ -162,7 +163,7 @@ Links.propTypes = {
|
|
|
162
163
|
columns: PropTypes.number.isRequired,
|
|
163
164
|
};
|
|
164
165
|
|
|
165
|
-
const Root = styled(
|
|
166
|
+
const Root = styled(Box)`
|
|
166
167
|
overflow: hidden;
|
|
167
168
|
color: ${({ theme }) => theme.palette.text.secondary};
|
|
168
169
|
.footer-links-inner {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { styled } from '@arcblock/ux/lib/Theme';
|
|
3
|
+
import { Box } from '@mui/material';
|
|
4
|
+
|
|
3
5
|
import Icon from '../Icon';
|
|
4
6
|
|
|
5
7
|
export default function SocialMedia({ items = null, ...rest }) {
|
|
@@ -35,7 +37,7 @@ SocialMedia.propTypes = {
|
|
|
35
37
|
),
|
|
36
38
|
};
|
|
37
39
|
|
|
38
|
-
const Root = styled(
|
|
40
|
+
const Root = styled(Box)`
|
|
39
41
|
display: inline-flex;
|
|
40
42
|
flex-wrap: wrap;
|
|
41
43
|
align-items: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { use } from 'react';
|
|
2
|
-
import { Box, CircularProgress, Divider, Typography } from '@mui/material';
|
|
2
|
+
import { Box, CircularProgress, Divider, Typography, styled } from '@mui/material';
|
|
3
3
|
import type { BoxProps } from '@mui/material';
|
|
4
4
|
import { useCreation, useMemoizedFn, useRequest } from 'ahooks';
|
|
5
5
|
import pWaitFor from 'p-wait-for';
|
|
@@ -13,7 +13,6 @@ import { useConfirm } from '@arcblock/ux/lib/Dialog';
|
|
|
13
13
|
import { translate } from '@arcblock/ux/lib/Locale/util';
|
|
14
14
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
15
15
|
import { ErrorFallback } from '@arcblock/ux/lib/ErrorBoundary';
|
|
16
|
-
import { styled } from '@arcblock/ux/lib/Theme';
|
|
17
16
|
import cloneDeep from 'lodash/cloneDeep';
|
|
18
17
|
import { getQuery, withQuery, joinURL, withoutTrailingSlash } from 'ufo';
|
|
19
18
|
import type { AxiosError } from 'axios';
|
|
@@ -209,7 +209,7 @@ export default function UserStatus({
|
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
const StatusDiv = styled(
|
|
212
|
+
const StatusDiv = styled(Box)<{ size: number; isMobile?: boolean }>`
|
|
213
213
|
position: absolute;
|
|
214
214
|
left: ${({ size }) => `${(size * 3) / 4}px`};
|
|
215
215
|
top: ${({ size }) => `${size * 0.65}px`};
|