@matchain/matchid-sdk-react 0.1.53-alpha.21 → 0.1.53-alpha.22

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.
@@ -13,7 +13,7 @@ import {
13
13
  useTransaction,
14
14
  useUserInfo,
15
15
  useWallet
16
- } from "../chunk-2Q5NZXUB.mjs";
16
+ } from "../chunk-ZOBAUYIZ.mjs";
17
17
  import "../chunk-JX73EY6V.mjs";
18
18
  import "../chunk-IZOOVZAD.mjs";
19
19
  import "../chunk-UA6XHZHX.mjs";
@@ -1,4 +1,4 @@
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-ijV5Kx6q.js';
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-DqIQL1Es.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { w as DrawerProps, a4 as WalletPanelProps, Y as UIProps } from './types-DvqfFAbp.js';
4
4
  import { Hash, Chain } from 'viem';
@@ -11,7 +11,11 @@ declare function Field({ label, children, error, required, className }: {
11
11
 
12
12
  declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
13
13
 
14
- declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
14
+ declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style, dataset }: ButtonProps & {
15
+ dataset?: {
16
+ [key: string]: string;
17
+ };
18
+ }): react_jsx_runtime.JSX.Element;
15
19
 
16
20
  declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
17
21
  declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
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, C as ContactType } from './types-DvqfFAbp.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-ijV5Kx6q.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-DqIQL1Es.js';
4
4
  import React, { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
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, C as ContactType } from './types-DvqfFAbp.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-CBDXC17Y.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-CaMDtQcV.mjs';
4
4
  import React, { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -11,7 +11,11 @@ declare function Field({ label, children, error, required, className }: {
11
11
 
12
12
  declare function Input({ onChange, type, after, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
13
13
 
14
- declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style }: ButtonProps): react_jsx_runtime.JSX.Element;
14
+ declare function Button({ size, disabled, loading, children, onClick, highlight, block, type, rounded, className, style, dataset }: ButtonProps & {
15
+ dataset?: {
16
+ [key: string]: string;
17
+ };
18
+ }): react_jsx_runtime.JSX.Element;
15
19
 
16
20
  declare function Modal({ children, isOpen, width, zIndex, className }: ModalProps): react_jsx_runtime.JSX.Element;
17
21
  declare function ModalWithHeader({ children, onBack, onClose, title, showBorder, showClose, ...props }: ModalWithHeaderProps): react_jsx_runtime.JSX.Element;
@@ -1,4 +1,4 @@
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-CBDXC17Y.mjs';
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-CaMDtQcV.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { w as DrawerProps, a4 as WalletPanelProps, Y as UIProps } from './types-DvqfFAbp.mjs';
4
4
  import { Hash, Chain } from 'viem';
package/dist/index.d.mts CHANGED
@@ -7,8 +7,8 @@ import * as viem from 'viem';
7
7
  import React, { ReactNode } from 'react';
8
8
  import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DvqfFAbp.mjs';
9
9
  export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-Crr4Z_Zm.mjs';
10
- export { i as Components } from './index-D5ql_Egx.mjs';
11
- export { i as UI } from './index-DjctI-Fl.mjs';
10
+ export { i as Components } from './index-Dee6qqWc.mjs';
11
+ export { i as UI } from './index-rk7ZjmRF.mjs';
12
12
  export { i as Api } from './index-0q56ZNkH.mjs';
13
13
  export { i as Chains } from './index-DXRGMAbv.mjs';
14
14
  export { i as Types } from './index-DZbxObEv.mjs';
@@ -19,7 +19,7 @@ import 'viem/types/misc';
19
19
  import 'react/jsx-runtime';
20
20
  import 'viem/_types/actions/siwe/verifySiweMessage';
21
21
  import '@tanstack/react-query';
22
- import './index-CBDXC17Y.mjs';
22
+ import './index-CaMDtQcV.mjs';
23
23
 
24
24
  declare const wagmiConfig: wagmi.Config<[{
25
25
  blockExplorers: {
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ import * as viem from 'viem';
7
7
  import React, { ReactNode } from 'react';
8
8
  import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DvqfFAbp.js';
9
9
  export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-BRm4dPQF.js';
10
- export { i as Components } from './index-DgPcDFXk.js';
11
- export { i as UI } from './index-qKVfqZ0X.js';
10
+ export { i as Components } from './index-DQjZSiFX.js';
11
+ export { i as UI } from './index-C7a1Hfcx.js';
12
12
  export { i as Api } from './index-CANAro1S.js';
13
13
  export { i as Chains } from './index-DXRGMAbv.js';
14
14
  export { i as Types } from './index-DUdhdrzI.js';
@@ -19,7 +19,7 @@ import 'viem/types/misc';
19
19
  import 'react/jsx-runtime';
20
20
  import 'viem/_types/actions/siwe/verifySiweMessage';
21
21
  import '@tanstack/react-query';
22
- import './index-ijV5Kx6q.js';
22
+ import './index-DqIQL1Es.js';
23
23
 
24
24
  declare const wagmiConfig: wagmi.Config<[{
25
25
  blockExplorers: {
package/dist/index.js CHANGED
@@ -2524,7 +2524,8 @@ function Button({
2524
2524
  type = "button",
2525
2525
  rounded = true,
2526
2526
  className = "",
2527
- style = {}
2527
+ style = {},
2528
+ dataset = {}
2528
2529
  }) {
2529
2530
  const onAction = () => {
2530
2531
  if (!disabled && !loading) {
@@ -2541,6 +2542,7 @@ function Button({
2541
2542
  ...style
2542
2543
  },
2543
2544
  onClick: onAction,
2545
+ ...dataset,
2544
2546
  children: loading ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
2545
2547
  }
2546
2548
  );