@matchain/matchid-sdk-react 0.1.48-alpha.6 → 0.1.48-alpha.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 (61) hide show
  1. package/dist/assets/icon/index.d.mts +5 -3
  2. package/dist/assets/icon/index.d.ts +5 -3
  3. package/dist/assets/icon/index.js +18 -2
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +3 -1
  6. package/dist/{chunk-YFJI4I5M.mjs → chunk-7UTR37EJ.mjs} +18 -3
  7. package/dist/chunk-7UTR37EJ.mjs.map +1 -0
  8. package/dist/{chunk-BPAPYY5P.mjs → chunk-EY6NPX4M.mjs} +477 -128
  9. package/dist/chunk-EY6NPX4M.mjs.map +1 -0
  10. package/dist/{chunk-55KYW35I.mjs → chunk-J5U7AXYA.mjs} +2 -2
  11. package/dist/{chunk-UHBVYFSP.mjs → chunk-USKUYOYJ.mjs} +2 -2
  12. package/dist/components/index.d.mts +3 -3
  13. package/dist/components/index.d.ts +3 -3
  14. package/dist/components/index.js +314 -304
  15. package/dist/components/index.js.map +1 -1
  16. package/dist/components/index.mjs +3 -3
  17. package/dist/hooks/api/index.d.mts +2 -2
  18. package/dist/hooks/api/index.d.ts +2 -2
  19. package/dist/hooks/api/index.js +94 -54
  20. package/dist/hooks/api/index.js.map +1 -1
  21. package/dist/hooks/api/index.mjs +4 -4
  22. package/dist/hooks/index.d.mts +3 -2
  23. package/dist/hooks/index.d.ts +3 -2
  24. package/dist/hooks/index.js +498 -87
  25. package/dist/hooks/index.js.map +1 -1
  26. package/dist/hooks/index.mjs +5 -3
  27. package/dist/{index-DCeOyAw8.d.ts → index-Bbn2Stvu.d.ts} +2 -2
  28. package/dist/index-Bz53bbI_.d.ts +3268 -0
  29. package/dist/{index-B8DYrhSW.d.mts → index-C-YCr0xJ.d.mts} +12 -4
  30. package/dist/{index-DbG5IjhP.d.mts → index-CB4j_ONH.d.mts} +1 -1
  31. package/dist/{index-B-s1k4Da.d.mts → index-CKyWWkzU.d.mts} +3 -2
  32. package/dist/{index-BZrddrq-.d.mts → index-C_S7k6z2.d.mts} +2 -2
  33. package/dist/{index-BHvCA7F9.d.ts → index-D-uNr-JV.d.ts} +2 -2
  34. package/dist/index-DDV4F9ka.d.mts +3268 -0
  35. package/dist/{index-DG_gyw1q.d.ts → index-DV_mRu4y.d.ts} +3 -2
  36. package/dist/{index-Bzcc-y8m.d.ts → index-DcxdJ0m2.d.ts} +1 -1
  37. package/dist/{index-BvLpvebq.d.mts → index-Dzvj-uGt.d.mts} +2 -2
  38. package/dist/{index-Cwx2p8th.d.ts → index-zRpvDpIK.d.ts} +12 -4
  39. package/dist/index.css +11 -0
  40. package/dist/index.d.mts +8 -7
  41. package/dist/index.d.ts +8 -7
  42. package/dist/index.js +704 -353
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +4 -4
  45. package/dist/types/index.d.mts +1 -1
  46. package/dist/types/index.d.ts +1 -1
  47. package/dist/{types-CHkU0WHZ.d.mts → types-B4BYNw8B.d.mts} +13 -2
  48. package/dist/{types-CHkU0WHZ.d.ts → types-B4BYNw8B.d.ts} +13 -2
  49. package/dist/ui/index.d.mts +3 -3
  50. package/dist/ui/index.d.ts +3 -3
  51. package/dist/ui/index.js +62 -59
  52. package/dist/ui/index.js.map +1 -1
  53. package/dist/ui/index.mjs +2 -2
  54. package/example/src/pages/Wallet/components/MatchWallet.tsx +2 -1
  55. package/package.json +1 -1
  56. package/dist/chunk-BPAPYY5P.mjs.map +0 -1
  57. package/dist/chunk-YFJI4I5M.mjs.map +0 -1
  58. package/dist/index-DKyt0for.d.mts +0 -181
  59. package/dist/index-TkB89QxX.d.ts +0 -181
  60. /package/dist/{chunk-55KYW35I.mjs.map → chunk-J5U7AXYA.mjs.map} +0 -0
  61. /package/dist/{chunk-UHBVYFSP.mjs.map → chunk-USKUYOYJ.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -6,18 +6,18 @@ import {
6
6
  } from "./chunk-HYQ3T6WW.mjs";
7
7
  import {
8
8
  api_exports
9
- } from "./chunk-55KYW35I.mjs";
9
+ } from "./chunk-J5U7AXYA.mjs";
10
10
  import {
11
11
  MatchProvider,
12
12
  components_exports,
13
13
  hooks_exports,
14
14
  useMatch
15
- } from "./chunk-BPAPYY5P.mjs";
15
+ } from "./chunk-EY6NPX4M.mjs";
16
16
  import "./chunk-UA6XHZHX.mjs";
