@arcblock/ux 3.0.7 → 3.0.8
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/ActionButton/index.js +8 -8
- package/lib/ActivityIndicator/index.js +7 -6
- package/lib/Address/compact-text.js +3 -2
- package/lib/Address/did-address.js +3 -3
- package/lib/Address/index.js +2 -2
- package/lib/Address/responsive-did-address.js +3 -3
- package/lib/Alert/index.js +7 -7
- package/lib/AnimationWaiter/dark-animation.json.js +27 -0
- package/lib/AnimationWaiter/default-animation.json.js +29 -0
- package/lib/AnimationWaiter/index.js +10 -10
- package/lib/Async/index.js +4 -4
- package/lib/Avatar/etherscan-blockies.js +15 -15
- package/lib/Avatar/index.js +5 -5
- package/lib/Badge/index.js +4 -4
- package/lib/Blocklet/blocklet.js +10 -10
- package/lib/Blocklet/index.js +5 -6
- package/lib/Blocklet/utils.js +1 -1
- package/lib/BlockletContext/index.js +1 -1
- package/lib/BlockletNFT/index.js +18 -18
- package/lib/BlockletV2/blocklet.js +36 -35
- package/lib/BlockletV2/components/icon-text.js +1 -1
- package/lib/BlockletV2/components/tooltip-icon.js +1 -1
- package/lib/BlockletV2/index.js +7 -8
- package/lib/BlockletV2/utils.js +1 -1
- package/lib/Button/index.js +1 -1
- package/lib/Button/wrap.js +2 -2
- package/lib/ButtonGroup/index.js +1 -1
- package/lib/Center/index.js +1 -1
- package/lib/ClickToCopy/copy-button.js +1 -1
- package/lib/ClickToCopy/index.js +5 -5
- package/lib/CloseButton/index.js +1 -1
- package/lib/CodeBlock/index.js +3 -3
- package/lib/Colors/index.js +3 -3
- package/lib/Config/config-provider.js +16 -15
- package/lib/Config/index.js +5 -3
- package/lib/Config/theme-mode-toggle.js +1 -1
- package/lib/ContactForm/index.js +4 -4
- package/lib/CookieConsent/index.js +1 -1
- package/lib/CountDown/index.js +2 -2
- package/lib/DID/index.js +49 -49
- package/lib/DIDConnect/app-icon.js +10 -10
- package/lib/DIDConnect/app-info-item.js +4 -4
- package/lib/DIDConnect/auth-apps/auth-apps-info.js +1 -1
- package/lib/DIDConnect/auth-apps/index.js +9 -9
- package/lib/DIDConnect/did-connect-container.js +19 -18
- package/lib/DIDConnect/did-connect-footer.js +6 -6
- package/lib/DIDConnect/index.js +10 -10
- package/lib/DIDConnect/landing-page.js +30 -29
- package/lib/DIDConnect/powered-by.js +2 -2
- package/lib/DIDConnect/request-storage-access-api-dialog.js +5 -5
- package/lib/DIDConnect/with-container.js +26 -25
- package/lib/DIDConnect/with-ux-theme.js +7 -6
- package/lib/Datatable/CustomToolbar.js +12 -12
- package/lib/Datatable/TableSearch.js +2 -2
- package/lib/Datatable/index.js +4 -4
- package/lib/Dialog/confirm.js +10 -10
- package/lib/Dialog/dialog.js +7 -7
- package/lib/Dialog/index.js +3 -3
- package/lib/Dialog/use-confirm.js +1 -1
- package/lib/DriftBot/index.js +1 -1
- package/lib/Earth/countries.json.js +13 -0
- package/lib/Earth/index.js +9 -9
- package/lib/Empty/index.js +1 -1
- package/lib/ErrorBoundary/fallback.js +15 -15
- package/lib/ErrorBoundary/index.js +6 -1
- package/lib/Footer/index.js +3 -3
- package/lib/Header/auto-hidden.js +1 -1
- package/lib/Header/header.js +3 -3
- package/lib/Header/index.js +3 -3
- package/lib/Header/responsive-header.js +6 -6
- package/lib/Icon/image.js +2 -2
- package/lib/Icon/index.js +18 -18
- package/lib/Img/index.js +1 -1
- package/lib/InfoRow/index.js +1 -1
- package/lib/Layout/dashboard/index.js +31 -29
- package/lib/Layout/dashboard/sidebar.js +2 -2
- package/lib/Layout/dashboard-legacy/header.js +2 -2
- package/lib/Layout/dashboard-legacy/index.js +4 -4
- package/lib/Layout/dashboard-legacy/sidebar.js +8 -8
- package/lib/Layout/index.js +5 -5
- package/lib/Locale/context.js +20 -20
- package/lib/Locale/selector.js +3 -3
- package/lib/Logo/images/logo-dark-text.svg.js +5 -0
- package/lib/Logo/images/logo-dark-top.svg.js +5 -0
- package/lib/Logo/images/logo-light-text.svg.js +5 -0
- package/lib/Logo/images/logo-light-top.svg.js +5 -0
- package/lib/Logo/index.js +18 -18
- package/lib/Metric/index.js +2 -2
- package/lib/NFTDisplay/NFTBroken.svg.js +108 -0
- package/lib/NFTDisplay/aspect-ratio-container.js +1 -1
- package/lib/NFTDisplay/broken.js +2 -2
- package/lib/NFTDisplay/index.js +35 -35
- package/lib/NFTDisplay/loading.js +1 -1
- package/lib/NFTDisplay/render-svg.js +1 -1
- package/lib/NFTDisplay/svg-embedder/img.js +3 -3
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -1
- package/lib/NavMenu/images/OCAP.svg.js +5 -0
- package/lib/NavMenu/images/abt-network.svg.js +7 -0
- package/lib/NavMenu/images/ai-kit.svg.js +7 -0
- package/lib/NavMenu/images/aigne.svg.js +7 -0
- package/lib/NavMenu/images/aistro.svg.js +5 -0
- package/lib/NavMenu/images/arcsphere.svg.js +10 -0
- package/lib/NavMenu/images/blocklet-framework.svg.js +7 -0
- package/lib/NavMenu/images/blocklet-launcher.svg.js +5 -0
- package/lib/NavMenu/images/blocklet-server.svg.js +7 -0
- package/lib/NavMenu/images/blocklet-store.svg.js +5 -0
- package/lib/NavMenu/images/creator-studio.svg.js +7 -0
- package/lib/NavMenu/images/did-connect.svg.js +5 -0
- package/lib/NavMenu/images/did-name-service.svg.js +5 -0
- package/lib/NavMenu/images/did-wallet.svg.js +7 -0
- package/lib/NavMenu/images/did.svg.js +5 -0
- package/lib/NavMenu/images/nft-studio.svg.js +5 -0
- package/lib/NavMenu/images/vc.svg.js +5 -0
- package/lib/NavMenu/images/web3-kit.svg.js +7 -0
- package/lib/NavMenu/index.js +2 -2
- package/lib/NavMenu/nav-menu.js +23 -22
- package/lib/NavMenu/products.js +32 -32
- package/lib/NavMenu/style.js +1 -1
- package/lib/NavMenu/sub-item-group.js +1 -1
- package/lib/PageScroller/index.js +19 -19
- package/lib/PageScroller/story/FullPage.js +27 -27
- package/lib/PageScroller/story/PageContain.js +8 -8
- package/lib/Passport/index.js +2 -3
- package/lib/Passport/passport.js +2 -2
- package/lib/PhoneInput/country-select.js +1 -1
- package/lib/PhoneInput/index.js +2 -2
- package/lib/PricingTable/PricingPlan.js +1 -1
- package/lib/PricingTable/index.js +3 -3
- package/lib/RelativeTime/index.js +1 -1
- package/lib/Result/common.js +6 -4
- package/lib/Result/index.js +2 -2
- package/lib/Result/result.js +1 -1
- package/lib/Screenshot/BaseScreenshot/index.js +3 -3
- package/lib/Screenshot/index.js +9 -9
- package/lib/SessionBlocklet/index.js +8 -8
- package/lib/SessionManager/index.js +2 -3
- package/lib/SessionUser/components/did-space.js +14 -14
- package/lib/SessionUser/components/logged-in.js +33 -33
- package/lib/SessionUser/components/quick-login-item.js +29 -29
- package/lib/SessionUser/components/session-user-item.js +23 -23
- package/lib/SessionUser/components/session-user-switch.js +4 -4
- package/lib/SessionUser/components/un-login.js +7 -7
- package/lib/SessionUser/components/user-info.js +16 -16
- package/lib/SessionUser/images/did-spaces.svg.js +5 -0
- package/lib/SessionUser/index.js +2 -2
- package/lib/SharedBridge/index.js +23 -23
- package/lib/Spinner/index.js +1 -1
- package/lib/SplitButton/index.js +1 -1
- package/lib/Switch/index.js +1 -1
- package/lib/Tabs/index.js +1 -1
- package/lib/Tag/index.js +6 -6
- package/lib/TextCollapse/index.js +2 -2
- package/lib/Theme/index.js +22 -11
- package/lib/Theme/theme-provider.js +2 -2
- package/lib/Theme/theme.js +4 -4
- package/lib/Toast/index.js +11 -11
- package/lib/UserCard/Cards/avatar-only.js +2 -2
- package/lib/UserCard/Cards/basic-info.js +3 -3
- package/lib/UserCard/Cards/index.js +3 -3
- package/lib/UserCard/Cards/name-only.js +1 -1
- package/lib/UserCard/Container/card.js +2 -2
- package/lib/UserCard/Container/dialog.js +1 -1
- package/lib/UserCard/Content/basic.js +1 -1
- package/lib/UserCard/Content/clock.js +3 -3
- package/lib/UserCard/Content/minimal.js +8 -8
- package/lib/UserCard/Content/tooltip-avatar.js +1 -1
- package/lib/UserCard/components.js +23 -23
- package/lib/UserCard/index.js +12 -12
- package/lib/Util/index.js +2 -2
- package/lib/VerificationCode/index.js +1 -1
- package/lib/Video/index.js +2 -2
- package/lib/Wallet/Action.js +4 -4
- package/lib/Wallet/Download.js +6 -6
- package/lib/Wallet/Open.js +1 -1
- package/lib/Wallet/images/android_download.svg.js +5 -0
- package/lib/Wallet/images/app-store.svg.js +5 -0
- package/lib/Wallet/images/google-play.svg.js +5 -0
- package/lib/WalletOSIcon/index.js +1 -1
- package/lib/WebWalletSWKeeper/index.js +2 -2
- package/lib/WechatPrompt/index.js +1 -1
- package/lib/hooks/use-blocklet-logo.js +15 -13
- package/lib/hooks/use-clock.js +1 -1
- package/lib/index.js +79 -74
- package/lib/ux.css +1 -0
- package/lib/withTheme/index.js +7 -6
- package/lib/withTracker/error_boundary.js +1 -1
- package/package.json +7 -7
- package/vite.config.mjs +1 -1
@@ -1,23 +1,25 @@
|
|
1
|
-
import { jsx as r, jsxs as
|
1
|
+
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
2
2
|
import { useMemo as M, useEffect as u } from "react";
|
3
3
|
import { useLocation as x, matchPath as z } from "react-router-dom";
|
4
4
|
import D from "react-helmet";
|
5
|
-
import { Box as i, Container as
|
6
|
-
import
|
7
|
-
import { CloseFullscreen as
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import G from "../../
|
11
|
-
import O from "../../
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import {
|
5
|
+
import { useTheme as R, Box as i, Container as T } from "@mui/material";
|
6
|
+
import V from "clsx";
|
7
|
+
import { CloseFullscreen as B, OpenInFull as U } from "@mui/icons-material";
|
8
|
+
import E from "../dashboard-legacy/index.js";
|
9
|
+
import "../../Header/header.js";
|
10
|
+
import G from "../../Header/responsive-header.js";
|
11
|
+
import O from "../../NavMenu/nav-menu.js";
|
12
|
+
import "../../NavMenu/products.js";
|
13
|
+
import q from "../../Footer/index.js";
|
14
|
+
import p from "./sidebar.js";
|
15
|
+
import { styled as g } from "../../Theme/index.js";
|
16
|
+
import { Link as v } from "./external-link.js";
|
17
|
+
import { FullPageProvider as A, useFullPage as J } from "./full-page.js";
|
16
18
|
function K({ closeMenu: o, ...a }) {
|
17
19
|
const e = x();
|
18
20
|
return u(() => {
|
19
21
|
o();
|
20
|
-
}, [e]), /* @__PURE__ */ r(
|
22
|
+
}, [e]), /* @__PURE__ */ r(O, { ...a });
|
21
23
|
}
|
22
24
|
function w(o, a) {
|
23
25
|
return o.map((e) => {
|
@@ -40,16 +42,16 @@ function Q({
|
|
40
42
|
links: e = [],
|
41
43
|
sidebarWidth: s = 120,
|
42
44
|
fullWidth: y = !1,
|
43
|
-
dense:
|
45
|
+
dense: c = "auto",
|
44
46
|
footerProps: N = {},
|
45
47
|
sx: P = {},
|
46
48
|
children: F,
|
47
49
|
...m
|
48
50
|
}) {
|
49
|
-
const b =
|
51
|
+
const b = R(), { inFullPage: L, showToggleButton: W, headerVisible: $, footerVisible: C, sidebarVisible: H, toggleFullPage: _ } = J(), f = x(), l = M(() => w(e, f), [f, e]), S = l.some((t) => {
|
50
52
|
var d;
|
51
53
|
return !!((d = t.children) != null && d.length);
|
52
|
-
}), n =
|
54
|
+
}), n = c === "auto" ? l.length >= 8 || S : c, j = V("dashboard", { "dashboard-dense": n }, m.className), I = {
|
53
55
|
homeLink: (t) => {
|
54
56
|
var d;
|
55
57
|
return /* @__PURE__ */ r(v, { to: ((d = window.blocklet) == null ? void 0 : d.prefix) || "/", children: t });
|
@@ -59,9 +61,9 @@ function Q({
|
|
59
61
|
return u(() => {
|
60
62
|
const { searchParams: t } = new URL(window.location.href);
|
61
63
|
t.get("inviter") && window.localStorage.setItem("inviter", t.get("inviter"));
|
62
|
-
}, []), /* @__PURE__ */
|
64
|
+
}, []), /* @__PURE__ */ h(X, { sx: P, ...m, className: j, sidebarWidth: s, children: [
|
63
65
|
/* @__PURE__ */ r(D, { title: o }, o),
|
64
|
-
|
66
|
+
$ && /* @__PURE__ */ r(Y, { ...I, className: "dashboard-header", children: e != null && e.length ? ({ isMobile: t, closeMenu: d }) => t ? /* @__PURE__ */ r(
|
65
67
|
K,
|
66
68
|
{
|
67
69
|
mode: "inline",
|
@@ -71,7 +73,7 @@ function Q({
|
|
71
73
|
activeTextColor: b.palette.primary.main
|
72
74
|
}
|
73
75
|
) : null : null }),
|
74
|
-
/* @__PURE__ */
|
76
|
+
/* @__PURE__ */ h(
|
75
77
|
i,
|
76
78
|
{
|
77
79
|
className: "dashboard-body",
|
@@ -79,7 +81,7 @@ function Q({
|
|
79
81
|
display: "flex"
|
80
82
|
},
|
81
83
|
children: [
|
82
|
-
!!(e != null && e.length) &&
|
84
|
+
!!(e != null && e.length) && H && /* @__PURE__ */ r(
|
83
85
|
i,
|
84
86
|
{
|
85
87
|
className: "dashboard-sidebar",
|
@@ -92,7 +94,7 @@ function Q({
|
|
92
94
|
children: n ? /* @__PURE__ */ r(p, { links: e, dense: n }) : /* @__PURE__ */ r(i, { className: "dashboard-sidebar-container", children: /* @__PURE__ */ r(p, { links: e, dense: n }) })
|
93
95
|
}
|
94
96
|
),
|
95
|
-
/* @__PURE__ */
|
97
|
+
/* @__PURE__ */ h(i, { className: "dashboard-main", id: "arc__dashboard-main", children: [
|
96
98
|
W && /* @__PURE__ */ r(
|
97
99
|
i,
|
98
100
|
{
|
@@ -110,12 +112,12 @@ function Q({
|
|
110
112
|
borderRadius: 1,
|
111
113
|
cursor: "pointer"
|
112
114
|
},
|
113
|
-
onClick:
|
114
|
-
children: L ? /* @__PURE__ */ r(
|
115
|
+
onClick: _,
|
116
|
+
children: L ? /* @__PURE__ */ r(B, { style: { fontSize: 18 } }) : /* @__PURE__ */ r(U, { style: { fontSize: 18 } })
|
115
117
|
}
|
116
118
|
),
|
117
|
-
/* @__PURE__ */ r(
|
118
|
-
|
119
|
+
/* @__PURE__ */ r(T, { className: "dashboard-content", id: "arc__dashboard-content", ...y && { maxWidth: !1 }, children: F }),
|
120
|
+
C && /* @__PURE__ */ r(q, { dark: b.palette.mode === "dark", ...N })
|
119
121
|
] })
|
120
122
|
]
|
121
123
|
}
|
@@ -180,17 +182,17 @@ const X = g("div", {
|
|
180
182
|
}
|
181
183
|
}
|
182
184
|
}
|
183
|
-
`, Y = g(
|
185
|
+
`, Y = g(G)`
|
184
186
|
.header-container {
|
185
187
|
max-width: 100%;
|
186
188
|
}
|
187
189
|
`;
|
188
|
-
function
|
190
|
+
function ue({
|
189
191
|
legacy: o = !0,
|
190
192
|
...a
|
191
193
|
}) {
|
192
|
-
return o ? /* @__PURE__ */ r(
|
194
|
+
return o ? /* @__PURE__ */ r(E, { ...a }) : /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(Q, { ...a }) });
|
193
195
|
}
|
194
196
|
export {
|
195
|
-
|
197
|
+
ue as default
|
196
198
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { Typography as b } from "@mui/material";
|
3
3
|
import d from "clsx";
|
4
|
-
import { styled as c } from "../../Theme";
|
5
|
-
import { NavLink as h } from "./external-link";
|
4
|
+
import { styled as c } from "../../Theme/index.js";
|
5
|
+
import { NavLink as h } from "./external-link.js";
|
6
6
|
function p(e, i) {
|
7
7
|
var n;
|
8
8
|
if ((n = e.children) != null && n.length)
|
@@ -2,8 +2,8 @@ import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { Menu as m } from "@mui/icons-material";
|
3
3
|
import { AppBar as x, Toolbar as f, Button as u, Box as o, Typography as i } from "@mui/material";
|
4
4
|
import { Link as y } from "react-router-dom";
|
5
|
-
import g from "../../Logo";
|
6
|
-
import { styled as b } from "../../Theme";
|
5
|
+
import g from "../../Logo/index.js";
|
6
|
+
import { styled as b } from "../../Theme/index.js";
|
7
7
|
const k = b(x)`
|
8
8
|
&& {
|
9
9
|
z-index: ${(e) => e.theme.zIndex.drawer};
|
@@ -3,10 +3,10 @@ import { useState as c, useEffect as P } from "react";
|
|
3
3
|
import H from "react-helmet";
|
4
4
|
import { Box as h, Drawer as S, Container as W } from "@mui/material";
|
5
5
|
import { useSize as j } from "ahooks";
|
6
|
-
import C from "./sidebar";
|
7
|
-
import F from "./header";
|
8
|
-
import O from "../../Footer";
|
9
|
-
import { styled as T } from "../../Theme";
|
6
|
+
import C from "./sidebar.js";
|
7
|
+
import F from "./header.js";
|
8
|
+
import O from "../../Footer/index.js";
|
9
|
+
import { styled as T } from "../../Theme/index.js";
|
10
10
|
const B = T("div")`
|
11
11
|
&.dashboard {
|
12
12
|
display: flex;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { memo as k } from "react";
|
3
3
|
import { useLocation as $, Link as s } from "react-router-dom";
|
4
|
-
import { Button as w,
|
4
|
+
import { Button as w, useTheme as z, Typography as v } from "@mui/material";
|
5
5
|
import { teal as l } from "@mui/material/colors";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { styled as c
|
6
|
+
import I from "../../Icon/image.js";
|
7
|
+
import j from "../../Logo/index.js";
|
8
|
+
import { styled as c } from "../../Theme/index.js";
|
9
9
|
function q({
|
10
10
|
images: e,
|
11
11
|
links: m,
|
@@ -14,14 +14,14 @@ function q({
|
|
14
14
|
logo: f = void 0,
|
15
15
|
...x
|
16
16
|
}) {
|
17
|
-
const u =
|
17
|
+
const u = z(), b = $(), h = (o, n) => new RegExp(`/${n}`).test(b.pathname);
|
18
18
|
return /* @__PURE__ */ a(L, { ...x, children: [
|
19
|
-
/* @__PURE__ */ t(s, { to: "/", className: "sidebar-logo", children: f || /* @__PURE__ */ t(
|
19
|
+
/* @__PURE__ */ t(s, { to: "/", className: "sidebar-logo", children: f || /* @__PURE__ */ t(j, { showText: !1, size: 20 }) }),
|
20
20
|
m.map(({ url: o, name: n, title: r, showBadge: y }) => {
|
21
21
|
const i = h(o, n);
|
22
22
|
return /* @__PURE__ */ a(T, { component: s, selected: i, to: o, children: [
|
23
23
|
/* @__PURE__ */ t(
|
24
|
-
|
24
|
+
I,
|
25
25
|
{
|
26
26
|
name: e[n],
|
27
27
|
size: 36,
|
@@ -30,7 +30,7 @@ function q({
|
|
30
30
|
showBadge: y
|
31
31
|
}
|
32
32
|
),
|
33
|
-
/* @__PURE__ */ t(
|
33
|
+
/* @__PURE__ */ t(v, { component: "span", className: "menu-title", children: r })
|
34
34
|
] }, o);
|
35
35
|
}),
|
36
36
|
/* @__PURE__ */ t("div", { style: { flex: 1 } }),
|
package/lib/Layout/index.js
CHANGED
@@ -3,11 +3,11 @@ import { useState as R, useEffect as W } from "react";
|
|
3
3
|
import $ from "react-helmet";
|
4
4
|
import { Container as t, Toolbar as u, Divider as B, List as C, Link as v, ListItemButton as G, ListItemText as M, AppBar as j, IconButton as E, Typography as w, Drawer as F } from "@mui/material";
|
5
5
|
import { Menu as S } from "@mui/icons-material";
|
6
|
-
import Z from "../Footer";
|
7
|
-
import A from "../Wallet/Open";
|
8
|
-
import b from "../Icon";
|
9
|
-
import H from "../Logo";
|
10
|
-
import { styled as x } from "../Theme";
|
6
|
+
import Z from "../Footer/index.js";
|
7
|
+
import A from "../Wallet/Open.js";
|
8
|
+
import b from "../Icon/index.js";
|
9
|
+
import H from "../Logo/index.js";
|
10
|
+
import { styled as x } from "../Theme/index.js";
|
11
11
|
function ie({
|
12
12
|
title: i,
|
13
13
|
brand: l,
|
package/lib/Locale/context.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { createContext as
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
2
|
+
import { createContext as x, use as k, useState as p, useRef as A, useEffect as R, useCallback as b } from "react";
|
3
3
|
import j from "lodash/get";
|
4
4
|
import i from "js-cookie";
|
5
|
-
import S from "./browser-lang";
|
6
|
-
import { translate as U } from "./util";
|
7
|
-
import { getCookieOptions as D, resolveRootDomain as E } from "../Util";
|
8
|
-
const
|
5
|
+
import S from "./browser-lang.js";
|
6
|
+
import { translate as U } from "./util.js";
|
7
|
+
import { getCookieOptions as D, resolveRootDomain as E } from "../Util/index.js";
|
8
|
+
const f = "nf_lang", F = (e, o = window.location.href) => {
|
9
9
|
const t = new URL(o).searchParams.get("locale");
|
10
10
|
return e.find((r) => r.code === t) ? t : null;
|
11
11
|
}, O = (e, o = window.location.href) => {
|
@@ -18,21 +18,21 @@ const l = "nf_lang", F = (e, o = window.location.href) => {
|
|
18
18
|
// 取 languages 首个元素的 code 值, 如果不存在则取 'en'
|
19
19
|
fallback: ((t = e == null ? void 0 : e[0]) == null ? void 0 : t.code) || "en"
|
20
20
|
};
|
21
|
-
return F(e) || i.get(
|
21
|
+
return F(e) || i.get(f) || S(o);
|
22
22
|
}, z = (e) => {
|
23
23
|
const o = D();
|
24
24
|
if (!o.domain) {
|
25
25
|
const t = E();
|
26
|
-
t && i.remove(
|
26
|
+
t && i.remove(f, { path: o.path || "/", domain: t });
|
27
27
|
}
|
28
|
-
i.set(
|
28
|
+
i.set(f, e, o), O(e);
|
29
29
|
}, N = (e) => {
|
30
30
|
const o = j(window, "blocklet.languages");
|
31
31
|
return Array.isArray(o) && o.length ? o : Array.isArray(e) && e.length ? e : [
|
32
32
|
{ code: "en", name: "English" },
|
33
33
|
{ code: "zh", name: "简体中文" }
|
34
34
|
];
|
35
|
-
}, L =
|
35
|
+
}, L = x(null), { Provider: _, Consumer: M } = L;
|
36
36
|
function Q({
|
37
37
|
children: e,
|
38
38
|
locale: o = void 0,
|
@@ -43,33 +43,33 @@ function Q({
|
|
43
43
|
...v
|
44
44
|
}) {
|
45
45
|
const a = N(P);
|
46
|
-
let [n,
|
47
|
-
const
|
48
|
-
|
46
|
+
let [n, C] = p(o || d(a));
|
47
|
+
const l = A(t || ""), [, w] = p(0), u = (c) => {
|
48
|
+
C(c), z(c);
|
49
49
|
};
|
50
|
-
if (
|
50
|
+
if (R(() => {
|
51
51
|
const c = o || d(a);
|
52
52
|
c !== n && u(c);
|
53
53
|
}, [o]), n && r[n] && typeof r[n] == "function") {
|
54
54
|
const c = n;
|
55
55
|
try {
|
56
56
|
Promise.resolve(r[c]()).then((s) => {
|
57
|
-
s && typeof s == "object" && (r[c] = s,
|
57
|
+
s && typeof s == "object" && (r[c] = s, w((h) => h > 999 ? 0 : h + 1));
|
58
58
|
});
|
59
59
|
} catch (s) {
|
60
60
|
console.error(s);
|
61
61
|
}
|
62
|
-
m == null || m(c, a), n =
|
62
|
+
m == null || m(c, a), n = l.current;
|
63
63
|
} else
|
64
|
-
|
65
|
-
const y =
|
64
|
+
l.current = n;
|
65
|
+
const y = b(
|
66
66
|
(c, s) => U(r, c, n, t, s),
|
67
67
|
[r, n, t]
|
68
68
|
);
|
69
|
-
return /* @__PURE__ */
|
69
|
+
return /* @__PURE__ */ g(_, { value: { locale: n, changeLocale: u, t: y, languages: a, ...v }, children: e });
|
70
70
|
}
|
71
71
|
function V() {
|
72
|
-
return
|
72
|
+
return k(L);
|
73
73
|
}
|
74
74
|
export {
|
75
75
|
M as LocaleConsumer,
|
package/lib/Locale/selector.js
CHANGED
@@ -4,9 +4,9 @@ import { Box as m, Button as w, IconButton as B, Typography as E, Popper as j, P
|
|
4
4
|
import { Icon as h } from "@iconify/react";
|
5
5
|
import $ from "@iconify-icons/material-symbols/check";
|
6
6
|
import H from "iconify-icons-material-symbols-400/language";
|
7
|
-
import { LocaleContext as O } from "./context";
|
8
|
-
import { styled as W } from "../Theme";
|
9
|
-
import { mergeSx as q } from "../Util/style";
|
7
|
+
import { LocaleContext as O } from "./context.js";
|
8
|
+
import { styled as W } from "../Theme/index.js";
|
9
|
+
import { mergeSx as q } from "../Util/style.js";
|
10
10
|
function Z({ ...t }) {
|
11
11
|
var g;
|
12
12
|
const { showText: p = !0, popperProps: r = {}, popperType: d = "click", icon: c, size: f = 24, ...y } = t, { locale: l, changeLocale: I, languages: u } = z(O), a = L(null), [x, o] = M(!1), k = (e) => {
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as c from "react";
|
2
|
+
const v = (h) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 99, height: 18, viewBox: "0 0 99 18", ...h }, /* @__PURE__ */ c.createElement("path", { fill: "#000", fillRule: "evenodd", d: "M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z" }));
|
3
|
+
export {
|
4
|
+
v as default
|
5
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as e from "react";
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 45, height: 52, viewBox: "0 0 45 52", ...t }, /* @__PURE__ */ e.createElement("g", { fill: "none", fillRule: "evenodd", stroke: "#000" }, /* @__PURE__ */ e.createElement("path", { d: "M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25" }), /* @__PURE__ */ e.createElement("path", { d: "M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z" })));
|
3
|
+
export {
|
4
|
+
l as default
|
5
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as c from "react";
|
2
|
+
const v = (h) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 99, height: 18, viewBox: "0 0 99 18", ...h }, /* @__PURE__ */ c.createElement("path", { fill: "#FFF", fillRule: "evenodd", d: "M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z" }));
|
3
|
+
export {
|
4
|
+
v as default
|
5
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as e from "react";
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 45, height: 52, viewBox: "0 0 45 52", ...t }, /* @__PURE__ */ e.createElement("g", { fill: "none", fillRule: "evenodd", stroke: "#FFF" }, /* @__PURE__ */ e.createElement("path", { d: "M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25" }), /* @__PURE__ */ e.createElement("path", { d: "M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z" })));
|
3
|
+
export {
|
4
|
+
l as default
|
5
|
+
};
|
package/lib/Logo/index.js
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { styled as
|
3
|
-
import s from "./images/logo-light-top.svg";
|
4
|
-
import f from "./images/logo-light-text.svg";
|
5
|
-
import u from "./images/logo-dark-top.svg";
|
6
|
-
import h from "./images/logo-dark-text.svg";
|
7
|
-
function
|
8
|
-
showText:
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { styled as x } from "../Theme/index.js";
|
3
|
+
import s from "./images/logo-light-top.svg.js";
|
4
|
+
import f from "./images/logo-light-text.svg.js";
|
5
|
+
import u from "./images/logo-dark-top.svg.js";
|
6
|
+
import h from "./images/logo-dark-text.svg.js";
|
7
|
+
function j({
|
8
|
+
showText: o = !0,
|
9
9
|
showLogo: n = !0,
|
10
10
|
mode: a = "dark",
|
11
11
|
layout: l = "vertical",
|
12
12
|
size: r = void 0,
|
13
13
|
style: i = {},
|
14
|
-
...
|
14
|
+
...g
|
15
15
|
}) {
|
16
|
-
const e = a === "light",
|
17
|
-
return r && (i.width = `${r}px`, i.height = `${r}px`), /* @__PURE__ */
|
18
|
-
n &&
|
19
|
-
|
16
|
+
const e = a === "light", m = e ? /* @__PURE__ */ t(s, {}) : /* @__PURE__ */ t(u, {}), c = e ? /* @__PURE__ */ t(f, { className: "logo-text" }) : /* @__PURE__ */ t(h, { className: "logo-text" });
|
17
|
+
return r && (i.width = `${r}px`, i.height = `${r}px`), /* @__PURE__ */ p(d, { layout: l, style: i, ...g, children: [
|
18
|
+
n && m,
|
19
|
+
o && c
|
20
20
|
] });
|
21
21
|
}
|
22
|
-
const d =
|
22
|
+
const d = x("span")`
|
23
23
|
display: inline-flex;
|
24
|
-
flex-direction: ${(
|
24
|
+
flex-direction: ${(o) => o.layout === "horizontal" ? "row" : "column"};
|
25
25
|
justify-content: center;
|
26
26
|
align-items: center;
|
27
27
|
|
28
28
|
.logo-text {
|
29
|
-
${(
|
30
|
-
${(
|
29
|
+
${(o) => o.layout === "vertical" ? "margin-top: 8px;" : ""}
|
30
|
+
${(o) => o.layout === "vertical" ? "" : "margin-left: 8px;"};
|
31
31
|
}
|
32
32
|
`;
|
33
33
|
export {
|
34
|
-
|
34
|
+
j as default
|
35
35
|
};
|
package/lib/Metric/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as i, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
2
2
|
import { Link as x } from "@mui/material";
|
3
|
-
import h from "../Icon/image";
|
4
|
-
import { styled as f } from "../Theme";
|
3
|
+
import h from "../Icon/image.js";
|
4
|
+
import { styled as f } from "../Theme/index.js";
|
5
5
|
function z({
|
6
6
|
icon: e,
|
7
7
|
value: r,
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import * as l from "react";
|
2
|
+
const e = (i) => /* @__PURE__ */ l.createElement("svg", { width: 300, height: 300, viewBox: "0 0 300 300", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ l.createElement("g", { clipPath: "url(#clip0_317_299)" }, /* @__PURE__ */ l.createElement("rect", { x: 60, width: 60, height: 60, fill: "#F3F4F6", style: {
|
3
|
+
fill: "#F3F4F6",
|
4
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
5
|
+
fillOpacity: 1
|
6
|
+
} }), /* @__PURE__ */ l.createElement("rect", { width: 60, height: 60, fill: "#F9FAFB", style: {
|
7
|
+
fill: "#F9FAFB",
|
8
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
9
|
+
fillOpacity: 1
|
10
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 180, width: 60, height: 60, fill: "#F9FAFB", style: {
|
11
|
+
fill: "#F9FAFB",
|
12
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
13
|
+
fillOpacity: 1
|
14
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 120, width: 60, height: 60, fill: "#E5E7EB", style: {
|
15
|
+
fill: "#E5E7EB",
|
16
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
17
|
+
fillOpacity: 1
|
18
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 240, width: 60, height: 60, fill: "#E5E7EB", style: {
|
19
|
+
fill: "#E5E7EB",
|
20
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
21
|
+
fillOpacity: 1
|
22
|
+
} }), /* @__PURE__ */ l.createElement("rect", { y: 60, width: 60, height: 60, fill: "#E5E7EB", style: {
|
23
|
+
fill: "#E5E7EB",
|
24
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
25
|
+
fillOpacity: 1
|
26
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 60, y: 60, width: 60, height: 60, fill: "#F9FAFB", style: {
|
27
|
+
fill: "#F9FAFB",
|
28
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
29
|
+
fillOpacity: 1
|
30
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 120, y: 60, width: 60, height: 60, fill: "#F3F4F6", style: {
|
31
|
+
fill: "#F3F4F6",
|
32
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
33
|
+
fillOpacity: 1
|
34
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 240, y: 59.9999, width: 60, height: 60, fill: "#F3F4F6", style: {
|
35
|
+
fill: "#F3F4F6",
|
36
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
37
|
+
fillOpacity: 1
|
38
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 180, y: 59.9999, width: 60, height: 60, fill: "#E5E7EB", style: {
|
39
|
+
fill: "#E5E7EB",
|
40
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
41
|
+
fillOpacity: 1
|
42
|
+
} }), /* @__PURE__ */ l.createElement("rect", { y: 120, width: 60, height: 60, fill: "#F3F4F6", style: {
|
43
|
+
fill: "#F3F4F6",
|
44
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
45
|
+
fillOpacity: 1
|
46
|
+
} }), /* @__PURE__ */ l.createElement("rect", { y: 180, width: 60, height: 60, fill: "#F9FAFB", style: {
|
47
|
+
fill: "#F9FAFB",
|
48
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
49
|
+
fillOpacity: 1
|
50
|
+
} }), /* @__PURE__ */ l.createElement("rect", { y: 240, width: 60, height: 60, fill: "#F3F4F6", style: {
|
51
|
+
fill: "#F3F4F6",
|
52
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
53
|
+
fillOpacity: 1
|
54
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 60, y: 120, width: 60, height: 60, fill: "#E5E7EB", style: {
|
55
|
+
fill: "#E5E7EB",
|
56
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
57
|
+
fillOpacity: 1
|
58
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 60, y: 180, width: 60, height: 60, fill: "#F3F4F6", style: {
|
59
|
+
fill: "#F3F4F6",
|
60
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
61
|
+
fillOpacity: 1
|
62
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 60, y: 240, width: 60, height: 60, fill: "#E5E7EB", style: {
|
63
|
+
fill: "#E5E7EB",
|
64
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
65
|
+
fillOpacity: 1
|
66
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 120, y: 120, width: 60, height: 60, fill: "#F9FAFB", style: {
|
67
|
+
fill: "#F9FAFB",
|
68
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
69
|
+
fillOpacity: 1
|
70
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 180, y: 180, width: 60, height: 60, fill: "#F9FAFB", style: {
|
71
|
+
fill: "#F9FAFB",
|
72
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
73
|
+
fillOpacity: 1
|
74
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 120, y: 240, width: 60, height: 60, fill: "#F3F4F6", style: {
|
75
|
+
fill: "#F3F4F6",
|
76
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
77
|
+
fillOpacity: 1
|
78
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 240, y: 120, width: 60, height: 60, fill: "#F9FAFB", style: {
|
79
|
+
fill: "#F9FAFB",
|
80
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
81
|
+
fillOpacity: 1
|
82
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 120, y: 180, width: 60, height: 60, fill: "#E5E7EB", style: {
|
83
|
+
fill: "#E5E7EB",
|
84
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
85
|
+
fillOpacity: 1
|
86
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 180, y: 240, width: 60, height: 60, fill: "#E5E7EB", style: {
|
87
|
+
fill: "#E5E7EB",
|
88
|
+
fill: "color(display-p3 0.8980 0.9059 0.9216)",
|
89
|
+
fillOpacity: 1
|
90
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 180, y: 120, width: 60, height: 60, fill: "#F3F4F6", style: {
|
91
|
+
fill: "#F3F4F6",
|
92
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
93
|
+
fillOpacity: 1
|
94
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 240, y: 180, width: 60, height: 60, fill: "#F3F4F6", style: {
|
95
|
+
fill: "#F3F4F6",
|
96
|
+
fill: "color(display-p3 0.9529 0.9569 0.9647)",
|
97
|
+
fillOpacity: 1
|
98
|
+
} }), /* @__PURE__ */ l.createElement("rect", { x: 240, y: 240, width: 60, height: 60, fill: "#F9FAFB", style: {
|
99
|
+
fill: "#F9FAFB",
|
100
|
+
fill: "color(display-p3 0.9765 0.9804 0.9843)",
|
101
|
+
fillOpacity: 1
|
102
|
+
} })), /* @__PURE__ */ l.createElement("defs", null, /* @__PURE__ */ l.createElement("clipPath", { id: "clip0_317_299" }, /* @__PURE__ */ l.createElement("rect", { width: 300, height: 300, fill: "white", style: {
|
103
|
+
fill: "white",
|
104
|
+
fillOpacity: 1
|
105
|
+
} }))));
|
106
|
+
export {
|
107
|
+
e as default
|
108
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
|
-
import { styled as e } from "../Theme";
|
2
|
+
import { styled as e } from "../Theme/index.js";
|
3
3
|
function p({ aspect: t, children: i, ...n }) {
|
4
4
|
return /* @__PURE__ */ o(a, { aspect: t, ...n, children: /* @__PURE__ */ o("span", { className: "aspect-ratio-container__inner", children: i }) });
|
5
5
|
}
|
package/lib/NFTDisplay/broken.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
2
2
|
import { Box as o } from "@mui/material";
|
3
|
-
import { styled as i } from "../Theme";
|
4
|
-
import r from "./NFTBroken.svg";
|
3
|
+
import { styled as i } from "../Theme/index.js";
|
4
|
+
import r from "./NFTBroken.svg.js";
|
5
5
|
function c({ children: t = "Non-publicly accessible NFT" } = {}) {
|
6
6
|
return /* @__PURE__ */ n(s, { children: [
|
7
7
|
/* @__PURE__ */ e(r, { className: "nft-display-broken-background" }),
|