@matchain/matchid-sdk-react 0.1.53-alpha.2 → 0.1.53-alpha.4

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 (92) hide show
  1. package/dist/assets/icon/index.d.mts +4 -2
  2. package/dist/assets/icon/index.d.ts +4 -2
  3. package/dist/assets/icon/index.js +19 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +3 -1
  6. package/dist/chunk-3CR66BEX.mjs +19 -0
  7. package/dist/chunk-3CR66BEX.mjs.map +1 -0
  8. package/dist/{chunk-LHNKZISB.mjs → chunk-3USZ4ZZY.mjs} +20 -2
  9. package/dist/chunk-3USZ4ZZY.mjs.map +1 -0
  10. package/dist/{chunk-4A2YPGO3.mjs → chunk-4J3KZCLG.mjs} +2 -2
  11. package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
  12. package/dist/chunk-JX73EY6V.mjs.map +1 -0
  13. package/dist/{chunk-MX7N57AH.mjs → chunk-OCQ2AIM3.mjs} +7 -2
  14. package/dist/{chunk-MX7N57AH.mjs.map → chunk-OCQ2AIM3.mjs.map} +1 -1
  15. package/dist/{chunk-FB5MHLWX.mjs → chunk-V2S54LGG.mjs} +2 -2
  16. package/dist/{chunk-W5A6WY7Y.mjs → chunk-XXZZYALJ.mjs} +807 -191
  17. package/dist/chunk-XXZZYALJ.mjs.map +1 -0
  18. package/dist/components/index.d.mts +3 -3
  19. package/dist/components/index.d.ts +3 -3
  20. package/dist/components/index.js +1111 -442
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +7 -4
  23. package/dist/config/chains/index.mjs +2 -1
  24. package/dist/hooks/api/index.d.mts +2 -2
  25. package/dist/hooks/api/index.d.ts +2 -2
  26. package/dist/hooks/api/index.js +202 -88
  27. package/dist/hooks/api/index.js.map +1 -1
  28. package/dist/hooks/api/index.mjs +6 -5
  29. package/dist/hooks/index.d.mts +2 -2
  30. package/dist/hooks/index.d.ts +2 -2
  31. package/dist/hooks/index.js +515 -401
  32. package/dist/hooks/index.js.map +1 -1
  33. package/dist/hooks/index.mjs +5 -4
  34. package/dist/{index-IwwXQ_QV.d.ts → index-BaYTgL99.d.mts} +3 -2
  35. package/dist/{index-B8cUP7cH.d.ts → index-BhU3hF7y.d.ts} +2 -2
  36. package/dist/{index-iWHaT8HV.d.mts → index-Bpd2gBNh.d.mts} +1 -1
  37. package/dist/{index-Df-WlkXq.d.ts → index-C5StsjWY.d.ts} +11 -4
  38. package/dist/{index-BS-NO8Y2.d.ts → index-CFqk8eNo.d.ts} +12 -12
  39. package/dist/{index-BCGJczpk.d.mts → index-D1QeVZyN.d.ts} +3 -2
  40. package/dist/{index-DNJuiNdz.d.mts → index-D_UNctDI.d.mts} +11 -4
  41. package/dist/{index-BsL6zo6a.d.ts → index-DaXXoRxr.d.ts} +1 -1
  42. package/dist/{index-K5vXmiRX.d.ts → index-Dt92N6yZ.d.ts} +1 -1
  43. package/dist/{index-CZqdmQu1.d.mts → index-W6yjuOKT.d.mts} +1 -1
  44. package/dist/{index-Bil_db2f.d.mts → index-mxbJ8CFx.d.mts} +12 -12
  45. package/dist/{index-yy3VTdFU.d.mts → index-wqqEUufi.d.mts} +2 -2
  46. package/dist/index.css +3 -0
  47. package/dist/index.d.mts +7 -7
  48. package/dist/index.d.ts +7 -7
  49. package/dist/index.js +1297 -680
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +12 -11
  52. package/dist/types/index.d.mts +1 -1
  53. package/dist/types/index.d.ts +1 -1
  54. package/dist/{types-CZbR7ERa.d.mts → types-Bx_FJ11s.d.mts} +2 -1
  55. package/dist/{types-CZbR7ERa.d.ts → types-Bx_FJ11s.d.ts} +2 -1
  56. package/dist/ui/index.d.mts +3 -3
  57. package/dist/ui/index.d.ts +3 -3
  58. package/dist/ui/index.js +62 -59
  59. package/dist/ui/index.js.map +1 -1
  60. package/dist/ui/index.mjs +2 -2
  61. package/dist/utils/index.d.mts +2 -1
  62. package/dist/utils/index.d.ts +2 -1
  63. package/dist/utils/index.js +6 -0
  64. package/dist/utils/index.js.map +1 -1
  65. package/dist/utils/index.mjs +3 -1
  66. package/example/dist/assets/ccip-nxE3Zma4.js +1 -0
  67. package/example/dist/assets/index-BFAv3rdU.css +1 -0
  68. package/example/dist/assets/index-DMWWRDPI.js +1658 -0
  69. package/example/dist/index.html +2 -2
  70. package/example/src/pages/User/index.tsx +7 -1
  71. package/package.json +2 -1
  72. package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
  73. package/dist/chunk-LHNKZISB.mjs.map +0 -1
  74. package/dist/chunk-W5A6WY7Y.mjs.map +0 -1
  75. package/example/dist/assets/TransportWebHID-BEu7tC0r.js +0 -1
  76. package/example/dist/assets/bignumber-iG7K-qxw.js +0 -10
  77. package/example/dist/assets/ccip-a6wQ1Vcb.js +0 -1
  78. package/example/dist/assets/draggabilly-CRYR_S0q.js +0 -14
  79. package/example/dist/assets/index--dp9m9Ep.js +0 -1
  80. package/example/dist/assets/index-BDTHolFv.js +0 -569
  81. package/example/dist/assets/index-BZl59qLb.js +0 -179
  82. package/example/dist/assets/index-BmMbYNHO.js +0 -303
  83. package/example/dist/assets/index-C7cxVRDF.js +0 -1677
  84. package/example/dist/assets/index-CJk171Yb.js +0 -1
  85. package/example/dist/assets/index-CQiBesAa.js +0 -3
  86. package/example/dist/assets/index-D62loNA9.js +0 -3
  87. package/example/dist/assets/index-DqyX3FG6.js +0 -1
  88. package/example/dist/assets/index-Gy3FXGhr.css +0 -1
  89. package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
  90. package/example/dist/assets/solanaEmbed.esm-Djn-u4Vn.js +0 -38
  91. /package/dist/{chunk-4A2YPGO3.mjs.map → chunk-4J3KZCLG.mjs.map} +0 -0
  92. /package/dist/{chunk-FB5MHLWX.mjs.map → chunk-V2S54LGG.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,6 +1,12 @@
1
+ import {
2
+ types_exports
3
+ } from "./chunk-HBOS3RBL.mjs";
4
+ import {
5
+ chains_exports
6
+ } from "./chunk-3CR66BEX.mjs";
1
7
  import {
2
8
  api_exports
3
- } from "./chunk-4A2YPGO3.mjs";
9
+ } from "./chunk-4J3KZCLG.mjs";
4
10
  import {
5
11
  MatchProvider,
6
12
  ModalProvider,
@@ -8,19 +14,14 @@ import {
8
14
  components_exports,
9
15
  hooks_exports,
10
16
  useMatch
11
- } from "./chunk-W5A6WY7Y.mjs";
12
- import {
13
- types_exports
14
- } from "./chunk-HBOS3RBL.mjs";
17
+ } from "./chunk-XXZZYALJ.mjs";
15
18
  import "./chunk-UA6XHZHX.mjs";
