@matchain/matchid-sdk-react 0.1.46-alpha.9 → 0.1.47

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 (85) hide show
  1. package/dist/assets/icon/index.d.mts +2 -4
  2. package/dist/assets/icon/index.d.ts +2 -4
  3. package/dist/assets/icon/index.js +0 -27
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +1 -3
  6. package/dist/chunk-A3XSTHEE.mjs +93 -0
  7. package/dist/chunk-A3XSTHEE.mjs.map +1 -0
  8. package/dist/{chunk-A5D3NKTK.mjs → chunk-DPXMCLYK.mjs} +3 -29
  9. package/dist/chunk-DPXMCLYK.mjs.map +1 -0
  10. package/dist/{chunk-UA6XHZHX.mjs → chunk-SQIJR7RA.mjs} +14 -2
  11. package/dist/chunk-SQIJR7RA.mjs.map +1 -0
  12. package/dist/{chunk-OBHKOOCD.mjs → chunk-TOUC33US.mjs} +4618 -142
  13. package/dist/chunk-TOUC33US.mjs.map +1 -0
  14. package/dist/components/index.d.mts +3 -3
  15. package/dist/components/index.d.ts +3 -3
  16. package/dist/components/index.js +812 -387
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/index.mjs +12 -12
  19. package/dist/hooks/api/index.d.mts +2 -2
  20. package/dist/hooks/api/index.d.ts +2 -2
  21. package/dist/hooks/api/index.js +239 -342
  22. package/dist/hooks/api/index.js.map +1 -1
  23. package/dist/hooks/api/index.mjs +6 -12
  24. package/dist/hooks/index.d.mts +2 -2
  25. package/dist/hooks/index.d.ts +2 -2
  26. package/dist/hooks/index.js +498 -398
  27. package/dist/hooks/index.js.map +1 -1
  28. package/dist/hooks/index.mjs +4 -6
  29. package/dist/{index-DYb6srm9.d.ts → index-B0VpxAI2.d.mts} +33 -5
  30. package/dist/{index-C9EBucNb.d.ts → index-CFWR1boZ.d.ts} +24 -2
  31. package/dist/{index-BQ4znGiW.d.ts → index-CTSg5TRS.d.ts} +2 -9
  32. package/dist/index-CWYElOA2.d.mts +65 -0
  33. package/dist/index-CoTirILQ.d.ts +65 -0
  34. package/dist/{index-DrzL-Ogw.d.mts → index-D2pNP7Bz.d.mts} +24 -2
  35. package/dist/{index-DuBywj_6.d.mts → index-DR2JTaoi.d.mts} +2 -9
  36. package/dist/{index-BD6sPfI_.d.mts → index-DVlCrOjr.d.ts} +33 -5
  37. package/dist/index.css +1 -106
  38. package/dist/index.d.mts +6 -8
  39. package/dist/index.d.ts +6 -8
  40. package/dist/index.js +2333 -2208
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.mjs +6 -12
  43. package/dist/types/index.d.mts +1 -1
  44. package/dist/types/index.d.ts +1 -1
  45. package/dist/types/index.mjs +1 -2
  46. package/dist/{types-BvsN5jj9.d.mts → types-CRumDe2M.d.mts} +1 -109
  47. package/dist/{types-BvsN5jj9.d.ts → types-CRumDe2M.d.ts} +1 -109
  48. package/example/src/App.tsx +0 -7
  49. package/example/src/config/chains/matchMain.ts +3 -2
  50. package/example/src/pages/User/components/BindListModal.tsx +1 -1
  51. package/example/src/pages/User/components/PohListModal.tsx +1 -1
  52. package/example/src/pages/User/index.tsx +13 -1
  53. package/example/src/pages/{Wallet/index.tsx → Wallet.tsx} +1 -27
  54. package/package.json +1 -5
  55. package/dist/chunk-A5D3NKTK.mjs.map +0 -1
  56. package/dist/chunk-E4GTBGEE.mjs +0 -4241
  57. package/dist/chunk-E4GTBGEE.mjs.map +0 -1
  58. package/dist/chunk-FFTS42UP.mjs +0 -112
  59. package/dist/chunk-FFTS42UP.mjs.map +0 -1
  60. package/dist/chunk-HBOS3RBL.mjs +0 -19
  61. package/dist/chunk-HBOS3RBL.mjs.map +0 -1
  62. package/dist/chunk-OBHKOOCD.mjs.map +0 -1
  63. package/dist/chunk-UA6XHZHX.mjs.map +0 -1
  64. package/dist/chunk-XKPX224V.mjs +0 -168
  65. package/dist/chunk-XKPX224V.mjs.map +0 -1
  66. package/dist/index-BEANfTWl.d.mts +0 -57
  67. package/dist/index-BhavUO9H.d.ts +0 -26
  68. package/dist/index-CgwBZE9m.d.ts +0 -119
  69. package/dist/index-DdqWjOlR.d.ts +0 -57
  70. package/dist/index-IXJvjOKV.d.mts +0 -119
  71. package/dist/index-sdb-MpAt.d.mts +0 -26
  72. package/dist/ui/index.d.mts +0 -6
  73. package/dist/ui/index.d.ts +0 -6
  74. package/dist/ui/index.js +0 -724
  75. package/dist/ui/index.js.map +0 -1
  76. package/dist/ui/index.mjs +0 -35
  77. package/dist/ui/index.mjs.map +0 -1
  78. package/example/src/pages/UI/components/AlphaAvatar.tsx +0 -11
  79. package/example/src/pages/UI/components/Radio.tsx +0 -15
  80. package/example/src/pages/UI/components/Switch.tsx +0 -13
  81. package/example/src/pages/UI/index.tsx +0 -11
  82. package/example/src/pages/Wallet/components/AssetListModal.tsx +0 -15
  83. package/example/src/pages/Wallet/components/ChainListModal.tsx +0 -11
  84. package/example/src/pages/Wallet/components/ImportTokenListModal.tsx +0 -15
  85. /package/example/src/{components → pages/User/components}/QueryDisplay.tsx +0 -0
