@matchain/matchid-sdk-react 0.1.53-alpha.2 → 0.1.53-alpha.3
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/assets/icon/index.d.mts +4 -2
- package/dist/assets/icon/index.d.ts +4 -2
- package/dist/assets/icon/index.js +19 -0
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +3 -1
- package/dist/{chunk-LHNKZISB.mjs → chunk-3USZ4ZZY.mjs} +20 -2
- package/dist/chunk-3USZ4ZZY.mjs.map +1 -0
- package/dist/{chunk-W5A6WY7Y.mjs → chunk-3YF3P77J.mjs} +46 -8
- package/dist/chunk-3YF3P77J.mjs.map +1 -0
- package/dist/{chunk-4A2YPGO3.mjs → chunk-4EVF2PXX.mjs} +2 -2
- package/dist/{chunk-MX7N57AH.mjs → chunk-OCQ2AIM3.mjs} +7 -2
- package/dist/{chunk-MX7N57AH.mjs.map → chunk-OCQ2AIM3.mjs.map} +1 -1
- package/dist/{chunk-FB5MHLWX.mjs → chunk-V2S54LGG.mjs} +2 -2
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +403 -346
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +47 -44
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +5 -5
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +175 -172
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/{index-K5vXmiRX.d.ts → index-BKHtf1Tu.d.ts} +1 -1
- package/dist/{index-DNJuiNdz.d.mts → index-BSUoL5Jo.d.mts} +2 -2
- package/dist/{index-Df-WlkXq.d.ts → index-BVO4Bt59.d.ts} +2 -2
- package/dist/{index-IwwXQ_QV.d.ts → index-CcN5ls1U.d.ts} +1 -1
- package/dist/{index-BsL6zo6a.d.ts → index-Cul4qlZl.d.ts} +1 -1
- package/dist/{index-yy3VTdFU.d.mts → index-CvVl_Xw1.d.mts} +2 -2
- package/dist/{index-BCGJczpk.d.mts → index-DXRsJY9h.d.mts} +1 -1
- package/dist/{index-Bil_db2f.d.mts → index-DgwlV4ve.d.ts} +1 -1
- package/dist/{index-iWHaT8HV.d.mts → index-DrEKzXYX.d.mts} +1 -1
- package/dist/{index-BS-NO8Y2.d.ts → index-EPwrSSOz.d.mts} +1 -1
- package/dist/{index-CZqdmQu1.d.mts → index-ba3VTkaV.d.mts} +1 -1
- package/dist/{index-B8cUP7cH.d.ts → index-lKJjj0w4.d.ts} +2 -2
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +442 -385
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CZbR7ERa.d.mts → types-Bgd3Ac92.d.mts} +1 -1
- package/dist/{types-CZbR7ERa.d.ts → types-Bgd3Ac92.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +62 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -1
- package/example/dist/assets/ccip-nxE3Zma4.js +1 -0
- package/example/dist/assets/index-BFAv3rdU.css +1 -0
- package/example/dist/assets/index-DMWWRDPI.js +1658 -0
- package/example/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-W5A6WY7Y.mjs.map +0 -1
- package/example/dist/assets/TransportWebHID-BEu7tC0r.js +0 -1
- package/example/dist/assets/bignumber-iG7K-qxw.js +0 -10
- package/example/dist/assets/ccip-a6wQ1Vcb.js +0 -1
- package/example/dist/assets/draggabilly-CRYR_S0q.js +0 -14
- package/example/dist/assets/index--dp9m9Ep.js +0 -1
- package/example/dist/assets/index-BDTHolFv.js +0 -569
- package/example/dist/assets/index-BZl59qLb.js +0 -179
- package/example/dist/assets/index-BmMbYNHO.js +0 -303
- package/example/dist/assets/index-C7cxVRDF.js +0 -1677
- package/example/dist/assets/index-CJk171Yb.js +0 -1
- package/example/dist/assets/index-CQiBesAa.js +0 -3
- package/example/dist/assets/index-D62loNA9.js +0 -3
- package/example/dist/assets/index-DqyX3FG6.js +0 -1
- package/example/dist/assets/index-Gy3FXGhr.css +0 -1
- package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
- package/example/dist/assets/solanaEmbed.esm-Djn-u4Vn.js +0 -38
- /package/dist/{chunk-4A2YPGO3.mjs.map → chunk-4EVF2PXX.mjs.map} +0 -0
- /package/dist/{chunk-FB5MHLWX.mjs.map → chunk-V2S54LGG.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chains_exports
|
|
3
|
+
} from "./chunk-HYQ3T6WW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
types_exports
|
|
6
|
+
} from "./chunk-HBOS3RBL.mjs";
|
|
1
7
|
import {
|
|
2
8
|
api_exports
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4EVF2PXX.mjs";
|
|
4
10
|
import {
|
|
5
11
|
MatchProvider,
|
|
6
12
|
ModalProvider,
|
|
@@ -8,19 +14,13 @@ import {
|
|
|
8
14
|
components_exports,
|
|
9
15
|
hooks_exports,
|
|
10
16
|
useMatch
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
types_exports
|
|
14
|
-
} from "./chunk-HBOS3RBL.mjs";
|
|
15
|
-
import "./chunk-UA6XHZHX.mjs";
|
|
17
|
+
} from "./chunk-3YF3P77J.mjs";
|
|
16
18
|
import {
|
|
17
19
|
ui_exports
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import
|
|
22
|
-
chains_exports
|
|
23
|
-
} from "./chunk-HYQ3T6WW.mjs";
|
|
20
|
+
} from "./chunk-V2S54LGG.mjs";
|
|
21
|
+
import "./chunk-OCQ2AIM3.mjs";
|
|
22
|
+
import "./chunk-3USZ4ZZY.mjs";
|
|
23
|
+
import "./chunk-UA6XHZHX.mjs";
|
|
24
24
|
import "./chunk-J5LGTIGS.mjs";
|
|
25
25
|
export {
|
|
26
26
|
api_exports as Api,
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Address,
|
|
1
|
+
export { A as Address, e as AnyObject, w as AppConfigType, x as AuthParams, y as BindInfoType, z as BindItemType, F as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, G as DeepPartial, D as DrawerProps, E as EmailModalProps, J as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, K as IEnvName, N as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, v as IconProps, r as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, Q as MessageType, S as MetaPageType, s as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, T as PohItemType, V as PohZkpassParams, P as PopoverPositionType, t as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, X as RecoveryType, Y as ThemeType, q as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, p as WalletPanelProps, a3 as WalletReceiveMessageType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-Bgd3Ac92.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-query/src/types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Address,
|
|
1
|
+
export { A as Address, e as AnyObject, w as AppConfigType, x as AuthParams, y as BindInfoType, z as BindItemType, F as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, G as DeepPartial, D as DrawerProps, E as EmailModalProps, J as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, K as IEnvName, N as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, v as IconProps, r as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, Q as MessageType, S as MetaPageType, s as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, T as PohItemType, V as PohZkpassParams, P as PopoverPositionType, t as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, X as RecoveryType, Y as ThemeType, q as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, p as WalletPanelProps, a3 as WalletReceiveMessageType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-Bgd3Ac92.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-query/src/types';
|
|
@@ -419,4 +419,4 @@ type useMatchWalletAssetsProps = {
|
|
|
419
419
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
export { type
|
|
422
|
+
export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DrawerProps as D, type EmailModalProps as E, type BindWalletParam as F, type DeepPartial as G, type Hash as H, type IMatchEvents as I, type EmbeddedWalletsParams as J, type IEnvName as K, type LocaleType as L, type ModalWithHeaderProps as M, type ILoginWalletReq as N, type OverviewInfo as O, type PopoverPositionType as P, type MessageType as Q, type RecommendLoginMethodType as R, type MetaPageType as S, type PohItemType as T, type UserChainType as U, type PohZkpassParams as V, type WalletConfigType as W, RecoveryType as X, type ThemeType as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletReceiveMessageType as a3, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type WalletPanelProps as p, type UIProps as q, type InputProps as r, type ModalProps as s, type PopoverProps as t, type useMatchWalletAssetsProps as u, type IconProps as v, type AppConfigType as w, type AuthParams as x, type BindInfoType as y, type BindItemType as z };
|
|
@@ -419,4 +419,4 @@ type useMatchWalletAssetsProps = {
|
|
|
419
419
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
export { type
|
|
422
|
+
export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DrawerProps as D, type EmailModalProps as E, type BindWalletParam as F, type DeepPartial as G, type Hash as H, type IMatchEvents as I, type EmbeddedWalletsParams as J, type IEnvName as K, type LocaleType as L, type ModalWithHeaderProps as M, type ILoginWalletReq as N, type OverviewInfo as O, type PopoverPositionType as P, type MessageType as Q, type RecommendLoginMethodType as R, type MetaPageType as S, type PohItemType as T, type UserChainType as U, type PohZkpassParams as V, type WalletConfigType as W, RecoveryType as X, type ThemeType as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletReceiveMessageType as a3, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type WalletPanelProps as p, type UIProps as q, type InputProps as r, type ModalProps as s, type PopoverProps as t, type useMatchWalletAssetsProps as u, type IconProps as v, type AppConfigType as w, type AuthParams as x, type BindInfoType as y, type BindItemType as z };
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
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-DrEKzXYX.mjs';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-CvVl_Xw1.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-Bgd3Ac92.mjs';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
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-Cul4qlZl.js';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-lKJjj0w4.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-Bgd3Ac92.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/
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
335
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
|
|
333
336
|
}
|
|
334
337
|
|
|
335
338
|
// src/ui/Drawer/index.tsx
|
|
336
|
-
var
|
|
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,
|
|
350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, {});
|
|
348
351
|
}
|
|
349
|
-
return /* @__PURE__ */ (0,
|
|
350
|
-
/* @__PURE__ */ (0,
|
|
351
|
-
/* @__PURE__ */ (0,
|
|
352
|
-
onBack && /* @__PURE__ */ (0,
|
|
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,
|
|
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
|
|
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,
|
|
371
|
-
/* @__PURE__ */ (0,
|
|
372
|
-
required && /* @__PURE__ */ (0,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
426
|
-
/* @__PURE__ */ (0,
|
|
427
|
-
/* @__PURE__ */ (0,
|
|
428
|
-
onBack && /* @__PURE__ */ (0,
|
|
429
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
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
|
|
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,
|
|
449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ModalWithHeader, { ...props, title });
|
|
447
450
|
}
|
|
448
|
-
return /* @__PURE__ */ (0,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
597
|
-
/* @__PURE__ */ (0,
|
|
598
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
602
|
-
hash && /* @__PURE__ */ (0,
|
|
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,
|
|
607
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("a", { href: link, target: "_blank", children: hash })
|
|
605
608
|
] })
|
|
606
609
|
] }),
|
|
607
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
634
|
-
props.value && props.value.length > 0 && /* @__PURE__ */ (0,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: {
|
|
679
682
|
paddingTop: gap
|
|
680
|
-
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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
|
} }) });
|