@matchain/matchid-sdk-react 0.1.53-alpha.14 → 0.1.53-alpha.16

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 (47) hide show
  1. package/dist/assets/icon/index.d.mts +2 -2
  2. package/dist/assets/icon/index.d.ts +2 -2
  3. package/dist/{chunk-OEKLKWFJ.mjs → chunk-UOHVZWED.mjs} +94 -35
  4. package/dist/chunk-UOHVZWED.mjs.map +1 -0
  5. package/dist/components/index.d.mts +3 -3
  6. package/dist/components/index.d.ts +3 -3
  7. package/dist/components/index.js +6 -5
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +3 -3
  10. package/dist/hooks/api/index.d.mts +2 -2
  11. package/dist/hooks/api/index.d.ts +2 -2
  12. package/dist/hooks/api/index.js +1 -1
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +3 -3
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +1 -1
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +3 -3
  20. package/dist/{index-D5WIVIkc.d.ts → index-B16U2SHA.d.ts} +1 -1
  21. package/dist/{index-BrzFSkOe.d.mts → index-B2DkI1ML.d.mts} +1 -1
  22. package/dist/{index-CLYi12dP.d.mts → index-BxWVN7HQ.d.mts} +2 -2
  23. package/dist/{index-DjbH13zc.d.mts → index-ByjogbBx.d.mts} +6 -5
  24. package/dist/{index-DC4F1u-w.d.mts → index-C7vPCjcT.d.mts} +2 -2
  25. package/dist/{index-BgdY5xdW.d.ts → index-CYXjMyV_.d.ts} +1 -1
  26. package/dist/{index-BikcLg_6.d.ts → index-ChklXND5.d.ts} +2 -2
  27. package/dist/{index-CQmN0dN4.d.ts → index-Dfckd7XV.d.ts} +1 -1
  28. package/dist/{index-BVfCh4l-.d.mts → index-Na2Ub13l.d.mts} +1 -1
  29. package/dist/{index-D3Kp05kW.d.ts → index-_9VVEy7O.d.ts} +1 -1
  30. package/dist/{index-zc2GEzJ9.d.ts → index-jG0evmQL.d.ts} +6 -5
  31. package/dist/{index-C0UKUm0h.d.ts → index-jQp1rITQ.d.ts} +2 -2
  32. package/dist/{index-BaFmUVw-.d.mts → index-nMzH5qxx.d.mts} +1 -1
  33. package/dist/{index-SOVt-ADK.d.mts → index-zJQVg2B1.d.mts} +1 -1
  34. package/dist/index.css +15 -7
  35. package/dist/index.d.mts +8 -8
  36. package/dist/index.d.ts +8 -8
  37. package/dist/index.js +75 -16
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +9 -9
  40. package/dist/types/index.d.mts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/{types-VrV1kYga.d.mts → types-B5QEZ2fv.d.mts} +1 -1
  43. package/dist/{types-VrV1kYga.d.ts → types-B5QEZ2fv.d.ts} +1 -1
  44. package/dist/ui/index.d.mts +3 -3
  45. package/dist/ui/index.d.ts +3 -3
  46. package/package.json +1 -1
  47. package/dist/chunk-OEKLKWFJ.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-CLYi12dP.mjs';
2
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BaFmUVw-.mjs';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-BxWVN7HQ.mjs';
2
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-nMzH5qxx.mjs';
3
3
  import 'react/jsx-runtime';
4
- import '../types-VrV1kYga.mjs';
4
+ import '../types-B5QEZ2fv.mjs';
5
5
  import 'react';
6
6
  import '@tanstack/react-query/src/types';
@@ -1,6 +1,6 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-BikcLg_6.js';
2
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CQmN0dN4.js';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-ChklXND5.js';
2
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-Dfckd7XV.js';
3
3
  import 'react/jsx-runtime';
4
- import '../types-VrV1kYga.js';
4
+ import '../types-B5QEZ2fv.js';
5
5
  import 'react';
6
6
  import '@tanstack/react-query/src/types';
@@ -2020,7 +2020,7 @@ var import_react10 = require("react");
2020
2020
  var import_viem4 = require("viem");
2021
2021
 
2022
2022
  // src/context/ModalContext.tsx
2023
- var import_react9 = require("react");
2023
+ var import_react9 = __toESM(require("react"));
2024
2024
  var import_react_dom = require("react-dom");
2025
2025
 
2026
2026
  // src/ui/Drawer/index.tsx
@@ -6597,15 +6597,16 @@ function ContactCard({
6597
6597
  data,
6598
6598
  action
6599
6599
  }) {
6600
+ const isDownMd = useDownMd();
6600
6601
  return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-flex matchid-contact-item", children: [
6601
6602
  /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-contact-item-content", children: [
6602
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 48, height: 48, radius: 100, loading, children: data?.avatar ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: data?.avatar, className: "matchid-contact-item-avatar" }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AlphaAvatar, { size: 48, name: data?.name || "MatchID" }) }),
6603
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: isDownMd ? 36 : 48, height: isDownMd ? 36 : 48, radius: 100, loading, children: data?.avatar ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: data?.avatar, className: "matchid-contact-item-avatar" }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AlphaAvatar, { size: isDownMd ? 36 : 48, name: data?.name || "MatchID" }) }),
6603
6604
  /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-contact-item-info", children: [
6604
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-name", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 80, height: 20, loading, children: data?.name || "MatchID User" }) }),
6605
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-address", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 80, height: 16, loading, children: truncateAddress(data?.address || "", 6, 6) }) })
6605
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-name", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 80, height: isDownMd ? 16 : 20, loading, children: data?.name || "MatchID User" }) }),
6606
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-address", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 80, height: isDownMd ? 12 : 16, loading, children: truncateAddress(data?.address || "", 6, 6) }) })
6606
6607
  ] })
6607
6608
  ] }),
6608
- action && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-action", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 20, height: 20, loading, children: action() }) })
6609
+ action && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-contact-item-action", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton_default, { width: 20, height: isDownMd ? 16 : 20, loading, children: action() }) })
6609
6610
  ] });
6610
6611
  }
6611
6612
  function RequestAction({ data, onSuccess }) {