17
17
  import {
18
18
  ui_exports
19
- } from "./chunk-UHBVYFSP.mjs";
20
- import "./chunk-YFJI4I5M.mjs";
19
+ } from "./chunk-USKUYOYJ.mjs";
20
+ import "./chunk-7UTR37EJ.mjs";
21
21
  import "./chunk-J5LGTIGS.mjs";
22
22
  export {
23
23
  api_exports as Api,
@@ -1,3 +1,3 @@
1
1
  export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.mjs';
2
- export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from '../types-CHkU0WHZ.mjs';
2
+ export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, Q as WalletPanelProps, S as WalletReceiveMessageType, c as WalletType } from '../types-B4BYNw8B.mjs';
3
3
  import 'react';
@@ -1,3 +1,3 @@
1
1
  export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.js';
2
- export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from '../types-CHkU0WHZ.js';
2
+ export { A as AnyObject, k as AppConfigType, l as BindInfoType, m as BindItemType, n as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, o as DrawerProps, E as EmailModalProps, a as IEnvConfigType, p as IEnvName, q as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, r as IconProps, s as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, t as MessageType, u as MetaPageType, v as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, w as PohItemType, x as PohZkpassParams, P as PopoverPositionType, y as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, z as UIProps, F as UserAssetToken, U as UserChainType, G as UserImportTokenType, H as UserPopoverProps, j as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, Q as WalletPanelProps, S as WalletReceiveMessageType, c as WalletType } from '../types-B4BYNw8B.js';
3
3
  import 'react';
@@ -278,7 +278,7 @@ type UserChainType = {
278
278
  iconUrl: string;
279
279
  contracts: {
280
280
  multicall3: {
281
- address: string;
281
+ address: `0x${string}`;
282
282
  };
283
283
  };
284
284
  };
@@ -361,5 +361,16 @@ type WalletChainType = {
361
361
  chain_full_name: string;
362
362
  chain_type: string;
363
363
  };
364
+ type WalletNFTType = {
365
+ token_address: string;
366
+ token_id: string;
367
+ token_uri: string;
368
+ amount: string;
369
+ owner_of: string;
370
+ name: string;
371
+ symbol: string;
372
+ blockchain: string;
373
+ chain_id: string;
374
+ };
364
375
 
365
- export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletPanelProps as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletReceiveMessageType as Q, RecommendLoginMethodType as R, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
376
+ export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletNFTType as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletPanelProps as Q, RecommendLoginMethodType as R, WalletReceiveMessageType as S, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
@@ -278,7 +278,7 @@ type UserChainType = {
278
278
  iconUrl: string;
279
279
  contracts: {
280
280
  multicall3: {
281
- address: string;
281
+ address: `0x${string}`;
282
282
  };
283
283
  };
284
284
  };
@@ -361,5 +361,16 @@ type WalletChainType = {
361
361
  chain_full_name: string;
362
362
  chain_type: string;
363
363
  };
364
+ type WalletNFTType = {
365
+ token_address: string;
366
+ token_id: string;
367
+ token_uri: string;
368
+ amount: string;
369
+ owner_of: string;
370
+ name: string;
371
+ symbol: string;
372
+ blockchain: string;
373
+ chain_id: string;
374
+ };
364
375
 
