@vechain/vechain-kit 1.5.11 → 1.5.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.
package/dist/index.js CHANGED
@@ -5262,7 +5262,7 @@ var AddressDisplay = ({
5262
5262
  // package.json
5263
5263
  var package_default = {
5264
5264
  name: "@vechain/vechain-kit",
5265
- version: "1.5.11",
5265
+ version: "1.5.12",
5266
5266
  private: false,
5267
5267
  homepage: "https://github.com/vechain/vechain-kit",
5268
5268
  repository: "github:vechain/vechain-kit",
@@ -15886,22 +15886,17 @@ var ConnectPopover = ({
15886
15886
  };
15887
15887
  var WalletDisplay = ({ variant }) => {
15888
15888
  const { account } = useWallet();
15889
- const [isSmallMobile] = useMediaQuery("(max-width: 480px)");
15890
- const accountDomain = useMemo(() => {
15891
- const isLongDomain = account?.domain && account.domain.length > 18;
15892
- return isSmallMobile && isLongDomain ? humanDomain(account?.domain ?? "", 18, 0) : account?.domain;
15893
- }, [isSmallMobile, account?.domain]);
15894
15889
  if (!account) return /* @__PURE__ */ jsx(Spinner, {});
15895
15890
  if (variant === "icon") {
15896
15891
  return null;
15897
15892
  }
15898
15893
  if (variant === "iconAndDomain") {
15899
- return account.domain ? /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: accountDomain }) : /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanAddress(account.address ?? "", 6, 4) });
15894
+ return account.domain ? /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanDomain(account?.domain ?? "", 16, 0) }) : /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanAddress(account.address ?? "", 6, 4) });
15900
15895
  }
15901
15896
  if (variant === "iconDomainAndAssets") {
15902
15897
  return /* @__PURE__ */ jsxs(HStack, { spacing: 4, children: [
15903
15898
  /* @__PURE__ */ jsxs(VStack, { spacing: 0, alignItems: "flex-start", children: [
15904
- account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: accountDomain }),
15899
+ account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: humanDomain(account?.domain ?? "", 16, 0) }),
15905
15900
  /* @__PURE__ */ jsx(
15906
15901
  Text,
15907
15902
  {
@@ -15915,7 +15910,7 @@ var WalletDisplay = ({ variant }) => {
15915
15910
  ] });
15916
15911
  }
15917
15912
  return /* @__PURE__ */ jsxs(VStack, { spacing: 0, alignItems: "flex-start", children: [
15918
- account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: accountDomain }),
15913
+ account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: humanDomain(account?.domain ?? "", 16, 0) }),
15919
15914
  /* @__PURE__ */ jsx(
15920
15915
  Text,
15921
15916
  {