@@ -1,14 +1,12 @@
1
1
  import {
2
2
  useCopyClipboard,
3
+ useLayout_exports,
3
4
  useMatchEvents,
4
5
  useUserInfo,
5
6
  useWallet
6
- } from "../chunk-E4GTBGEE.mjs";
7
- import "../chunk-UA6XHZHX.mjs";
8
- import {
9
- useLayout_exports
10
- } from "../chunk-OBHKOOCD.mjs";
11
- import "../chunk-A5D3NKTK.mjs";
7
+ } from "../chunk-TOUC33US.mjs";
8
+ import "../chunk-SQIJR7RA.mjs";
9
+ import "../chunk-DPXMCLYK.mjs";
12
10
  import "../chunk-J5LGTIGS.mjs";
13
11
  export {
14
12
  useCopyClipboard,
@@ -1,10 +1,26 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps } from './types-BvsN5jj9.js';
3
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BhavUO9H.js';
4
- import { ReactNode } from 'react';
2
+ import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, e as WalletType, f as PopoverPositionType, g as PopoverTypeType, h as LoginPanelProps, i as LoginModalProps } from './types-CRumDe2M.mjs';
3
+ import { ReactNode, PropsWithChildren } from 'react';
4
+ import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
7
7
 
8
+ declare function Field({ label, children, error, required, className }: {
9
+ label: ReactNode;
10
+ error?: ReactNode;
11
+ required?: boolean;
12
+ className?: string;
13
+ } & PropsWithChildren): react_jsx_runtime.JSX.Element;
14
+
15
+ declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
16
+
17
+ declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
18
+
19
+ declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
20
+ declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
21
+
22
+ declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
23
+
8
24
  declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
9
25
 
10
26
  declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
@@ -26,6 +42,12 @@ declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWith
26
42
  onSuccess?: () => void;
27
43
  }): react_jsx_runtime.JSX.Element;
28
44
 
45
+ declare function PasswordModal({ title, isOpen, onSuccess, chainType, recoveryType, ...props }: ModalWithHeaderProps & {
46
+ onSuccess?: () => void;
47
+ chainType?: `${ChainType}`;
48
+ recoveryType?: `${RecoveryType}`;
49
+ }): react_jsx_runtime.JSX.Element;
50
+
29
51
  type SOLModalProps = ModalWithHeaderProps & {
30
52
  type?: 'login' | 'bind' | '';
31
53
  onSuccess?: () => void;
@@ -50,6 +72,11 @@ type BTCConnectModalProps = ModalWithHeaderProps & {
50
72
  };
51
73
  declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
52
74
 
75
+ declare function Overlay({ isOpen, children, zIndex, }: {
76
+ isOpen?: boolean;
77
+ zIndex?: number;
78
+ } & PropsWithChildren): react_jsx_runtime.JSX.Element;
79
+
53
80
  type WalletModalProps = ModalWithHeaderProps & {
54
81
  type?: 'login' | 'bind' | '';
55
82
  methods?: WalletType[];
@@ -68,6 +95,7 @@ declare const index_LoginPanel: typeof LoginPanel;
68
95
  declare const index_Modal: typeof Modal;
69
96
  declare const index_ModalWithHeader: typeof ModalWithHeader;
70
97
  declare const index_Overlay: typeof Overlay;
98
+ declare const index_PasswordModal: typeof PasswordModal;
71
99
  declare const index_Popover: typeof Popover;
72
100
  declare const index_SOLModal: typeof SOLModal;
73
101
  declare const index_TONModal: typeof TONModal;
@@ -75,7 +103,7 @@ declare const index_TRONModal: typeof TRONModal;
75
103
  declare const index_UsernameModal: typeof UsernameModal;
76
104
  declare const index_WalletModal: typeof WalletModal;
77
105
  declare namespace index {
78
- export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
106
+ export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
79
107
  }
80
108
 
81
- export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, index as i };
109
+ export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
@@ -1,7 +1,7 @@
1
- import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents } from './types-BvsN5jj9.js';
1
+ import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CRumDe2M.js';
2
2
  import * as viem from 'viem';
