@matchain/matchid-sdk-react 0.1.53-alpha.2 → 0.1.53-alpha.20
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 -144
- package/dist/assets/icon/index.d.ts +4 -144
- package/dist/assets/icon/index.js +54 -0
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +5 -1
- package/dist/chunk-3CR66BEX.mjs +19 -0
- package/dist/chunk-3CR66BEX.mjs.map +1 -0
- package/dist/{chunk-W5A6WY7Y.mjs → chunk-CLMSEFOV.mjs} +5808 -4749
- package/dist/chunk-CLMSEFOV.mjs.map +1 -0
- package/dist/{chunk-LHNKZISB.mjs → chunk-FKXS2XRG.mjs} +114 -2
- package/dist/chunk-FKXS2XRG.mjs.map +1 -0
- package/dist/{chunk-MX7N57AH.mjs → chunk-IZOOVZAD.mjs} +11 -6
- package/dist/chunk-IZOOVZAD.mjs.map +1 -0
- package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
- package/dist/chunk-JX73EY6V.mjs.map +1 -0
- package/dist/{chunk-FB5MHLWX.mjs → chunk-X5HGL3ZX.mjs} +45 -3
- package/dist/chunk-X5HGL3ZX.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +1568 -504
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +11 -4
- package/dist/config/chains/index.mjs +2 -1
- package/dist/hooks/api/index.d.mts +3 -2
- package/dist/hooks/api/index.d.ts +3 -2
- package/dist/hooks/api/index.js +393 -82
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +9 -8
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +620 -463
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +5 -4
- package/dist/index-B1T3lcwo.d.mts +203 -0
- package/dist/{index-Df-WlkXq.d.ts → index-B6Tmp2HR.d.ts} +25 -5
- package/dist/index-B6pp5UQe.d.ts +203 -0
- package/dist/{index-IwwXQ_QV.d.ts → index-BR3CyOOn.d.ts} +5 -2
- package/dist/{index-CZqdmQu1.d.mts → index-BeTS09HM.d.mts} +41 -17
- package/dist/{index-iWHaT8HV.d.mts → index-BxHKPC5n.d.mts} +1 -1
- package/dist/{index-B8cUP7cH.d.ts → index-CA7lhjpa.d.mts} +25 -5
- package/dist/{index-yy3VTdFU.d.mts → index-CRoZ0p2b.d.ts} +25 -5
- package/dist/{index-BCGJczpk.d.mts → index-CXPCmoIu.d.mts} +5 -2
- package/dist/{index-Bil_db2f.d.mts → index-Ce3oCu6-.d.mts} +19 -16
- package/dist/{index-DNJuiNdz.d.mts → index-Ci_ub_5y.d.mts} +25 -5
- package/dist/{index-BsL6zo6a.d.ts → index-DKV8v6s_.d.ts} +1 -1
- package/dist/{index-K5vXmiRX.d.ts → index-Dnjr-WPp.d.ts} +41 -17
- package/dist/{index-BS-NO8Y2.d.ts → index-IHigYscw.d.ts} +19 -16
- package/dist/index.css +132 -13
- package/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1956 -793
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/request-B0CyrGFT.d.mts +15 -0
- package/dist/request-B0CyrGFT.d.ts +15 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CZbR7ERa.d.mts → types-mRkAnXBf.d.mts} +17 -1
- package/dist/{types-CZbR7ERa.d.ts → types-mRkAnXBf.d.ts} +17 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +109 -61
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +8 -4
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +10 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -1
- package/example/dist/assets/Arc-R3PUWRPJ-CUdEQO8X.js +1 -0
- package/example/dist/assets/Brave-24BM36UM-C6C5mkTK.js +1 -0
- package/example/dist/assets/Browser-4R4QKTV2-D3ON1q-S.js +1 -0
- package/example/dist/assets/Chrome-TLI42HDP-BgiVz-ma.js +1 -0
- package/example/dist/assets/Edge-AZ34LAFM-EBh9cG_z.js +1 -0
- package/example/dist/assets/Firefox-ZDK7RHKK-5nyhB0sj.js +1 -0
- package/example/dist/assets/Linux-VYP66PDO--MOvpQUa.js +1 -0
- package/example/dist/assets/Macos-5QL4JBJE-DLNYPiln.js +1 -0
- package/example/dist/assets/Opera-BKMCKUXC-CCypmVaM.js +1 -0
- package/example/dist/assets/Safari-PXQIVS6N-B-Lfxb9r.js +1 -0
- package/example/dist/assets/Windows-GTAT3OTE-K9Pt3pUF.js +1 -0
- package/example/dist/assets/apechain-COEQ5RUI-0TDoXOYf.js +1 -0
- package/example/dist/assets/ar_AR-ZRPPM56D-d2WEfzQ_.js +1349 -0
- package/example/dist/assets/arbitrum-HW44W6XR-hPA5bMPt.js +1 -0
- package/example/dist/assets/assets-NU2OP443-COMs-Mo6.js +1 -0
- package/example/dist/assets/avalanche-MXEFEDSW-DcC5FNt3.js +1 -0
- package/example/dist/assets/base-Z4LFBE5D-DHfqMzJC.js +1 -0
- package/example/dist/assets/berachain-ZN3U5LDZ-CAvW_8ws.js +1 -0
- package/example/dist/assets/bitgetWallet-CLYTW54T-Wwn2QYd0.js +1 -0
- package/example/dist/assets/blast-46UQLYYY-BV_Xlsq4.js +1 -0
- package/example/dist/assets/bsc-RVE67I5L-DVYEF0vl.js +1 -0
- package/example/dist/assets/ccip-BhIcA6Sl.js +1 -0
- package/example/dist/assets/celo-E6XU57FO-C5IguUgF.js +1 -0
- package/example/dist/assets/coinbaseWallet-WWX6LF36-BMRj6mTC.js +1 -0
- package/example/dist/assets/connect-MR6XDLIE-BET5HMNk.js +1 -0
- package/example/dist/assets/create-X4WFHLCW-De9pC3ym.js +1 -0
- package/example/dist/assets/cronos-ROYR77VZ-Prn3LRPZ.js +1 -0
- package/example/dist/assets/de_DE-GYZFZXWH-CYZf24IR.js +1349 -0
- package/example/dist/assets/degen-7ROC3GCY-9HqAkHtZ.js +1 -0
- package/example/dist/assets/es_419-OGVOQEFZ-D6BJPTeQ.js +1349 -0
- package/example/dist/assets/ethereum-RFBAMUVK-WsW8NXqo.js +1 -0
- package/example/dist/assets/events-CkdpRqBF.js +1 -0
- package/example/dist/assets/flow-NBCRNYVF-D2XasjKk.js +1 -0
- package/example/dist/assets/fr_FR-Q5QBQBX2-lQoTmpTH.js +1349 -0
- package/example/dist/assets/gnosis-Y56LN66M-D4_J-ZQH.js +1 -0
- package/example/dist/assets/gravity-LMEBVSFN-DLxWpxhy.js +1 -0
- package/example/dist/assets/hardhat-NEEC6JX7-DzuWQYyS.js +1 -0
- package/example/dist/assets/hi_IN-7I7LRHGW-CTQjmeYe.js +1349 -0
- package/example/dist/assets/hooks.module-C5ONEBEq.js +1 -0
- package/example/dist/assets/hyperevm-J6CONVCX-C6oeYIAP.js +1 -0
- package/example/dist/assets/id_ID-ZMGZ2JFV-CgKQKAmU.js +1349 -0
- package/example/dist/assets/index-BG5XIZpE.js +3 -0
- package/example/dist/assets/index-BsarjAeg.js +1 -0
- package/example/dist/assets/index-DK7UFFe7.js +7 -0
- package/example/dist/assets/index-DPb8sz1C.js +54 -0
- package/example/dist/assets/index-JbpWt42F.js +1 -0
- package/example/dist/assets/index-YsGNa18R.css +1 -0
- package/example/dist/assets/index-kAjO6hfy.js +2 -0
- package/example/dist/assets/index-qgo91dsq.js +3942 -0
- package/example/dist/assets/index.es-D44wzsQe.js +71 -0
- package/example/dist/assets/injectedWallet-H7LYKTQS-CAHJNGc-.js +1 -0
- package/example/dist/assets/ink-4U4ZVNAB-AlM1MLfQ.js +1 -0
- package/example/dist/assets/ja_JP-NYBCHQTZ-CMaBl8Za.js +1349 -0
- package/example/dist/assets/kaia-A33DVQBT-Fgclbhio.js +1 -0
- package/example/dist/assets/ko_KR-67WE736M-DHWhIjcm.js +1349 -0
- package/example/dist/assets/linea-IALBSJQC-Cmyd7vgA.js +1 -0
- package/example/dist/assets/login-CWDTIDNK-DhDUYE4b.js +1 -0
- package/example/dist/assets/manta-5V6W5D7G-BnjsGzeJ.js +1 -0
- package/example/dist/assets/mantle-KBL3OIYT-DIpe0poV.js +1 -0
- package/example/dist/assets/metaMaskWallet-YFHEHW7V-BggUDXad.js +1 -0
- package/example/dist/assets/metaMaskWallet-YFHEHW7V-DBxkXEyI.js +1 -0
- package/example/dist/assets/ms_MY-65AJIBUS-BLlUrxe6.js +1349 -0
- package/example/dist/assets/okxWallet-GJMKZIND-Ctk5JsJ6.js +1 -0
- package/example/dist/assets/optimism-YWJ3IQHA-DYER-OR5.js +1 -0
- package/example/dist/assets/polygon-WWEUOMKW-CNBYSB1T.js +1 -0
- package/example/dist/assets/pt_BR-DMJANC65-DMs4DrlC.js +1349 -0
- package/example/dist/assets/rainbowWallet-2SR6TVBF-kimcGeuf.js +1 -0
- package/example/dist/assets/refresh-HJGJRASX-D0rkc63_.js +1 -0
- package/example/dist/assets/ronin-PNHX5V6H-BS-WPXjQ.js +1 -0
- package/example/dist/assets/ru_RU-WER7RQ6A-DsJK55uv.js +1349 -0
- package/example/dist/assets/safeWallet-VUYZPLY4-CXnodgMs.js +1 -0
- package/example/dist/assets/sanko-RHQYXGM5-OX010CbN.js +1 -0
- package/example/dist/assets/scan-DEOT2M37-1-mJ5OyF.js +1 -0
- package/example/dist/assets/scroll-MCKFTBRS-C2gqZSab.js +1 -0
- package/example/dist/assets/sign-A7IJEUT5-CGsRnPrd.js +1 -0
- package/example/dist/assets/th_TH-JOSHEZ6D-Cp87mIRZ.js +1349 -0
- package/example/dist/assets/tr_TR-EAMG2YPO-C52_xfsf.js +1349 -0
- package/example/dist/assets/uk_UA-GO2TRVWA-C1C1400t.js +1349 -0
- package/example/dist/assets/unichain-OQ3BZUDH-CyMLDmFg.js +1 -0
- package/example/dist/assets/vi_VN-5HLLSOJA-Dj7ferOp.js +1349 -0
- package/example/dist/assets/walletConnectWallet-FNSU4KNU-B0ci71fU.js +1 -0
- package/example/dist/assets/walletConnectWallet-FNSU4KNU-CBpCuHbd.js +1 -0
- package/example/dist/assets/xdc-X7V4QFNF-CSGs0o6M.js +1 -0
- package/example/dist/assets/zetachain-BMJKVYBN-IK2CZBr3.js +1 -0
- package/example/dist/assets/zh_CN-THPIFVWJ-Cbp71xMR.js +1349 -0
- package/example/dist/assets/zh_HK-R7XP4TGF-CyJtfKGw.js +1349 -0
- package/example/dist/assets/zh_TW-F5LD752V-AHFgsYw-.js +1349 -0
- package/example/dist/assets/zksync-UWUXFL74-Bt0brpXu.js +1 -0
- package/example/dist/assets/zora-YZH32HP3-CY3tp3EJ.js +1 -0
- package/example/dist/index.html +2 -2
- package/example/package.json +3 -1
- package/example/src/App.tsx +30 -7
- package/example/src/pages/Contact/index.tsx +90 -0
- package/example/src/pages/UI/components/Tabs.tsx +18 -0
- package/example/src/pages/UI/index.tsx +2 -0
- package/example/src/pages/User/index.tsx +7 -1
- package/package.json +5 -1
- package/dist/chunk-4A2YPGO3.mjs +0 -97
- package/dist/chunk-4A2YPGO3.mjs.map +0 -1
- package/dist/chunk-FB5MHLWX.mjs.map +0 -1
- package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-MX7N57AH.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/index.mjs
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
api_exports
|
|
3
|
-
} from "./chunk-4A2YPGO3.mjs";
|
|
4
1
|
import {
|
|
5
2
|
MatchProvider,
|
|
6
3
|
ModalProvider,
|
|
7
4
|
ToastProvider,
|
|
5
|
+
api_exports,
|
|
8
6
|
components_exports,
|
|
9
7
|
hooks_exports,
|
|
10
8
|
useMatch
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CLMSEFOV.mjs";
|
|
12
10
|
import {
|
|
13
11
|
types_exports
|
|
14
12
|
} from "./chunk-HBOS3RBL.mjs";
|
|
15
13
|
import "./chunk-UA6XHZHX.mjs";
|
|
16
14
|
import {
|
|
17
15
|
ui_exports
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import
|
|
16
|
+
} from "./chunk-X5HGL3ZX.mjs";
|
|
17
|
+
import "./chunk-IZOOVZAD.mjs";
|
|
18
|
+
import {
|
|
19
|
+
icon_exports
|
|
20
|
+
} from "./chunk-FKXS2XRG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
chains_exports
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3CR66BEX.mjs";
|
|
24
|
+
import "./chunk-JX73EY6V.mjs";
|
|
24
25
|
import "./chunk-J5LGTIGS.mjs";
|
|
25
26
|
export {
|
|
26
27
|
api_exports as Api,
|
|
27
28
|
chains_exports as Chains,
|
|
28
29
|
components_exports as Components,
|
|
29
30
|
hooks_exports as Hooks,
|
|
31
|
+
icon_exports as Icon,
|
|
30
32
|
MatchProvider,
|
|
31
33
|
ModalProvider,
|
|
32
34
|
ToastProvider,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const isSuccess: (res: {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
interface MyResponseType<T> {
|
|
7
|
+
code: number;
|
|
8
|
+
data: T;
|
|
9
|
+
message: string;
|
|
10
|
+
success: boolean;
|
|
11
|
+
fail: boolean;
|
|
12
|
+
result: T;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { type MyResponseType as M, isSuccess as i };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const isSuccess: (res: {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
interface MyResponseType<T> {
|
|
7
|
+
code: number;
|
|
8
|
+
data: T;
|
|
9
|
+
message: string;
|
|
10
|
+
success: boolean;
|
|
11
|
+
fail: boolean;
|
|
12
|
+
result: T;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { type MyResponseType as M, isSuccess as i };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Address,
|
|
1
|
+
export { A as Address, m as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, j as CEXType, l as ChainType, C as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, b as LoginBoxProps, k as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, p as UserAssetToken, U as UserChainType, o as UserImportTokenType, Z as UserMessageType, _ as UserPopoverProps, $ as UserTransactionNextPageParams, a0 as UserTransactionRecordType, n as UserTransactionType, g as WalletAssetMergeType, a1 as WalletAssetType, a2 as WalletChainType, W as WalletConfigType, a3 as WalletNFTType, a4 as WalletPanelProps, a5 as WalletReceiveMessageType, a6 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-mRkAnXBf.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, m as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, j as CEXType, l as ChainType, C as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, b as LoginBoxProps, k as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, p as UserAssetToken, U as UserChainType, o as UserImportTokenType, Z as UserMessageType, _ as UserPopoverProps, $ as UserTransactionNextPageParams, a0 as UserTransactionRecordType, n as UserTransactionType, g as WalletAssetMergeType, a1 as WalletAssetType, a2 as WalletChainType, W as WalletConfigType, a3 as WalletNFTType, a4 as WalletPanelProps, a5 as WalletReceiveMessageType, a6 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-mRkAnXBf.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-query/src/types';
|
|
@@ -80,6 +80,7 @@ type OverviewInfo = {
|
|
|
80
80
|
max_level: number;
|
|
81
81
|
user_level: number;
|
|
82
82
|
recover_type: `${RecoveryType}`;
|
|
83
|
+
user_fried_total: number;
|
|
83
84
|
};
|
|
84
85
|
type AnyObject = {
|
|
85
86
|
[key: string]: any;
|
|
@@ -418,5 +419,20 @@ type useMatchWalletAssetsProps = {
|
|
|
418
419
|
importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
|
|
419
420
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
420
421
|
};
|
|
422
|
+
type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
|
|
423
|
+
type ContactType = {
|
|
424
|
+
address: string;
|
|
425
|
+
avatar?: string;
|
|
426
|
+
name?: string;
|
|
427
|
+
did: string;
|
|
428
|
+
limit_id?: number;
|
|
429
|
+
};
|
|
430
|
+
type UserMessageType = {
|
|
431
|
+
message: string;
|
|
432
|
+
status: number;
|
|
433
|
+
dispatch_time: number;
|
|
434
|
+
tag: string;
|
|
435
|
+
limit_id: number;
|
|
436
|
+
};
|
|
421
437
|
|
|
422
|
-
export { type
|
|
438
|
+
export { type UserTransactionNextPageParams as $, type Address as A, type ButtonProps as B, type ContactType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps as Y, type UserMessageType as Z, type UserPopoverProps as _, type IEnvConfigType as a, type UserTransactionRecordType as a0, type WalletAssetType as a1, type WalletChainType as a2, type WalletNFTType as a3, type WalletPanelProps as a4, type WalletReceiveMessageType as a5, type WalletStatusType as a6, 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 CEXType as j, type LoginMethodType as k, ChainType as l, type AnyObject as m, type UserTransactionType as n, type UserImportTokenType as o, type UserAssetToken as p, type AppConfigType as q, type AuthParams as r, type BindInfoType as s, type BindItemType as t, type useMatchWalletAssetsProps as u, type BindWalletParam as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq as z };
|
|
@@ -80,6 +80,7 @@ type OverviewInfo = {
|
|
|
80
80
|
max_level: number;
|
|
81
81
|
user_level: number;
|
|
82
82
|
recover_type: `${RecoveryType}`;
|
|
83
|
+
user_fried_total: number;
|
|
83
84
|
};
|
|
84
85
|
type AnyObject = {
|
|
85
86
|
[key: string]: any;
|
|
@@ -418,5 +419,20 @@ type useMatchWalletAssetsProps = {
|
|
|
418
419
|
importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
|
|
419
420
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
420
421
|
};
|
|
422
|
+
type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
|
|
423
|
+
type ContactType = {
|
|
424
|
+
address: string;
|
|
425
|
+
avatar?: string;
|
|
426
|
+
name?: string;
|
|
427
|
+
did: string;
|
|
428
|
+
limit_id?: number;
|
|
429
|
+
};
|
|
430
|
+
type UserMessageType = {
|
|
431
|
+
message: string;
|
|
432
|
+
status: number;
|
|
433
|
+
dispatch_time: number;
|
|
434
|
+
tag: string;
|
|
435
|
+
limit_id: number;
|
|
436
|
+
};
|
|
421
437
|
|
|
422
|
-
export { type
|
|
438
|
+
export { type UserTransactionNextPageParams as $, type Address as A, type ButtonProps as B, type ContactType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps as Y, type UserMessageType as Z, type UserPopoverProps as _, type IEnvConfigType as a, type UserTransactionRecordType as a0, type WalletAssetType as a1, type WalletChainType as a2, type WalletNFTType as a3, type WalletPanelProps as a4, type WalletReceiveMessageType as a5, type WalletStatusType as a6, 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 CEXType as j, type LoginMethodType as k, ChainType as l, type AnyObject as m, type UserTransactionType as n, type UserImportTokenType as o, type UserAssetToken as p, type AppConfigType as q, type AuthParams as r, type BindInfoType as s, type BindItemType as t, type useMatchWalletAssetsProps as u, type BindWalletParam as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq 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-BxHKPC5n.mjs';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-CA7lhjpa.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-mRkAnXBf.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-DKV8v6s_.js';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from '../index-CRoZ0p2b.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-mRkAnXBf.js';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui/index.js
CHANGED
|
@@ -32,7 +32,9 @@ __export(ui_exports, {
|
|
|
32
32
|
Overlay: () => Overlay,
|
|
33
33
|
Popover: () => Popover,
|
|
34
34
|
Radio: () => Radio,
|
|
35
|
-
|
|
35
|
+
Skeleton: () => Skeleton_default,
|
|
36
|
+
Switch: () => Switch,
|
|
37
|
+
Tabs: () => Tabs
|
|
36
38
|
});
|
|
37
39
|
module.exports = __toCommonJS(ui_exports);
|
|
38
40
|
|
|
@@ -267,8 +269,14 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
|
267
269
|
// src/assets/icon/ArrowSendIcon.tsx
|
|
268
270
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
269
271
|
|
|
270
|
-
// src/
|
|
272
|
+
// src/assets/icon/PhantomIcon.tsx
|
|
271
273
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
274
|
+
|
|
275
|
+
// src/assets/icon/MoreIcon.tsx
|
|
276
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
277
|
+
|
|
278
|
+
// src/ui/Button/index.tsx
|
|
279
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
272
280
|
function Button({
|
|
273
281
|
size = "df",
|
|
274
282
|
disabled = false,
|
|
@@ -287,7 +295,7 @@ function Button({
|
|
|
287
295
|
onClick && onClick();
|
|
288
296
|
}
|
|
289
297
|
};
|
|
290
|
-
return /* @__PURE__ */ (0,
|
|
298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
291
299
|
"button",
|
|
292
300
|
{
|
|
293
301
|
type,
|
|
@@ -297,14 +305,14 @@ function Button({
|
|
|
297
305
|
...style
|
|
298
306
|
},
|
|
299
307
|
onClick: onAction,
|
|
300
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
308
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
|
|
301
309
|
}
|
|
302
310
|
);
|
|
303
311
|
}
|
|
304
312
|
|
|
305
313
|
// src/ui/Overlay/index.tsx
|
|
306
314
|
var import_react = require("react");
|
|
307
|
-
var
|
|
315
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
308
316
|
function Overlay({
|
|
309
317
|
isOpen = false,
|
|
310
318
|
children,
|
|
@@ -320,7 +328,7 @@ function Overlay({
|
|
|
320
328
|
document.body.style.overflow = "";
|
|
321
329
|
};
|
|
322
330
|
}, [isOpen]);
|
|
323
|
-
return isOpen ? /* @__PURE__ */ (0,
|
|
331
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
324
332
|
"div",
|
|
325
333
|
{
|
|
326
334
|
className: "matchid-overlay",
|
|
@@ -329,11 +337,11 @@ function Overlay({
|
|
|
329
337
|
},
|
|
330
338
|
children
|
|
331
339
|
}
|
|
332
|
-
) : /* @__PURE__ */ (0,
|
|
340
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, {});
|
|
333
341
|
}
|
|
334
342
|
|
|
335
343
|
// src/ui/Drawer/index.tsx
|
|
336
|
-
var
|
|
344
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
337
345
|
function Drawer({
|
|
338
346
|
children,
|
|
339
347
|
showClose = true,
|
|
@@ -344,22 +352,22 @@ function Drawer({
|
|
|
344
352
|
onBack
|
|
345
353
|
}) {
|
|
346
354
|
if (!isOpen) {
|
|
347
|
-
return /* @__PURE__ */ (0,
|
|
355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, {});
|
|
348
356
|
}
|
|
349
|
-
return /* @__PURE__ */ (0,
|
|
350
|
-
/* @__PURE__ */ (0,
|
|
351
|
-
/* @__PURE__ */ (0,
|
|
352
|
-
onBack && /* @__PURE__ */ (0,
|
|
357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "matchid-drawer", children: [
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
|
|
359
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
|
|
360
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
|
|
353
361
|
title
|
|
354
362
|
] }),
|
|
355
|
-
showClose && /* @__PURE__ */ (0,
|
|
363
|
+
showClose && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
|
|
356
364
|
] }),
|
|
357
365
|
children
|
|
358
366
|
] }) });
|
|
359
367
|
}
|
|
360
368
|
|
|
361
369
|
// src/ui/Field/index.tsx
|
|
362
|
-
var
|
|
370
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
363
371
|
function Field({
|
|
364
372
|
label,
|
|
365
373
|
children,
|
|
@@ -367,13 +375,13 @@ function Field({
|
|
|
367
375
|
required,
|
|
368
376
|
className = ""
|
|
369
377
|
}) {
|
|
370
|
-
return /* @__PURE__ */ (0,
|
|
371
|
-
/* @__PURE__ */ (0,
|
|
372
|
-
required && /* @__PURE__ */ (0,
|
|
378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
|
|
379
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-field-label", children: [
|
|
380
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "matchid-field-required", children: "*" }),
|
|
373
381
|
label
|
|
374
382
|
] }),
|
|
375
383
|
children,
|
|
376
|
-
error && /* @__PURE__ */ (0,
|
|
384
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-field-error", children: error })
|
|
377
385
|
] });
|
|
378
386
|
}
|
|
379
387
|
|
|
@@ -397,7 +405,7 @@ function useDownMd() {
|
|
|
397
405
|
}
|
|
398
406
|
|
|
399
407
|
// src/ui/Modal/index.tsx
|
|
400
|
-
var
|
|
408
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
401
409
|
function Modal({
|
|
402
410
|
children,
|
|
403
411
|
isOpen,
|
|
@@ -405,10 +413,10 @@ function Modal({
|
|
|
405
413
|
zIndex = 100,
|
|
406
414
|
className = ""
|
|
407
415
|
}) {
|
|
408
|
-
return /* @__PURE__ */ (0,
|
|
416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal ${className}`, style: {
|
|
409
417
|
width
|
|
410
418
|
}, children: [
|
|
411
|
-
/* @__PURE__ */ (0,
|
|
419
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-modal-mobile-header" }),
|
|
412
420
|
children
|
|
413
421
|
] }) });
|
|
414
422
|
}
|
|
@@ -422,20 +430,20 @@ function ModalWithHeader({
|
|
|
422
430
|
...props
|
|
423
431
|
}) {
|
|
424
432
|
const isDownMd = useDownMd();
|
|
425
|
-
return /* @__PURE__ */ (0,
|
|
426
|
-
/* @__PURE__ */ (0,
|
|
427
|
-
/* @__PURE__ */ (0,
|
|
428
|
-
onBack && /* @__PURE__ */ (0,
|
|
429
|
-
/* @__PURE__ */ (0,
|
|
433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Modal, { ...props, children: [
|
|
434
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
|
|
435
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-modal-header-content", children: [
|
|
436
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
|
|
437
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "matchid-modal-header-title", children: title })
|
|
430
438
|
] }),
|
|
431
|
-
onClose && /* @__PURE__ */ (0,
|
|
439
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
|
|
432
440
|
] }),
|
|
433
441
|
children
|
|
434
442
|
] });
|
|
435
443
|
}
|
|
436
444
|
|
|
437
445
|
// src/ui/ModalDrawer/index.tsx
|
|
438
|
-
var
|
|
446
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
439
447
|
function ModalDrawer({
|
|
440
448
|
title,
|
|
441
449
|
drawerTitleVisible = true,
|
|
@@ -443,9 +451,9 @@ function ModalDrawer({
|
|
|
443
451
|
}) {
|
|
444
452
|
const isDownMd = useDownMd();
|
|
445
453
|
if (isDownMd) {
|
|
446
|
-
return /* @__PURE__ */ (0,
|
|
454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ModalWithHeader, { ...props, title });
|
|
447
455
|
}
|
|
448
|
-
return /* @__PURE__ */ (0,
|
|
456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
|
|
449
457
|
}
|
|
450
458
|
|
|
451
459
|
// src/assets/img/confirm.gif
|
|
@@ -517,7 +525,7 @@ function useHash({
|
|
|
517
525
|
}
|
|
518
526
|
|
|
519
527
|
// src/ui/HashPanel/index.tsx
|
|
520
|
-
var
|
|
528
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
521
529
|
function HashPanel({
|
|
522
530
|
hash,
|
|
523
531
|
chain,
|
|
@@ -576,14 +584,14 @@ function HashPanel({
|
|
|
576
584
|
}
|
|
577
585
|
}, [hashQuery.data]);
|
|
578
586
|
const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
|
|
579
|
-
return /* @__PURE__ */ (0,
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
580
588
|
ModalDrawer,
|
|
581
589
|
{
|
|
582
590
|
isOpen,
|
|
583
591
|
showClose: true,
|
|
584
592
|
onClose,
|
|
585
593
|
zIndex,
|
|
586
|
-
title: /* @__PURE__ */ (0,
|
|
594
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
587
595
|
"div",
|
|
588
596
|
{
|
|
589
597
|
className: "matchid-hashpanel-header",
|
|
@@ -593,29 +601,29 @@ function HashPanel({
|
|
|
593
601
|
children: statusValue.text
|
|
594
602
|
}
|
|
595
603
|
),
|
|
596
|
-
children: /* @__PURE__ */ (0,
|
|
597
|
-
/* @__PURE__ */ (0,
|
|
598
|
-
/* @__PURE__ */ (0,
|
|
604
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-box", children: [
|
|
605
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-content", children: [
|
|
606
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `matchid-hashpanel-status`, style: {
|
|
599
607
|
color: statusValue.color
|
|
600
608
|
}, children: statusValue.text }),
|
|
601
|
-
/* @__PURE__ */ (0,
|
|
602
|
-
hash && /* @__PURE__ */ (0,
|
|
609
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
|
|
610
|
+
hash && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
|
|
603
611
|
"Hash:",
|
|
604
|
-
/* @__PURE__ */ (0,
|
|
612
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("a", { href: link, target: "_blank", children: hash })
|
|
605
613
|
] })
|
|
606
614
|
] }),
|
|
607
|
-
/* @__PURE__ */ (0,
|
|
615
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
|
|
608
616
|
] })
|
|
609
617
|
}
|
|
610
618
|
);
|
|
611
619
|
}
|
|
612
620
|
function HashPanel_default(props) {
|
|
613
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
621
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(HashPanel, { ...props });
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
// src/ui/Input/index.tsx
|
|
617
625
|
var import_react4 = require("react");
|
|
618
|
-
var
|
|
626
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
619
627
|
function Input({
|
|
620
628
|
onChange,
|
|
621
629
|
type,
|
|
@@ -625,17 +633,17 @@ function Input({
|
|
|
625
633
|
}) {
|
|
626
634
|
const [inputType, setInputType] = (0, import_react4.useState)(type);
|
|
627
635
|
const isDownMd = useDownMd();
|
|
628
|
-
return /* @__PURE__ */ (0,
|
|
636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
629
637
|
"div",
|
|
630
638
|
{
|
|
631
639
|
className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
|
|
632
640
|
children: [
|
|
633
|
-
/* @__PURE__ */ (0,
|
|
634
|
-
props.value && props.value.length > 0 && /* @__PURE__ */ (0,
|
|
641
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
|
|
642
|
+
props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
|
|
635
643
|
if (onChange) {
|
|
636
644
|
onChange({ target: { value: "" } });
|
|
637
645
|
}
|
|
638
|
-
}, children: /* @__PURE__ */ (0,
|
|
646
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
639
647
|
DeleteRoundIcon,
|
|
640
648
|
{
|
|
641
649
|
height: isDownMd ? 16 : 21,
|
|
@@ -643,9 +651,9 @@ function Input({
|
|
|
643
651
|
color: "var(--matchid-input-delete-icon-color)"
|
|
644
652
|
}
|
|
645
653
|
) }),
|
|
646
|
-
type === "password" && /* @__PURE__ */ (0,
|
|
654
|
+
type === "password" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
|
|
647
655
|
setInputType(inputType === "password" ? "text" : "password");
|
|
648
|
-
}, children: inputType === "password" ? /* @__PURE__ */ (0,
|
|
656
|
+
}, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
|
|
649
657
|
after
|
|
650
658
|
]
|
|
651
659
|
}
|
|
@@ -654,7 +662,7 @@ function Input({
|
|
|
654
662
|
|
|
655
663
|
// src/ui/Popover/index.tsx
|
|
656
664
|
var import_react5 = require("react");
|
|
657
|
-
var
|
|
665
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
658
666
|
function Popover({
|
|
659
667
|
children,
|
|
660
668
|
content,
|
|
@@ -664,7 +672,7 @@ function Popover({
|
|
|
664
672
|
gap = "20px"
|
|
665
673
|
}) {
|
|
666
674
|
const [active, setActive] = (0, import_react5.useState)(false);
|
|
667
|
-
return children && /* @__PURE__ */ (0,
|
|
675
|
+
return children && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
668
676
|
"div",
|
|
669
677
|
{
|
|
670
678
|
onClick: () => {
|
|
@@ -675,16 +683,16 @@ function Popover({
|
|
|
675
683
|
className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
|
|
676
684
|
children: [
|
|
677
685
|
children,
|
|
678
|
-
/* @__PURE__ */ (0,
|
|
686
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
|
|
679
687
|
paddingTop: gap
|
|
680
|
-
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0,
|
|
688
|
+
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `matchid-popover-content`, children: content }) })
|
|
681
689
|
]
|
|
682
690
|
}
|
|
683
691
|
);
|
|
684
692
|
}
|
|
685
693
|
|
|
686
694
|
// src/ui/Switch/index.tsx
|
|
687
|
-
var
|
|
695
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
688
696
|
function Switch({
|
|
689
697
|
size = "default",
|
|
690
698
|
checked = false,
|
|
@@ -699,12 +707,12 @@ function Switch({
|
|
|
699
707
|
onChange && onChange(!checked);
|
|
700
708
|
}
|
|
701
709
|
};
|
|
702
|
-
return /* @__PURE__ */ (0,
|
|
710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-switch-ball" }) });
|
|
703
711
|
}
|
|
704
712
|
|
|
705
713
|
// src/ui/AlphaAvatar/index.tsx
|
|
706
714
|
var import_react6 = require("react");
|
|
707
|
-
var
|
|
715
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
708
716
|
function AlphaAvatar({
|
|
709
717
|
name,
|
|
710
718
|
size = "default",
|
|
@@ -721,7 +729,7 @@ function AlphaAvatar({
|
|
|
721
729
|
return "";
|
|
722
730
|
}, [name]);
|
|
723
731
|
const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
|
|
724
|
-
return /* @__PURE__ */ (0,
|
|
732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
725
733
|
width: numberSize,
|
|
726
734
|
height: numberSize,
|
|
727
735
|
fontSize: Math.ceil(numberSize / 2),
|
|
@@ -730,7 +738,7 @@ function AlphaAvatar({
|
|
|
730
738
|
}
|
|
731
739
|
|
|
732
740
|
// src/ui/Radio/index.tsx
|
|
733
|
-
var
|
|
741
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
734
742
|
function Radio({
|
|
735
743
|
checked = false,
|
|
736
744
|
onChange,
|
|
@@ -739,17 +747,55 @@ function Radio({
|
|
|
739
747
|
className = "",
|
|
740
748
|
style = {}
|
|
741
749
|
}) {
|
|
742
|
-
return /* @__PURE__ */ (0,
|
|
750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
|
|
743
751
|
width: size,
|
|
744
752
|
height: size,
|
|
745
753
|
...style,
|
|
746
754
|
// @ts-ignore
|
|
747
755
|
"--matchid-radio-checked": color
|
|
748
|
-
}, children: checked && /* @__PURE__ */ (0,
|
|
756
|
+
}, children: checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `matchid-radio-content`, style: {
|
|
749
757
|
width: Math.floor(size * 0.7),
|
|
750
758
|
height: Math.floor(size * 0.7)
|
|
751
759
|
} }) });
|
|
752
760
|
}
|
|
761
|
+
|
|
762
|
+
// src/ui/Skeleton/index.tsx
|
|
763
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
764
|
+
var Skeleton = ({
|
|
765
|
+
style = {},
|
|
766
|
+
className = "",
|
|
767
|
+
width = 40,
|
|
768
|
+
height = 40,
|
|
769
|
+
radius = 5,
|
|
770
|
+
loading = true,
|
|
771
|
+
children
|
|
772
|
+
}) => {
|
|
773
|
+
if (!loading) {
|
|
774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children });
|
|
775
|
+
}
|
|
776
|
+
const skeletonStyle = {
|
|
777
|
+
width,
|
|
778
|
+
height,
|
|
779
|
+
borderRadius: radius,
|
|
780
|
+
...style
|
|
781
|
+
};
|
|
782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
783
|
+
"div",
|
|
784
|
+
{
|
|
785
|
+
className: "matchid-skeleton " + className,
|
|
786
|
+
style: skeletonStyle
|
|
787
|
+
}
|
|
788
|
+
);
|
|
789
|
+
};
|
|
790
|
+
var Skeleton_default = Skeleton;
|
|
791
|
+
|
|
792
|
+
// src/ui/Tabs/index.tsx
|
|
793
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
794
|
+
function Tabs(props) {
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
|
|
796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
|
|
797
|
+
}) });
|
|
798
|
+
}
|
|
753
799
|
// Annotate the CommonJS export names for ESM import in node:
|
|
754
800
|
0 && (module.exports = {
|
|
755
801
|
AlphaAvatar,
|
|
@@ -764,6 +810,8 @@ function Radio({
|
|
|
764
810
|
Overlay,
|
|
765
811
|
Popover,
|
|
766
812
|
Radio,
|
|
767
|
-
|
|
813
|
+
Skeleton,
|
|
814
|
+
Switch,
|
|
815
|
+
Tabs
|
|
768
816
|
});
|
|
769
817
|
//# sourceMappingURL=index.js.map
|