@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.
Files changed (188) hide show
  1. package/lib/ActionButton/index.js +8 -8
  2. package/lib/ActivityIndicator/index.js +7 -6
  3. package/lib/Address/compact-text.js +3 -2
  4. package/lib/Address/did-address.js +3 -3
  5. package/lib/Address/index.js +2 -2
  6. package/lib/Address/responsive-did-address.js +3 -3
  7. package/lib/Alert/index.js +7 -7
  8. package/lib/AnimationWaiter/dark-animation.json.js +27 -0
  9. package/lib/AnimationWaiter/default-animation.json.js +29 -0
  10. package/lib/AnimationWaiter/index.js +10 -10
  11. package/lib/Async/index.js +4 -4
  12. package/lib/Avatar/etherscan-blockies.js +15 -15
  13. package/lib/Avatar/index.js +5 -5
  14. package/lib/Badge/index.js +4 -4
  15. package/lib/Blocklet/blocklet.js +10 -10
  16. package/lib/Blocklet/index.js +5 -6
  17. package/lib/Blocklet/utils.js +1 -1
  18. package/lib/BlockletContext/index.js +1 -1
  19. package/lib/BlockletNFT/index.js +18 -18
  20. package/lib/BlockletV2/blocklet.js +36 -35
  21. package/lib/BlockletV2/components/icon-text.js +1 -1
  22. package/lib/BlockletV2/components/tooltip-icon.js +1 -1
  23. package/lib/BlockletV2/index.js +7 -8
  24. package/lib/BlockletV2/utils.js +1 -1
  25. package/lib/Button/index.js +1 -1
  26. package/lib/Button/wrap.js +2 -2
  27. package/lib/ButtonGroup/index.js +1 -1
  28. package/lib/Center/index.js +1 -1
  29. package/lib/ClickToCopy/copy-button.js +1 -1
  30. package/lib/ClickToCopy/index.js +5 -5
  31. package/lib/CloseButton/index.js +1 -1
  32. package/lib/CodeBlock/index.js +3 -3
  33. package/lib/Colors/index.js +3 -3
  34. package/lib/Config/config-provider.js +16 -15
  35. package/lib/Config/index.js +5 -3
  36. package/lib/Config/theme-mode-toggle.js +1 -1
  37. package/lib/ContactForm/index.js +4 -4
  38. package/lib/CookieConsent/index.js +1 -1
  39. package/lib/CountDown/index.js +2 -2
  40. package/lib/DID/index.js +49 -49
  41. package/lib/DIDConnect/app-icon.js +10 -10
  42. package/lib/DIDConnect/app-info-item.js +4 -4
  43. package/lib/DIDConnect/auth-apps/auth-apps-info.js +1 -1
  44. package/lib/DIDConnect/auth-apps/index.js +9 -9
  45. package/lib/DIDConnect/did-connect-container.js +19 -18
  46. package/lib/DIDConnect/did-connect-footer.js +6 -6
  47. package/lib/DIDConnect/index.js +10 -10
  48. package/lib/DIDConnect/landing-page.js +30 -29
  49. package/lib/DIDConnect/powered-by.js +2 -2
  50. package/lib/DIDConnect/request-storage-access-api-dialog.js +5 -5
  51. package/lib/DIDConnect/with-container.js +26 -25
  52. package/lib/DIDConnect/with-ux-theme.js +7 -6
  53. package/lib/Datatable/CustomToolbar.js +12 -12
  54. package/lib/Datatable/TableSearch.js +2 -2
  55. package/lib/Datatable/index.js +4 -4
  56. package/lib/Dialog/confirm.js +10 -10
  57. package/lib/Dialog/dialog.js +7 -7
  58. package/lib/Dialog/index.js +3 -3
  59. package/lib/Dialog/use-confirm.js +1 -1
  60. package/lib/DriftBot/index.js +1 -1
  61. package/lib/Earth/countries.json.js +13 -0
  62. package/lib/Earth/index.js +9 -9
  63. package/lib/Empty/index.js +1 -1
  64. package/lib/ErrorBoundary/fallback.js +15 -15
  65. package/lib/ErrorBoundary/index.js +6 -1
  66. package/lib/Footer/index.js +3 -3
  67. package/lib/Header/auto-hidden.js +1 -1
  68. package/lib/Header/header.js +3 -3
  69. package/lib/Header/index.js +3 -3
  70. package/lib/Header/responsive-header.js +6 -6
  71. package/lib/Icon/image.js +2 -2
  72. package/lib/Icon/index.js +18 -18
  73. package/lib/Img/index.js +1 -1
  74. package/lib/InfoRow/index.js +1 -1
  75. package/lib/Layout/dashboard/index.js +31 -29
  76. package/lib/Layout/dashboard/sidebar.js +2 -2
  77. package/lib/Layout/dashboard-legacy/header.js +2 -2
  78. package/lib/Layout/dashboard-legacy/index.js +4 -4
  79. package/lib/Layout/dashboard-legacy/sidebar.js +8 -8
  80. package/lib/Layout/index.js +5 -5
  81. package/lib/Locale/context.js +20 -20
  82. package/lib/Locale/selector.js +3 -3
  83. package/lib/Logo/images/logo-dark-text.svg.js +5 -0
  84. package/lib/Logo/images/logo-dark-top.svg.js +5 -0
  85. package/lib/Logo/images/logo-light-text.svg.js +5 -0
  86. package/lib/Logo/images/logo-light-top.svg.js +5 -0
  87. package/lib/Logo/index.js +18 -18
  88. package/lib/Metric/index.js +2 -2
  89. package/lib/NFTDisplay/NFTBroken.svg.js +108 -0
  90. package/lib/NFTDisplay/aspect-ratio-container.js +1 -1
  91. package/lib/NFTDisplay/broken.js +2 -2
  92. package/lib/NFTDisplay/index.js +35 -35
  93. package/lib/NFTDisplay/loading.js +1 -1
  94. package/lib/NFTDisplay/render-svg.js +1 -1
  95. package/lib/NFTDisplay/svg-embedder/img.js +3 -3
  96. package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -1
  97. package/lib/NavMenu/images/OCAP.svg.js +5 -0
  98. package/lib/NavMenu/images/abt-network.svg.js +7 -0
  99. package/lib/NavMenu/images/ai-kit.svg.js +7 -0
  100. package/lib/NavMenu/images/aigne.svg.js +7 -0
  101. package/lib/NavMenu/images/aistro.svg.js +5 -0
  102. package/lib/NavMenu/images/arcsphere.svg.js +10 -0
  103. package/lib/NavMenu/images/blocklet-framework.svg.js +7 -0
  104. package/lib/NavMenu/images/blocklet-launcher.svg.js +5 -0
  105. package/lib/NavMenu/images/blocklet-server.svg.js +7 -0
  106. package/lib/NavMenu/images/blocklet-store.svg.js +5 -0
  107. package/lib/NavMenu/images/creator-studio.svg.js +7 -0
  108. package/lib/NavMenu/images/did-connect.svg.js +5 -0
  109. package/lib/NavMenu/images/did-name-service.svg.js +5 -0
  110. package/lib/NavMenu/images/did-wallet.svg.js +7 -0
  111. package/lib/NavMenu/images/did.svg.js +5 -0
  112. package/lib/NavMenu/images/nft-studio.svg.js +5 -0
  113. package/lib/NavMenu/images/vc.svg.js +5 -0
  114. package/lib/NavMenu/images/web3-kit.svg.js +7 -0
  115. package/lib/NavMenu/index.js +2 -2
  116. package/lib/NavMenu/nav-menu.js +23 -22
  117. package/lib/NavMenu/products.js +32 -32
  118. package/lib/NavMenu/style.js +1 -1
  119. package/lib/NavMenu/sub-item-group.js +1 -1
  120. package/lib/PageScroller/index.js +19 -19
  121. package/lib/PageScroller/story/FullPage.js +27 -27
  122. package/lib/PageScroller/story/PageContain.js +8 -8
  123. package/lib/Passport/index.js +2 -3
  124. package/lib/Passport/passport.js +2 -2
  125. package/lib/PhoneInput/country-select.js +1 -1
  126. package/lib/PhoneInput/index.js +2 -2
  127. package/lib/PricingTable/PricingPlan.js +1 -1
  128. package/lib/PricingTable/index.js +3 -3
  129. package/lib/RelativeTime/index.js +1 -1
  130. package/lib/Result/common.js +6 -4
  131. package/lib/Result/index.js +2 -2
  132. package/lib/Result/result.js +1 -1
  133. package/lib/Screenshot/BaseScreenshot/index.js +3 -3
  134. package/lib/Screenshot/index.js +9 -9
  135. package/lib/SessionBlocklet/index.js +8 -8
  136. package/lib/SessionManager/index.js +2 -3
  137. package/lib/SessionUser/components/did-space.js +14 -14
  138. package/lib/SessionUser/components/logged-in.js +33 -33
  139. package/lib/SessionUser/components/quick-login-item.js +29 -29
  140. package/lib/SessionUser/components/session-user-item.js +23 -23
  141. package/lib/SessionUser/components/session-user-switch.js +4 -4
  142. package/lib/SessionUser/components/un-login.js +7 -7
  143. package/lib/SessionUser/components/user-info.js +16 -16
  144. package/lib/SessionUser/images/did-spaces.svg.js +5 -0
  145. package/lib/SessionUser/index.js +2 -2
  146. package/lib/SharedBridge/index.js +23 -23
  147. package/lib/Spinner/index.js +1 -1
  148. package/lib/SplitButton/index.js +1 -1
  149. package/lib/Switch/index.js +1 -1
  150. package/lib/Tabs/index.js +1 -1
  151. package/lib/Tag/index.js +6 -6
  152. package/lib/TextCollapse/index.js +2 -2
  153. package/lib/Theme/index.js +22 -11
  154. package/lib/Theme/theme-provider.js +2 -2
  155. package/lib/Theme/theme.js +4 -4
  156. package/lib/Toast/index.js +11 -11
  157. package/lib/UserCard/Cards/avatar-only.js +2 -2
  158. package/lib/UserCard/Cards/basic-info.js +3 -3
  159. package/lib/UserCard/Cards/index.js +3 -3
  160. package/lib/UserCard/Cards/name-only.js +1 -1
  161. package/lib/UserCard/Container/card.js +2 -2
  162. package/lib/UserCard/Container/dialog.js +1 -1
  163. package/lib/UserCard/Content/basic.js +1 -1
  164. package/lib/UserCard/Content/clock.js +3 -3
  165. package/lib/UserCard/Content/minimal.js +8 -8
  166. package/lib/UserCard/Content/tooltip-avatar.js +1 -1
  167. package/lib/UserCard/components.js +23 -23
  168. package/lib/UserCard/index.js +12 -12
  169. package/lib/Util/index.js +2 -2
  170. package/lib/VerificationCode/index.js +1 -1
  171. package/lib/Video/index.js +2 -2
  172. package/lib/Wallet/Action.js +4 -4
  173. package/lib/Wallet/Download.js +6 -6
  174. package/lib/Wallet/Open.js +1 -1
  175. package/lib/Wallet/images/android_download.svg.js +5 -0
  176. package/lib/Wallet/images/app-store.svg.js +5 -0
  177. package/lib/Wallet/images/google-play.svg.js +5 -0
  178. package/lib/WalletOSIcon/index.js +1 -1
  179. package/lib/WebWalletSWKeeper/index.js +2 -2
  180. package/lib/WechatPrompt/index.js +1 -1
  181. package/lib/hooks/use-blocklet-logo.js +15 -13
  182. package/lib/hooks/use-clock.js +1 -1
  183. package/lib/index.js +79 -74
  184. package/lib/ux.css +1 -0
  185. package/lib/withTheme/index.js +7 -6
  186. package/lib/withTracker/error_boundary.js +1 -1
  187. package/package.json +7 -7
  188. 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: l, gradient: c, children: p, text: h, ...u } = o, e = {};
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: l,
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 || p
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 q = v(s, { name: "ActionButton" });
44
+ const T = v(s, { name: "ActionButton" });
45
45
  export {
46
- q as default
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 c } from "@mui/material/colors";
5
- import h from "../Logo";
6
- import { styled as p, useTheme as x } from "../Theme";
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: c[800], atomColor: c[800], duration: 1.5 }),
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 = p("div")`
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 = p("div")`
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 { CopyButton as d } from "../ClickToCopy";
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",
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import e from "./did-address";
3
- import s from "./responsive-did-address";
2
+ import e from "./did-address.js";
3
+ import s from "./responsive-did-address.js";
4
4
  function f({
5
5
  ref: r = void 0,
6
6
  responsive: o = !0,
@@ -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 = {},
@@ -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 T } from "../Util/deprecate";
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($, { ...b, className: `alert alert--${s} alert--${e} ${f}`.trim(), style: h, children: [
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 = T(a, { name: "Alert", alternative: "@mui/material/Alert" }), $ = w("div")`
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;