@matchain/matchid-sdk-react 0.1.45 → 0.1.46-alpha.0
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 +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/chunk-CNQJUDKT.mjs +59 -0
- package/dist/chunk-CNQJUDKT.mjs.map +1 -0
- package/dist/chunk-EQ752DLJ.mjs +4511 -0
- package/dist/chunk-EQ752DLJ.mjs.map +1 -0
- package/dist/{chunk-R7Y4L7CG.mjs → chunk-H6M6OSVR.mjs} +70 -4555
- package/dist/chunk-H6M6OSVR.mjs.map +1 -0
- package/dist/{chunk-L5G34SC6.mjs → chunk-VY6Y6PLW.mjs} +2 -2
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +10 -10
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -8
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +10 -10
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -2
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +10 -10
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +4 -2
- package/dist/{index-CoTirILQ.d.ts → index-BMWq_SVq.d.ts} +1 -1
- package/dist/index-BXCdzLbc.d.mts +26 -0
- package/dist/{index-CWYElOA2.d.mts → index-C_XI1qNB.d.mts} +1 -1
- package/dist/index-CsHEukeG.d.ts +26 -0
- package/dist/{index-CTSg5TRS.d.ts → index-D9-2IgL1.d.ts} +3 -2
- package/dist/index-DSLYDlMJ.d.ts +40 -0
- package/dist/{index-DVlCrOjr.d.ts → index-DWOnfdeP.d.ts} +4 -24
- package/dist/{index-CFWR1boZ.d.ts → index-DhSoJs_L.d.ts} +1 -1
- package/dist/{index-D2pNP7Bz.d.mts → index-RT9tEHMs.d.mts} +1 -1
- package/dist/{index-DR2JTaoi.d.mts → index-a9wDsxOI.d.mts} +3 -2
- package/dist/index-bpGeBrps.d.mts +40 -0
- package/dist/{index-B0VpxAI2.d.mts → index-nqmU7njp.d.mts} +4 -24
- package/dist/index.css +69 -0
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +47 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CRumDe2M.d.mts → types-Cpmx3fld.d.mts} +5 -1
- package/dist/{types-CRumDe2M.d.ts → types-Cpmx3fld.d.ts} +5 -1
- package/dist/ui/index.d.mts +6 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/index.js +659 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/index.mjs +31 -0
- package/dist/ui/index.mjs.map +1 -0
- package/example/src/App.tsx +7 -0
- package/example/src/pages/UI/components/Switch.tsx +13 -0
- package/example/src/pages/UI/index.tsx +7 -0
- package/package.json +5 -1
- package/dist/chunk-R7Y4L7CG.mjs.map +0 -1
- /package/dist/{chunk-L5G34SC6.mjs.map → chunk-VY6Y6PLW.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopyClipboard,
|
|
3
|
-
useLayout_exports,
|
|
4
3
|
useMatchEvents,
|
|
5
4
|
useUserInfo,
|
|
6
5
|
useWallet
|
|
7
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-EQ752DLJ.mjs";
|
|
8
7
|
import "../chunk-SQIJR7RA.mjs";
|
|
8
|
+
import {
|
|
9
|
+
useLayout_exports
|
|
10
|
+
} from "../chunk-H6M6OSVR.mjs";
|
|
9
11
|
import "../chunk-DPXMCLYK.mjs";
|
|
10
12
|
import "../chunk-J5LGTIGS.mjs";
|
|
11
13
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import {
|
|
3
|
+
import { v as PohZkpassParams, l as BindItemType, k as BindInfoType, u as PohItemType } from './types-Cpmx3fld.js';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
+
import { r as InputProps, B as ButtonProps, t as ModalProps, M as ModalWithHeaderProps, w as PopoverProps } from './types-Cpmx3fld.mjs';
|
|
4
|
+
|
|
5
|
+
declare function Field({ label, children, error, required, className }: {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
|
|
20
|
+
|
|
21
|
+
declare function Overlay({ isOpen, children, zIndex, }: {
|
|
22
|
+
isOpen?: boolean;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Button as B, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import {
|
|
3
|
+
import { v as PohZkpassParams, l as BindItemType, k as BindInfoType, u as PohItemType } from './types-Cpmx3fld.mjs';
|
|
4
4
|
|
|
5
5
|
interface MyResponseType<T> {
|
|
6
6
|
code: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
+
import { r as InputProps, B as ButtonProps, t as ModalProps, M as ModalWithHeaderProps, w as PopoverProps } from './types-Cpmx3fld.js';
|
|
4
|
+
|
|
5
|
+
declare function Field({ label, children, error, required, className }: {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
declare function Popover({ children, content, position, type, className, gap }: PopoverProps): false | "" | 0 | react_jsx_runtime.JSX.Element | null | undefined;
|
|
20
|
+
|
|
21
|
+
declare function Overlay({ isOpen, children, zIndex, }: {
|
|
22
|
+
isOpen?: boolean;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Button as B, Field as F, Input as I, Modal as M, Overlay as O, Popover as P, ModalWithHeader as a };
|
|
@@ -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,
|
|
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 ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from './types-Cpmx3fld.js';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AppConfigType: typeof AppConfigType;
|
|
@@ -39,13 +39,14 @@ declare const index_PopoverTypeType: typeof PopoverTypeType;
|
|
|
39
39
|
declare const index_RecommendLoginMethodType: typeof RecommendLoginMethodType;
|
|
40
40
|
declare const index_RecoveryType: typeof RecoveryType;
|
|
41
41
|
declare const index_ThemeType: typeof ThemeType;
|
|
42
|
+
declare const index_UIProps: typeof UIProps;
|
|
42
43
|
declare const index_UserPopoverProps: typeof UserPopoverProps;
|
|
43
44
|
declare const index_WalletConfigType: typeof WalletConfigType;
|
|
44
45
|
declare const index_WalletPanelProps: typeof WalletPanelProps;
|
|
45
46
|
declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
|
|
46
47
|
declare const index_WalletType: typeof WalletType;
|
|
47
48
|
declare namespace index {
|
|
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 };
|
|
49
|
+
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_UIProps as UIProps, index_UserPopoverProps as UserPopoverProps, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export { index as i };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CsHEukeG.js';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { n as DrawerProps, y as WalletPanelProps, U as UIProps } from './types-Cpmx3fld.js';
|
|
4
|
+
import { Hash, Chain } from 'viem';
|
|
5
|
+
|
|
6
|
+
declare function Drawer({ children, showClose, onClose, isOpen }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
type HashPanelProps = {
|
|
9
|
+
hash?: Hash | null;
|
|
10
|
+
chain?: Chain | null;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare function ModalDrawer({ title, ...props }: WalletPanelProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
declare function Switch({ size, checked, loading, onChange, className, disabled, ...props }: {
|
|
19
|
+
size?: "default" | "sm";
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
onChange?: (checked: boolean) => void;
|
|
24
|
+
} & UIProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare const index_Button: typeof Button;
|
|
27
|
+
declare const index_Drawer: typeof Drawer;
|
|
28
|
+
declare const index_Field: typeof Field;
|
|
29
|
+
declare const index_Input: typeof Input;
|
|
30
|
+
declare const index_Modal: typeof Modal;
|
|
31
|
+
declare const index_ModalDrawer: typeof ModalDrawer;
|
|
32
|
+
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
33
|
+
declare const index_Overlay: typeof Overlay;
|
|
34
|
+
declare const index_Popover: typeof Popover;
|
|
35
|
+
declare const index_Switch: typeof Switch;
|
|
36
|
+
declare namespace index {
|
|
37
|
+
export { index_Button as Button, index_Drawer as Drawer, index_Field as Field, export_default as HashPanel, index_Input as Input, index_Modal as Modal, index_ModalDrawer as ModalDrawer, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_Switch as Switch };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { Drawer as D, ModalDrawer as M, Switch as S, export_default as e, index as i };
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, b as
|
|
3
|
-
import {
|
|
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-Cpmx3fld.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-CsHEukeG.js';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
5
6
|
|
|
6
7
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
7
8
|
|
|
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
|
-
|
|
24
9
|
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
25
10
|
|
|
26
11
|
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
@@ -72,11 +57,6 @@ type BTCConnectModalProps = ModalWithHeaderProps & {
|
|
|
72
57
|
};
|
|
73
58
|
declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
|
|
74
59
|
|
|
75
|
-
declare function Overlay({ isOpen, children, zIndex, }: {
|
|
76
|
-
isOpen?: boolean;
|
|
77
|
-
zIndex?: number;
|
|
78
|
-
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
79
|
-
|
|
80
60
|
type WalletModalProps = ModalWithHeaderProps & {
|
|
81
61
|
type?: 'login' | 'bind' | '';
|
|
82
62
|
methods?: WalletType[];
|
|
@@ -106,4 +86,4 @@ declare namespace index {
|
|
|
106
86
|
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 };
|
|
107
87
|
}
|
|
108
88
|
|
|
109
|
-
export {
|
|
89
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, PasswordModal as P, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents } from './types-Cpmx3fld.js';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents } from './types-Cpmx3fld.mjs';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
@@ -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,
|
|
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 ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, u as PohItemType, v as PohZkpassParams, P as PopoverPositionType, w as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, U as UIProps, x as UserPopoverProps, W as WalletConfigType, y as WalletPanelProps, z as WalletReceiveMessageType, c as WalletType } from './types-Cpmx3fld.mjs';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AppConfigType: typeof AppConfigType;
|
|
@@ -39,13 +39,14 @@ declare const index_PopoverTypeType: typeof PopoverTypeType;
|
|
|
39
39
|
declare const index_RecommendLoginMethodType: typeof RecommendLoginMethodType;
|
|
40
40
|
declare const index_RecoveryType: typeof RecoveryType;
|
|
41
41
|
declare const index_ThemeType: typeof ThemeType;
|
|
42
|
+
declare const index_UIProps: typeof UIProps;
|
|
42
43
|
declare const index_UserPopoverProps: typeof UserPopoverProps;
|
|
43
44
|
declare const index_WalletConfigType: typeof WalletConfigType;
|
|
44
45
|
declare const index_WalletPanelProps: typeof WalletPanelProps;
|
|
45
46
|
declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
|
|
46
47
|
declare const index_WalletType: typeof WalletType;
|
|
47
48
|
declare namespace index {
|
|
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 };
|
|
49
|
+
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_UIProps as UIProps, index_UserPopoverProps as UserPopoverProps, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export { index as i };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BXCdzLbc.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { n as DrawerProps, y as WalletPanelProps, U as UIProps } from './types-Cpmx3fld.mjs';
|
|
4
|
+
import { Hash, Chain } from 'viem';
|
|
5
|
+
|
|
6
|
+
declare function Drawer({ children, showClose, onClose, isOpen }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
type HashPanelProps = {
|
|
9
|
+
hash?: Hash | null;
|
|
10
|
+
chain?: Chain | null;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare function ModalDrawer({ title, ...props }: WalletPanelProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
declare function Switch({ size, checked, loading, onChange, className, disabled, ...props }: {
|
|
19
|
+
size?: "default" | "sm";
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
onChange?: (checked: boolean) => void;
|
|
24
|
+
} & UIProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare const index_Button: typeof Button;
|
|
27
|
+
declare const index_Drawer: typeof Drawer;
|
|
28
|
+
declare const index_Field: typeof Field;
|
|
29
|
+
declare const index_Input: typeof Input;
|
|
30
|
+
declare const index_Modal: typeof Modal;
|
|
31
|
+
declare const index_ModalDrawer: typeof ModalDrawer;
|
|
32
|
+
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
33
|
+
declare const index_Overlay: typeof Overlay;
|
|
34
|
+
declare const index_Popover: typeof Popover;
|
|
35
|
+
declare const index_Switch: typeof Switch;
|
|
36
|
+
declare namespace index {
|
|
37
|
+
export { index_Button as Button, index_Drawer as Drawer, index_Field as Field, export_default as HashPanel, index_Input as Input, index_Modal as Modal, index_ModalDrawer as ModalDrawer, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_Switch as Switch };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { Drawer as D, ModalDrawer as M, Switch as S, export_default as e, index as i };
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, b as
|
|
3
|
-
import {
|
|
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-Cpmx3fld.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-BXCdzLbc.mjs';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
5
6
|
|
|
6
7
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
7
8
|
|
|
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
|
-
|
|
24
9
|
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
25
10
|
|
|
26
11
|
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
@@ -72,11 +57,6 @@ type BTCConnectModalProps = ModalWithHeaderProps & {
|
|
|
72
57
|
};
|
|
73
58
|
declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
|
|
74
59
|
|
|
75
|
-
declare function Overlay({ isOpen, children, zIndex, }: {
|
|
76
|
-
isOpen?: boolean;
|
|
77
|
-
zIndex?: number;
|
|
78
|
-
} & PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
79
|
-
|
|
80
60
|
type WalletModalProps = ModalWithHeaderProps & {
|
|
81
61
|
type?: 'login' | 'bind' | '';
|
|
82
62
|
methods?: WalletType[];
|
|
@@ -106,4 +86,4 @@ declare namespace index {
|
|
|
106
86
|
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 };
|
|
107
87
|
}
|
|
108
88
|
|
|
109
|
-
export {
|
|
89
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, PasswordModal as P, 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 };
|
package/dist/index.css
CHANGED
|
@@ -2,12 +2,14 @@ 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);
|
|
5
6
|
--matchid-black: #000000;
|
|
6
7
|
--matchid-white: #FFFFFF;
|
|
7
8
|
--matchid-black-800: #1E1E1E;
|
|
8
9
|
--matchid-gray-600: #6E6E6E;
|
|
9
10
|
--matchid-gray-400: #B6B6B6;
|
|
10
11
|
--matchid-gray-350: #D3D3D3;
|
|
12
|
+
--matchid-gray-350-light: rgba(211, 211, 211, 0.5);
|
|
11
13
|
--matchid-gray-300: #E3E3E3;
|
|
12
14
|
--matchid-gray-200: #F3F3F3;
|
|
13
15
|
--matchid-gray-100: #F8F8F8;
|
|
@@ -112,6 +114,13 @@ body {
|
|
|
112
114
|
--matchid-password-header-color: var(--matchid-black);
|
|
113
115
|
--matchid-user-popover-color: var(--matchid-black);
|
|
114
116
|
--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)
|
|
115
124
|
|
|
116
125
|
}
|
|
117
126
|
|
|
@@ -1039,4 +1048,64 @@ body {
|
|
|
1039
1048
|
}
|
|
1040
1049
|
}
|
|
1041
1050
|
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.matchid-switch {
|
|
1054
|
+
width: 64px;
|
|
1055
|
+
height: 32px;
|
|
1056
|
+
background-color: var(--matchid-switch-bg);
|
|
1057
|
+
border-radius: 16px;
|
|
1058
|
+
cursor: pointer;
|
|
1059
|
+
position: relative;
|
|
1060
|
+
transition: background-color 0.3s ease;
|
|
1061
|
+
|
|
1062
|
+
.matchid-switch-ball,.matchid-switch-loading-icon {
|
|
1063
|
+
width: 24px;
|
|
1064
|
+
height: 24px;
|
|
1065
|
+
transition: transform 0.3s ease,left 0.3s, background-color 0.3s ease;
|
|
1066
|
+
position: absolute;
|
|
1067
|
+
left: 4px;
|
|
1068
|
+
top: 4px;
|
|
1069
|
+
}
|
|
1070
|
+
.matchid-switch-ball {
|
|
1071
|
+
background-color: var(--matchid-switch-ball);
|
|
1072
|
+
border-radius: 50%;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
&.matchid-switch-sm {
|
|
1076
|
+
width: 48px;
|
|
1077
|
+
height: 24px;
|
|
1078
|
+
border-radius: 12px;
|
|
1079
|
+
|
|
1080
|
+
.matchid-switch-ball,.matchid-switch-loading-icon {
|
|
1081
|
+
width: 18px;
|
|
1082
|
+
height: 18px;
|
|
1083
|
+
left: 3px;
|
|
1084
|
+
top: 3px;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
&.matchid-switch-checked {
|
|
1089
|
+
background-color: var(--matchid-switch-checked-bg);
|
|
1090
|
+
|
|
1091
|
+
.matchid-switch-ball,.matchid-switch-loading-icon {
|
|
1092
|
+
left: 36px;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
&.matchid-switch-sm .matchid-switch-ball,.matchid-switch-sm .matchid-switch-loading-icon {
|
|
1096
|
+
left: 27px;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
&.matchid-switch-disabled,&.matchid-switch-loading {
|
|
1100
|
+
cursor: not-allowed;
|
|
1101
|
+
background-color: var(--matchid-switch-disabled-bg);
|
|
1102
|
+
&.matchid-switch-checked{
|
|
1103
|
+
background-color: var(--matchid-switch-disabled-checked-bg);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
&.matchid-switch-loading{
|
|
1107
|
+
.matchid-switch-loading-icon {
|
|
1108
|
+
animation: spin 2s linear infinite;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1042
1111
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as
|
|
5
|
-
export { i as
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Cpmx3fld.mjs';
|
|
3
|
+
export { i as Components } from './index-nqmU7njp.mjs';
|
|
4
|
+
export { i as UI } from './index-bpGeBrps.mjs';
|
|
5
|
+
export { i as Hooks } from './index-RT9tEHMs.mjs';
|
|
6
|
+
export { i as Api } from './index-C_XI1qNB.mjs';
|
|
6
7
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
7
|
-
export { i as Types } from './index-
|
|
8
|
+
export { i as Types } from './index-a9wDsxOI.mjs';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
10
|
+
import './index-BXCdzLbc.mjs';
|
|
9
11
|
import './mpc-CTbBWHld.mjs';
|
|
10
12
|
import 'viem';
|
|
11
13
|
import 'viem/types/misc';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-
|
|
3
|
-
export { i as Components } from './index-
|
|
4
|
-
export { i as
|
|
5
|
-
export { i as
|
|
2
|
+
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Cpmx3fld.js';
|
|
3
|
+
export { i as Components } from './index-DWOnfdeP.js';
|
|
4
|
+
export { i as UI } from './index-DSLYDlMJ.js';
|
|
5
|
+
export { i as Hooks } from './index-DhSoJs_L.js';
|
|
6
|
+
export { i as Api } from './index-BMWq_SVq.js';
|
|
6
7
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
7
|
-
export { i as Types } from './index-
|
|
8
|
+
export { i as Types } from './index-D9-2IgL1.js';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
10
|
+
import './index-CsHEukeG.js';
|
|
9
11
|
import './mpc-CTbBWHld.js';
|
|
10
12
|
import 'viem';
|
|
11
13
|
import 'viem/types/misc';
|