365
- export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletPanelProps as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletReceiveMessageType as Q, RecommendLoginMethodType as R, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
376
+ export type { AnyObject as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, UserAssetToken as F, UserImportTokenType as G, UserPopoverProps as H, IMatchEvents as I, WalletAssetType as J, WalletChainType as K, LocaleType as L, ModalWithHeaderProps as M, WalletNFTType as N, OtherLoginMethodType as O, PopoverPositionType as P, WalletPanelProps as Q, RecommendLoginMethodType as R, WalletReceiveMessageType as S, ThemeType as T, UserChainType as U, WalletConfigType as W, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, ISocialLoginMethod as g, OverviewInfo as h, LoginMethodType as i, UserTransactionType as j, AppConfigType as k, BindInfoType as l, BindItemType as m, BindWalletParam as n, DrawerProps as o, IEnvName as p, ILoginWalletReq as q, IconProps as r, InputProps as s, MessageType as t, MetaPageType as u, ModalProps as v, PohItemType as w, PohZkpassParams as x, PopoverProps as y, UIProps as z };
@@ -1,6 +1,6 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-DbG5IjhP.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BvLpvebq.mjs';
1
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CB4j_ONH.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-Dzvj-uGt.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-CHkU0WHZ.mjs';
5
+ import '../types-B4BYNw8B.mjs';
6
6
  import 'viem';
@@ -1,6 +1,6 @@
1
- export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-Bzcc-y8m.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-DCeOyAw8.js';
1
+ export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-DcxdJ0m2.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-Bbn2Stvu.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-CHkU0WHZ.js';
5
+ import '../types-B4BYNw8B.js';
6
6
  import 'viem';
package/dist/ui/index.js CHANGED
@@ -255,11 +255,14 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
255
255
  // src/assets/icon/ErrorRoundIcon.tsx
256
256
  var import_jsx_runtime44 = require("react/jsx-runtime");
257
257
 
258
- // src/assets/icon/InfoRoundIcon.tsx
258
+ // src/assets/icon/InfoLineIcon.tsx
259
259
  var import_jsx_runtime45 = require("react/jsx-runtime");
260
260
 
261
- // src/ui/Button/index.tsx
261
+ // src/assets/icon/InfoRoundIcon.tsx
262
262
  var import_jsx_runtime46 = require("react/jsx-runtime");
263
+
264
+ // src/ui/Button/index.tsx
265
+ var import_jsx_runtime47 = require("react/jsx-runtime");
263
266
  function Button({
264
267
  size = "df",
265
268
  disabled = false,
@@ -278,7 +281,7 @@ function Button({
278
281
  onClick && onClick();
279
282
  }
280
283
  };
281
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
284
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
282
285
  "button",
283
286
  {
284
287
  type,
@@ -288,14 +291,14 @@ function Button({
288
291
  ...style
289
292
  },
290
293
  onClick: onAction,
291
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
294
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
292
295
  }
293
296
  );
294
297
  }
295
298
 
296
299
  // src/ui/Overlay/index.tsx
297
300
  var import_react = require("react");
298
- var import_jsx_runtime47 = require("react/jsx-runtime");
301
+ var import_jsx_runtime48 = require("react/jsx-runtime");
299
302
  function Overlay({
300
303
  isOpen = false,
301
304
  children,
@@ -311,7 +314,7 @@ function Overlay({
311
314
  document.body.style.overflow = "";
312
315
  };
313
316
  }, [isOpen]);
314
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
317
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
315
318
  "div",
316
319
  {
317
320
  className: "matchid-overlay",
@@ -320,11 +323,11 @@ function Overlay({
320
323
  },
321
324
  children
322
325
  }
323
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, {});
326
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, {});
324
327
  }
325
328
 
326
329
  // src/ui/Drawer/index.tsx