3
3
  import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
4
- import { C as ChainType } from './mpc-CTbBWHld.js';
4
+ import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
5
5
  import { Hash } from 'viem/types/misc';
6
6
  import { Abi } from 'abitype';
7
7
 
@@ -57,6 +57,20 @@ declare function useUserInfo(): {
57
57
 
58
58
  declare function useMatchEvents(handlers: IMatchEvents): void;
59
59
 
60
+ type initCoreType = (params: {
61
+ address: string;
62
+ did: string;
63
+ }) => Promise<void>;
64
+ type generateEmbeddedWalletsType = (params: {
65
+ chainType?: `${ChainType}`;
66
+ recoveryType?: `${RecoveryType}`;
67
+ userPasscode?: string;
68
+ }) => Promise<string>;
69
+ type recoveryEmbeddedWalletsType = (params: {
70
+ chainType?: `${ChainType}`;
71
+ recoveryType?: `${RecoveryType}`;
72
+ userPasscode?: string;
73
+ }) => Promise<void>;
60
74
  type isRecoveredType = () => Promise<boolean>;
61
75
  type signMessageType = (params: {
62
76
  message: SignableMessage;
@@ -78,6 +92,10 @@ type signTransactionType = (params: {
78
92
  };
79
93
  };
80
94
  }) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | viem.TransactionSerializedLegacy>;
95
+ type recoverAfterType = (params: {
96
+ chainType: `${ChainType}`;
97
+ handle: (resolve: (value: any) => void, reject: (reason: string) => void) => Promise<any>;
98
+ }) => Promise<any>;
81
99
  type SendTransactionReturnType = Hash;
82
100
  type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
83
101
  type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
@@ -90,11 +108,15 @@ type WriteContractReturnType = SendTransactionReturnType;
90
108
  type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
91
109
  interface UseWalletReturnType {
92
110
  walletReady: boolean;
111
+ initCore: initCoreType;
93
112
  isRecovered: isRecoveredType;
94
113
  signMessage: signMessageType;
95
114
  signTransaction: signTransactionType;
96
115
  address: string;
97
116
  evmAccount: Account | undefined;
117
+ recoverAfter: recoverAfterType;
118
+ recoveryEmbeddedWallets: recoveryEmbeddedWalletsType;
119
+ generateEmbeddedWallets: generateEmbeddedWalletsType;
98
120
  createWalletClient: (parameters: Omit<WalletClientConfig, 'account'>) => Omit<ReturnType<typeof createWalletClient>, 'sendTransaction' | 'deployContract' | 'writeContract'> & {
99
121
  sendTransaction: SendTransactionType;
100
122
  deployContract: DeployContractType;
@@ -1,5 +1,5 @@
1
1
  import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.js';
2
- import { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as MetaPageType, u as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, v as PohItemType, w as PohZkpassParams, P as PopoverPositionType, x as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, y as UserAssetToken, z as UserChainType, F as UserImportTokenType, G as UserPopoverProps, H as UserTransactionType, J as WalletAssetType, W as WalletConfigType, K as WalletPanelProps, N as WalletReceiveMessageType, c as WalletType } from './types-BvsN5jj9.js';
2
+ import { A as AnyObject, m as AppConfigType, n as BindInfoType, o as BindItemType, p as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, q as DrawerProps, E as EmailModalProps, a as IEnvConfigType, r as IEnvName, s as ILoginWalletReq, I as IMatchEvents, j as ISocialLoginMethod, t as IconProps, b as InputProps, L as LocaleType, d as LoginBoxProps, l as LoginMethodType, i as LoginModalProps, h as LoginPanelProps, u as MessageType, M as ModalProps, c as ModalWithHeaderProps, O as OtherLoginMethodType, k as OverviewInfo, v as PohItemType, w as PohZkpassParams, f as PopoverPositionType, P as PopoverProps, g as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, x as WalletPanelProps, y as WalletReceiveMessageType, e as WalletType } from './types-CRumDe2M.js';
3
3
 
4
4
  declare const index_AnyObject: typeof AnyObject;
5
5
  declare const index_AppConfigType: typeof AppConfigType;
@@ -27,7 +27,6 @@ declare const index_LoginMethodType: typeof LoginMethodType;
27
27
  declare const index_LoginModalProps: typeof LoginModalProps;
28
28
  declare const index_LoginPanelProps: typeof LoginPanelProps;
29
29
  declare const index_MessageType: typeof MessageType;
30
- declare const index_MetaPageType: typeof MetaPageType;
31
30
  declare const index_ModalProps: typeof ModalProps;
32
31
  declare const index_ModalWithHeaderProps: typeof ModalWithHeaderProps;
33
32
  declare const index_OtherLoginMethodType: typeof OtherLoginMethodType;
@@ -40,19 +39,13 @@ declare const index_PopoverTypeType: typeof PopoverTypeType;
40
39
  declare const index_RecommendLoginMethodType: typeof RecommendLoginMethodType;
41
40
  declare const index_RecoveryType: typeof RecoveryType;
42
41
  declare const index_ThemeType: typeof ThemeType;
43
- declare const index_UIProps: typeof UIProps;
44
- declare const index_UserAssetToken: typeof UserAssetToken;
45
- declare const index_UserChainType: typeof UserChainType;
46
- declare const index_UserImportTokenType: typeof UserImportTokenType;
47
42
  declare const index_UserPopoverProps: typeof UserPopoverProps;
48
- declare const index_UserTransactionType: typeof UserTransactionType;
49
- declare const index_WalletAssetType: typeof WalletAssetType;
50
43
  declare const index_WalletConfigType: typeof WalletConfigType;
51
44
  declare const index_WalletPanelProps: typeof WalletPanelProps;
52
45
  declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
53
46
  declare const index_WalletType: typeof WalletType;
54
47
  declare namespace index {
55
- export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps, index_UserTransactionType as UserTransactionType, index_WalletAssetType as WalletAssetType, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
48
+ export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UserPopoverProps as UserPopoverProps, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
56
49
  }
57
50
 
58
51
  export { index as i };
@@ -0,0 +1,65 @@
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
+ import { w as PohZkpassParams, o as BindItemType, n as BindInfoType, v as PohItemType } from './types-CRumDe2M.mjs';
4
+
5
+ interface MyResponseType<T> {
6
+ code: number;
7
+ data: T;
8
+ message: string;
9
+ success: boolean;
10
+ fail: boolean;
11
+ result: T;
12
+ }
13
+
14
+ declare const bindCexApi: (data: {
15
+ cex: string;
16
+ api_key: string;
17
+ api_secret: string;
18
+ api_passphrase?: string;
19
+ }) => Promise<MyResponseType<any>>;
20
+ declare const unBindApi: ({ type }: {
21
+ type: string;
22
+ }) => Promise<MyResponseType<any>>;
23
+ declare const unBindWalletApi: ({ address }: {
24
+ address: string;
25
+ }) => Promise<MyResponseType<any>>;
26
+ declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>;
27
+ declare const chooseIdentityApi: ({ identity }: {
28
+ identity: string;
29
+ }) => Promise<MyResponseType<any>>;
30
+ declare const mintPassportNftApi: () => Promise<MyResponseType<any>>;
31
+
32
+ declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>;
33
+ declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>;
34
+
35
+ declare const bind_bindCexApi: typeof bindCexApi;
36
+ declare const bind_unBindApi: typeof unBindApi;
37
+ declare const bind_unBindWalletApi: typeof unBindWalletApi;
38
+ declare const bind_useBindInfo: typeof useBindInfo;
39
+ declare const bind_useBindList: typeof useBindList;
40
+ declare namespace bind {
41
+ export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList };
42
+ }
43
+
44
+ declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>;
45
+
46
+ declare const poh_usePohList: typeof usePohList;
47
+ declare const poh_verifyPohApi: typeof verifyPohApi;
48
+ declare namespace poh {
49
+ export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi };
50
+ }
51
+
52
+ declare const user_chooseIdentityApi: typeof chooseIdentityApi;
53
+ declare const user_mintPassportNftApi: typeof mintPassportNftApi;
54
+ declare namespace user {
55
+ export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi };
56
+ }
57
+
58
+ declare const index_bind: typeof bind;
59
+ declare const index_poh: typeof poh;
60
+ declare const index_user: typeof user;
61
+ declare namespace index {
62
+ export { index_bind as bind, index_poh as poh, index_user as user };
63
+ }
64
+
65
+ export { bind as b, index as i, poh as p, user as u };
@@ -0,0 +1,65 @@
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
+ import { w as PohZkpassParams, o as BindItemType, n as BindInfoType, v as PohItemType } from './types-CRumDe2M.js';
4
+
5
+ interface MyResponseType<T> {
6
+ code: number;
7
+ data: T;
8
+ message: string;
9
+ success: boolean;
10
+ fail: boolean;
11
+ result: T;
12
+ }
13
+
14
+ declare const bindCexApi: (data: {
15
+ cex: string;
16
+ api_key: string;
17
+ api_secret: string;
18
+ api_passphrase?: string;
19
+ }) => Promise<MyResponseType<any>>;
20
+ declare const unBindApi: ({ type }: {
21
+ type: string;
22
+ }) => Promise<MyResponseType<any>>;
23
+ declare const unBindWalletApi: ({ address }: {
24
+ address: string;
25
+ }) => Promise<MyResponseType<any>>;
26
+ declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>;
27
+ declare const chooseIdentityApi: ({ identity }: {
28
+ identity: string;
29
+ }) => Promise<MyResponseType<any>>;
30
+ declare const mintPassportNftApi: () => Promise<MyResponseType<any>>;
31
+
32
+ declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>;
33
+ declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>;
34
+
35
+ declare const bind_bindCexApi: typeof bindCexApi;
36
+ declare const bind_unBindApi: typeof unBindApi;
37
+ declare const bind_unBindWalletApi: typeof unBindWalletApi;
38
+ declare const bind_useBindInfo: typeof useBindInfo;
39
+ declare const bind_useBindList: typeof useBindList;
40
+ declare namespace bind {
41
+ export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList };
42
+ }
43
+
44
+ declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>;
45
+
46
+ declare const poh_usePohList: typeof usePohList;
47
+ declare const poh_verifyPohApi: typeof verifyPohApi;
48
+ declare namespace poh {
49
+ export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi };
50
+ }
51
+
52
+ declare const user_chooseIdentityApi: typeof chooseIdentityApi;
53
+ declare const user_mintPassportNftApi: typeof mintPassportNftApi;
54
+ declare namespace user {
55
+ export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi };
56
+ }
57
+
58
+ declare const index_bind: typeof bind;
59
+ declare const index_poh: typeof poh;
60
+ declare const index_user: typeof user;
61
+ declare namespace index {
62
+ export { index_bind as bind, index_poh as poh, index_user as user };
63
+ }
64
+
65
+ export { bind as b, index as i, poh as p, user as u };
@@ -1,7 +1,7 @@
1
- import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents } from './types-BvsN5jj9.mjs';
1
+ import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CRumDe2M.mjs';
2
2
  import * as viem from 'viem';
