@matchain/matchid-sdk-react 0.1.56-alpha.7 → 0.1.56-alpha.9
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/api.d.mts +6 -0
- package/dist/api.d.ts +6 -0
- package/dist/api.js +1728 -0
- package/dist/api.js.map +1 -0
- package/dist/api.mjs +23 -0
- package/dist/api.mjs.map +1 -0
- package/dist/assets/lottie.d.mts +1 -0
- package/dist/assets/lottie.d.ts +1 -0
- package/dist/assets/lottie.js +68 -0
- package/dist/assets/lottie.js.map +1 -0
- package/dist/assets/lottie.mjs +22 -0
- package/dist/assets/lottie.mjs.map +1 -0
- package/dist/chains.d.mts +2 -0
- package/dist/chains.d.ts +2 -0
- package/dist/chains.js +94 -0
- package/dist/chains.js.map +1 -0
- package/dist/chains.mjs +11 -0
- package/dist/chains.mjs.map +1 -0
- package/dist/chunk-3CR66BEX.mjs +19 -0
- package/dist/chunk-3CR66BEX.mjs.map +1 -0
- package/dist/chunk-FQ6PYZPD.mjs +1439 -0
- package/dist/chunk-FQ6PYZPD.mjs.map +1 -0
- package/dist/chunk-HBOS3RBL.mjs +19 -0
- package/dist/chunk-HBOS3RBL.mjs.map +1 -0
- package/dist/chunk-IZOOVZAD.mjs +145 -0
- package/dist/chunk-IZOOVZAD.mjs.map +1 -0
- package/dist/chunk-J5LGTIGS.mjs +10 -0
- package/dist/chunk-J5LGTIGS.mjs.map +1 -0
- package/dist/chunk-JCMQBWWW.mjs +97 -0
- package/dist/chunk-JCMQBWWW.mjs.map +1 -0
- package/dist/chunk-JX73EY6V.mjs +67 -0
- package/dist/chunk-JX73EY6V.mjs.map +1 -0
- package/dist/chunk-LOZCAT7A.mjs +7732 -0
- package/dist/chunk-LOZCAT7A.mjs.map +1 -0
- package/dist/chunk-UA6XHZHX.mjs +17 -0
- package/dist/chunk-UA6XHZHX.mjs.map +1 -0
- package/dist/chunk-XM6CYEXN.mjs +53 -0
- package/dist/chunk-XM6CYEXN.mjs.map +1 -0
- package/dist/components.d.mts +6 -0
- package/dist/components.d.ts +6 -0
- package/dist/components.js +6576 -0
- package/dist/components.js.map +1 -0
- package/dist/components.mjs +57 -0
- package/dist/components.mjs.map +1 -0
- package/dist/hooks.d.mts +12 -0
- package/dist/hooks.d.ts +12 -0
- package/dist/hooks.js +3619 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks.mjs +41 -0
- package/dist/hooks.mjs.map +1 -0
- package/dist/icon.d.mts +5 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +1454 -0
- package/dist/icon.js.map +1 -0
- package/dist/icon.mjs +116 -0
- package/dist/icon.mjs.map +1 -0
- package/dist/index-84CqVi2I.d.mts +66 -0
- package/dist/index-BNqdFiOo.d.ts +66 -0
- package/dist/index-BctnHnJp.d.ts +221 -0
- package/dist/index-BqI0PEIi.d.mts +38 -0
- package/dist/index-CHgaOUiW.d.mts +52590 -0
- package/dist/index-CHgaOUiW.d.ts +52590 -0
- package/dist/index-Car1jFyN.d.mts +132 -0
- package/dist/index-CboftuIp.d.mts +85 -0
- package/dist/index-CboftuIp.d.ts +85 -0
- package/dist/index-CcVHENNv.d.ts +132 -0
- package/dist/index-Cqdz_5bE.d.ts +92 -0
- package/dist/index-CvzpMw3N.d.ts +38 -0
- package/dist/index-D2E53ZMV.d.mts +7134 -0
- package/dist/index-DVlulZhE.d.mts +111 -0
- package/dist/index-DkijpM5Q.d.mts +221 -0
- package/dist/index-DwmrgZa2.d.ts +7134 -0
- package/dist/index-DxHhOW24.d.mts +92 -0
- package/dist/index-qmC4zt6V.d.ts +111 -0
- package/dist/index.css +2294 -0
- package/dist/index.d.mts +867 -0
- package/dist/index.d.ts +867 -0
- package/dist/index.js +9308 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -0
- package/dist/request-B0CyrGFT.d.mts +15 -0
- package/dist/request-B0CyrGFT.d.ts +15 -0
- package/dist/types-BrVeC0c8.d.mts +428 -0
- package/dist/types-BrVeC0c8.d.ts +428 -0
- package/dist/types.d.mts +3 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +44 -0
- package/dist/types.js.map +1 -0
- package/dist/types.mjs +11 -0
- package/dist/types.mjs.map +1 -0
- package/dist/ui.d.mts +7 -0
- package/dist/ui.d.ts +7 -0
- package/dist/ui.js +1688 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +47 -0
- package/dist/ui.mjs.map +1 -0
- package/dist/utils.d.mts +28 -0
- package/dist/utils.d.ts +28 -0
- package/dist/utils.js +192 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +34 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BqI0PEIi.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { D as DrawerProps, h as WalletPanelProps, U as UIProps } from './types-BrVeC0c8.mjs';
|
|
4
|
+
import { Hash, Chain } from 'viem';
|
|
5
|
+
import * as React$1 from 'react';
|
|
6
|
+
import React__default, { CSSProperties } from 'react';
|
|
7
|
+
|
|
8
|
+
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex, onBack }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type HashPanelProps = {
|
|
11
|
+
hash?: Hash | null;
|
|
12
|
+
chain?: Chain | null;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
error?: string;
|
|
17
|
+
};
|
|
18
|
+
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare function ModalDrawer({ title, drawerTitleVisible, ...props }: WalletPanelProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
declare function Switch({ size, checked, loading, onChange, className, disabled, ...props }: {
|
|
23
|
+
size?: "default" | "sm";
|
|
24
|
+
checked?: boolean;
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
onChange?: (checked: boolean) => void;
|
|
28
|
+
} & UIProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare function AlphaAvatar({ name, size, className, style }: {
|
|
31
|
+
name: string;
|
|
32
|
+
size?: number | "sm" | "default" | "lg";
|
|
33
|
+
} & UIProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare function Radio({ checked, onChange, size, color, className, style }: {
|
|
36
|
+
checked?: boolean;
|
|
37
|
+
onChange?: () => void;
|
|
38
|
+
size?: number;
|
|
39
|
+
color?: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
}): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
interface SkeletonProps {
|
|
45
|
+
style?: React__default.CSSProperties;
|
|
46
|
+
className?: string;
|
|
47
|
+
width?: string | number;
|
|
48
|
+
height?: string | number;
|
|
49
|
+
radius?: string | number;
|
|
50
|
+
loading?: boolean;
|
|
51
|
+
children?: React__default.ReactNode;
|
|
52
|
+
}
|
|
53
|
+
declare const Skeleton: React__default.FC<SkeletonProps>;
|
|
54
|
+
|
|
55
|
+
type TabsProps = {
|
|
56
|
+
tabs: string[];
|
|
57
|
+
activeTab: number;
|
|
58
|
+
setActiveTab: (tab: number) => void;
|
|
59
|
+
};
|
|
60
|
+
declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
declare const LazyLottie: (props: {
|
|
63
|
+
animationData: any;
|
|
64
|
+
style?: React.CSSProperties;
|
|
65
|
+
}) => React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>>;
|
|
66
|
+
|
|
67
|
+
declare function Checkbox({ checked, onChange }: {
|
|
68
|
+
checked?: boolean;
|
|
69
|
+
onChange?: (checked: boolean) => void;
|
|
70
|
+
}): react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
72
|
+
declare const index_AlphaAvatar: typeof AlphaAvatar;
|
|
73
|
+
declare const index_Button: typeof Button;
|
|
74
|
+
declare const index_Checkbox: typeof Checkbox;
|
|
75
|
+
declare const index_ConfirmModal: typeof ConfirmModal;
|
|
76
|
+
declare const index_Drawer: typeof Drawer;
|
|
77
|
+
declare const index_Field: typeof Field;
|
|
78
|
+
declare const index_Input: typeof Input;
|
|
79
|
+
declare const index_Modal: typeof Modal;
|
|
80
|
+
declare const index_ModalDrawer: typeof ModalDrawer;
|
|
81
|
+
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
82
|
+
declare const index_Overlay: typeof Overlay;
|
|
83
|
+
declare const index_Popover: typeof Popover;
|
|
84
|
+
declare const index_Radio: typeof Radio;
|
|
85
|
+
declare const index_Skeleton: typeof Skeleton;
|
|
86
|
+
declare const index_Switch: typeof Switch;
|
|
87
|
+
declare const index_Tabs: typeof Tabs;
|
|
88
|
+
declare namespace index {
|
|
89
|
+
export { index_AlphaAvatar as AlphaAvatar, index_Button as Button, index_Checkbox as Checkbox, index_ConfirmModal as ConfirmModal, index_Drawer as Drawer, index_Field as Field, export_default as HashPanel, index_Input as Input, LazyLottie as Lottie, index_Modal as Modal, index_ModalDrawer as ModalDrawer, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_Radio as Radio, index_Skeleton as Skeleton, index_Switch as Switch, index_Tabs as Tabs };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { AlphaAvatar as A, Checkbox as C, Drawer as D, LazyLottie as L, ModalDrawer as M, Radio as R, Switch as S, Tabs as T, Skeleton as a, export_default as e, index as i };
|
|
@@ -0,0 +1,111 @@
|
|
|
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, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-BrVeC0c8.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-CvzpMw3N.js';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
|
|
11
|
+
loginRender?: ReactNode;
|
|
12
|
+
methods?: OtherLoginMethodType[];
|
|
13
|
+
recommendMethods?: RecommendLoginMethodType[];
|
|
14
|
+
walletMethods?: WalletType[];
|
|
15
|
+
onLoginClick?: () => void;
|
|
16
|
+
popoverPosition?: PopoverPositionType;
|
|
17
|
+
popoverType?: PopoverTypeType;
|
|
18
|
+
popoverGap?: number | string;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare function LoginPanel({ header, onClose, ...props }: LoginPanelProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare function LoginModal({ isOpen, width, ...props }: LoginModalProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWithHeaderProps & {
|
|
26
|
+
onSuccess?: () => void;
|
|
27
|
+
}): react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type EVMModalProps = ModalWithHeaderProps & {
|
|
30
|
+
type?: 'login' | 'bind' | '';
|
|
31
|
+
onSuccess?: () => void;
|
|
32
|
+
};
|
|
33
|
+
declare function EVMModal(props: EVMModalProps): false | react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
type TRONConnectModalProps = ModalWithHeaderProps & {
|
|
36
|
+
type?: 'login' | 'bind' | '';
|
|
37
|
+
onSuccess?: () => void;
|
|
38
|
+
};
|
|
39
|
+
declare function TRONModal(props: TRONConnectModalProps): false | react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
type TonModalProps = ModalWithHeaderProps & {
|
|
42
|
+
type?: 'login' | 'bind' | '';
|
|
43
|
+
onSuccess?: () => void;
|
|
44
|
+
};
|
|
45
|
+
declare function TONModal(props: TonModalProps): false | react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
type BTCConnectModalProps = ModalWithHeaderProps & {
|
|
48
|
+
type?: 'login' | 'bind' | '';
|
|
49
|
+
onSuccess?: () => void;
|
|
50
|
+
};
|
|
51
|
+
declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
type WalletModalProps = ModalWithHeaderProps & {
|
|
54
|
+
type?: 'login' | 'bind' | '';
|
|
55
|
+
methods?: WalletType[];
|
|
56
|
+
};
|
|
57
|
+
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
declare function WalletAsset({ onAssetClick, matchWalletAssetsOptions }: {
|
|
60
|
+
onAssetClick?: (asset: WalletAssetMergeType) => () => void;
|
|
61
|
+
matchWalletAssetsOptions?: useMatchWalletAssetsProps;
|
|
62
|
+
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function TokenDetail({ onClose, token }: {
|
|
65
|
+
onClose: () => void;
|
|
66
|
+
token: WalletAssetMergeType;
|
|
67
|
+
}): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
declare function TokenSend({ onClose, zIndex, token, onBack }: {
|
|
70
|
+
onBack: () => void;
|
|
71
|
+
onClose: () => void;
|
|
72
|
+
zIndex: number;
|
|
73
|
+
token: WalletAssetMergeType;
|
|
74
|
+
}): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare function TokenSendList({ close }: {
|
|
77
|
+
close: () => void;
|
|
78
|
+
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare function TransactionList({ scrollableTarget }: {
|
|
81
|
+
scrollableTarget?: ReactNode;
|
|
82
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
declare const index_BTCModal: typeof BTCModal;
|
|
85
|
+
declare const index_Button: typeof Button;
|
|
86
|
+
declare const index_EVMModal: typeof EVMModal;
|
|
87
|
+
declare const index_EmailModal: typeof EmailModal;
|
|
88
|
+
declare const index_Field: typeof Field;
|
|
89
|
+
declare const index_Input: typeof Input;
|
|
90
|
+
declare const index_LoginBox: typeof LoginBox;
|
|
91
|
+
declare const index_LoginButton: typeof LoginButton;
|
|
92
|
+
declare const index_LoginModal: typeof LoginModal;
|
|
93
|
+
declare const index_LoginPanel: typeof LoginPanel;
|
|
94
|
+
declare const index_Modal: typeof Modal;
|
|
95
|
+
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
96
|
+
declare const index_Overlay: typeof Overlay;
|
|
97
|
+
declare const index_Popover: typeof Popover;
|
|
98
|
+
declare const index_TONModal: typeof TONModal;
|
|
99
|
+
declare const index_TRONModal: typeof TRONModal;
|
|
100
|
+
declare const index_TokenDetail: typeof TokenDetail;
|
|
101
|
+
declare const index_TokenSend: typeof TokenSend;
|
|
102
|
+
declare const index_TokenSendList: typeof TokenSendList;
|
|
103
|
+
declare const index_TransactionList: typeof TransactionList;
|
|
104
|
+
declare const index_UsernameModal: typeof UsernameModal;
|
|
105
|
+
declare const index_WalletAsset: typeof WalletAsset;
|
|
106
|
+
declare const index_WalletModal: typeof WalletModal;
|
|
107
|
+
declare namespace index {
|
|
108
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_EVMModal as EVMModal, 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_TONModal as TONModal, index_TRONModal as TRONModal, index_TokenDetail as TokenDetail, index_TokenSend as TokenSend, index_TokenSendList as TokenSendList, index_TransactionList as TransactionList, index_UsernameModal as UsernameModal, index_WalletAsset as WalletAsset, index_WalletModal as WalletModal };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, EVMModal as d, TONModal as e, WalletAsset as f, TokenDetail as g, TokenSend as h, index as i, TokenSendList as j, TransactionList as k };
|