@arcblock/ux 3.0.10 → 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.
Files changed (73) hide show
  1. package/lib/ActivityIndicator/index.js +16 -16
  2. package/lib/Alert/index.js +17 -17
  3. package/lib/AnimationWaiter/index.js +13 -13
  4. package/lib/Blocklet/blocklet.js +15 -15
  5. package/lib/Blocklet/utils.d.ts +1 -1
  6. package/lib/Blocklet/utils.js +6 -5
  7. package/lib/BlockletNFT/index.js +23 -23
  8. package/lib/BlockletV2/utils.d.ts +1 -1
  9. package/lib/BlockletV2/utils.js +7 -6
  10. package/lib/Center/index.js +7 -6
  11. package/lib/CodeBlock/LightBox.d.ts +2 -3
  12. package/lib/CodeBlock/LightBox.js +3 -2
  13. package/lib/CookieConsent/index.js +1 -1
  14. package/lib/CountDown/index.js +24 -23
  15. package/lib/Datatable/CustomToolbar.js +71 -71
  16. package/lib/Datatable/TableSearch.js +18 -18
  17. package/lib/Datatable/index.js +77 -77
  18. package/lib/Earth/index.js +47 -46
  19. package/lib/Footer/index.js +8 -8
  20. package/lib/Icon/image.js +17 -16
  21. package/lib/InfoRow/index.js +11 -11
  22. package/lib/Layout/dashboard/index.js +2 -2
  23. package/lib/Layout/dashboard/sidebar.js +12 -12
  24. package/lib/Layout/dashboard-legacy/index.js +20 -20
  25. package/lib/Layout/dashboard-legacy/sidebar.js +16 -16
  26. package/lib/Layout/index.js +29 -29
  27. package/lib/Metric/index.js +9 -9
  28. package/lib/NFTDisplay/svg-embedder/inline-svg.js +7 -6
  29. package/lib/PricingTable/index.js +9 -9
  30. package/lib/Result/result.js +14 -14
  31. package/lib/Screenshot/BaseScreenshot/index.js +10 -9
  32. package/lib/Screenshot/index.js +27 -26
  33. package/lib/Video/index.js +11 -11
  34. package/lib/Wallet/Action.js +12 -12
  35. package/lib/Wallet/Download.js +11 -11
  36. package/lib/WechatPrompt/index.js +1 -1
  37. package/package.json +8 -8
  38. package/src/ActivityIndicator/index.jsx +3 -2
  39. package/src/Address/Address.stories.jsx +2 -1
  40. package/src/Alert/index.jsx +2 -2
  41. package/src/AnimationWaiter/index.jsx +2 -2
  42. package/src/Blocklet/blocklet.jsx +2 -2
  43. package/src/Blocklet/utils.jsx +2 -1
  44. package/src/BlockletNFT/index.jsx +2 -2
  45. package/src/BlockletV2/utils.js +2 -1
  46. package/src/Center/index.tsx +2 -1
  47. package/src/CodeBlock/LightBox.tsx +2 -1
  48. package/src/Colors/Colors.stories.jsx +1 -1
  49. package/src/CookieConsent/index.tsx +1 -1
  50. package/src/CountDown/index.tsx +2 -2
  51. package/src/DID/DID.stories.jsx +2 -1
  52. package/src/Datatable/CustomToolbar.jsx +3 -2
  53. package/src/Datatable/TableSearch.jsx +2 -2
  54. package/src/Datatable/index.jsx +4 -4
  55. package/src/Earth/index.tsx +3 -2
  56. package/src/Footer/index.tsx +1 -1
  57. package/src/Icon/image.tsx +2 -1
  58. package/src/InfoRow/index.tsx +2 -2
  59. package/src/Layout/dashboard/index.tsx +1 -1
  60. package/src/Layout/dashboard/sidebar.tsx +2 -2
  61. package/src/Layout/dashboard-legacy/index.tsx +1 -1
  62. package/src/Layout/dashboard-legacy/sidebar.tsx +2 -2
  63. package/src/Layout/index.tsx +2 -1
  64. package/src/Metric/index.tsx +2 -2
  65. package/src/NFTDisplay/svg-embedder/inline-svg.tsx +2 -2
  66. package/src/PricingTable/index.tsx +2 -2
  67. package/src/Result/result.tsx +1 -1
  68. package/src/Screenshot/BaseScreenshot/index.tsx +2 -2
  69. package/src/Screenshot/index.tsx +3 -3
  70. package/src/Video/index.tsx +2 -2
  71. package/src/Wallet/Action.tsx +2 -2
  72. package/src/Wallet/Download.tsx +2 -2
  73. package/src/WechatPrompt/index.tsx +1 -1