3
3
  import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
4
- import { C as ChainType } from './mpc-CTbBWHld.mjs';
4
+ import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
5
5
  import { Hash } from 'viem/types/misc';
6
6
  import { Abi } from 'abitype';
7
7
 
@@ -57,6 +57,20 @@ declare function useUserInfo(): {
57
57
 
58
58
  declare function useMatchEvents(handlers: IMatchEvents): void;
59
59
 
60
+ type initCoreType = (params: {
61
+ address: string;
62
+ did: string;
63
+ }) => Promise<void>;
64
+ type generateEmbeddedWalletsType = (params: {
65
+ chainType?: `${ChainType}`;
66
+ recoveryType?: `${RecoveryType}`;
67
+ userPasscode?: string;
68
+ }) => Promise<string>;
69
+ type recoveryEmbeddedWalletsType = (params: {
70
+ chainType?: `${ChainType}`;
71
+ recoveryType?: `${RecoveryType}`;
72
+ userPasscode?: string;
73
+ }) => Promise<void>;
60
74
  type isRecoveredType = () => Promise<boolean>;
61
75
  type signMessageType = (params: {
62
76
  message: SignableMessage;
@@ -78,6 +92,10 @@ type signTransactionType = (params: {
78
92
  };
79
93
  };
80
94
  }) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | viem.TransactionSerializedLegacy>;
95
+ type recoverAfterType = (params: {
96
+ chainType: `${ChainType}`;
97
+ handle: (resolve: (value: any) => void, reject: (reason: string) => void) => Promise<any>;
98
+ }) => Promise<any>;
81
99
  type SendTransactionReturnType = Hash;
82
100
  type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
83
101
  type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
@@ -90,11 +108,15 @@ type WriteContractReturnType = SendTransactionReturnType;
90
108
  type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
91
109
  interface UseWalletReturnType {
92
110
  walletReady: boolean;
111
+ initCore: initCoreType;
93
112
  isRecovered: isRecoveredType;
94
113
  signMessage: signMessageType;
95
114
  signTransaction: signTransactionType;
96
115
  address: string;
97
116
  evmAccount: Account | undefined;
117
+ recoverAfter: recoverAfterType;
118
+ recoveryEmbeddedWallets: recoveryEmbeddedWalletsType;
119
+ generateEmbeddedWallets: generateEmbeddedWalletsType;
98
120
  createWalletClient: (parameters: Omit<WalletClientConfig, 'account'>) => Omit<ReturnType<typeof createWalletClient>, 'sendTransaction' | 'deployContract' | 'writeContract'> & {
99
121
  sendTransaction: SendTransactionType;
100
122
  deployContract: DeployContractType;
@@ -1,5 +1,5 @@
1
1
  import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.mjs';
2
- import { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as MetaPageType, u as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, v as PohItemType, w as PohZkpassParams, P as PopoverPositionType, x as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, y as UserAssetToken, z as UserChainType, F as UserImportTokenType, G as UserPopoverProps, H as UserTransactionType, J as WalletAssetType, W as WalletConfigType, K as WalletPanelProps, N as WalletReceiveMessageType, c as WalletType } from './types-BvsN5jj9.mjs';
2
+ import { A as AnyObject, m as AppConfigType, n as BindInfoType, o as BindItemType, p as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, q as DrawerProps, E as EmailModalProps, a as IEnvConfigType, r as IEnvName, s as ILoginWalletReq, I as IMatchEvents, j as ISocialLoginMethod, t as IconProps, b as InputProps, L as LocaleType, d as LoginBoxProps, l as LoginMethodType, i as LoginModalProps, h as LoginPanelProps, u as MessageType, M as ModalProps, c as ModalWithHeaderProps, O as OtherLoginMethodType, k as OverviewInfo, v as PohItemType, w as PohZkpassParams, f as PopoverPositionType, P as PopoverProps, g as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UserPopoverProps, W as WalletConfigType, x as WalletPanelProps, y as WalletReceiveMessageType, e as WalletType } from './types-CRumDe2M.mjs';
3
3
 
4
4
  declare const index_AnyObject: typeof AnyObject;
5
5
  declare const index_AppConfigType: typeof AppConfigType;
@@ -27,7 +27,6 @@ declare const index_LoginMethodType: typeof LoginMethodType;
27
27
  declare const index_LoginModalProps: typeof LoginModalProps;
28
28
  declare const index_LoginPanelProps: typeof LoginPanelProps;
29
29
  declare const index_MessageType: typeof MessageType;
30
- declare const index_MetaPageType: typeof MetaPageType;
31
30
  declare const index_ModalProps: typeof ModalProps;
32
31
  declare const index_ModalWithHeaderProps: typeof ModalWithHeaderProps;
33
32
  declare const index_OtherLoginMethodType: typeof OtherLoginMethodType;
@@ -40,19 +39,13 @@ declare const index_PopoverTypeType: typeof PopoverTypeType;
40
39
  declare const index_RecommendLoginMethodType: typeof RecommendLoginMethodType;
41
40
  declare const index_RecoveryType: typeof RecoveryType;
42
41
  declare const index_ThemeType: typeof ThemeType;
43
- declare const index_UIProps: typeof UIProps;
44
- declare const index_UserAssetToken: typeof UserAssetToken;
45
- declare const index_UserChainType: typeof UserChainType;
46
- declare const index_UserImportTokenType: typeof UserImportTokenType;
47
42
  declare const index_UserPopoverProps: typeof UserPopoverProps;
48
- declare const index_UserTransactionType: typeof UserTransactionType;
49
- declare const index_WalletAssetType: typeof WalletAssetType;
50
43
  declare const index_WalletConfigType: typeof WalletConfigType;
51
44
  declare const index_WalletPanelProps: typeof WalletPanelProps;
52
45
  declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
53
46
  declare const index_WalletType: typeof WalletType;
54
47
  declare namespace index {
55
- export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps, index_UserTransactionType as UserTransactionType, index_WalletAssetType as WalletAssetType, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
48
+ export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UserPopoverProps as UserPopoverProps, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
56
49
  }
57
50
 
58
51
  export { index as i };
@@ -1,10 +1,26 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps } from './types-BvsN5jj9.mjs';
3
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-sdb-MpAt.mjs';
4
- import { ReactNode } from 'react';
2
+ import { E as EmailModalProps, b as InputProps, B as ButtonProps, M as ModalProps, c as ModalWithHeaderProps, P as PopoverProps, d as LoginBoxProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, e as WalletType, f as PopoverPositionType, g as PopoverTypeType, h as LoginPanelProps, i as LoginModalProps } from './types-CRumDe2M.js';
3
+ import { ReactNode, PropsWithChildren } from 'react';
4
+ import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
7
7
 
8
+ declare function Field({ label, children, error, required, className }: {
9
+ label: ReactNode;
10
+ error?: ReactNode;
11
+ required?: boolean;
12
+ className?: string;
13
+ } & PropsWithChildren): react_jsx_runtime.JSX.Element;
14
+
15
+ declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
16
+
17
+ declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
18
+
19
+ declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
20
+ declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
21
+
22
+ declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
23
+
8
24
  declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
9
25
 
10
26
  declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
@@ -26,6 +42,12 @@ declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWith
26
42
  onSuccess?: () => void;
27
43
  }): react_jsx_runtime.JSX.Element;