327
- var import_jsx_runtime48 = require("react/jsx-runtime");
330
+ var import_jsx_runtime49 = require("react/jsx-runtime");
328
331
  function Drawer({
329
332
  children,
330
333
  showClose = true,
@@ -334,19 +337,19 @@ function Drawer({
334
337
  zIndex = 100
335
338
  }) {
336
339
  if (!isOpen) {
337
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, {});
340
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, {});
338
341
  }
339
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "matchid-drawer", children: [
340
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `matchid-drawer-header`, children: [
341
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: title }),
342
- showClose && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
342
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "matchid-drawer", children: [
343
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-drawer-header`, children: [
344
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: title }),
345
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
343
346
  ] }),
344
347
  children
345
348
  ] }) });
346
349
  }
347
350
 
348
351
  // src/ui/Field/index.tsx
349
- var import_jsx_runtime49 = require("react/jsx-runtime");
352
+ var import_jsx_runtime50 = require("react/jsx-runtime");
350
353
  function Field({
351
354
  label,
352
355
  children,
@@ -354,13 +357,13 @@ function Field({
354
357
  required,
355
358
  className = ""
356
359
  }) {
357
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
358
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "matchid-field-label", children: [
359
- required && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "matchid-field-required", children: "*" }),
360
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
361
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "matchid-field-label", children: [
362
+ required && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "matchid-field-required", children: "*" }),
360
363
  label
361
364
  ] }),
362
365
  children,
363
- error && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "matchid-field-error", children: error })
366
+ error && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "matchid-field-error", children: error })
364
367
  ] });
365
368
  }
366
369
 
@@ -386,7 +389,7 @@ function useDownMd() {
386
389
  }
387
390
 
388
391
  // src/ui/Modal/index.tsx
389
- var import_jsx_runtime50 = require("react/jsx-runtime");
392
+ var import_jsx_runtime51 = require("react/jsx-runtime");
390
393
  function Modal({
391
394
  children,
392
395
  isOpen,
@@ -394,10 +397,10 @@ function Modal({
394
397
  zIndex = 100,
395
398
  className = ""
396
399
  }) {
397
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `matchid-modal ${className}`, style: {
400
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-modal ${className}`, style: {
398
401
  width
399
402
  }, children: [
400
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "matchid-modal-mobile-header" }),
403
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "matchid-modal-mobile-header" }),
401
404
  children
402
405
  ] }) });
403
406
  }
@@ -411,20 +414,20 @@ function ModalWithHeader({
411
414
  ...props
412
415
  }) {
413
416
  const isDownMd = useDownMd();
414
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Modal, { ...props, children: [
415
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
416
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "matchid-modal-header-content", children: [
417
- onBack && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
418
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "matchid-modal-header-title", children: title })
417
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Modal, { ...props, children: [
418
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
419
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-modal-header-content", children: [
420
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
421
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "matchid-modal-header-title", children: title })
419
422
  ] }),
420
- onClose && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
423
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
421
424
  ] }),
422
425
  children
423
426
  ] });
424
427
  }
425
428
 
426
429
  // src/ui/ModalDrawer/index.tsx
427
- var import_jsx_runtime51 = require("react/jsx-runtime");
430
+ var import_jsx_runtime52 = require("react/jsx-runtime");
428
431
  function ModalDrawer({
429
432
  title,
430
433
  drawerTitleVisible = true,
@@ -432,9 +435,9 @@ function ModalDrawer({
432
435
  }) {
433
436
  const isDownMd = useDownMd();
434
437
  if (isDownMd) {
435
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ModalWithHeader, { ...props, title });
438
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ModalWithHeader, { ...props, title });
436
439
  }
437
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
440
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
438
441
  }
439
442
 
440
443
  // src/assets/img/confirm.gif
@@ -464,7 +467,7 @@ var matchlog = new Proxy(console, handler);
464
467
  var matchlog_default = matchlog;
465
468
 
466
469
  // src/ui/HashPanel/index.tsx
467
- var import_jsx_runtime52 = require("react/jsx-runtime");
470
+ var import_jsx_runtime53 = require("react/jsx-runtime");
468
471
  function HashPanel({
469
472
  hash,
470
473
  chain,
@@ -535,13 +538,13 @@ function HashPanel({
535
538
  }
536
539
  );
537
540
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
538
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
541
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
539
542
  ModalDrawer,
540
543
  {
541
544
  isOpen,
542
545
  showClose: true,
543
546
  onClose,
544
- title: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
547
+ title: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
545
548
  "div",
546
549
  {
547
550
  className: "matchid-hashpanel-header",
@@ -551,29 +554,29 @@ function HashPanel({
551
554
  children: statusValue.text
552
555
  }
553
556
  ),
554
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-hashpanel-box", children: [
555
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-hashpanel-content", children: [
556
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: `matchid-hashpanel-status`, style: {
557
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-box", children: [
558
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-content", children: [
559
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `matchid-hashpanel-status`, style: {
557
560
  color: statusValue.color
558
561
  }, children: statusValue.text }),
559
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
560
- hash && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
562
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
563
+ hash && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
561
564
  "Hash:",
562
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("a", { href: link, target: "_blank", children: hash })
565
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("a", { href: link, target: "_blank", children: hash })
563
566
  ] })
564
567
  ] }),
565
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
568
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
566
569
  ] })
567
570
  }
568
571
  );
569
572
  }