@@ -1,34 +1,34 @@
1
1
  import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import { useState as f, useEffect as g } from "react";
2
+ import { useState as g, useEffect as h } from "react";
3
3
  import i from "prop-types";
4
4
  import { green as m, blue as p } from "@mui/material/colors";
5
- import h from "../Logo/index.js";
6
- import { styled as c } from "../Theme/index.js";
7
- import { useTheme as x } from "@mui/material";
8
- function b({ messages: e = ["Loading data..."], interval: n = 3e3, ...s }) {
9
- const [r, a] = f(0), { palette: l } = x();
10
- return g(() => {
11
- const u = setInterval(() => {
5
+ import { Box as c, useTheme as x } from "@mui/material";
6
+ import b from "../Logo/index.js";
7
+ import { styled as u } from "../Theme/index.js";
8
+ function y({ messages: e = ["Loading data..."], interval: n = 3e3, ...s }) {
9
+ const [r, a] = g(0), { palette: l } = x();
10
+ return h(() => {
11
+ const f = setInterval(() => {
12
12
  a((r + 1) % e.length);
13
13
  }, n);
14
14
  return () => {
15
- clearTimeout(u);
15
+ clearTimeout(f);
16
16
  };
17
- }), /* @__PURE__ */ t(y, { ...s, children: /* @__PURE__ */ d("div", { className: "pm-loader-container", children: [
17
+ }), /* @__PURE__ */ t(v, { ...s, children: /* @__PURE__ */ d("div", { className: "pm-loader-container", children: [
18
18
  /* @__PURE__ */ t("div", { className: "pm-loader-text", children: /* @__PURE__ */ t("p", { children: e[r] }) }),
19
19
  /* @__PURE__ */ d("div", { className: "pm-loader-atoms", children: [
20
- /* @__PURE__ */ t(h, { style: { transform: "scale(0.6)" }, showText: !1 }),
20
+ /* @__PURE__ */ t(b, { style: { transform: "scale(0.6)" }, showText: !1 }),
21
21
  /* @__PURE__ */ t(o, { size: 56, orbitColor: m[500], atomColor: m[500], duration: 1 }),
22
22
  /* @__PURE__ */ t(o, { size: 80, orbitColor: p[800], atomColor: p[800], duration: 1.5 }),
23
23
  /* @__PURE__ */ t(o, { size: 100, orbitColor: l.grey[900], atomColor: l.grey[900] })
24
24
  ] })
25
25
  ] }) });
26
26
  }
27
- b.propTypes = {
27
+ y.propTypes = {
28
28
  interval: i.number,
29
29
  messages: i.arrayOf(i.string.isRequired)
30
30
  };
31
- const y = c("div")`
31
+ const v = u(c)`
32
32
  && {
33
33
  box-sizing: border-box;
34
34
  padding: 20px;
@@ -72,7 +72,7 @@ const y = c("div")`
72
72
  }
73
73
  `;
74
74
  function o({ size: e, orbitColor: n, atomColor: s, duration: r = 2, ...a }) {
75
- return /* @__PURE__ */ t(v, { $duration: r, style: { width: e, height: e, border: `1px solid ${n}` }, ...a, children: /* @__PURE__ */ t("div", { style: { background: s } }) });
75
+ return /* @__PURE__ */ t(C, { $duration: r, style: { width: e, height: e, border: `1px solid ${n}` }, ...a, children: /* @__PURE__ */ t("div", { style: { background: s } }) });
76
76
  }
77
77
  o.propTypes = {
78
78
  size: i.number.isRequired,
@@ -80,7 +80,7 @@ o.propTypes = {
80
80
  atomColor: i.string.isRequired,
81
81
  duration: i.number
82
82
  };
83
- const v = c("div")`
83
+ const C = u(c)`
84
84
  @keyframes orbit {
85
85
  0% {
86
86
  transform: rotate(0deg);
@@ -106,5 +106,5 @@ const v = c("div")`
106
106
  }
107
107
  `;
108
108
  export {
109
- b as default
109
+ y as default
110
110
  };
@@ -1,14 +1,14 @@
1
1
  import { jsxs as k, jsx as c } from "react/jsx-runtime";
2
2
  import o from "prop-types";
3
- import { Typography as N } from "@mui/material";
4
- import { blueGrey as j } from "@mui/material/colors";
3
+ import { Box as N, Typography as j } from "@mui/material";
4
+ import { blueGrey as E } from "@mui/material/colors";
5
5
  import n from "lodash/isUndefined";
6
- import E from "../Icon/index.js";
7
- import { mergeProps as O } from "../Util/index.js";
6
+ import O from "../Icon/index.js";
7
+ import { mergeProps as w } from "../Util/index.js";
8
8
  import t from "../Colors/themes/default.js";
9
- import { styled as w } from "../Theme/index.js";
10
- import { withDeprecated as $ } from "../Util/deprecate.js";
11
- const i = {
9
+ import { styled as $ } from "../Theme/index.js";
10
+ import { withDeprecated as A } from "../Util/deprecate.js";
11
+ const a = {
12
12
  error: {
13
13
  icon: "exclamation-circle",
14
14
  color: t.error.main,
@@ -37,30 +37,30 @@ const i = {
37
37
  variant: "solid"
38
38
  }
39
39
  };
40
- function a({ ...l }) {
40
+ function i({ ...l }) {
41
41
  const r = Object.assign({}, l);
42
42
  n(r.type) && (r.type = "tip"), n(r.className) && (r.className = ""), n(r.style) && (r.style = {}), n(r.variant) && (r.variant = "border");
43
- const m = O(r, a, ["style"]), { type: s, children: p, style: d, className: f, variant: e, showIcon: g = !1, ...b } = m, { icon: y, color: u, backgroundColor: x, borderColor: v, variant: C } = i[s] || i.success, h = Object.assign(
43
+ const m = w(r, i, ["style"]), { type: s, children: p, style: d, className: f, variant: e, showIcon: g = !1, ...b } = m, { icon: y, color: u, backgroundColor: x, borderColor: C, variant: v } = a[s] || a.success, h = Object.assign(
44
44
  {
45
- color: j[500],
45
+ color: E[500],
46
46
  backgroundColor: e === "border" ? x : "transparent",
47
- borderLeft: e === "border" ? `5px solid ${v}` : "none"
47
+ borderLeft: e === "border" ? `5px solid ${C}` : "none"
48
48
  },
49
49
  d
50
50
  );
51
- return /* @__PURE__ */ k(A, { ...b, className: `alert alert--${s} alert--${e} ${f}`.trim(), style: h, children: [
52
- (e === "icon" || g) && /* @__PURE__ */ c(E, { className: "alert-icon", name: y, size: 24, color: u, variant: C }),
53
- /* @__PURE__ */ c(N, { component: "div", className: "alert-content", children: p })
51
+ return /* @__PURE__ */ k(T, { ...b, className: `alert alert--${s} alert--${e} ${f}`.trim(), style: h, children: [
52
+ (e === "icon" || g) && /* @__PURE__ */ c(O, { className: "alert-icon", name: y, size: 24, color: u, variant: v }),
53
+ /* @__PURE__ */ c(j, { component: "div", className: "alert-content", children: p })
54
54
  ] });
55
55
  }
56
- a.propTypes = {
57
- type: o.oneOf(Object.keys(i)),
56
+ i.propTypes = {
57
+ type: o.oneOf(Object.keys(a)),
58
58
  children: o.any.isRequired,
59
59
  className: o.string,
60
60
  style: o.oneOfType([o.object, o.string]),
61
61
  variant: o.oneOf(["border", "icon"])
62
62
  };
63
- const V = $(a, { name: "Alert", alternative: "@mui/material/Alert" }), A = w("div")`
63
+ const V = A(i, { name: "Alert", alternative: "@mui/material/Alert" }), T = $(N)`
64
64
  display: flex;
65
65
  align-items: center;
66
66
  font-size: 16px;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as b, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as l, useRef as $, useEffect as c } from "react";
3
- import { useTheme as M, Skeleton as E } from "@mui/material";
3
+ import { Box as M, useTheme as B, Skeleton as E } from "@mui/material";
4
4
  import n from "prop-types";
5
5
  import F from "react-lottie-player";
6
6
  import P from "lodash/noop";
@@ -13,19 +13,19 @@ function W({
13
13
  messageLoop: T = !0,
14
14
  tips: a = [],
15
15
  tipsDuration: u = 5e3,
16
- maybeDuration: v = 12e4,
16
+ maybeDuration: x = 12e4,
17
17
  speed: h = 1,
18
- increaseSpeed: x = 0,
18
+ increaseSpeed: v = 0,
19
19
  ...I
20
20
  }) {
21
- const g = M(), [d, N] = l(0), [y, k] = l(h), [w, A] = l(0), [O, S] = l(null), [j, p] = l(!m), C = $((/* @__PURE__ */ new Date()).getTime());
21
+ const g = B(), [p, N] = l(0), [y, k] = l(h), [w, A] = l(0), [O, S] = l(null), [j, d] = l(!m), C = $((/* @__PURE__ */ new Date()).getTime());
22
22
  Array.isArray(r) || (r = [r]), c(() => {
23
- m || (p(!0), (async () => {
23
+ m || (d(!0), (async () => {
24
24
  try {
25
25
  const e = await (g.palette.mode === "dark" ? import("./dark-animation.json.js") : import("./default-animation.json.js"));
26
- S(e.default || e), p(!1);
26
+ S(e.default || e), d(!1);
27
27
  } catch (e) {
28
- console.error("Failed to load animation:", e), p(!1);
28
+ console.error("Failed to load animation:", e), d(!1);
29
29
  }
30
30
  })());
31
31
  }, [m, g.palette.mode]), c(() => {
@@ -42,15 +42,15 @@ function W({
42
42
  if (!a.length)
43
43
  return P;
44
44
  const t = setTimeout(() => {
45
- let e = d + 1;
45
+ let e = p + 1;
46
46
  e >= a.length && (e = 0), N(e);
47
47
  }, u);
48
48
  return () => clearTimeout(t);
49
- }, [a, u, d]), c(() => {
49
+ }, [a, u, p]), c(() => {
50
50
  const t = setTimeout(() => {
51
- let i = ((/* @__PURE__ */ new Date()).getTime() - C.current) / v;
51
+ let i = ((/* @__PURE__ */ new Date()).getTime() - C.current) / x;
52
52
  i > 1 && (i = 1);
53
- const D = h + x * i;
53
+ const D = h + v * i;
54
54
  k(D);
55
55
  }, 1e3);
56
56
  return () => clearTimeout(t);
@@ -89,7 +89,7 @@ function W({
89
89
  a.length ? /* @__PURE__ */ o("div", { className: "waiter-tips-container", children: a.map((t, e) => /* @__PURE__ */ o(
90
90
  "div",
91
91
  {
92
- className: `waiter-tips-block ${d === e ? "show-tips" : ""}`,
92
+ className: `waiter-tips-block ${p === e ? "show-tips" : ""}`,
93
93
  children: t
94
94
  },
95
95
  e
@@ -108,7 +108,7 @@ W.propTypes = {
108
108
  maybeDuration: n.number,
109
109
  increaseSpeed: n.number
110
110
  };
111
- const q = R("div")`
111
+ const q = R(M)`
112
112
  display: flex;
113
113
  justify-content: center;
114
114
  align-items: center;
@@ -1,13 +1,13 @@
1
1
  import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
2
  import { isValidElement as f } from "react";
3
3
  import t from "prop-types";
4
- import { useTheme as C, useMediaQuery as S, Typography as n, CircularProgress as I } from "@mui/material";
5
- import B from "../Avatar/index.js";
6
- import P from "../Button/index.js";
7
- import A from "../Img/index.js";
8
- import { styled as D } from "../Theme/index.js";
4
+ import { Box as C, useTheme as S, useMediaQuery as B, Typography as n, CircularProgress as I } from "@mui/material";
5
+ import P from "../Avatar/index.js";
6
+ import A from "../Button/index.js";
7
+ import D from "../Img/index.js";
8
+ import { styled as F } from "../Theme/index.js";
9
9
  import { strippedString as g } from "./utils.js";
10
- const F = D("div")`
10
+ const H = F(C)`
11
11
  &.arcblock-blocklet {
12
12
  padding: ${(e) => e.theme.spacing(2)} ${(e) => e.theme.spacing(2)} 0
13
13
  ${(e) => e.theme.spacing(2)};
@@ -118,7 +118,7 @@ const F = D("div")`
118
118
  font-size: 12px;
119
119
  }
120
120
  `;
121
- function H({
121
+ function j({
122
122
  title: e = "",
123
123
  did: c = null,
124
124
  description: l = "",
@@ -129,15 +129,15 @@ function H({
129
129
  buttonDisabled: d = !1,
130
130
  buttonLoading: a = !1,
131
131
  onButtonClick: b = null,
132
- onMainClick: v = null,
133
- className: _ = null,
132
+ onMainClick: _ = null,
133
+ className: v = null,
134
134
  ...x
135
135
  }) {
136
136
  const h = (k, M = () => !1) => (i, ...T) => {
137
137
  M() ? (i.preventDefault(), i.stopPropagation()) : k instanceof Function && (i.preventDefault(), i.stopPropagation(), k(...T));
138
- }, w = h(b, () => !!(m || d || a)), y = C(), $ = S(y.breakpoints.up("sm")), N = h(v), z = $ ? 80 : 64;
139
- return /* @__PURE__ */ o(F, { className: `${_} arcblock-blocklet`, ...x, children: /* @__PURE__ */ r("div", { className: "arcblock-blocklet__content", onClick: N, children: [
140
- s ? /* @__PURE__ */ o("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ o(A, { src: s }) }) : c && /* @__PURE__ */ o("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ o(B, { did: c, size: z }) }),
138
+ }, w = h(b, () => !!(m || d || a)), y = S(), $ = B(y.breakpoints.up("sm")), N = h(_), z = $ ? 80 : 64;
139
+ return /* @__PURE__ */ o(H, { className: `${v} arcblock-blocklet`, ...x, children: /* @__PURE__ */ r("div", { className: "arcblock-blocklet__content", onClick: N, children: [
140
+ s ? /* @__PURE__ */ o("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ o(D, { src: s }) }) : c && /* @__PURE__ */ o("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ o(P, { did: c, size: z }) }),
141
141
  /* @__PURE__ */ r("div", { className: "arcblock-blocklet__info", children: [
142
142
  /* @__PURE__ */ r("div", { className: "arcblock-blocklet__text", children: [
143
143
  f(e) ? /* @__PURE__ */ o(n, { component: "h3", variant: "h3", className: "arcblock-blocklet__title", children: e }) : /* @__PURE__ */ o(
@@ -172,7 +172,7 @@ function H({
172
172
  },
173
173
  children: [
174
174
  /* @__PURE__ */ o("div", { onClick: w, style: { marginRight: "12px" }, children: m || b && /* @__PURE__ */ r(
175
- P,
175
+ A,
176
176
  {
177
177
  className: "arcblock-blocklet__button--hover",
178
178
  variant: "outlined",
@@ -198,7 +198,7 @@ function H({
198
198
  ] })
199
199
  ] }) });
200
200
  }
201
- H.propTypes = {
201
+ j.propTypes = {
202
202
  title: t.string || t.node,
203
203
  did: t.string,
204
204
  description: t.string || t.node,
@@ -213,5 +213,5 @@ H.propTypes = {
213
213
  className: t.string
214
214
  };
215
215
  export {
216
- H as default
216
+ j as default
217
217
  };
@@ -1,3 +1,3 @@
1
1
  export default ActionButton;
2
2
  export function strippedString(originalString?: string): string;
3
- declare const ActionButton: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ declare const ActionButton: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,5 +1,6 @@
1
- import { styled as o } from "../Theme/index.js";
2
- const e = o("div")`
1
+ import { Box as o } from "@mui/material";
2
+ import { styled as r } from "../Theme/index.js";
3
+ const a = r(o)`
3
4
  background-color: transparent !important;
4
5
  & > :not(.Mui-disabled) {
5
6
  position: relative;
@@ -48,8 +49,8 @@ const e = o("div")`
48
49
  color: ${(t) => t.theme.palette.common.white}!important;
49
50
  }
50
51
  }
51
- `, i = (t = "") => t.replace(/(<([^>]+)>)/gi, "").trim();
52
+ `, n = (t = "") => t.replace(/(<([^>]+)>)/gi, "").trim();
52
53
  export {
53
- e as default,
54
- i as strippedString
54
+ a as default,
55
+ n as strippedString
55
56
  };
@@ -1,13 +1,13 @@
1
1
  import { jsxs as a, jsx as t, Fragment as F } from "react/jsx-runtime";
2
2
  import { useRef as I } from "react";
3
3
  import o from "prop-types";
4
- import { useTheme as q, useMediaQuery as m, Typography as f, Portal as A, CircularProgress as O } from "@mui/material";
5
- import W from "../Avatar/index.js";
6
- import Z from "../Icon/index.js";
7
- import E from "../Button/index.js";
8
- import H from "../Img/index.js";
9
- import { styled as Q } from "../Theme/index.js";
10
- function U(e, s = 1) {
4
+ import { Box as q, useTheme as A, useMediaQuery as m, Typography as f, Portal as O, CircularProgress as W } from "@mui/material";
5
+ import Z from "../Avatar/index.js";
6
+ import E from "../Icon/index.js";
7
+ import H from "../Button/index.js";
8
+ import Q from "../Img/index.js";
9
+ import { styled as U } from "../Theme/index.js";
10
+ function G(e, s = 1) {
11
11
  let c = e;
12
12
  const r = ["", "k", "m", "b"];
13
13
  let i = 0;
@@ -15,7 +15,7 @@ function U(e, s = 1) {
15
15
  c = (c / 1e3).toFixed(s), i += 1;
16
16
  return e && `${c}${r[i]}`;
17
17
  }
18
- const G = Q("div")`
18
+ const J = U(q)`
19
19
  &.arcblock-blocklet {
20
20
  padding: 0 16px;
21
21
  background: ${(e) => e.theme.palette.common.white};
@@ -182,12 +182,12 @@ const G = Q("div")`
182
182
  }
183
183
  `;
184
184
  function v({ name: e }) {
185
- return /* @__PURE__ */ t(Z, { name: e, color: "inherit", size: 15, style: { marginRight: 8 } });
185
+ return /* @__PURE__ */ t(E, { name: e, color: "inherit", size: 15, style: { marginRight: 8 } });
186
186
  }
187
187
  v.propTypes = {
188
188
  name: o.string.isRequired
189
189
  };
190
- function J({
190
+ function K({
191
191
  title: e,
192
192
  did: s = void 0,
193
193
  description: c = null,
@@ -203,31 +203,31 @@ function J({
203
203
  onMainClick: N = null,
204
204
  className: C = null,
205
205
  scaleClickZone: $ = 1.5,
206
- ...M
206
+ ...B
207
207
  }) {
208
208
  const x = (l, k = () => !1) => (d, ...j) => {
209
209
  k() ? (d.preventDefault(), d.stopPropagation()) : l instanceof Function && (d.preventDefault(), d.stopPropagation(), l(...j));
210
- }, S = x(_, () => !!(h || u || b)), T = x(N), p = q(), B = m(p.breakpoints.down("md")), P = m(p.breakpoints.down("lg")), D = m(p.breakpoints.up("lg")), n = i === "auto" ? B ? "xs" : P ? "sm" : "md" : i, R = i === "auto" ? D ? 80 : 40 : i === "md" ? 80 : 40, g = I(null);
210
+ }, M = x(_, () => !!(h || u || b)), S = x(N), p = A(), T = m(p.breakpoints.down("md")), P = m(p.breakpoints.down("lg")), D = m(p.breakpoints.up("lg")), n = i === "auto" ? T ? "xs" : P ? "sm" : "md" : i, R = i === "auto" ? D ? 80 : 40 : i === "md" ? 80 : 40, g = I(null);
211
211
  return /* @__PURE__ */ a(
212
- G,
212
+ J,
213
213
  {
214
- ...M,
214
+ ...B,
215
215
  scaleClickZone: $,
216
216
  className: `${C} arcblock-blocklet arcblock-blocklet--size-${n}`,
217
217
  children: [
218
- /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content", children: /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content--main", onClick: T, ref: g, children: /* @__PURE__ */ a("div", { className: "arcblock-blocklet__content--body", children: [
219
- r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(H, { src: r }) }) : s && /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(W, { did: s, size: R }) }),
218
+ /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content", children: /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content--main", onClick: S, ref: g, children: /* @__PURE__ */ a("div", { className: "arcblock-blocklet__content--body", children: [
219
+ r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(Q, { src: r }) }) : s && /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(Z, { did: s, size: R }) }),
220
220
  /* @__PURE__ */ a("div", { className: "arcblock-blocklet__info", children: [
221
221
  /* @__PURE__ */ t(f, { component: "h3", variant: "h3", className: "arcblock-blocklet__title", title: e, children: e }),
222
222
  c && /* @__PURE__ */ t(f, { component: "div", variant: "body2", className: "arcblock-blocklet__describe", title: c, children: c }),
223
- ["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(A, { container: g.current, disablePortal: n === "md", children: /* @__PURE__ */ t(
223
+ ["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(O, { container: g.current, disablePortal: n === "md", children: /* @__PURE__ */ t(
224
224
  "div",
225
225
  {
226
226
  className: "arcblock-blocklet__button",
227
- onClick: S,
227
+ onClick: M,
228
228
  style: { display: z ? "block" : "" },
229
229
  children: h || _ && /* @__PURE__ */ a(
230
- E,
230
+ H,
231
231
  {
232
232
  className: "arcblock-blocklet__button--hover",
233
233
  variant: "outlined",
@@ -237,7 +237,7 @@ function J({
237
237
  style: n === "md" ? { padding: "3px 20px", fontSize: "14px" } : { padding: "3px 15px", minWidth: "54px", fontSize: "13px" },
238
238
  children: [
239
239
  b && /* @__PURE__ */ t(
240
- O,
240
+ W,
241
241
  {
242
242
  size: n === "md" ? 15 : 13,
243
243
  style: { marginRight: 3, color: "inherit" }
@@ -260,7 +260,7 @@ function J({
260
260
  title: l.title,
261
261
  children: l.empty ? null : /* @__PURE__ */ a(F, { children: [
262
262
  /* @__PURE__ */ t(v, { name: l.icon }),
263
- l.pretty ? U(l.value) : l.value
263
+ l.pretty ? G(l.value) : l.value
264
264
  ] })
265
265
  },
266
266
  k
@@ -269,7 +269,7 @@ function J({
269
269
  }
270
270
  );
271
271
  }
272
- J.propTypes = {
272
+ K.propTypes = {
273
273
  title: o.string.isRequired,
274
274
  did: o.string,
275
275
  isStickyButton: o.bool,
@@ -287,5 +287,5 @@ J.propTypes = {
287
287
  scaleClickZone: o.number
288
288
  };
289
289
  export {
290
- J as default
290
+ K as default
291
291
  };
@@ -1,4 +1,4 @@
1
1
  export default ActionButton;
2
2
  export function strippedString(originalString?: string): string;
3
3
  export function formatDownloadCount(num?: string): string | number;
4
- declare const ActionButton: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ declare const ActionButton: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,5 +1,6 @@
1
- import { styled as r } from "../Theme/index.js";
2
- const i = r("div")`
1
+ import { Box as r } from "@mui/material";
2
+ import { styled as e } from "../Theme/index.js";
3
+ const a = e(r)`
3
4
  background-color: transparent !important;
4
5
  & > :not(.Mui-disabled) {
5
6
  position: relative;
@@ -48,12 +49,12 @@ const i = r("div")`
48
49
  color: ${(t) => t.theme.palette.common.white}!important;
49
50
  }
50
51
  }
51
- `, n = (t = "") => t.replace(/(<([^>]+)>)/gi, "").trim(), a = (t = "") => {
52
+ `, s = (t = "") => t.replace(/(<([^>]+)>)/gi, "").trim(), p = (t = "") => {
52
53
  const o = parseInt(t, 10);
53
54
  return Number.isNaN(o) ? t : o < 1e3 ? o : o < 1e6 ? `${(o / 1e3).toFixed(1)}k` : o < 1e9 ? `${(o / 1e6).toFixed(1)}m` : `${(o / 1e9).toFixed(1)}b`;
54
55
  };
55
56
  export {
56
- i as default,
57
- a as formatDownloadCount,
58
- n as strippedString
57
+ a as default,
58
+ p as formatDownloadCount,
59
+ s as strippedString
59
60
  };
@@ -1,6 +1,7 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { styled as r } from "../Theme/index.js";
3
- function o({
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Box as n } from "@mui/material";
3
+ import { styled as o } from "../Theme/index.js";
4
+ function m({
4
5
  children: e = null,
5
6
  relative: i = "screen"
6
7
  }) {
@@ -8,9 +9,9 @@ function o({
8
9
  return i === "parent" && (t = {
9
10
  width: "100%",
10
11
  height: "100%"
11
- }), /* @__PURE__ */ n(l, { style: t, children: e });
12
+ }), /* @__PURE__ */ r(l, { style: t, children: e });
12
13
  }
13
- const l = r("div")`
14
+ const l = o(n)`
14
15
  flex: 1;
15
16
  width: 100vw;
16
17
  height: 100vh;
@@ -20,5 +21,5 @@ const l = r("div")`
20
21
  align-items: center;
21
22
  `;
22
23
  export {
23
- o as default
24
+ m as default
24
25
  };
@@ -1,5 +1,4 @@
1
- declare const LightBox: import('@emotion/styled').StyledComponent<{
1
+ declare const LightBox: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & {
2
2
  theme?: import('@emotion/react').Theme;
3
- as?: React.ElementType;
4
- }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ }, {}, {}>;
5
4
  export default LightBox;
@@ -1,5 +1,6 @@
1
1
  import l from "@emotion/styled";
2
- const t = l("div")`
2
+ import { Box as s } from "@mui/material";
3
+ const e = l(s)`
3
4
  display: block;
4
5
  pre code.hljs {
5
6
  display: block;
@@ -82,5 +83,5 @@ const t = l("div")`
82
83
  }
83
84
  `;
84
85
  export {
85
- t as default
86
+ e as default
86
87
  };
@@ -43,7 +43,7 @@ function h({
43
43
  }
44
44
  ) }));
45
45
  }
46
- const c = p("div")`
46
+ const c = p(Box)`
47
47
  box-sizing: border-box;
48
48
  position: fixed;
49
49
  right: 20px;
@@ -1,31 +1,32 @@
1
- import { jsxs as g, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as r } from "react/jsx-runtime";
2
2
  import { Component as b } from "react";
3
+ import { Box as y } from "@mui/material";
3
4
  import p from "lodash/isUndefined";
4
- import { getColor as u, mergeProps as y } from "../Util/index.js";
5
- import { styled as k } from "../Theme/index.js";
6
- const c = 60, d = 60 * c, m = 24 * d;
5
+ import { getColor as u, mergeProps as k } from "../Util/index.js";
6
+ import { styled as N } from "../Theme/index.js";
7
+ const d = 60, c = 60 * d, m = 24 * c;
7
8
  function h(e) {
8
- const n = (/* @__PURE__ */ new Date()).getTime(), t = Math.round((e - n) / 1e3), i = Math.floor(t / m), r = Math.floor(t % m / d), o = Math.floor(t % m % d / c), a = Math.round(t % m % d % c);
9
- return { days: i, hours: r, minutes: o, seconds: a, done: t <= 0 };
9
+ const n = (/* @__PURE__ */ new Date()).getTime(), t = Math.round((e - n) / 1e3), i = Math.floor(t / m), s = Math.floor(t % m / c), o = Math.floor(t % m % c / d), a = Math.round(t % m % c % d);
10
+ return { days: i, hours: s, minutes: o, seconds: a, done: t <= 0 };
10
11
  }
11
12
  function l({ number: e, label: n, length: t = 2 }) {
12
13
  let i = e.toString();
13
14
  for (; i.length < t; )
14
15
  i = `0${i}`;
15
- const r = i.split("");
16
+ const s = i.split("");
16
17
  return /* @__PURE__ */ g("span", { className: "num-group", children: [
17
- /* @__PURE__ */ s("span", { className: "num-items", children: r.map((o, a) => (
18
+ /* @__PURE__ */ r("span", { className: "num-items", children: s.map((o, a) => (
18
19
  // eslint-disable-next-line react/no-array-index-key
19
- /* @__PURE__ */ s("strong", { className: "num-item", children: o }, `num-${a}`)
20
+ /* @__PURE__ */ r("strong", { className: "num-item", children: o }, `num-${a}`)
20
21
  )) }),
21
- /* @__PURE__ */ s("span", { className: "num-label", children: n })
22
+ /* @__PURE__ */ r("span", { className: "num-label", children: n })
22
23
  ] });
23
24
  }
24
25
  class f extends b {
25
26
  constructor(n) {
26
27
  const t = Object.assign({}, n);
27
28
  p(t.dark) && (t.dark = !0), p(t.style) && (t.style = {}), super(t);
28
- const i = y(t, f, ["dark", "endTime", "style"]);
29
+ const i = k(t, f, ["dark", "endTime", "style"]);
29
30
  this.state = h(i.endTime), this.timer = void 0;
30
31
  }
31
32
  componentDidMount() {
@@ -38,20 +39,20 @@ class f extends b {
38
39
  this.timer && (clearInterval(this.timer), this.timer = void 0);
39
40
  }
40
41
  render() {
41
- const { dark: n, endTime: t, ...i } = this.props, { days: r, hours: o, minutes: a, seconds: x } = this.state;
42
- return /* @__PURE__ */ g(w, { dark: n, ...i, children: [
43
- /* @__PURE__ */ s(l, { number: r, label: "D" }),
44
- /* @__PURE__ */ s("span", { className: "num-sep", children: ":" }),
45
- /* @__PURE__ */ s(l, { number: o, label: "H" }),
46
- /* @__PURE__ */ s("span", { className: "num-sep", children: ":" }),
47
- /* @__PURE__ */ s(l, { number: a, label: "M" }),
48
- /* @__PURE__ */ s("span", { className: "num-sep", children: ":" }),
49
- /* @__PURE__ */ s(l, { number: x, label: "S" })
42
+ const { dark: n, endTime: t, ...i } = this.props, { days: s, hours: o, minutes: a, seconds: x } = this.state;
43
+ return /* @__PURE__ */ g(v, { dark: n, ...i, children: [
44
+ /* @__PURE__ */ r(l, { number: s, label: "D" }),
45
+ /* @__PURE__ */ r("span", { className: "num-sep", children: ":" }),
46
+ /* @__PURE__ */ r(l, { number: o, label: "H" }),
47
+ /* @__PURE__ */ r("span", { className: "num-sep", children: ":" }),
48
+ /* @__PURE__ */ r(l, { number: a, label: "M" }),
49
+ /* @__PURE__ */ r("span", { className: "num-sep", children: ":" }),
50
+ /* @__PURE__ */ r(l, { number: x, label: "S" })
50
51
  ] });
51
52
  }
52
53
  }
53
- const N = `linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
54
- linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 77%, rgba(0, 0, 0, 0.5))`, w = k("div", { shouldForwardProp: (e) => e !== "dark" })`
54
+ const w = `linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
55
+ linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 77%, rgba(0, 0, 0, 0.5))`, v = N(y, { shouldForwardProp: (e) => e !== "dark" })`
55
56
  color: ${(e) => u(e)};
56
57
  font-size: 50px;
57
58
  display: flex;
@@ -83,7 +84,7 @@ linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 77%, rgba(0, 0,
83
84
  width: 40px;
84
85
  height: 60px;
85
86
  line-height: 60px;
86
- background-image: ${(e) => e.dark ? N : "none"};
87
+ background-image: ${(e) => e.dark ? w : "none"};
87
88
  text-align: center;
88
89
 
89
90
  &:first-of-type {