16
19
  import {
17
20
  ui_exports
18
- } from "./chunk-FB5MHLWX.mjs";
19
- import "./chunk-MX7N57AH.mjs";
20
- import "./chunk-LHNKZISB.mjs";
21
- import {
22
- chains_exports
23
- } from "./chunk-HYQ3T6WW.mjs";
21
+ } from "./chunk-V2S54LGG.mjs";
22
+ import "./chunk-3USZ4ZZY.mjs";
23
+ import "./chunk-OCQ2AIM3.mjs";
24
+ import "./chunk-JX73EY6V.mjs";
24
25
  import "./chunk-J5LGTIGS.mjs";
25
26
  export {
26
27
  api_exports as Api,
@@ -1,3 +1,3 @@
1
- export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-CZbR7ERa.mjs';
1
+ export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.mjs';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -1,3 +1,3 @@
1
- export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-CZbR7ERa.js';
1
+ export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-Bx_FJ11s.js';
2
2
  import 'react';
3
3
  import '@tanstack/react-query/src/types';
@@ -418,5 +418,6 @@ type useMatchWalletAssetsProps = {
418
418
  importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
+ type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
421
422
 
422
- export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
423
+ export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type WalletStatusType as a4, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
@@ -418,5 +418,6 @@ type useMatchWalletAssetsProps = {
418
418
  importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
419
419
  assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
420
420
  };
421
+ type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
421
422
 
422
- export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
423
+ export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type WalletStatusType as a4, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
@@ -1,7 +1,7 @@
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-iWHaT8HV.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-yy3VTdFU.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-Bpd2gBNh.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-wqqEUufi.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-CZbR7ERa.mjs';
5
+ import '../types-Bx_FJ11s.mjs';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
@@ -1,7 +1,7 @@
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-BsL6zo6a.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-B8cUP7cH.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-DaXXoRxr.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BhU3hF7y.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
- import '../types-CZbR7ERa.js';
5
+ import '../types-Bx_FJ11s.js';
6
6
  import '@tanstack/react-query/src/types';
7
7
  import 'viem';
package/dist/ui/index.js CHANGED
@@ -267,8 +267,11 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
267
267
  // src/assets/icon/ArrowSendIcon.tsx
268
268
  var import_jsx_runtime48 = require("react/jsx-runtime");
269
269
 
270
- // src/ui/Button/index.tsx
270
+ // src/assets/icon/PhantomIcon.tsx
271
271
  var import_jsx_runtime49 = require("react/jsx-runtime");
272
+
273
+ // src/ui/Button/index.tsx
274
+ var import_jsx_runtime50 = require("react/jsx-runtime");
272
275
  function Button({
273
276
  size = "df",
274
277
  disabled = false,
@@ -287,7 +290,7 @@ function Button({
287
290
  onClick && onClick();
288
291
  }
289
292
  };
290
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
293
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
291
294
  "button",
292
295
  {
293
296
  type,
@@ -297,14 +300,14 @@ function Button({
297
300
  ...style
298
301
  },
299
302
  onClick: onAction,
300
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
303
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
301
304
  }
302
305
  );
303
306
  }
304
307
 
305
308
  // src/ui/Overlay/index.tsx
306
309
  var import_react = require("react");
307
- var import_jsx_runtime50 = require("react/jsx-runtime");
310
+ var import_jsx_runtime51 = require("react/jsx-runtime");
308
311
  function Overlay({
309
312
  isOpen = false,
310
313
  children,
@@ -320,7 +323,7 @@ function Overlay({
320
323
  document.body.style.overflow = "";
321
324
  };
322
325
  }, [isOpen]);
323
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
326
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
324
327
  "div",
325
328
  {
326
329
  className: "matchid-overlay",
@@ -329,11 +332,11 @@ function Overlay({
329
332
  },
330
333
  children
331
334
  }
332
- ) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, {});
335
+ ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
333
336
  }
334
337
 
335
338
  // src/ui/Drawer/index.tsx
336
- var import_jsx_runtime51 = require("react/jsx-runtime");
339
+ var import_jsx_runtime52 = require("react/jsx-runtime");
337
340
  function Drawer({
338
341
  children,
339
342
  showClose = true,
@@ -344,22 +347,22 @@ function Drawer({
344
347
  onBack
345
348
  }) {
346
349
  if (!isOpen) {
347
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
350
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, {});
348
351
  }
349
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-drawer", children: [
350
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
351
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
352
- onBack && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
352
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-drawer", children: [
353
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
354
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
355
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
353
356
  title
354
357
  ] }),
355
- showClose && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
358
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
356
359
  ] }),