28
44
 
45
+ declare function PasswordModal({ title, isOpen, onSuccess, chainType, recoveryType, ...props }: ModalWithHeaderProps & {
46
+ onSuccess?: () => void;
47
+ chainType?: `${ChainType}`;
48
+ recoveryType?: `${RecoveryType}`;
49
+ }): react_jsx_runtime.JSX.Element;
50
+
29
51
  type SOLModalProps = ModalWithHeaderProps & {
30
52
  type?: 'login' | 'bind' | '';
31
53
  onSuccess?: () => void;
@@ -50,6 +72,11 @@ type BTCConnectModalProps = ModalWithHeaderProps & {
50
72
  };
51
73
  declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
52
74
 
75
+ declare function Overlay({ isOpen, children, zIndex, }: {
76
+ isOpen?: boolean;
77
+ zIndex?: number;
78
+ } & PropsWithChildren): react_jsx_runtime.JSX.Element;
79
+
53
80
  type WalletModalProps = ModalWithHeaderProps & {
54
81
  type?: 'login' | 'bind' | '';
55
82
  methods?: WalletType[];
@@ -68,6 +95,7 @@ declare const index_LoginPanel: typeof LoginPanel;
68
95
  declare const index_Modal: typeof Modal;
69
96
  declare const index_ModalWithHeader: typeof ModalWithHeader;
70
97
  declare const index_Overlay: typeof Overlay;
98
+ declare const index_PasswordModal: typeof PasswordModal;
71
99
  declare const index_Popover: typeof Popover;
72
100
  declare const index_SOLModal: typeof SOLModal;
73
101
  declare const index_TONModal: typeof TONModal;
@@ -75,7 +103,7 @@ declare const index_TRONModal: typeof TRONModal;
75
103
  declare const index_UsernameModal: typeof UsernameModal;
76
104
  declare const index_WalletModal: typeof WalletModal;
77
105
  declare namespace index {
78
- export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
106
+ export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_PasswordModal as PasswordModal, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
79
107
  }
80
108
 
81
- export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, index as i };
109
+ export { Button as B, EmailModal as E, Field as F, Input as I, LoginBox as L, Modal as M, Overlay as O, Popover as P, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, ModalWithHeader as a, LoginButton as b, LoginPanel as c, LoginModal as d, PasswordModal as e, TONModal as f, BTCModal as g, index as i };
package/dist/index.css CHANGED
@@ -2,14 +2,12 @@ body {
2
2
  /**value**/
3
3
  --matchid-light-orange: #FFF3EB;
4
4
  --matchid-highlight-orange: #FC802D;
5
- --matchid-highlight-orange-light:rgba(252, 128, 45, 0.5);
6
5
  --matchid-black: #000000;
7
6
  --matchid-white: #FFFFFF;
8
7
  --matchid-black-800: #1E1E1E;
9
8
  --matchid-gray-600: #6E6E6E;
10
9
  --matchid-gray-400: #B6B6B6;
11
10
  --matchid-gray-350: #D3D3D3;
12
- --matchid-gray-350-light: rgba(211, 211, 211, 0.5);
13
11
  --matchid-gray-300: #E3E3E3;
14
12
  --matchid-gray-200: #F3F3F3;
15
13
  --matchid-gray-100: #F8F8F8;
@@ -114,19 +112,6 @@ body {
114
112
  --matchid-password-header-color: var(--matchid-black);
115
113
  --matchid-user-popover-color: var(--matchid-black);
116
114
  --matchid-user-popover-hover-color: var(--matchid-highlight-orange);
117
- /**switch**/
118
- --matchid-switch-bg: var(--matchid-gray-350);
119
- --matchid-switch-ball: var(--matchid-white);
120
- --matchid-switch-checked-bg: var(--matchid-highlight-orange);
121
- --matchid-switch-disabled-bg: var(--matchid-gray-350-light);
122
- --matchid-switch-disabled-checked-bg: var(--matchid-highlight-orange-light);
123
- --matchid-swicth-loading-color:var(--matchid-white);
124
- /**avatar**/
125
- --matchid-avatar-bg: var(--matchid-gray-350);
126
- --matchid-avatar-color: var(--matchid-gray-600);
127
- /**radio**/
128
- --matchid-radio-line: var(--matchid-gray-300);
129
- --matchid-radio-checked: var(--matchid-highlight-orange);
130
115
 
131
116
  }
132
117
 
@@ -988,11 +973,7 @@ body {
988
973
 
989
974
  .matchid-drawer-header {
990
975
  display: flex;
991
- justify-content: space-between;
992
- font-size: 18px;
993
- font-weight: 500;
994
- padding-bottom: 24px;
995
- border-bottom: 1px solid var(--matchid-line);
976
+ justify-content: flex-end;
996
977
 
997
978
  .matchid-drawer-header-close {
998
979
  cursor: pointer;
@@ -1058,90 +1039,4 @@ body {
1058
1039
  }
1059
1040
  }
1060
1041
  }
1061
- }
1062
-
1063
- .matchid-switch {
1064
- width: 64px;
1065
- height: 32px;
1066
- background-color: var(--matchid-switch-bg);
1067
- border-radius: 16px;
1068
- cursor: pointer;
1069
- position: relative;
1070
- transition: background-color 0.3s ease;
1071
-
1072
- .matchid-switch-ball,.matchid-switch-loading-icon {
1073
- width: 24px;
1074
- height: 24px;
1075
- transition: transform 0.3s ease,left 0.3s, background-color 0.3s ease;
1076
- position: absolute;
1077
- left: 4px;
1078
- top: 4px;
1079
- }
1080
- .matchid-switch-ball {
1081
- background-color: var(--matchid-switch-ball);
1082
- border-radius: 50%;
1083
- }
1084
-
1085
- &.matchid-switch-sm {
1086
- width: 48px;
1087
- height: 24px;
1088
- border-radius: 12px;
1089
-
1090
- .matchid-switch-ball,.matchid-switch-loading-icon {
1091
- width: 18px;
1092
- height: 18px;
1093
- left: 3px;
1094
- top: 3px;
1095
- }
1096
- }
1097
-
1098
- &.matchid-switch-checked {
1099
- background-color: var(--matchid-switch-checked-bg);
1100
-
1101
- .matchid-switch-ball,.matchid-switch-loading-icon {
1102
- left: 36px;
1103
- }
1104
-
1105
- &.matchid-switch-sm .matchid-switch-ball,.matchid-switch-sm .matchid-switch-loading-icon {
1106
- left: 27px;
1107
- }
1108
- }
1109
- &.matchid-switch-disabled,&.matchid-switch-loading {
1110
- cursor: not-allowed;
1111
- background-color: var(--matchid-switch-disabled-bg);
1112
- &.matchid-switch-checked{
1113
- background-color: var(--matchid-switch-disabled-checked-bg);
1114
- }
1115
- }
1116
- &.matchid-switch-loading{
1117
- .matchid-switch-loading-icon {
1118
- animation: spin 2s linear infinite;
1119
- }
1120
- }
1121
- }
1122
-
1123
- .matchid-alpha-avatar{
1124
- display: flex;
1125
- justify-content: center;
1126
- align-items: center;
1127
- border-radius: 50%;
1128
- background: var(--matchid-avatar-bg);
1129
- color: var(--matchid-avatar-color);
1130
- font-weight: 500;
1131
- }
1132
-
1133
- .matchid-radio{
1134
- cursor: pointer;
1135
- display: flex;
1136
- justify-content: center;
1137
- align-items: center;
1138
- border-radius: 100%;
1139
- border:1px solid var(--matchid-radio-line);
1140
- &.matchid-radio-checked{
1141
- border-color: var(--matchid-radio-checked);
1142
- .matchid-radio-content{
1143
- background: var(--matchid-radio-checked);
1144
- border-radius: 100%;
1145
- }
1146
- }
1147
1042
  }