@blocklet/ui-react 3.0.12 → 3.0.13

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