@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,13 +1,13 @@
|
|
1
1
|
import { jsxs as b, jsx as w } from "react/jsx-runtime";
|
2
2
|
import r from "prop-types";
|
3
3
|
import i from "lodash/isUndefined";
|
4
|
-
import x from "../Button";
|
5
|
-
import { mergeProps as y } from "../Util";
|
6
|
-
import { withDeprecated as v } from "../Util/deprecate";
|
4
|
+
import x from "../Button/index.js";
|
5
|
+
import { mergeProps as y } from "../Util/index.js";
|
6
|
+
import { withDeprecated as v } from "../Util/deprecate.js";
|
7
7
|
function s({ ...d }) {
|
8
8
|
const t = Object.assign({}, d);
|
9
9
|
i(t.gradient) && (t.gradient = ""), i(t.icon) && (t.icon = ""), i(t.text) && (t.text = ""), i(t.color) && (t.color = ""), i(t.border) && (t.border = ""), i(t.width) && (t.width = ""), i(t.theme) && (t.theme = "inherit"), i(t.variant) && (t.variant = "outlined"), i(t.size) && (t.size = "large");
|
10
|
-
const o = y(t, s), { href: f, icon: a, size: m, color: z, theme: g, variant:
|
10
|
+
const o = y(t, s), { href: f, icon: a, size: m, color: z, theme: g, variant: p, gradient: c, children: l, text: h, ...u } = o, e = {};
|
11
11
|
return c && (e.backgroundImage = c, e.borderColor = "transparent"), ["color", "border", "width"].forEach((n) => {
|
12
12
|
o[n] && (e[n] = o[n]);
|
13
13
|
}), /* @__PURE__ */ b(
|
@@ -16,14 +16,14 @@ function s({ ...d }) {
|
|
16
16
|
color: g,
|
17
17
|
href: f,
|
18
18
|
target: "_blank",
|
19
|
-
variant:
|
19
|
+
variant: p,
|
20
20
|
style: e,
|
21
21
|
size: m,
|
22
22
|
className: "action-button",
|
23
23
|
...u,
|
24
24
|
children: [
|
25
25
|
!!a && /* @__PURE__ */ w("i", { className: a }),
|
26
|
-
h ||
|
26
|
+
h || l
|
27
27
|
]
|
28
28
|
}
|
29
29
|
);
|
@@ -41,7 +41,7 @@ s.propTypes = {
|
|
41
41
|
size: r.string,
|
42
42
|
width: r.string
|
43
43
|
};
|
44
|
-
const
|
44
|
+
const T = v(s, { name: "ActionButton" });
|
45
45
|
export {
|
46
|
-
|
46
|
+
T as default
|
47
47
|
};
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
2
2
|
import { useState as f, useEffect as g } from "react";
|
3
3
|
import i from "prop-types";
|
4
|
-
import { green as m, blue as
|
5
|
-
import h from "../Logo";
|
6
|
-
import { styled as
|
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";
|
7
8
|
function b({ messages: e = ["Loading data..."], interval: n = 3e3, ...s }) {
|
8
9
|
const [r, a] = f(0), { palette: l } = x();
|
9
10
|
return g(() => {
|
@@ -18,7 +19,7 @@ function b({ messages: e = ["Loading data..."], interval: n = 3e3, ...s }) {
|
|
18
19
|
/* @__PURE__ */ d("div", { className: "pm-loader-atoms", children: [
|
19
20
|
/* @__PURE__ */ t(h, { style: { transform: "scale(0.6)" }, showText: !1 }),
|
20
21
|
/* @__PURE__ */ t(o, { size: 56, orbitColor: m[500], atomColor: m[500], duration: 1 }),
|
21
|
-
/* @__PURE__ */ t(o, { size: 80, orbitColor:
|
22
|
+
/* @__PURE__ */ t(o, { size: 80, orbitColor: p[800], atomColor: p[800], duration: 1.5 }),
|
22
23
|
/* @__PURE__ */ t(o, { size: 100, orbitColor: l.grey[900], atomColor: l.grey[900] })
|
23
24
|
] })
|
24
25
|
] }) });
|
@@ -27,7 +28,7 @@ b.propTypes = {
|
|
27
28
|
interval: i.number,
|
28
29
|
messages: i.arrayOf(i.string.isRequired)
|
29
30
|
};
|
30
|
-
const y =
|
31
|
+
const y = c("div")`
|
31
32
|
&& {
|
32
33
|
box-sizing: border-box;
|
33
34
|
padding: 20px;
|
@@ -79,7 +80,7 @@ o.propTypes = {
|
|
79
80
|
atomColor: i.string.isRequired,
|
80
81
|
duration: i.number
|
81
82
|
};
|
82
|
-
const v =
|
83
|
+
const v = c("div")`
|
83
84
|
@keyframes orbit {
|
84
85
|
0% {
|
85
86
|
transform: rotate(0deg);
|
@@ -2,8 +2,9 @@ import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Children as f } from "react";
|
3
3
|
import n from "prop-types";
|
4
4
|
import { Tooltip as u, tooltipClasses as c, Box as s } from "@mui/material";
|
5
|
-
import { styled as y } from "../Theme";
|
6
|
-
import
|
5
|
+
import { styled as y } from "../Theme/index.js";
|
6
|
+
import "../ClickToCopy/index.js";
|
7
|
+
import d from "../ClickToCopy/copy-button.js";
|
7
8
|
const C = y(({ className: p, ...r }) => /* @__PURE__ */ e(u, { ...r, classes: { popper: p } }))({
|
8
9
|
[`& .${c.tooltip}`]: {
|
9
10
|
maxWidth: 360,
|
@@ -6,9 +6,9 @@ import E from "copy-to-clipboard";
|
|
6
6
|
import w from "lodash/noop";
|
7
7
|
import F from "@arcblock/icons/lib/Copy";
|
8
8
|
import { useState as S, useRef as g, useImperativeHandle as A } from "react";
|
9
|
-
import { styled as H } from "../Theme";
|
10
|
-
import { getFontSize as L } from "../Util";
|
11
|
-
import M from "./compact-text";
|
9
|
+
import { styled as H } from "../Theme/index.js";
|
10
|
+
import { getFontSize as L } from "../Util/index.js";
|
11
|
+
import M from "./compact-text.js";
|
12
12
|
const i = {
|
13
13
|
en: {
|
14
14
|
copy: "Click To Copy",
|
package/lib/Address/index.js
CHANGED
@@ -2,9 +2,9 @@ import { jsxs as E, jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { useLatest as L, useDebounceFn as $ } from "ahooks";
|
3
3
|
import { useState as r, useRef as b, useImperativeHandle as j, useEffect as R } from "react";
|
4
4
|
import { Box as k } from "@mui/material";
|
5
|
-
import { styled as F } from "../Theme";
|
6
|
-
import P from "./did-address";
|
7
|
-
import { getFontSize as B } from "../Util";
|
5
|
+
import { styled as F } from "../Theme/index.js";
|
6
|
+
import P from "./did-address.js";
|
7
|
+
import { getFontSize as B } from "../Util/index.js";
|
8
8
|
function Q({
|
9
9
|
ref: t = void 0,
|
10
10
|
style: A = {},
|
package/lib/Alert/index.js
CHANGED
@@ -3,11 +3,11 @@ import o from "prop-types";
|
|
3
3
|
import { Typography as N } from "@mui/material";
|
4
4
|
import { blueGrey as j } from "@mui/material/colors";
|
5
5
|
import n from "lodash/isUndefined";
|
6
|
-
import E from "../Icon";
|
7
|
-
import { mergeProps as O } from "../Util";
|
8
|
-
import t from "../Colors";
|
9
|
-
import { styled as w } from "../Theme";
|
10
|
-
import { withDeprecated as
|
6
|
+
import E from "../Icon/index.js";
|
7
|
+
import { mergeProps as O } from "../Util/index.js";
|
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
11
|
const i = {
|
12
12
|
error: {
|
13
13
|
icon: "exclamation-circle",
|
@@ -48,7 +48,7 @@ function a({ ...l }) {
|
|
48
48
|
},
|
49
49
|
d
|
50
50
|
);
|
51
|
-
return /* @__PURE__ */ k(
|
51
|
+
return /* @__PURE__ */ k(A, { ...b, className: `alert alert--${s} alert--${e} ${f}`.trim(), style: h, children: [
|
52
52
|
(e === "icon" || g) && /* @__PURE__ */ c(E, { className: "alert-icon", name: y, size: 24, color: u, variant: C }),
|
53
53
|
/* @__PURE__ */ c(N, { component: "div", className: "alert-content", children: p })
|
54
54
|
] });
|
@@ -60,7 +60,7 @@ a.propTypes = {
|
|
60
60
|
style: o.oneOfType([o.object, o.string]),
|
61
61
|
variant: o.oneOf(["border", "icon"])
|
62
62
|
};
|
63
|
-
const V =
|
63
|
+
const V = $(a, { name: "Alert", alternative: "@mui/material/Alert" }), A = w("div")`
|
64
64
|
display: flex;
|
65
65
|
align-items: center;
|
66
66
|
font-size: 16px;
|