357
360
  children
358
361
  ] }) });
359
362
  }
360
363
 
361
364
  // src/ui/Field/index.tsx
362
- var import_jsx_runtime52 = require("react/jsx-runtime");
365
+ var import_jsx_runtime53 = require("react/jsx-runtime");
363
366
  function Field({
364
367
  label,
365
368
  children,
@@ -367,13 +370,13 @@ function Field({
367
370
  required,
368
371
  className = ""
369
372
  }) {
370
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
371
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-field-label", children: [
372
- required && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "matchid-field-required", children: "*" }),
373
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
374
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-field-label", children: [
375
+ required && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "matchid-field-required", children: "*" }),
373
376
  label
374
377
  ] }),
375
378
  children,
376
- error && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "matchid-field-error", children: error })
379
+ error && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-field-error", children: error })
377
380
  ] });
378
381
  }
379
382
 
@@ -397,7 +400,7 @@ function useDownMd() {
397
400
  }
398
401
 
399
402
  // src/ui/Modal/index.tsx
400
- var import_jsx_runtime53 = require("react/jsx-runtime");
403
+ var import_jsx_runtime54 = require("react/jsx-runtime");
401
404
  function Modal({
402
405
  children,
403
406
  isOpen,
@@ -405,10 +408,10 @@ function Modal({
405
408
  zIndex = 100,
406
409
  className = ""
407
410
  }) {
408
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-modal ${className}`, style: {
411
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal ${className}`, style: {
409
412
  width
410
413
  }, children: [
411
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "matchid-modal-mobile-header" }),
414
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-modal-mobile-header" }),
412
415
  children
413
416
  ] }) });