570
573
  function HashPanel_default(props) {
571
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(HashPanel, { ...props });
574
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(HashPanel, { ...props });
572
575
  }
573
576
 
574
577
  // src/ui/Input/index.tsx
575
578
  var import_react4 = require("react");
576
- var import_jsx_runtime53 = require("react/jsx-runtime");
579
+ var import_jsx_runtime54 = require("react/jsx-runtime");
577
580
  function Input({
578
581
  onChange,
579
582
  type,
@@ -583,17 +586,17 @@ function Input({
583
586
  }) {
584
587
  const [inputType, setInputType] = (0, import_react4.useState)(type);
585
588
  const isDownMd = useDownMd();
586
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
589
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
587
590
  "div",
588
591
  {
589
592
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
590
593
  children: [
591
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
592
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
594
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
595
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
593
596
  if (onChange) {
594
597
  onChange({ target: { value: "" } });
595
598
  }
596
- }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
599
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
597
600
  DeleteRoundIcon,
598
601
  {
599
602
  height: isDownMd ? 16 : 21,
@@ -601,9 +604,9 @@ function Input({
601
604
  color: "var(--matchid-input-delete-icon-color)"
602
605
  }
603
606
  ) }),
604
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
607
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
605
608
  setInputType(inputType === "password" ? "text" : "password");
606
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
609
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
607
610
  after
608
611
  ]
609
612
  }
@@ -612,7 +615,7 @@ function Input({
612
615
 
613
616
  // src/ui/Popover/index.tsx
614
617
  var import_react5 = require("react");
615
- var import_jsx_runtime54 = require("react/jsx-runtime");
618
+ var import_jsx_runtime55 = require("react/jsx-runtime");
616
619
  function Popover({
617
620
  children,
618
621
  content,
@@ -622,7 +625,7 @@ function Popover({
622
625
  gap = "20px"
623
626
  }) {
624
627
  const [active, setActive] = (0, import_react5.useState)(false);
625
- return children && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
628
+ return children && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
626
629
  "div",
627
630
  {
628
631
  onClick: () => {
@@ -633,16 +636,16 @@ function Popover({
633
636
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
634
637
  children: [
635
638
  children,
636
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { style: {
639
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: {
637
640
  paddingTop: gap
638
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: `matchid-popover-content`, children: content }) })
641
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: `matchid-popover-content`, children: content }) })
639
642
  ]
640
643
  }
641
644
  );
642
645
  }
643
646
 
644
647
  // src/ui/Switch/index.tsx
645
- var import_jsx_runtime55 = require("react/jsx-runtime");
648
+ var import_jsx_runtime56 = require("react/jsx-runtime");
646
649
  function Switch({
647
650
  size = "default",
648
651
  checked = false,
@@ -657,12 +660,12 @@ function Switch({
657
660
  onChange && onChange(!checked);
658
661
  }
659
662
  };
660
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-switch-ball" }) });
663
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-switch-ball" }) });
661
664
  }
662
665
 
663
666
  // src/ui/AlphaAvatar/index.tsx
664
667
  var import_react6 = require("react");
665
- var import_jsx_runtime56 = require("react/jsx-runtime");
668
+ var import_jsx_runtime57 = require("react/jsx-runtime");
666
669
  function AlphaAvatar({
667
670
  name,
668
671
  size = "default",
@@ -679,7 +682,7 @@ function AlphaAvatar({
679
682
  return "";
680
683
  }, [name]);
681
684
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
682
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
685
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
683
686
  width: numberSize,
684
687
  height: numberSize,
685
688
  fontSize: Math.ceil(numberSize / 2),
@@ -688,7 +691,7 @@ function AlphaAvatar({
688
691
  }
689
692
 
690
693
  // src/ui/Radio/index.tsx
691
- var import_jsx_runtime57 = require("react/jsx-runtime");
694
+ var import_jsx_runtime58 = require("react/jsx-runtime");
692
695
  function Radio({
693
696
  checked = false,
694
697
  onChange,
@@ -697,13 +700,13 @@ function Radio({
697
700
  className = "",
698
701
  style = {}
699
702
  }) {
700
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
703
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
701
704
  width: size,
702
705
  height: size,
703
706
  ...style,
704
707
  // @ts-ignore
705
708
  "--matchid-radio-checked": color
706
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-radio-content`, style: {
709
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `matchid-radio-content`, style: {
707
710
  width: Math.floor(size * 0.7),
708
711
  height: Math.floor(size * 0.7)
709
712
  } }) });