414
417
  }
@@ -422,20 +425,20 @@ function ModalWithHeader({
422
425
  ...props
423
426
  }) {
424
427
  const isDownMd = useDownMd();
425
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Modal, { ...props, children: [
426
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
427
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-modal-header-content", children: [
428
- onBack && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
429
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "matchid-modal-header-title", children: title })
428
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Modal, { ...props, children: [
429
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
430
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-modal-header-content", children: [
431
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
432
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "matchid-modal-header-title", children: title })
430
433
  ] }),
431
- onClose && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
434
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
432
435
  ] }),
433
436
  children
434
437
  ] });
435
438
  }
436
439
 
437
440
  // src/ui/ModalDrawer/index.tsx
438
- var import_jsx_runtime54 = require("react/jsx-runtime");
441
+ var import_jsx_runtime55 = require("react/jsx-runtime");
439
442
  function ModalDrawer({
440
443
  title,
441
444
  drawerTitleVisible = true,
@@ -443,9 +446,9 @@ function ModalDrawer({
443
446
  }) {
444
447
  const isDownMd = useDownMd();
445
448
  if (isDownMd) {
446
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ModalWithHeader, { ...props, title });
449
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalWithHeader, { ...props, title });
447
450
  }
448
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
451
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
449
452
  }
450
453
 
451
454
  // src/assets/img/confirm.gif
@@ -517,7 +520,7 @@ function useHash({
517
520
  }
518
521
 
519
522
  // src/ui/HashPanel/index.tsx
520
- var import_jsx_runtime55 = require("react/jsx-runtime");
523
+ var import_jsx_runtime56 = require("react/jsx-runtime");
521
524
  function HashPanel({
522
525
  hash,
523
526
  chain,
@@ -576,14 +579,14 @@ function HashPanel({
576
579
  }
577
580
  }, [hashQuery.data]);
578
581
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
579
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
582
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
580
583
  ModalDrawer,
581
584
  {
582
585
  isOpen,
583
586
  showClose: true,
584
587
  onClose,
585
588
  zIndex,
586
- title: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
589
+ title: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
587
590
  "div",
588
591
  {
589
592
  className: "matchid-hashpanel-header",
@@ -593,29 +596,29 @@ function HashPanel({
593
596
  children: statusValue.text
594
597
  }
595
598
  ),
596
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-hashpanel-box", children: [
597
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-hashpanel-content", children: [
598
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: `matchid-hashpanel-status`, style: {
599
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-box", children: [
600
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-content", children: [
601
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `matchid-hashpanel-status`, style: {
599
602
  color: statusValue.color
600
603
  }, children: statusValue.text }),
601
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
602
- hash && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
604
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
605
+ hash && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
603
606
  "Hash:",
604
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("a", { href: link, target: "_blank", children: hash })
607
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("a", { href: link, target: "_blank", children: hash })
605
608
  ] })
606
609
  ] }),
607
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
610
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
608
611
  ] })
609
612
  }
610
613
  );
611
614
  }
612
615
  function HashPanel_default(props) {
613
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(HashPanel, { ...props });
616
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(HashPanel, { ...props });
614
617
  }
615
618
 
616
619
  // src/ui/Input/index.tsx
617
620
  var import_react4 = require("react");
618
- var import_jsx_runtime56 = require("react/jsx-runtime");
621
+ var import_jsx_runtime57 = require("react/jsx-runtime");
619
622
  function Input({
620
623
  onChange,
621
624
  type,
@@ -625,17 +628,17 @@ function Input({
625
628
  }) {
626
629
  const [inputType, setInputType] = (0, import_react4.useState)(type);
627
630
  const isDownMd = useDownMd();
628
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
631
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
629
632
  "div",
630
633
  {
631
634
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
632
635
  children: [
633
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
634
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
636
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
637
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
635
638
  if (onChange) {
636
639
  onChange({ target: { value: "" } });
637
640
  }
638
- }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
641
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
639
642
  DeleteRoundIcon,
640
643
  {
641
644
  height: isDownMd ? 16 : 21,
@@ -643,9 +646,9 @@ function Input({
643
646
  color: "var(--matchid-input-delete-icon-color)"
644
647
  }
645
648
  ) }),
646
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
649
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
647
650
  setInputType(inputType === "password" ? "text" : "password");
648
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
651
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
649
652
  after
650
653
  ]
651
654
  }
@@ -654,7 +657,7 @@ function Input({
654
657
 
655
658
  // src/ui/Popover/index.tsx
656
659
  var import_react5 = require("react");
657
- var import_jsx_runtime57 = require("react/jsx-runtime");
660
+ var import_jsx_runtime58 = require("react/jsx-runtime");
658
661
  function Popover({
659
662
  children,
660
663
  content,
@@ -664,7 +667,7 @@ function Popover({
664
667
  gap = "20px"
665
668
  }) {
666
669
  const [active, setActive] = (0, import_react5.useState)(false);
667
- return children && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
670
+ return children && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
668
671
  "div",
669
672
  {
670
673
  onClick: () => {
@@ -675,16 +678,16 @@ function Popover({
675
678
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
676
679
  children: [
677
680
  children,
678
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: {
681
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: {
679
682
  paddingTop: gap
680
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-popover-content`, children: content }) })
683
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `matchid-popover-content`, children: content }) })
681
684
  ]
682
685
  }
683
686
  );
684
687
  }
685
688
 
686
689
  // src/ui/Switch/index.tsx
687
- var import_jsx_runtime58 = require("react/jsx-runtime");
690
+ var import_jsx_runtime59 = require("react/jsx-runtime");
688
691
  function Switch({
689
692
  size = "default",
690
693
  checked = false,
@@ -699,12 +702,12 @@ function Switch({
699
702
  onChange && onChange(!checked);
700
703
  }
701
704
  };
702
- return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-switch-ball" }) });
705
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-switch-ball" }) });
703
706
  }
704
707
 
705
708
  // src/ui/AlphaAvatar/index.tsx
706
709
  var import_react6 = require("react");
707
- var import_jsx_runtime59 = require("react/jsx-runtime");
710
+ var import_jsx_runtime60 = require("react/jsx-runtime");
708
711
  function AlphaAvatar({
709
712
  name,
710
713
  size = "default",
@@ -721,7 +724,7 @@ function AlphaAvatar({
721
724
  return "";
722
725
  }, [name]);
723
726
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
724
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
727
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
725
728
  width: numberSize,
726
729
  height: numberSize,
727
730
  fontSize: Math.ceil(numberSize / 2),
@@ -730,7 +733,7 @@ function AlphaAvatar({
730
733
  }
731
734
 
732
735
  // src/ui/Radio/index.tsx
733
- var import_jsx_runtime60 = require("react/jsx-runtime");
736
+ var import_jsx_runtime61 = require("react/jsx-runtime");
734
737
  function Radio({
735
738
  checked = false,
736
739
  onChange,
@@ -739,13 +742,13 @@ function Radio({
739
742
  className = "",
740
743
  style = {}
741
744
  }) {
742
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
745
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
743
746
  width: size,
744
747
  height: size,
745
748
  ...style,
746
749
  // @ts-ignore
747
750
  "--matchid-radio-checked": color
748
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `matchid-radio-content`, style: {
751
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-radio-content`, style: {
749
752
  width: Math.floor(size * 0.7),
750
753
  height: Math.floor(size * 0.7)
751
754
  } }) });